:root {
    --gold-primary: #fbbf66;
    --gold-hover: #dca048;
    --gold-light: #ffe5b4;
    --bg-dark: #050505;
    --bg-card: #0f0f0f;
    --bg-card-hover: #161616;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #d5d5d5;
    --font-heading-main: 'Marcellus', serif;
    --font-heading-alt: 'Cinzel', serif;
    --font-body: 'Roboto', sans-serif;
    --container-width: 1200px;
    --radius: 4px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --gold-glow: 0 0 25px rgba(251, 191, 102, 0.15);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(251, 191, 102, 0.3);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
::selection {
    background: var(--gold-primary);
    color: #000;
}
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading-main);
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.highlight {
    color: var(--gold-primary);
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 300;
}
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--font-heading-main);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary {
    background-color: var(--gold-primary);
    color: #000;
    border: 1px solid var(--gold-primary);
    font-weight: 800;
}
.btn-primary:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    box-shadow: 0 5px 15px rgba(251, 191, 102, 0.3);
    transform: translateY(-2px);
}
.btn-primary.large {
    padding: 18px 40px;
    font-size: 18px;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
}
.btn-outline:hover {
    background: rgba(251, 191, 102, 0.1);
    color: #fff;
    border-color: #fff;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid transparent;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}
padding: 18px 45px;
font-size: 16px;
}
.btn-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
    text-shadow: none !important
}
.btn-loading:after {
    content: '';
    -webkit-animation: loader .5s infinite linear;
    animation: loader .5s infinite linear;
    border: 2px solid #fff;
    border-radius: 50%;
    border-right-color: transparent !important;
    border-top-color: transparent !important;
    display: block;
    height: 1.4em;
    width: 1.4em;
    position: absolute;
    left: calc(50% - (1.4em / 2));
    top: calc(50% - (1.4em / 2));
    -webkit-transform-origin: center;
    transform-origin: center;
    position: absolute !important
}
@-webkit-keyframes loader {
    from {
        -webkit-transform: rotate(0);
        transform: rotate(0)
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}
@keyframes loader {
    from {
        -webkit-transform: rotate(0);
        transform: rotate(0)
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 40px 0;
    background: transparent;
    transition: all 0.4s ease;
}
.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 55px;
    width: auto;
    transition: var(--transition);
}
.navbar.scrolled .logo img {
    height: 35px;
}
.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
}
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-links>a,
.nav-item>a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 3px;
}
.nav-links>a:hover,
.nav-item:hover>a,
.nav-links>a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(22, 22, 24, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 40px;
    min-width: 250px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
}
.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.mega-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 180px;
}
.mega-column span {
    color: var(--gold-primary);
    font-family: var(--font-heading-alt);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}
.mega-column a {
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
    padding-left: 0;
}
.mega-column a:hover {
    color: #fff;
    padding-left: 5px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}
.navbar .container {
    position: relative;
}
.nav-links {
    position: static;
}
.nav-rise-online {
    position: static;
}
.nav-rise-online .mega-menu {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(20px);
    width: 100%;
    max-width: 100%;
    justify-items: start;
    margin-left: 0;
    gap: 30px;
}
@media (max-width: 900px) {
    .nav-rise-online .mega-menu {
        grid-template-columns: 1fr;
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 20px;
        box-shadow: none;
        background: transparent;
        border: none;
        display: none;
    }
    .nav-item:hover .mega-menu,
    .nav-rise-online:hover .mega-menu {
        position: static;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}
.nav-rise-online:hover .mega-menu {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}
.nav-item:nth-child(2) .mega-menu .mega-column:nth-last-child(1) {
    grid-column: span 2;
    width: 100%;
    align-items: center;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    margin-top: 5px;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-actions .btn {
	font-size: 14px;
	padding: 7px 15px;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6) contrast(1.1);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(5, 5, 5, 0.9) 100%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding-top: 0px;
}
.hero-subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 22px;
    letter-spacing: 4px;
    color: var(--gold-primary);
    margin-bottom: 25px;
    text-transform: uppercase;
    opacity: 0.9;
}
.hero h1 {
    font-size: 62px;
    font-family: var(--font-heading-alt);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 30px;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 0%, #dcdcdc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.hero h1 .highlight {
    font-family: var(--font-heading-main);
    font-style: normal;
    color: var(--gold-primary);
    -webkit-text-fill-color: var(--gold-primary);
    font-weight: 400;
}
.hero p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 50px;
    color: rgba(255, 255, 255, 0.8);
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}
.news-section {
    padding: 60px 0;
    background: #050505;
    background: linear-gradient(to bottom, #000 0%, #080808 100%);
    border-bottom: 1px solid var(--border-light);
}

.news-header-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}



