/* Presentation Page Styles - Solaria Redesign (Black/Gold/Red) */

/* Import fonts if not already globally available */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
    --color-bg-dark: #080808;
    --color-bg-card: #0f0f0f;
    --color-gold: #c5af6e;
    --color-gold-bright: #FDD023;
    --color-gold-dim: #8f7d4a;
    --color-red: #8b0000;
    --color-red-bright: #b91d1d;
    --color-text-main: #f1e3d7;
    --color-text-muted: #888;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Nunito', sans-serif;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* background-image: url("data:image/svg+xml,..."); Removed as per user request */
    padding-top: 130px;
    /* Space for fixed header */
}

/* --- Top Navigation Bar --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    /* Increased height for stacked items */
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 175, 110, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center everything */
    padding: 0 40px;
    z-index: 1000;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Mobile Toggle - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 1.5rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    z-index: 1100;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Increased gap to widen navigation */
    justify-content: center;
    width: auto;
    flex-wrap: nowrap;
    /* Prevent wrapping if possible */
}

.nav-link {
    display: inline-flex;
    flex-direction: column;
    /* Stack icon above text */
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    /* Reduced padding */
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    /* Slightly smaller to fit, still readable */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Reduced spacing */
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
    background: transparent;
    /* Remove auto bg on stack */
    text-shadow: 0 0 15px rgba(197, 175, 110, 0.8);
    transform: translateY(-2px);
}

.nav-link i {
    margin-right: 0;
    margin-bottom: 8px;
    /* Space between icon and text */
    font-size: 24px;
    /* Larger icon */
    color: var(--color-gold-dim);
    transition: all 0.3s ease;
}

.nav-link:hover i,
.nav-link.active i {
    color: var(--color-gold-bright);
    text-shadow: 0 0 10px var(--color-gold);
}

/* Fixed Back Button in Bottom Right - Solid Gold Redesign */
.back-to-web-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    /* Decent Gold Gradient - Lighter/Champagne for readability */
    /* High Contrast Lighter Gold for Readability */
    background: linear-gradient(135deg, #f3e5ab, #d4b870);
    /* Much lighter start */
    border: 1px solid #c5af6e;
    color: #333333 !important;
    /* Dark Gray */
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 800;
    text-shadow: none;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
}

.back-to-web-fixed:hover {
    /* Brighten and add glow only on hover */
    background: linear-gradient(135deg, #f0e6c8, #e6cf8b);
    color: #333;
    box-shadow: 0 0 20px rgba(197, 175, 110, 0.4);
    transform: translateY(-3px);
}

.back-to-web-fixed i {
    margin-right: 12px;
    font-size: 18px;
    font-weight: bold;
}

/* --- Layout & Wrapper --- */
.presentation-container {
    display: block !important;
    /* Force block to override potential grid */
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.main-content {
    min-width: 0;
    width: 100%;
}

.article__wrapper {
    max-width: 1100px;
    /* Decreased from 1400px */
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98)) !important;
    border: 1px solid rgba(197, 175, 110, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    width: 100%;
    /* Ensure it spans */
}

/* --- Back Button (General) --- */
.back__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #0f0f0f;
    border: 1px solid #332a2a;
    color: var(--color-gold);
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.back__button:before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-gold-dim);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease;
}

.back__button:after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 175, 110, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.back__button:hover:after {
    left: 100%;
}

.back__button:hover {
    color: var(--color-gold-bright);
    box-shadow: 0 0 15px rgba(197, 175, 110, 0.1);
    transform: translateX(-5px);
}

.back__button:hover:before {
    border-color: var(--color-gold);
}

.back__button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    fill: currentColor;
}

/* --- Loading State --- */
.loading__state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}

.loading__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(197, 175, 110, 0.2);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading__state p {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    animation: pulse 2s infinite ease-in-out;
}

/* --- Article Card --- */
.article__card {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95), rgba(8, 8, 8, 0.98));
    border: 1px solid #332a2a;
    border-radius: 2px;
    overflow: hidden;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
}

.article__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    border-top-color: var(--color-gold-dim);
    border-bottom-color: var(--color-gold-dim);
    opacity: 0.3;
    pointer-events: none;
    z-index: 2;
}

.article__header {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid #332a2a;
    background: linear-gradient(to right, rgba(10, 10, 10, 0), rgba(50, 0, 0, 0.1), rgba(10, 10, 10, 0));
    position: relative;
    z-index: 1;
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    animation: fadeIn 0.8s ease 0.2s backwards;
}

