/* ================================================
   ZYGON ACADEMY — Main Stylesheet
   ================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --color-bg: #ffffff;
    --color-dark: #111111;
    --color-dark2: #1a1a2e;
    --color-accent: #00bcd4;
    --color-accent2: #0097a7;
    --color-text: #333333;
    --color-white: #fff;
    --clr-text: #fff;
    --color-text-light: #666666;
    --color-border: #000;
    --color-footer-bg: #1a1a2e;
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Oswald', sans-serif;
    --navbar-h: 70px;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
    --transition: 0.25s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

h1 {
    font-size: 2rem;
}
h2 {
    font-size: 1.6rem;
}

/* ---------- Utility ---------- */
.btn {
    display: inline-block;
    padding: 12px 36px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn--dark {
    background: #222;
    color: #fff;
    border: 2px solid #222;
}

.btn--dark:hover {
    background: #444;
    border-color: #444;
    color: #fff;
}

/* ================================================
   NAVBAR
================================================ */
/* ── Base nav ───────────────────────────────────────── */
.nav-item {
    position: relative;
    list-style: none;
}

/* ── Level 1 dropdown — shown when parent li has .is-open ── */
.nav-item.has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px 0;
    z-index: 1000;
}

.nav-item.has-dropdown.is-open > .dropdown-menu {
    display: block;
}

/* ── Dropdown items ─────────────────────────────────── */
.dropdown-item {
    display: block;
    padding: 9px 16px;
    font-size: 14px;
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

/* ── Has submenu wrapper ────────────────────────────── */
.dropdown-item.has-submenu {
    position: relative;
    padding: 0;
}

.dropdown-item.has-submenu > .dropdown-item__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 14px;
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
    gap: 24px;
}

.dropdown-item.has-submenu > .dropdown-item__link:hover {
    background: #f8fafc;
}

.btn-acd{
    background: #000;
    color: #fff;
    font-weight: 600;
    padding: 10px 15px;
    font-size: 0.8rem;
}

.active-episode{
    border: 1px solid #000;
    padding: 5px;
    border-radius: 5px;
}

.episodes p{
    margin-bottom: 0;
}

/* ── Level 2 submenu ────────────────────────────────── */
.dropdown-item.has-submenu > .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 6px 0;
    z-index: 1001;
}

.dropdown-item.has-submenu.is-open > .submenu {
    display: block;
}

/* ── Level 3 submenu (and beyond) ───────────────────── */
.submenu .dropdown-item.has-submenu > .submenu {
    top: 0;
    left: 100%;
    z-index: 1002;
}

/* ── Flip submenu left if it overflows viewport ─────── */
@media (max-width: 1024px) {
    .dropdown-item.has-submenu > .submenu {
        left: auto;
        right: 100%;
    }
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-h);
    background: #000;
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition), background var(--transition);
    margin: 0 !important;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.97);
}

.navbar-container {
    width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.navbar-logo,
.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
    width: 200px;
}

.logo-zy {
    color: var(--color-dark);
}

.logo-on {
    color: var(--color-dark);
}

.logo-academy {
    color: var(--color-dark);
    font-size: 0.65em;
    letter-spacing: 3px;
    margin-left: 4px;
}

/* Nav Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-text);
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-link:hover {
    background: transparent;
    color: #fff;
}

.nav-link i {
    font-size: 10px;
    transition: transform var(--transition);
}

.has-dropdown.is-open > .nav-link i {
    transform: rotate(180deg);
}
/* ── Hide drawer-only elements on desktop ──────────────── */
.mobile-menu-header { display: none; }

/* ── Mobile drawer — shared (applies at all widths when drawer is active) ── */
.mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}
.mobile-backdrop.open { display: block; }
/* Dropdown */
/* Dropdown open state driven by JS — see .nav-item.has-dropdown .dropdown-menu above */

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--color-text);
    transition: background var(--transition);
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: var(--color-dark);
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 8px 16px;
    min-width: 200px;
    transition: var(--transition);
}