.header-left h2 {
    font-size: 24px;
    margin: 0;
    letter-spacing: 1px;
}

.view-all-btn {
    font-size: 14px;
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    padding: 8px 20px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all-btn:hover {
    background: var(--gold-primary);
    color: #000;
}

/* Accordion Styling */
.news-accordion {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item.active {
    border-color: var(--gold-primary);
    background: linear-gradient(90deg, rgba(251, 191, 102, 0.05), transparent);
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    gap: 30px;
    transition: background 0.3s ease;
}

.accordion-item:not(.active) .accordion-header:hover {
    background: #141414;
}

.acc-date {
    font-family: var(--font-heading-alt);
    color: var(--gold-primary);
    font-size: 14px;
    font-weight: 700;
    width: 100px;
    text-align: right;
    flex-shrink: 0;
}

.acc-title {
    flex: 1;
    font-size: 16px;
    font-family: var(--font-heading-main);
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.accordion-item.active .acc-title {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(251, 191, 102, 0.3);
}

.acc-icon {
    font-size: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.accordion-item.active .acc-icon {
    transform: rotate(45deg);
    color: var(--gold-primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(0, 0, 0, 0.2);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    /* Adjust based on content */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.content-inner {
    padding: 20px 30px 30px 160px;
    /* Indent to align with text */
}

/* Store Buttons */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-buttons {
    margin-bottom: 30px;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    min-width: 170px;
}

.store-badge:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
    box-shadow: var(--gold-glow);
    transform: translateY(-2px);
}

.store-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(251, 191, 102, 0.1);
    color: var(--gold-primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.store-badge:hover .store-badge-icon {
    background: rgba(251, 191, 102, 0.18);
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-badge-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.store-badge-title {
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-heading-alt);
    letter-spacing: 0.3px;
    color: var(--text-primary);
}

.content-inner p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 800px;
}

.btn-text {
    color: var(--gold-primary);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    gap: 10px;
    text-shadow: 0 0 5px rgba(251, 191, 102, 0.6);
}

@media (max-width: 768px) {

    /* Stack Buttons on Mobile */
    .hero-buttons,
    .store-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 0 20px;
    }

    .hero-buttons .btn,
    .store-buttons .store-badge {
        width: 100%;
        justify-content: center;
    }

    .accordion-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
    }

    .acc-date {
        text-align: left;
        width: 100%;
        font-size: 12px;
        color: var(--text-muted);
    }

    .content-inner {
        padding: 20px;
    }

    .header-left h2 {
        font-size: 18px;
    }

    /* Latest Grid Mobile */
    /* Latest Grid Mobile */
    .latest-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .latest-item {
        width: 100%;
        height: 220px;
        /* Fixed height for consistency */
        min-height: auto;
    }

    .latest-item.featured {
        height: 300px;
        /* Taller for featured */
        width: 100%;
    }

    /* Story Mobile */
    .story-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .story-image {
        max-width: 80%;
        margin: 0 auto;
    }

    .story-header h2 {
        font-size: 24px;
    }
}

/* LATEST NEWS GRID */
.latest-news-section {
    padding: 60px 0 100px;
    /* Slight overlap or space */
    background: #080808;
}

.section-title-simple {
    margin-bottom: 40px;
    padding-left: 10px;
    border-left: 3px solid var(--gold-primary);
}

.section-title-simple h5 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 5px;
    font-family: var(--font-heading-alt);
    letter-spacing: 1px;
}

.line-small {
    width: 30px;
    height: 2px;
    background: var(--gold-primary);
    opacity: 0.5;
}

.latest-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 20px;
}

/* Featured item takes first column and spans 2 rows */
.latest-item.featured {
    grid-column: 1;
    grid-row: 1 / 3;
}

.latest-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: none;
    transition: var(--transition);
}

.latest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.latest-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.latest-item:hover .latest-bg {
    transform: scale(1.1);
}

.latest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 1;
}

.latest-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.tag {
    background: var(--gold-primary);
    color: #000;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 2px;
    width: max-content;
    margin-bottom: 10px;
}