.article__category {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(197, 175, 110, 0.3);
    color: var(--color-gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(197, 175, 110, 0.05);
    position: relative;
    overflow: hidden;
}

.article__title {
    font-size: 2.5rem;
    color: var(--color-text-main);
    margin: 0;
    font-weight: 500;
    font-family: var(--font-heading);
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeIn 0.8s ease 0.3s backwards;
}

.article__content {
    padding: 4rem 3rem;
    color: aliceblue;
    font-size: 1.2rem;
    line-height: 1.9;
    background: transparent;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease 0.4s backwards;
}

.article__content h2,
.article__content h3 {
    color: var(--color-gold);
    font-family: var(--font-heading);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    border-left: 4px solid var(--color-red);
    padding-left: 1.5rem;
    background: linear-gradient(to right, rgba(139, 0, 0, 0.1), transparent);
}

.article__content h2 {
    font-size: 2.2rem;
}

.article__content h3 {
    font-size: 1.6rem;
}

.article__content p {
    margin-bottom: 1.5rem;
    color: #ccc;
}

.article__content ul {
    list-style: none;
    padding-left: 0;
}

.article__content ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: #ccc;
    font-size: 1.15rem;
}

.article__content ul li::before {
    content: "♦";
    color: var(--color-red-bright);
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 1rem;
}

.article__content img {
    max-width: 80%;
    /* Reduced from 100% */
    display: block;
    margin: 2rem auto;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.article__content img:hover {
    transform: scale(1.01);
    border-color: var(--color-gold-dim);
}

/* --- Feature Section (PvM Balancing) --- */
.feature-box {
    background: linear-gradient(to right, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.8));
    border-left: 3px solid var(--color-gold-dim);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-left-color: var(--color-gold-bright);
    background: linear-gradient(to right, rgba(40, 40, 40, 0.9), rgba(30, 30, 30, 0.8));
    transform: translateX(5px);
}

.feature-box h5 {
    color: var(--color-text-main);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.feature-box p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.feature-box i {
    color: var(--color-gold);
    margin-right: 0.5rem;
}

/* --- Footer Share --- */
.article__footer {
    padding: 2rem 2.5rem;
    border-top: 1px solid #332a2a;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.share__button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--color-red), #500000);
    border: 1px solid #ff3333;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

.share__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.6);
    filter: brightness(1.2);
}

/* --- Animations --- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Dungeon Carousel Section --- */
.dungeon-section {
    position: relative;
    padding: 20px 0;
    text-align: center;
}