.search-box:focus-within {
    background: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.search-box i {
    color: #999;
    font-size: 14px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    font-family: var(--font-primary);
    width: 100%;
    color: var(--color-text);
    padding: 0;
}



aside.sidebr ul li a{
    display: inline-block;
    font-size: 14px;
}

aside.sidebr ul li a img{ display: inline-block; padding-right: 10px; }

.academy-searchbar{
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.academy-searchbar form .search-results-input-wrap input{
    border: 1px solid #aaa;
    background: none;
    outline: none;
    font-size: 14px;
    font-family: var(--font-primary);
    color: var(--color-text);
    padding: 10px 25px;
    border-radius: 5px;
}

.academy-searchbar form .search-results-input-wrap button{
    background: #000;
    color: #fff;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: var(--font-primary);
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
}

.academy-searchbar form .search-results-input-wrap button:hover{
    background: #3730a3;
}

.academy-searchbar form .search-results-input-wrap button:active{
    background: #000;
}

.academy-searchbar form .search-results-input-wrap button:focus{
    outline: none;
    border: none;
}

/* Right side */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-user-icon {
    font-size: 28px;
    color: #fff;
    transition: color var(--transition);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-bg);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.popup-login-wrapper{
    padding: 0 !important;
}
#tab-login{
    padding: 0 !important;
}
#thim-popup-login {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#thim-popup-login.active {
    display: flex;
}

/* Container */
.thim-login-container {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    max-width: 420px;
    position: relative;
    margin: 0 auto;
}

.close-popup {
    position: absolute;
    top: 12px;
    right: 16px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
}