.latest-item h3 {
    font-size: 18px;
    font-family: var(--font-heading-main);
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.latest-item.featured h3 {
    font-size: 32px;
    margin-bottom: 10px;
    font-family: var(--font-heading-alt);
}

.latest-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* SECTION COMMON */
section {
    padding: 120px 0;
}

/* HERO STATS - NEW LAYOUT */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    /* Managed by dividers/padding */
    padding: 30px 40px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    /* Pill shape */
    margin: 0 auto;
    width: max-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 30px;
}

.stat-icon {
    font-size: 28px;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 5px rgba(251, 191, 102, 0.4));
}

.stat-info {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: var(--font-heading-main);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        width: 100%;
        background: transparent;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
        gap: 20px;
    }

    .stat-item {
        width: 100%;
        justify-content: center;
        background: rgba(10, 10, 10, 0.6);
        padding: 15px;
        border-radius: var(--radius);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-divider {
        display: none;
    }
}

/* SECTION COMMON */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #fff;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background-color: var(--gold-primary);
    margin: 0 auto;
}

/* FEATURES */
.features {
    background-color: var(--bg-dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns on large screens */
    gap: 20px;
    /* Reduce gap to fit */
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}

.feature-card {
    background: var(--bg-card);
    padding: 50px 30px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    transform: translateY(-10px);
}

.feature-card .icon-box {
    font-size: 32px;
    color: var(--gold-primary);
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 102, 0.2);
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background: var(--gold-primary);
    color: #000;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.feature-card p {
    font-size: 13px;
    /* Slightly smaller text */
    line-height: 1.6;
    color: var(--text-secondary);
}

.feature-card {
    background: var(--bg-card);
    padding: 30px 20px;
    /* Reduced padding */
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

/* CLASSES */
.classes {
    position: relative;
    background: #080808;
    background-image: linear-gradient(to bottom, #080808 0%, rgba(0, 0, 0, 0.85) 15%, rgba(0, 0, 0, 0.95) 85%, #080808 100%), url('imgs/character-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.class-showcase {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.class-menu {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.class-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    padding: 20px 25px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-heading-main);
    font-size: 16px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.class-btn i {
    font-size: 20px;
}

.class-btn:hover,
.class-btn.active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
    color: var(--gold-primary);
    border-left-color: var(--gold-primary);
    padding-left: 35px;
    /* Slight movement */
}

.class-details-container {
    flex: 1;
    min-height: 500px;
    position: relative;
}

.class-detail {
    display: none;
    animation: fadeIn 0.6s ease;
}

.class-detail.active {
    display: flex;
    gap: 50px;
    align-items: center;
}

.detail-content {
    flex: 1;
}

.detail-content h3 {
    font-size: 48px;
    color: var(--gold-primary);
    margin-bottom: 5px;
    font-family: var(--font-heading-alt);
}

.detail-content h4 {
    font-size: 14px;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 30px;
    opacity: 0.7;
}

.detail-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.stats li {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stats span {
    flex: 0 0 80px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.bar .fill {
    height: 100%;
    background: var(--gold-primary);
    position: absolute;
    top: 0;
    left: 0;
    transition: width 1s ease;
}

.detail-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.class-art {
    max-width: 100%;
    max-height: 550px;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6));
    transition: transform 0.6s ease;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.img-placeholder {
    display: none;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* STORY SECTION */
.story-section {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
    /* Remove old bg styles */
}

.story-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('imgs/story-bg.jpg') no-repeat;
    background-size: cover;
    background-position: top center;
    /* Position character mostly visible */
    z-index: 0;
    filter: brightness(0.8);
}

.story-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 1) 100%);
    z-index: 1;
}

.story-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    /* Align to right */
}

.story-content-full {
    max-width: 700px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.story-header {
    margin-bottom: 30px;
}

.story-subtitle {
    display: block;
    color: var(--gold-primary);
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 10px;
    font-weight: 700;
}

.story-header h2 {
    font-size: 42px;
    line-height: 1.2;
    font-family: var(--font-heading-alt);
    margin: 0;
}

.story-header h2 .highlight {
    color: var(--gold-primary);
    font-style: italic;
    font-family: var(--font-heading-main);
    font-weight: 400;
}

.story-text {
    border-right: 3px solid var(--gold-primary);
    padding-right: 30px;
    margin-bottom: 40px;
}

.story-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .story-bg-image {
        background-position: center left;
        opacity: 0.3;
    }

    .story-overlay-gradient {
        background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 100%);
    }

    .story-section .container {
        justify-content: center;
    }

    .story-content-full {
        text-align: center;
        align-items: center;
    }

    .story-text {
        border-right: none;
        padding-right: 0;
    }
}