.dungeon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.dungeon-header h2 {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 3rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(197, 175, 110, 0.4);
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

.dungeon-header .ornament {
    color: var(--color-gold-dim);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.dungeon-header .ornament::before,
.dungeon-header .ornament::after {
    content: "❖";
    margin: 0 5px;
    font-size: 80%;
    opacity: 0.7;
}

.section-description {
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

/* Carousel Container */
.dungeon-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 500px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(197, 175, 110, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    background: #050505;
}

/* Slide Styling */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
    display: none;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
    display: block;
}

/* Gradient Overlay for Text Readability */
.carousel-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 60%,
            rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.dungeon-info {
    flex: 1;
    text-align: left;
}

.dungeon-title {
    color: #fff !important;
    font-family: var(--font-heading);
    font-size: 2rem !important;
    margin-bottom: 15px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 15px;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.dungeon-title i {
    color: var(--color-gold);
    font-size: 1.5rem;
}

.dungeon-meta {
    display: flex;
    gap: 30px;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
}

.dungeon-meta span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dungeon-meta i {
    color: var(--color-red-bright);
}

/* Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--color-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(197, 175, 110, 0.5);
}

.pagination-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-gold-dim);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: 0 0 10px rgba(197, 175, 110, 0.5);
    transform: scale(1.2);
}

/* Responsive Mobile Navigation */
@media (max-width: 900px) {
    .top-nav {
        height: 70px;
        /* collapsed height */
        padding: 0 20px;
        justify-content: space-between;
        /* spread button and brand if any */
        align-items: center;
        flex-direction: row;
        /* Keep row for bar */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 30px 20px;
        max-height: 0;
        overflow: hidden;
        /* Changed from visibility/opacity to display for stronger hiding */
        display: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 3px solid var(--color-gold-dim);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        gap: 15px;
    }

    /* Active state for menu expansion */
    .top-nav.active {
        background: rgb(5, 5, 5);
        /* Solid bg when open */
    }

    .top-nav.active .nav-links {
        display: flex;
        /* Enforce flex when active */
        max-height: 80vh;
        /* enough for content */
        visibility: visible;
        opacity: 1;
        padding: 30px 20px 50px 20px;
        overflow-y: auto;
    }

    .nav-link {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        flex-direction: row;
        /* Icon left of text */
        justify-content: flex-start;
        gap: 15px;
    }

    .nav-link i {
        margin-right: 15px;
        margin-bottom: 0;
        width: 25px;
        text-align: center;
    }

    body {
        padding-top: 100px;
    }

    .presentation-container {
        padding-top: 20px;
    }
}

/* --- Special Inventory Section --- */
.inventory-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.inv-item {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(16, 20, 40, 0.9), rgba(30, 35, 60, 0.8));
    border: 1px solid rgba(197, 175, 110, 0.2);
    padding: 15px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.inv-item:hover {
    border-color: var(--color-gold);
    transform: translateX(5px);
    background: linear-gradient(to right, rgba(20, 25, 50, 0.95), rgba(40, 45, 80, 0.9));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.inv-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-gold-dim);
    border-radius: 4px;
    margin-right: 15px;
    color: var(--color-gold);
    font-size: 1.2rem;
}

.inv-text {
    flex: 1;
    color: #ddd;
    font-size: 1rem;
}

.inv-text strong {
    color: #fff;
    font-family: 'Cinzel', serif;
    margin-right: 5px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* --- Special Inventory Styles (Refined) --- */
.special-inv-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Reduced gap */
}

.special-inv-item {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(23, 23, 40, 0.9), rgba(30, 30, 50, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--color-gold);
    padding: 10px 15px;
    /* Reduced padding */
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: default;
}

.special-inv-item:hover {
    background: linear-gradient(90deg, rgba(40, 40, 60, 0.95), rgba(50, 50, 80, 0.9));
    transform: translateX(5px);
    border-color: rgba(197, 175, 110, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.special-inv-item .inv-icon {
    width: 36px;
    /* Icon container size */
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(197, 175, 110, 0.2);
    color: var(--color-gold);
    margin-right: 12px;
    flex-shrink: 0;
}

.special-inv-item .inv-icon img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.inv-content {
    font-family: 'Nunito', sans-serif;
    color: #fff;
    font-size: 0.95rem;
}

.inv-content strong {
    color: #fff;
    font-weight: 700;
    margin-right: 5px;
    font-family: 'Cinzel', serif;
}

.inv-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.box-shadow-glow {
    box-shadow: 0 0 30px rgba(197, 175, 110, 0.15);
}

/* --- Inventory Layout Fix --- */
.inventory-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    /* Minimized gap as requested */
    align-items: center;
    justify-content: center;
}

.inventory-description-centered {
    text-align: center !important;
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

@media (max-width: 900px) {
    .inventory-row {
        flex-wrap: wrap !important;
        gap: 20px !important;
    }

    .inventory-row .col-md-4,
    .inventory-row .col-md-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 901px) {
    .inventory-row .col-md-4 {
        flex: 0 0 32%;
        /* Reduced width to grouping */
        max-width: 32%;
    }

    .inventory-row .col-md-8 {
        flex: 0 0 50%;
        /* Reduced width to grouping */
        max-width: 50%;
    }
}

.special-inv-item {
    font-size: 0.95rem;
    padding: 12px 15px;
}

.inventory-preview-container img {
    width: 100%;
    height: auto;
    max-height: 515px;
    /* Reduced to match list height */
    /* Allow it to be tall */
    object-fit: contain;
}

/* --- FAQ Section --- */
#faq {
    position: relative;
    padding: 20px 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.faq-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: var(--color-text-main);
    text-shadow: 0 0 15px rgba(197, 175, 110, 0.3);
    display: inline-block;
    position: relative;
    padding: 0 40px;
}

.faq-title::before,
.faq-title::after {
    content: "❖";
    color: var(--color-gold);
    font-size: 1.5rem;
    vertical-align: middle;
    opacity: 0.8;
    margin: 0 15px;
}

.faq-title::before {
    margin-right: 15px;
}

.faq-title::after {
    margin-left: 15px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: linear-gradient(90deg, rgba(62, 50, 20, 0.9), rgba(40, 32, 10, 0.95));
    border: 1px solid rgba(197, 175, 110, 0.4);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-gold-dim);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq-question {
    padding: 18px 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: transparent;
    width: 100%;
    text-align: left;
    border: none;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    position: relative;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--color-gold);
    margin-right: 15px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(90deg);
}

.faq-q-text {
    font-weight: 700;
    color: #fff;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

.faq-answer-preview {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.faq-content {
    padding: 0 25px 20px 60px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    display: none;
    /* Controlled by JS or Details element */
}

/* If using Details/Summary, we don't need display:none for content, but we style summary */
details.faq-item>summary {
    list-style: none;
}

details.faq-item>summary::-webkit-details-marker {
    display: none;
}



.faq-visuals {
    margin-top: 50px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(197, 175, 110, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.faq-visuals img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.faq-visuals:hover img {
    transform: scale(1.02);
}

.faq-tooltip-hint {
    text-align: center;
    margin-top: 20px;
    color: var(--color-gold);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.faq-tooltip-hint i {
    font-size: 0.8rem;
}

.faq-icons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.stone-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(197, 175, 110, 0.4);
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: help;
    position: relative;
}

.stone-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    margin: 0 !important;
    /* Override generic img styles */
}

.stone-icon:hover {
    border-color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 175, 110, 0.3);
}

/* Updated FAQ Styles for Blue Box Design */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Spacing key matching screenshot */
}

.faq-item {
    background: rgba(16, 20, 50, 0.9);
    /* Dark blue background */
    border: none;
    border-radius: 4px;
    margin-bottom: 0;
    transition: background 0.3s ease;
}

.faq-item:hover {
    background: rgba(25, 30, 70, 0.95);
}

.faq-question {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #fff;
    width: 100%;
}

.faq-icon {
    margin-right: 15px;
    color: var(--color-gold);
    font-size: 0.7rem;
    /* Smaller icon like screenshot triangle */
    display: flex;
    align-items: center;
}

/* Change icon to filled triangle if possible, or keep chevron small */
.faq-icon i {
    font-size: 0.8rem;
}

.faq-q-text {
    font-family: 'Cinzel', serif;
    /* Or system font if screenshot implies simple serif */
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-right: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.faq-answer-preview {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 1.05rem;
    font-family: 'Nunito', sans-serif;
}

.faq-question {
    /* Allow wrapping for long text like the last item */
    white-space: normal;
    padding: 18px 25px;
    /* Taller padding */
}

/* Override default marker */
details.faq-item>summary {
    list-style: none;
}

details.faq-item>summary::-webkit-details-marker {
    display: none;
}

/* FAQ Visuals - Image Row */
/* Refined FAQ Visuals with Labels */
/* Standardized Image Sizes and Alignment */
.faq-images-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align top so labels line up, or center */
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.framed-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 28%;
    /* Slightly less than 30% to ensure breathing room */
    min-width: 250px;
}

.image-label {
    font-family: 'Cinzel', serif;
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    min-height: 1.5em;
    /* Reserve height for label */
}

.framed-image {
    position: relative;
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 15px rgba(197, 175, 110, 0.4);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    /* Enforce aspect ratio */
    aspect-ratio: 3 / 4;
    height: 450px;
    /* Specific height preference */
    background: #000;
    /* Fallback */
}

.framed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the frame, cropping if necessary */
    object-position: center;
    /* Focus on center to avoid gaps */
    display: block;
    transition: transform 0.5s ease;
}

.framed-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(197, 175, 110, 0.6);
    border-color: var(--color-gold-bright);
}

.framed-image:hover img {
    transform: scale(1.05);
}

/* Icons Centering */
.faq-icons-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 40px;
    text-align: center;
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Special Inventory / Itemshop Header */
.special-inventory-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.special-inv-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(197, 175, 110, 0.4);
}