.close-popup:hover { color: #000; }

/* Inputs */
.thim-login-container input[type="text"],
.thim-login-container input[type="email"],
.thim-login-container input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid #000;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Button */
.thim-login-container .button-primary {
    width: 100%;
    padding: 11px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    cursor: pointer;
}

.thim-login-container .button-primary:hover {
    background: #3730a3;
}

.thim-popup-inner h4.title{
    font-size: 1.5rem;
    text-align: center;
}

.thim-popup-inner .forgetmenot{
    font-size: 0.8rem;
    line-height: 1.8rem;
    color: #000;
    margin-bottom: 10px;
}

.not-reg-area, .not-reg-area a{ font-size: 0.9rem; color: #000; }

/* ── User Dropdown ─────────────────────────────── */
.user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.2s ease;
    text-decoration: none;
    margin-bottom: 5px;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 9999;
    animation: dropFadeIn 0.18s ease forwards;
}

.user-dropdown-menu.open {
    display: block;
}

a.switch-to-register{
    background: #000;
    display: inline-block;
    color: #fff;
    width: 100%;
    font-size: 1rem;
    vertical-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-top: 10px;
}

a.switch-to-login{
    background: #000;
    display: inline-block;
    color: #fff;
    width: 100%;
    font-size: 1rem;
    vertical-align: center;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-top: 10px;
}

@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.user-dropdown-item:hover {
    background: #f5f5f5;
    color: var(--accent-color, #c0bebe);
}

.user-dropdown-item i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

/* separator between items */
.user-dropdown-item + .user-dropdown-item {
    border-top: 1px solid #f0f0f0;
}

.nav-tabs .nav-item button{ color: #000; }

/* ================================================
   HERO SECTION
================================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: var(--navbar-h);
    /*background: url('/img/academy-background-image-small-jpeg.jpg') center/cover no-repeat;*/
}
.hero-brand-block .elementor-button{
    background-color: #000000;
    border-radius: 19px 19px 19px 19px;
    padding: 10px 25px;
    color: #fff;
}

/* Background video (used when banviurl is present) */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Particle / glow overlay */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(0, 188, 212, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(100, 0, 200, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
    max-width: 900px;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: 1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    animation: fadeInDown 0.9s ease 0.1s both;
}

.hero-brand-block {
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-brand-name {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 40px rgba(0, 188, 212, 0.5);
}

.hero-brand-name .logo-zy,
.hero-brand-name .logo-on,
.hero-brand-name .logo-academy-lg {
    color: #fff;
}

.logo-academy-lg {
    font-size: 0.45em;
    letter-spacing: 8px;
    display: block;
    margin-top: 4px;
}

.hero-brand-tagline {
    font-size: clamp(11px, 1.5vw, 16px);
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    margin-top: 8px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ================================================
   COURSES SECTION
================================================ */
/* ================================================
   COURSES SECTION
================================================ */

/* ── Tab panels ─────────────────────────────────────── */
.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
    align-items: center;
    gap: 8px;
}

.courses-section {
    padding: 48px 0 40px;
    background: #fff;
}

.courses-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 32px;
}

.tab-btn {
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-light);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.tab-btn:hover {
    color: var(--color-dark);
}

.tab-btn.active {
    color: var(--color-dark);
    border-bottom-color: var(--color-dark);
}

.tab-btn--special {
    margin-top: 4px;
    margin-left: 0;
}

.tab-btn--special.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

/* Carousel wrapper — each tab panel IS the wrapper */
.courses-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-dark);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.carousel-arrow:hover {
    background: var(--color-dark);
    color: #fff;
    border-color: var(--color-dark);
}

.courses-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 4px 16px;
    flex: 1;
    min-width: 0;
}

.courses-carousel::-webkit-scrollbar {
    display: none;
}
.courses-carousel-wrapper {
    display: flex;
    flex-wrap: wrap;       /* allows CTA to drop to next line */
    align-items: center;
}

.courses-carousel {
    flex: 1;               /* takes up all available space */
    min-width: 0;
}

.carousel-arrow {
    flex-shrink: 0;        /* arrows stay on same row as carousel */
}

.courses-cta {
    width: 100%;           /* forces CTA to full width = new row */
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
/* Course Card */
.course-card {
    flex: 0 0 280px;
    min-width: 280px;
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    background: #fff;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.course-card__image {
    position: relative;
    overflow: hidden;
}

.course-card__image img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.course-card:hover .course-card__image img {
    transform: scale(1.05);
}

.course-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 3px;
}
.course-card__badge--premium {
    position: absolute;
    bottom: 10%;
    right: 3%;
    background: #1a237e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    z-index: 10;
}

.prog-card__body .course-card__badge--premium {
    position: static;
    display: inline-block;
    margin-top: 8px;
}

.course-card__overlay-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    padding: 24px 12px 10px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-card__body {
    padding: 16px;
}

.course-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cptwooint-price-wrapper {
    margin: 10px 0;
}

.cptwooint-normal-price del {
    color: #999;
    margin-right: 6px;
}

.cptwooint-sale-price {
    color: #e44;
    font-weight: bold;
    font-size: 1.1em;
}

.btn-buy-now {
    background: #000;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
    border: none;
    display: inline-block;
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .12em;
}

.btn-buy-now:hover {
    background: #1a1a1a;
    color: #fff;
}

.cptwooint-prices{
    display: inline-block;
    vertical-align: middile;
}

.course-card__desc {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card__link {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent2);
    letter-spacing: 0.5px;
    transition: color var(--transition);
}

.course-card__link:hover {
    color: var(--color-dark);
}

.courses-cta {
    text-align: center;
    margin-top: 32px;
}

.no-courses {
    padding: 2rem;
    color: #94a3b8;
    font-size: 14px;
}

/* Button Social */
.social-divider{ text-align: center; font-size: 0.8rem; margin-bottom: 20px;}
.social-divider::before,
.social-divider::after {
    content: '';
    display: inline-block;
    width: 100px;
    height: 1px;
    background: #9B9B9B;
}
.social-divider::before {
    margin-right: 10px;
}
.social-divider::after {
    margin-left: 10px;
}

.btn-social {
    background: transparent !important;
    border: 1px solid #9B9B9B;
    color: #6B6B6B;
    border-radius: 50px;
    min-height: 50px;
    min-width: 160px;
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: .12em;
}

.social-login-buttons{ display: flex; gap: 10px; justify-content: center; }

/* ================================================
   DISCOVER SECTION
================================================ */
.discover-section {
    padding: 60px 0;
    background-image: linear-gradient(90deg, #003B72 14%, #000 100%);
}

.discover-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.discover-title {
    text-align: center;
    font-family: var(--font-primary);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 40px;
    letter-spacing: -0.3px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.program-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    cursor: pointer;
}

.program-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border: 3px solid #CFCCCC;
}

.program-card:hover img {
    transform: scale(1.06);
}

.program-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    transition: background var(--transition);
}