/* FOOTER */
/* FOOTER */
footer {
    background: #020202;
    padding-top: 80px;
    padding-bottom: 40px;
    border-top: 1px solid var(--border-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 5px;
    line-height: 1.6;
}

.copyright-text {
    margin-top: 15px;
    font-size: 12px;
    opacity: 0.5;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.link-col h4 {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--gold-primary);
    /* Brand Color */
    letter-spacing: 1px;
    font-weight: 700;
}

.link-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-col a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.link-col a:hover {
    color: #fff;
    /* Brighter white on hover */
    /* text-shadow: 0 0 5px rgba(251, 191, 102, 0.4); Optional glow */
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        gap: 30px;
        flex-direction: column;
    }

    .link-col {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.mb-3 {
    margin-bottom: 20px
}

.mb-4 {
    margin-bottom: 30px;
}

.link-col a {
    display: block;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.link-col a:hover {
    color: var(--gold-primary);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 13px;
}

.social-links a {
    margin-left: 20px;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--gold-primary);
}

/* MOBILE */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 48px;
    }

    .class-showcase {
        flex-direction: column;
    }

    .class-menu {
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 10px;
    }

    .class-btn {
        width: auto;
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
        padding-left: 15px;
    }

    .class-btn:hover,
    .class-btn.active {
        padding-left: 15px;
        border-left: none;
        border-bottom-color: var(--gold-primary);
    }

    .class-detail.active {
        flex-direction: column-reverse;
        text-align: center;
    }

    .stats {
        margin: 0 auto;
    }



    @media (max-width: 768px) {

        /* NAVBAR LAYOUT */
        .navbar {
            padding: 15px 0;
            background: rgba(5, 5, 5, 0.98);
            backdrop-filter: none;
            height: 70px;
            display: flex;
            align-items: center;
        }

        .navbar .container {
            width: 100%;
            display: flex !important;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        /* LOGO */
        .logo {
            position: relative;
            z-index: 1020;
            /* High z-index */
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        .logo img {
            height: 32px;
            width: auto;
            display: block;
        }

        /* HIDE DESKTOP */
        .nav-links,
        .nav-actions {
            display: none !important;
        }

        /* MOBILE MENU OVERLAY */
        .nav-links.mobile-active {
            display: flex !important;
            flex-direction: column;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: #080808;
            padding: 90px 20px 40px;
            overflow-y: auto;
            align-items: flex-start;
            gap: 0;
            z-index: 1010;
            /* Below controls */
            border-bottom: none;
        }

        /* MOBILE CONTROLS */
        .mobile-controls {
            display: flex !important;
            align-items: center;
            gap: 15px;
            z-index: 1020;
            height: 100%;
        }

        /* MOBILE CONTROLS (JS Injected Wrapper) */
        .mobile-header-controls {
            display: flex;
            align-items: center;
            gap: 15px;
            z-index: 1020;
            height: 100%;
        }

        /* Ensure menu button is styled correctly */
        .mobile-menu-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            background: transparent;
            color: #fff;
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            width: 40px;
            height: 40px;
        }

        /* Cloned Lang Selector Styles */
        .mobile-cloned-lang {
            margin: 0;
            display: flex;
            align-items: center;
        }

        .mobile-cloned-lang .lang-dropdown {
            right: -10px;
            width: 140px;
            top: 100%;
            margin-top: 10px;
            transform: translateY(10px);
        }

        .mobile-cloned-lang:hover .lang-dropdown {
            transform: translateY(0);
        }

        /* NAV ITEMS */
        .nav-item {
            width: 100%;
            height: auto;
            flex-direction: column;
            align-items: flex-start;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .nav-item>a {
            width: 100%;
            padding: 18px 0;
            font-size: 15px;
            justify-content: space-between;
            color: #ccc;
        }

        /* MEGA MENU */
        .mega-menu {
            position: static;
            transform: none;
            width: 100%;
            opacity: 1;
            visibility: visible;
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 0 0 20px 10px;
            display: none;
            flex-direction: column;
            gap: 10px;
            margin: 0;
            min-width: auto;
        }

        .nav-item:hover .mega-menu {
            display: none;
            transform: none;
        }

        .nav-item.active .mega-menu {
            display: flex;
        }

        .mega-column span {
            display: none;
        }

        .mega-column a {
            padding: 10px;
            font-size: 14px;
            color: #999;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Clean up */
        .nav-actions.mobile-active {
            display: none !important;
        }
    }
}

/* LANGUAGE SELECTOR */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 20px;
}

.language-selector .current-lang img {
    width: 24px;
    height: auto;
    display: block;
    transition: var(--transition);
}

.language-selector:hover .current-lang img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;

    /* Apple Glass Effect */
    background: rgba(22, 22, 24, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 12px;

    padding: 10px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1002;
    display: block;
}

.language-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 5px;
    transition: var(--transition);
    text-decoration: none;
}

.lang-dropdown li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.lang-dropdown img {
    width: 20px;
    height: auto;
}

/* FIX: Force Mobile Latest News to Vertical Stack */
@media (max-width: 768px) {
    .latest-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .latest-item {
        width: 100% !important;
        height: 220px !important;
        min-height: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        /* Reset any grid positioning */
    }

    .latest-item.featured {
        width: 100% !important;
        height: 300px !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    /* Mobile Auth Buttons */
    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-auth-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}
@media (min-width: 769px) {
    .mobile-auth-buttons {
        display: none !important;
    }
}
.page-header-section {
    position: relative;
    padding: 160px 0 80px;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgb(0 0 0 / 75%) 60%, #050505b5 100%), url('/uploads/bg1.png');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    text-align: center;
    margin-bottom: 60px;
}
.page-header-section span {
    color: var(--gold-primary);
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.inner-page-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 80px;
}
@media (max-width: 900px) {
    .inner-page-layout {
        grid-template-columns: 1fr;
    }


}

/* GENERAL ALERTS */
.alert {
    padding: 15px 20px;
    margin-bottom: 25px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
    color: #51cf66;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    color: #ffd43b;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.2);
    color: #66d9e8;
}


.cf-turnstile {
    margin: 20px 0
}

/* Intl Tel Input Styles base */
.intl-tel-input {
    width: 100%;
    color: #fff !important;
}

.intl-tel-input input {
    color: #fff !important;
}

.intl-tel-input .selected-flag .iti-arrow {
    border-top-color: #fff !important;
}

.intl-tel-input .country-list {
    background: #1a1a20;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 105;
}

.intl-tel-input .country-name {
    color: #fff;
    font-size: 13px !important;
}

.intl-tel-input .dial-code {
    color: #ccc !important;
}

.intl-tel-input .country-list .divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.intl-tel-input .selected-flag {
    background: transparent !important;
    padding-right: 18px;
}

.intl-tel-input .selected-flag:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.intl-tel-input .selected-flag .iti-selected-dial-code {
    color: #fff !important;
    margin-left: 6px;
}

.form-input.phone-mask {
    padding-left: 80px !important;
}

ul.pagination {
    list-style-type: none
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    font-size: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover,
.pagination a.active,
.pagination span.current {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}


/* UserCP Tables & Pagination */
.usercp-content .history-container {
    overflow: hidden;
}

.usercp-content .btu-table-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.usercp-content .btu-table {
    width: 100%;
    border-collapse: collapse;
}

.usercp-content .btu-table th {
    text-align: left;
    padding: 15px 20px;
    color: var(--gold-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.usercp-content .btu-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--text-secondary);
    vertical-align: middle;
}

.usercp-content .btu-table tr:last-child td {
    border-bottom: none;
}

.usercp-content .btu-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* UserCP Pagination */
.usercp-content .pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.usercp-content .pagination a,
.usercp-content .pagination span {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.usercp-content .pagination a:hover,
.usercp-content .pagination span.current {
    background: var(--gold-primary);
    color: #000;
}

/* SWEETALERT2 DARK THEME */
.swal2-popup {
    background: #1a1a20 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

.swal2-title {
    color: #fff !important;
    font-family: var(--font-heading-main) !important;
}

.swal2-content,
.swal2-html-container {
    color: var(--text-secondary) !important;
    font-family: var(--font-body) !important;
}

.swal2-confirm {
    background: var(--gold-primary) !important;
    color: #000 !important;
    border: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.swal2-confirm:hover {
    background: var(--gold-hover) !important;
}

.swal2-cancel {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
}

.swal2-cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border: .25em solid rgba(16, 185, 129, 0.2) !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #10b981 !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #ef4444 !important;
}

.swal2-timer-progress-bar {
    background: var(--gold-primary) !important;
}