.inv-title-icon {
    max-height: 25px;
    filter: drop-shadow(0 0 5px rgba(197, 175, 110, 0.6));
}

.inv-title-icon.right {
    transform: scaleX(-1);
}

/* Aggressive Fix for Framed Images */
.framed-image {
    background: transparent !important;
    /* Changed from black to transparent so we see if image is missing or just padding */
}

.framed-image img {
    /* Force fill */
    min-height: 100% !important;
    min-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Story Framed Image */
.story-framed-image-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.story-framed-image {
    position: relative;
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 15px rgba(197, 175, 110, 0.4);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 80%;
    /* Smaller than full width as requested */
    max-width: 800px;
}

.story-framed-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.story-framed-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(197, 175, 110, 0.6);
    border-color: var(--color-gold-bright);
}

/* Download Section Video Background */
#download {
    position: relative !important;
    overflow: hidden !important;
    padding: 80px 20px !important;
    border: 1px solid rgba(197, 175, 110, 0.3) !important;
    border-radius: 12px !important;
    margin-top: 40px !important;
    background: #000 !important;
    /* Fallback */
}

.download-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
    /* Darken for readability */
    mix-blend-mode: luminosity;
    /* Optional style choice, or normal */
}

.download-content {
    position: relative;
    z-index: 1;
}