.program-card:hover .program-card__overlay {
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.82) 100%);
}

.program-card__title {
    font-family: var(--font-display);
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.program-card__sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
    font-style: italic;
}

.user-dropdown-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

/* ================================================
   VIDEO SECTION
================================================ */
.video-section {
    padding: 80px 0;
    background: #fff;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.video-mockup {
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.25));
}

.video-mockup__screen {
    background: #1a1a2e;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border: 10px solid #222;
    border-bottom: none;
}

.video-mockup__base {
    height: 18px;
    background: #333;
    border-radius: 0 0 8px 8px;
    margin: 0 40px;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background var(--transition);
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.video-play-btn i {
    font-size: 72px;
    color: #ff0000;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: transform var(--transition);
}

.video-play-btn:hover i {
    transform: scale(1.1);
}

.video-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(6px);
}

.video-presenter {
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
}

.video-presenter strong {
    font-size: 14px;
    letter-spacing: 1px;
}

.video-watch-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-watch-label i {
    color: #ff0000;
    font-size: 16px;
}

/* ================================================
   TESTIMONIALS SECTION
================================================ */
.testimonials-section {
    padding: 60px 0 80px;
    background: #fff;
}

.testimonials-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.testimonials-title {
    text-align: center;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.testimonials-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.testimonials-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 4px 16px;
    flex: 1;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex-shrink: 0;
    width: 260px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card__stars {
    color: #f5a623;
    font-size: 13px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-card__text {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-card__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent2), var(--color-dark2));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-card__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-dark);
}

.tab-content > .active {
    width: 100%;
  }

/* ================================================
   FOOTER
================================================ */
.footer-logo { width: 368px; display: inline-block; }
.site-footer {
    background-color: transparent;
    background-image: linear-gradient(180deg, #FFFFFF 0%, #003264 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo .logo-zy,
.footer-logo .logo-on,
.footer-logo .logo-academy {
    color: #fff;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.7;
    color: #000;
    margin-top: 16px;
    max-width: 320px;
    font-family: var(--font-primary);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.footer-col ul{
    margin: 0;
}
.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.footer-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 13px;
    color: #000;
    transition: color var(--transition);
    font-family: var(--font-primary);
}

.fa-brands, .fab{
    font-family: "Font Awesome 6 Brands" !important;
}

.fa-x-twitter::before {
    content: "\e61b" !important;
  }

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    position: relative !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    background-color: #001c38;
}

.footer-bottom .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ================================================
   CATEGORY PAGE
================================================ */

/* ── Hero / Video ────────────────────────────────── */
.cat-hero {
    max-width: 1000px;
    margin: calc(var(--navbar-h) + 40px) auto 0;
    padding: 0 24px;
}

.cat-hero__media {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
}

.cat-hero__video {
    width: 100%;
    display: block;
    max-height: 480px;
    object-fit: cover;
    background: #000;
}

.cat-hero__img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.cat-hero__info {
    text-align: center;
    padding: 36px 24px 20px;
    max-width: 760px;
    margin: 0 auto;
}

.cat-hero__title {
    font-family: var(--font-primary);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.cat-hero__desc {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto;
}

/* ── Programs Grid ───────────────────────────────── */
.cat-programs {
    padding: 40px 0 80px;
}

.cat-programs__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.cat-programs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cat-programs__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
    font-size: 15px;
}

/* ── Program Card ────────────────────────────────── */
.prog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.prog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.prog-card__image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111;
}

.prog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.prog-card:hover .prog-card__img {
    transform: scale(1.05);
}

.prog-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition);
}

.prog-card:hover .prog-card__play {
    background: rgba(0, 0, 0, 0.35);
}

.prog-card__play i {
    font-size: 42px;
    color: rgba(255, 255, 255, 0);
    transition: color var(--transition), transform var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.prog-card:hover .prog-card__play i {
    color: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

.prog-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prog-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.45;
    margin-bottom: 8px;
}

.prog-card__desc {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.prog-card__footer {
    margin-top: auto;
}

/* ── Badges ──────────────────────────────────────── */
.prog-card__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 20px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: opacity var(--transition);
}

.prog-card__badge:hover {
    opacity: 0.85;
}

.prog-card__badge--free {
    background: #22c55e;
    color: #fff;
}

.prog-card__badge--premium {
    background: #7c3aed;
    color: #fff;
}

.prog-card__badge--members {
    background: var(--color-accent2);
    color: #fff;
}

.prog-card__badge--collection {
    background: var(--color-dark);
    color: #fff;
}

.myprograms-page {
    padding: 40px 0 60px;
}

.myprograms-page .breadcrumb {
    margin-bottom: 32px;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: #111;
}

.programs-section {
    margin-bottom: 48px;
}

/* Program card */
.program-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .2s ease, transform .2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.program-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

/* Thumbnail wrapper */
.program-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1a1a;
}

.program-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Remove button */
.program-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
    padding: 0;
    line-height: 1;
    z-index: 2;
}

.program-remove-btn:hover {
    text-decoration: underline;
    color: #fca5a5;
}

/* Card body */
.program-card-body {
    padding: 14px 16px 16px;
}

.program-card-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #111;
    margin: 0;
    line-height: 1.4;
}

/* Empty state */
.programs-empty {
    font-size: 0.95rem;
    color: #6b7280;
    padding: 4px 0 0;
}

/* ── Page wrapper ───────────────────────────── */
.memberships-page {
    margin: 0 auto;
}

.memberships-page h1.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary, #1a1a1a);
}

/* ── Empty state ────────────────────────────── */
.memberships-empty {
    color: #888;
    font-size: 1rem;
    margin-top: 16px;
}

/* ── Membership row ─────────────────────────── */
.membership-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0;
    border-bottom: 1px solid #e0e0e0;
}

.membership-item:last-child {
    border-bottom: none;
}

.membership-info {
    flex: 1;
}

.membership-info h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-primary, #1a1a1a);
}

.membership-meta {
    font-size: 0.88rem;
    color: #555;
    margin: 2px 0;
}

.membership-meta span.label {
    font-weight: 600;
    color: #333;
}

/* ── Upgrade button ─────────────────────────── */
.btn-upgrade {
    display: inline-block;
    padding: 12px 28px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
    border: none;
    cursor: pointer;
}

.btn-upgrade:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Alert ──────────────────────────────────── */
.memberships-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.memberships-alert.error {
    background: #fff0f0;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

/* ── Credit balance card ─────────────────────── */
.credit-balance-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.credit-balance-card .credit-balance-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}

.credit-balance-card .credit-balance-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.1;
}

/* ── Purchase history grid ───────────────────── */
.credit-tx-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary, #1a1a1a);
}

.credit-tx-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.credit-tx-grid {
    display: grid;
    grid-template-columns: 1.1fr 2fr 0.8fr 1fr 1.1fr 1fr;
    align-items: center;
}

.credit-tx-head {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9aa0aa;
    background: #fafafa;
    padding: 16px 20px;
    border-bottom: 1px solid #ececec;
}

.credit-tx-row {
    display: contents;
}