/* Ensure button stands out */
.download-btn-large {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    background: linear-gradient(to bottom, var(--color-gold), #8A7338);
    color: #000;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(197, 175, 110, 0.4);
    transition: all 0.3s ease;
}

.download-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(197, 175, 110, 0.7);
    color: #000;
}

/* Reset Download Section */
#download {
    position: relative !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

/* Reusing Story Frame for Video */
.download-video-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.framed-video {
    position: relative;
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 15px rgba(197, 175, 110, 0.4);
    border-radius: 4px;
    overflow: hidden;
    width: 80%;
    max-width: 800px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.framed-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(197, 175, 110, 0.6);
    border-color: var(--color-gold-bright);
}

.framed-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Hide the old background video class if it persists */
.download-bg-video {
    display: none !important;
}

.download-content {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

/*   - - -   N e w   S t y l e s   f o r   L a y o u t   F i x e s   - - -   */
.border-gold {
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 15px rgba(197, 175, 110, 0.3);
}

.content-box {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(197, 175, 110, 0.15);
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/*   E n s u r e   i m a g e s   i n   c o l u m n s   d o n ' t   s t r e t c h   */
.col-md-6 img.img-fluid {
    width: 100%;
    height: auto;
    object-fit: contain;
    /*   P r e v e n t s   s t r e t c h i n g   */
    max-height: 500px;
    /*   L i m i t   h e i g h t   */
}

/*   C e n t e r   i m a g e s   i n   c o l u m n s   */
.col-md-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*   A d j u s t   f e a t u r e - b o x   s m a l l   */
.feature-box.small {
    padding: 10px 15px;
    margin-bottom: 8px;
}

.feature-box.small h4 {
    font-size: 1rem;
    color: var(--color-gold-bright);
    margin-bottom: 5px;
}

.feature-box.small p {
    font-size: 0.9rem;
    color: #aaa;
}

/* Added missing rule for images in framed-video */
.framed-video img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Event List Styles --- */
.event-list-container {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
}

.event-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    /* Managed by padding/margin in flex */
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.event-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(20, 20, 30, 0.8), rgba(30, 30, 40, 0.7));
    border: 1px solid rgba(197, 175, 110, 0.2);
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;

    /* Flex sizing - Force 2 columns */
    box-sizing: border-box;
    width: calc(50% - 20px);
    /* Increased safety margin */
    flex: 0 0 calc(50% - 20px);
    margin: 7.5px;
}

.event-item:hover {
    background: linear-gradient(90deg, rgba(40, 40, 60, 0.9), rgba(50, 50, 70, 0.8));
    border-color: var(--color-gold);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.event-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(197, 175, 110, 0.4));
}

.event-name {
    color: #e0e0e0;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: left;
}

/* On mobile, stack them */
@media (max-width: 768px) {
    .event-item {
        width: 100%;
        flex: 0 0 100%;
        margin: 7.5px 0;
    }
}

.gold-glow-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    box-shadow: 0 0 10px var(--color-gold), 0 0 20px var(--color-gold-bright);
    margin: 20px 0 30px 0;
    opacity: 0.8;
}

/* --- Mobile Optimization & Footer Fixes --- */
@media (max-width: 768px) {

    /* 1. Stack Navigation & Make Scrollable */
    .top-nav {
        height: auto;
        padding: 10px 0;
        flex-direction: column;
        justify-content: flex-start;
        background: rgba(8, 8, 8, 0.98);
        /* Less transparent on mobile */
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        display: flex;
        /* Ensure flex is active */
        justify-content: flex-start;
        /* Align left for scrolling */
        padding: 10px 15px;
        gap: 15px;
        /* Reduced gap for mobile */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll iOS */
        mask-image: linear-gradient(to right, black 90%, transparent 100%);
        /* Fade out effect */
    }

    .nav-link {
        flex-direction: column;
        padding: 8px 12px;
        font-size: 13px;
        /* Smaller font */
        min-width: 80px;
        /* Ensure touch target size */
        flex-shrink: 0;
        /* Prevent squishing */
    }

    .nav-link i {
        font-size: 20px;
        margin-bottom: 5px;
    }

    /* 2. Fix Body Padding for Taller Mobile Nav */
    body {
        padding-top: 170px;
        /* Adjust based on new nav height */
    }

    /* 3. Footer Spacing */
    .article__wrapper {
        padding: 2rem 1rem 4rem;
        /* Reduced padding on mobile */
    }

    .article__footer {
        background: rgba(0, 0, 0, 0.6) !important;
        /* Ensure footer background is visible */
        padding: 20px;
        border-radius: 8px;
        margin-top: 30px !important;
    }
}