.credit-tx-row .credit-tx-cell {
    padding: 18px 20px;
    font-size: 0.92rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.credit-tx-row:last-child .credit-tx-cell {
    border-bottom: none;
}

.credit-tx-row:hover .credit-tx-cell {
    background: #fafbff;
}

.credit-tx-cell.credit-tx-desc {
    color: var(--text-primary, #1a1a1a);
    font-weight: 500;
}

.credit-tx-cell.credit-tx-amount,
.credit-tx-cell.credit-tx-minutes,
.credit-tx-cell.credit-tx-balance {
    font-variant-numeric: tabular-nums;
}

/* ── Status pill ──────────────────────────────── */
.credit-tx-status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.credit-tx-status.status-completed,
.credit-tx-status.status-complete,
.credit-tx-status.status-purchase,
.credit-tx-status.status-credited {
    background: #eafaf1;
    color: #1f9d55;
}

.credit-tx-status.status-processing,
.credit-tx-status.status-pending {
    background: #fff7e6;
    color: #b7791f;
}

.credit-tx-status.status-failed,
.credit-tx-status.status-refunded,
.credit-tx-status.status-cancelled {
    background: #fff0f0;
    color: #b91c1c;
}

@media (max-width: 860px) {
    .credit-tx-grid {
        grid-template-columns: 1fr;
    }
    .credit-tx-head {
        display: none;
    }
    .credit-tx-row {
        display: block;
        padding: 18px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    .credit-tx-row .credit-tx-cell {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 0;
        border-bottom: none;
    }
    .credit-tx-cell::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #9aa0aa;
    }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .cat-programs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .epi-desc h4{ font-size: 1rem; }
    .epi-desc p{ font-size: 0.8rem;}
    .cat-programs__grid {
        grid-template-columns: 1fr;
    }

    .cat-hero__video,
    .cat-hero__img {
        max-height: 260px;
    }
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1100px) {
    .programs-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 180px);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }

    .program-card {
        height: 160px;
    }

    .category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .tab-btn {
        font-size: 12px;
        padding: 10px 14px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    /* ── Slide-in drawer ──────────────────────────── */
    .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: #111;
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        gap: 0;
        box-shadow: 6px 0 40px rgba(0, 0, 0, 0.5);
        margin: 0;
    }

    .navbar-menu.open {
        transform: translateX(0);
    }

    /* ── Drawer header ─────────────────────────────── */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        height: var(--navbar-h);
        background: #000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
    }

    .mobile-menu-logo {
        height: 36px;
        width: auto;
    }

    .mobile-menu-close {
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 6px 8px;
        border-radius: 6px;
        line-height: 1;
        transition: background 0.2s, color 0.2s;
    }

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    /* ── Nav items ─────────────────────────────────── */
    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav-link {
        padding: 16px 20px;
        color: #d0d0d0;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.3px;
        border-radius: 0;
        transition: background 0.2s, color 0.2s;
    }
    .social-divider::before, .social-divider::after {
        content: '';
        display: inline-block;
        width: 85px;
        height: 1px;
        background: #9B9B9B;
    }

    .social-divider::before, .social-divider::after {
        content: '';
        display: inline-block;
        width: 85px;
        height: 1px;
        background: #9B9B9B;
    }
    .nav-link:hover,
    .nav-link:focus {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
    }

    .nav-link i {
        transition: transform 0.25s ease;
        opacity: 0.6;
    }

    /* ── Accordion dropdown ────────────────────────── */
    .nav-item.has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #000 !important;
        padding: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.32s ease;
        display: block !important;
    }

    .nav-item.has-dropdown.is-open > .dropdown-menu {
        max-height: 800px;
    }

    .has-dropdown.is-open > .nav-link i {
        transform: rotate(180deg);
        opacity: 1;
    }

    .nav-item.has-dropdown .dropdown-item {
        padding: 13px 20px 13px 36px;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.7) !important;
        background: #000 !important;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: background 0.2s, color 0.2s;
    }

    .nav-item.has-dropdown .dropdown-item:hover,
    .nav-item.has-dropdown .dropdown-item:focus,
    .nav-item.has-dropdown .dropdown-item:active,
    .nav-item.has-dropdown .dropdown-item.active {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #fff !important;
    }

    .dropdown-item.has-submenu > .dropdown-item__link {
        justify-content: space-between;
        display: flex;
        align-items: center;
        color: rgba(255, 255, 255, 0.7);
    }

    .dropdown-item.has-submenu > .dropdown-item__link:hover {
        background: none;
    }

    .nav-item.has-dropdown .dropdown-item.has-submenu > .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding-left: 12px;
        background: #000 !important;
    }

    /* ── Search ────────────────────────────────────── */
    .nav-search {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .search-box {
        min-width: unset;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .search-box input {
        color: #fff;
    }

    .search-box input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .search-box i {
        color: rgba(255, 255, 255, 0.5);
    }

    /* ── Layout fixes ──────────────────────────────── */
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

@media (max-width: 480px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .program-card img {
        object-fit: fill;
    }
    .program-card {
        height: 190px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-brand-name {
        font-size: 36px;
    }
}

/* ================================================
   HERO VIDEO MODAL
================================================ */
.hero-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.hero-video-modal.is-open {
    display: flex;
}
.hero-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}
.hero-video-modal__container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
}
.hero-video-modal__video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
}
.hero-video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}
.hero-video-modal__close:hover {
    color: #ccc;
}

/* ================================================
   IMAC VIDEO MOCKUP
================================================ */
.imac-wrapper {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    user-select: none;
}
.imac-frame-img {
    position: relative;
    z-index: 2;
    width: 100%;
    display: block;
    pointer-events: none;
}
.imac-screen-area {
    position: absolute;
    top: 5%;
    left: 13.2%;
    width: 73.7%;
    height: 75.5%;
    z-index: 10;
    background: #000;
    overflow: hidden;
}
.imac-thumb {
    position: relative;
    width: 100%;
    height: 100%;
}
.imac-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.imac-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.imac-play-btn:hover {
    background: rgba(0, 0, 0, 0.55);
}
.imac-play-btn i {
    font-size: 64px;
    color: #ff0000;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s;
}
.imac-play-btn:hover i {
    transform: scale(1.1);
}
.imac-iframe {
    display: none;
    width: 100%;
    height: 100%;
    border: none;
}
/* ── Mobile auth drawer items ───────────────────────────────
   Shown only in the mobile slide-in drawer (≤768 px).
   Hidden on desktop — the user-dropdown icon handles that.
──────────────────────────────────────────────────────────── */
.mobile-auth-item { display: none; }

@media (max-width: 768px) {
    .mobile-auth-item {
        display: block;
        border-top: 1px solid rgba(255,255,255,0.12);
    }

    /* User icon in header still shows — but also act on tap */
    .nav-user-icon { cursor: pointer; }

    /* Keep dropdown usable if user taps icon on mobile */
    .user-dropdown-menu.open { display: block; }
}

/* ── Hide user icon on mobile (drawer handles account links) ── */
@media (max-width: 768px) {
    .user-dropdown { display: none; }
}

/* ── Password show/hide toggle ─────────────────────────────── */
.pw-wrap {
    position: relative;
    margin: 0;
}
.pw-wrap input[type="password"],
.pw-wrap input[type="text"] {
    padding-right: 42px !important;
    width: 100%;
    box-sizing: border-box;
}
.pw-toggle {
    position: absolute;
    right: 12px;
    top: 40%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.pw-toggle:hover { color: #333; }

/* ── Premium program tooltip ──────────────────────────────── */
.zyg-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    vertical-align: middle;
}
.zyg-tooltip-icon {
    font-size: 1rem;
    cursor: pointer;
}
.zyg-tooltip-box {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 999;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    width: 300px;

}
.zyg-tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #111;
}
.zyg-tooltip-wrap:hover .zyg-tooltip-box,
.zyg-tooltip-wrap.active .zyg-tooltip-box {
    display: block;
}