/* Ensure Footer always has background if outside wrapper or transparent */
.article__footer {
    position: relative;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* --- Custom Image Buttons --- */
/* --- Custom Image Buttons --- */
.btn-custom-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    /* Doubled from 320px */
    height: 100px;
    /* Doubled from 80px */
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 2rem;
    /* Doubled font size */
    letter-spacing: 2px;
    background-size: 100% 100%;
    /* Stretch image */
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    outline: none;
    transition: transform 0.2s, filter 0.2s;
    text-shadow: none;
    margin: 10px;
    margin: 10px;
    padding-bottom: 0px;
    box-sizing: border-box;
    /* Ensure padding doesn't break width */
}

/* --- Mobile Optimization for Image Rows (PVM/PVP Sets) --- */
@media (max-width: 768px) {
    .faq-images-row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .framed-image-container {
        width: 85% !important;
        min-width: 0 !important;
        max-width: 400px !important;
        margin: 0 auto;
    }

    .framed-image {
        height: auto !important;
        aspect-ratio: 3/4;
    }
}

.btn-custom-image:hover {
    transform: translateY(-4px);
    /* Increased hover lift */
    filter: brightness(1.1);
    color: inherit;
    text-decoration: none;
    /* Ensure no underline on hover */
}

/* Discord Button: Yellow Background -> Black Text */
.btn-discord-img {
    background-image: url('../img/hero_panel_button_yellow-min.png');
    color: #5865F2 !important;
    /* DISCORD BLUE TEXT */
    text-shadow: none;
    padding-left: 60px;
    /* Center text away from Dragon (Left) */
}

.btn-discord-img:hover {
    color: #5865F2;
}

/* Register Button: Gray Background -> Light/Gold Text */
.btn-register-img {
    background-image: url('../img/hero_panel_button_gray-min.png');
    color: #d4af37;
    /* Gold text */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    padding-right: 60px;
    /* Center text away from Dragon (Right) */
}

.btn-register-img:hover {
    color: #f3e5ab;
}

.btn-custom-image i {
    margin-right: 24px;
    /* Doubled spacing */
    font-size: 3rem;
    /* Doubled icon size */
}

/* --- Live Server Timer --- */
.timer-container {
    background: rgba(8, 8, 8, 0.9);
    border: 1px solid rgba(197, 175, 110, 0.4);
    border-radius: 6px;
    padding: 25px 40px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    width: 100%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

/* Shine effect */
.timer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 175, 110, 0.05), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.timer-label {
    position: relative;
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(197, 175, 110, 0.6);
    letter-spacing: 2px;
}

.timer-label::after {
    content: '♦';
    margin-left: 15px;
    font-size: 1.5rem;
    color: rgba(197, 175, 110, 0.5);
    vertical-align: middle;
}

.timer-label::before {
    content: '♦';
    margin-right: 15px;
    font-size: 1.5rem;
    color: rgba(197, 175, 110, 0.5);
    vertical-align: middle;
}

.countdown-grid {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(197, 175, 110, 0.2);
    padding: 15px 0;
    width: 110px;
    border-radius: 4px;
    transition: transform 0.3s, border-color 0.3s;
}

.time-box:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.time-value {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.time-label {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .timer-container {
        padding: 20px;
        width: 95%;
    }

    .timer-label {
        font-size: 1.5rem;
    }

    .countdown-grid {
        gap: 10px;
    }

    .time-box {
        width: 80px;
        padding: 10px 0;
    }

    .time-value {
        font-size: 2rem;
    }

    .time-label {
        font-size: 0.7rem;
    }

    .timer-label::before,
    .timer-label::after {
        font-size: 1rem;
        margin: 0 5px;
    }
}