:root {
    --blue: #00a9e0;
    --orange: #f28c28;
    --dark: #0f172a;
    --muted: #64748b;
    --light: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
}

/* =========================
   Base
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* =========================
   Final Header Visibility Fix
========================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo row */
.header-brand-row,
.header-nav-row {
    background: #ffffff !important;
}

/* Navigation container */
.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
    background: #ffffff !important;
    border: none;
    box-shadow: none;
}

/* Force all main navigation text to be visible */
.nav > a,
.dropdown-toggle {
    color: #0f172a !important;
    font-weight: 600;
    white-space: nowrap;
    padding: 10px 12px;
    border-radius: 10px;
}

/* Hover effect */
.nav > a:hover,
.dropdown-toggle:hover {
    background: #f1f5f9;
    color: #0369a1 !important;
}

/* Keep dropdown menu visible and clean */
.dropdown-menu {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid var(--border);
}

.dropdown-menu a {
    color: #0f172a !important;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: #0369a1 !important;
}

/* Search stays clean */
.header-search {
    background: #ffffff !important;
    border: 1px solid var(--border);
}

.header-search input {
    color: #0f172a !important;
}

.header-search button {
    color: #0f172a !important;
    background: #ffffff !important;
}

/* Pay Online button remains strong */
.nav .btn,
.header-nav-row .btn {
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #0f172a;
}

/* Suggestions dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 6px;
    z-index: 10000;
    display: none;

    /* Shows about 3 items, then scrolls */
    max-height: 150px;
    overflow-y: auto;
}

.search-suggestions a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--dark);
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
}

.search-suggestions a:hover {
    background: #f8fafc;
}

/* Keep the search usable on smaller screens */
@media (max-width: 1100px) {
    .header-search-wrap {
        width: 320px;
    }
}

@media (max-width: 700px) {
    .header-search-wrap {
        width: 100%;
        max-width: 340px;
    }
}
/* =========================
   Dropdown Menus
========================= */

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: auto !important;
}

.dropdown-toggle {
    cursor: pointer;
    list-style: none;
    color: var(--dark);
}

.dropdown-toggle::-webkit-details-marker {
    display: none;
}

.dropdown-menu {
    position: absolute !important;
    top: calc(100% + 16px) !important;
    left: 0 !important;
    min-width: 270px;
    max-height: 360px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
    padding: 10px;
    z-index: 9999;
    display: none;
}

.nav-dropdown[open] .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--dark);
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--dark);
}

.nav > a,
.dropdown-toggle {
    color: #ffffff;
    white-space: nowrap;
    font-weight: 700;
}

.nav > a:hover,
.dropdown-toggle:hover {
    color: #ffffff;
    opacity: 0.85;
}

/* Keep dropdown menu itself white */
.dropdown-menu {
    background: #ffffff;
    color: var(--dark);
}

/* Dropdown links should remain dark */
.dropdown-menu a {
    color: var(--dark);
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--dark);
}

/* =========================
   Header Search
========================= */

.header-search {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 6px 3px 10px;
}

.header-search input {
    width: 150px;
    border: none;
    outline: none;
    padding: 6px;
    margin: 0;
    background: transparent;
    font-size: 13px;
}

.header-search button {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--dark);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.header-search button:hover {
    background: #f8fafc;
}
/* =========================
   Buttons
========================= */

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--dark);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: var(--blue);
}

.btn-outline {
    background: white;
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-small {
    padding: 8px 12px;
}

/* =========================
   Hero Sections
========================= */

.hero {
    padding: 84px 0;
    background: linear-gradient(135deg, #e0f7ff, #fff7ed);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    margin: 0 0 20px;
}

.hero p {
    font-size: 19px;
    color: #334155;
}

.hero.home-hero {
    position: relative !important;
    overflow: hidden !important;
    min-height: 650px !important;
    display: flex !important;
    align-items: center !important;
    background: linear-gradient(
        115deg,
        rgba(224, 247, 255, 1) 0%,
        rgba(224, 247, 255, 0.94) 38%,
        rgba(248, 252, 252, 0.88) 65%,
        rgba(255, 247, 237, 0.78) 100%
    ) !important;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.home-hero-bg img {
    position: absolute;
    right: 2%;
    top: 80%;
    transform: translateY(-50%);
    width: 88%;
    max-width: 1050px;
    opacity: 0.28;
    filter: saturate(1.05);
}

.hero.home-hero .container {
    position: relative;
    z-index: 3;
}

.hero.home-hero .hero-grid {
    grid-template-columns: 1fr !important;
}

.hero-text {
    position: relative;
    z-index: 4;
    max-width: 880px;
}

.hero.home-hero h1,
.hero.home-hero p {
    max-width: 880px;
}

/* =========================
   Layout
========================= */

.section {
    padding: 60px 0;
}

.section h2 {
    font-size: 34px;
    margin: 0 0 10px;
}

.section-intro {
    color: var(--muted);
    margin-bottom: 28px;
    max-width: 850px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

/* =========================
   Cards
========================= */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.service-card h3 {
    margin-top: 0;
}

.badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* =========================
   Forms
========================= */

.form-card {
    max-width: 520px;
    margin: 40px auto;
}

label {
    display: block;
    font-weight: 700;
    margin-top: 14px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 6px;
    font: inherit;
}

.notice {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 14px 0;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
}

.error {
    background: #fff1f2;
    border-color: #fecdd3;
}

.form-help {
    display: block;
    margin-top: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

/* Phone field */

.phone-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 10px;
    align-items: center;
}

.country-code {
    width: 100%;
}

/* Password field */

.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    width: 100%;
    padding-right: 60px;
}

.password-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--dark);
    padding: 4px;
}

.password-eye:hover {
    color: var(--blue);
}

/* =========================
   Tables
========================= */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

td,
th {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

/* =========================
   Product Grid / Shop
========================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

.slider-track img,
.product-card > img {
    min-width: 100%;
    width: 100%;
    height: 220px;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.price {
    font-weight: 800;
    color: var(--dark);
    font-size: 18px;
    margin-top: auto !important;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.78);
    color: white;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 2;
}

.slider-btn:hover {
    background: rgba(15, 23, 42, 0.95);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

/* =========================
   Creative Studio
========================= */

.creative-hero {
    background: linear-gradient(135deg, #e0f7ff, #fff7ed);
}

.creative-service-card {
    display: flex;
    flex-direction: column;
}

.creative-service-card .price {
    margin-top: auto;
    font-weight: 800;
    color: var(--dark);
}

.creative-note {
    margin-top: 28px;
    background: #f8fafc;
}

/* =========================
   Contact Page
========================= */

.contact-section {
    padding-top: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.contact-info-card,
.contact-form-card {
    width: 100%;
    max-width: none;
    margin: 0;
}

.contact-info-card ul {
    margin-top: 12px;
    padding-left: 22px;
}

.contact-info-card li {
    margin-bottom: 6px;
}

.contact-form-card form {
    margin-top: 10px;
}

/* =========================
   Profile
========================= */

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e6f7fb;
    display: block;
    margin-top: 12px;
}

.profile-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #e6f7fb;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    margin-top: 12px;
}

/* =========================
   Progress Bar
========================= */

.progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--blue);
}

/* =========================
   Footer
========================= */

.site-footer {
    background: #0f172a;
    color: white;
    padding: 44px 0 18px;
    margin-top: 60px;
}

.site-footer p,
.site-footer a {
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

.copyright {
    color: #94a3b8;
    border-top: 1px solid #334155;
    margin-top: 28px;
    padding-top: 18px;
    font-size: 13px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1000px) {
    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        min-height: auto;
    }

    .site-logo {
        height: 85px !important;
        max-height: 85px !important;
        max-width: 280px !important;
    }

    .brand span strong {
        font-size: 18px;
    }

    .brand span small {
        font-size: 12px;
    }

    .nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 12px 16px;
        align-items: center;
    }

    .nav-dropdown {
        width: auto !important;
        display: inline-flex !important;
        position: relative !important;
    }

    .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 0 !important;
        min-width: 260px;
        max-width: calc(100vw - 40px);
        max-height: 280px;
        overflow-y: auto;
        display: none;
    }

    .nav-dropdown[open] .dropdown-menu {
        display: block;
    }

    .header-search input {
        width: 110px;
    }

    .hero-grid,
    .grid,
    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-bg img {
        width: 100%;
        opacity: 0.16;
        right: -10%;
        top: 65%;
    }
}

@media (max-width: 700px) {
    .site-logo {
        height: 70px !important;
        max-height: 70px !important;
        max-width: 240px !important;
    }

    .nav {
        gap: 10px 14px;
    }

    .btn-small {
        padding: 7px 11px;
    }

    .header-search {
        width: 100%;
        max-width: 320px;
    }

    .header-search input {
        width: 100%;
    }

    .dropdown-menu {
        max-width: calc(100vw - 40px);
    }

    .phone-wrap {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-slider,
    .slider-track img,
    .product-card > img {
        height: 200px;
        max-height: 200px;
    }
}
/* =========================
   FINAL NAV TEXT VISIBILITY FIX
========================= */

.header-nav-row,
.header-nav-bar {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Main nav layout */
.nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

/* Force all header menu text to dark */
.nav a,
.nav > a,
.nav-dropdown,
.nav-dropdown summary,
.dropdown-toggle {
    color: #0f172a !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Hover effect */
.nav a:hover,
.nav > a:hover,
.dropdown-toggle:hover {
    color: #0369a1 !important;
    background: #f1f5f9 !important;
}

/* Dropdown box */
.dropdown-menu {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14) !important;
}

/* Dropdown links */
.dropdown-menu a {
    color: #0f172a !important;
    background: transparent !important;
}

.dropdown-menu a:hover {
    color: #0369a1 !important;
    background: #f8fafc !important;
}

/* Search box */
.header-search,
.header-search-wrap form {
    background: #ffffff !important;
    color: #0f172a !important;
}

.header-search input {
    color: #0f172a !important;
}

.header-search button {
    color: #0f172a !important;
    background: #ffffff !important;
}

/* Pay Online button */
.nav .btn,
.nav a.btn,
.header-nav-row .btn,
.header-nav-bar .btn {
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #0f172a !important;
}
/* =========================
   FINAL LOGO SIZE FIX
========================= */

.header-brand-row {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.brand-container,
.nav-wrap {
    min-height: 95px !important;
    height: auto !important;
    padding: 10px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: auto !important;
}

/* This is the important part */
.site-logo {
    height: 80px !important;
    max-height: 80px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Prevent any logo image from becoming full page */
.brand img {
    height: 80px !important;
    max-height: 80px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
}

.brand span {
    line-height: 1.1 !important;
}

.brand strong {
    font-size: 20px !important;
    color: #0f172a !important;
}

.brand small {
    font-size: 13px !important;
    color: #64748b !important;
}

/* Mobile */
@media (max-width: 700px) {
    .site-logo,
    .brand img {
        height: 60px !important;
        max-height: 60px !important;
        max-width: 180px !important;
    }

    .brand strong {
        font-size: 17px !important;
    }

    .brand small {
        font-size: 11px !important;
    }

    .brand-container,
    .nav-wrap {
        min-height: 75px !important;
    }
}

/* Google login */
.google-login-btn {
    width: 100%;
    text-align: center;
    margin: 12px 0;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid var(--border);
}

.google-login-btn:hover {
    background: #f8fafc;
}

.divider-text {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin: 18px 0;
}

/* =========================
   Mobile Header Fix
========================= */

.mobile-menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: #ffffff;
    color: #0f172a;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

/* Desktop header */
.brand-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-nav-row {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: center;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.nav > a,
.dropdown-toggle {
    color: #0f172a !important;
    font-weight: 700;
    white-space: nowrap;
}

/* Mobile layout */
@media (max-width: 900px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .brand-container {
        min-height: 78px;
        padding: 10px 0;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .site-logo,
    .brand img {
        height: 58px !important;
        max-height: 58px !important;
        max-width: 170px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .brand strong {
        font-size: 17px !important;
    }

    .brand small {
        font-size: 11px !important;
    }

    .mobile-menu-toggle {
        display: inline-block;
    }

    /* Hide nav by default on mobile */
    .header-nav-row {
        display: none;
        border-top: 1px solid var(--border);
        background: #ffffff;
    }

    /* Show nav when button is clicked */
    .header-nav-row.mobile-menu-open {
        display: block;
    }

    .nav-container {
        justify-content: flex-start;
    }

    .nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px 0;
    }

    .nav > a,
    .dropdown-toggle,
    .nav .btn {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 13px 14px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #ffffff;
        color: #0f172a !important;
        font-weight: 700;
    }

    .nav .btn {
        background: #0f172a !important;
        color: #ffffff !important;
        justify-content: center;
    }

    .nav-dropdown {
        width: 100%;
        display: block;
        position: relative;
    }

    .nav-dropdown summary {
        list-style: none;
        cursor: pointer;
    }

    .nav-dropdown summary::-webkit-details-marker {
        display: none;
    }

    .dropdown-menu {
        position: static !important;
        display: none;
        width: 100%;
        min-width: 0;
        max-height: 260px;
        overflow-y: auto;
        margin-top: 8px;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: none;
        padding: 8px;
        background: #f8fafc !important;
    }

    .nav-dropdown[open] .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        display: block;
        padding: 11px 12px;
        border-radius: 10px;
        color: #0f172a !important;
        background: #ffffff;
        margin-bottom: 6px;
    }

    .dropdown-menu a:hover {
        background: #eef6ff;
    }

    .header-search-wrap {
        width: 100%;
        max-width: 100%;
    }

    .header-search {
        width: 100%;
    }

    .search-suggestions {
        position: static;
        margin-top: 8px;
        width: 100%;
        max-height: 150px;
        overflow-y: auto;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .brand span {
        max-width: 190px;
    }

    .brand strong {
        font-size: 15px !important;
    }

    .brand small {
        font-size: 10px !important;
    }

    .site-logo,
    .brand img {
        height: 50px !important;
        max-height: 50px !important;
        max-width: 145px !important;
    }

    .mobile-menu-toggle {
        padding: 8px 13px;
        font-size: 13px;
    }
}

/* =========================
   MOBILE DROPDOWN WIDTH FIX
   Makes Technology, Creative Studio and Wellness
   match Academy, Business Hub and Shop
========================= */

@media (max-width: 900px) {

    .nav {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        padding: 18px 0 !important;
    }

    /* Force dropdown wrappers to full width */
    .nav-dropdown {
        width: 100% !important;
        display: block !important;
        position: relative !important;
    }

    /* Make Technology, Creative Studio, Wellness look like full-width menu cards */
    .nav-dropdown > summary,
    .dropdown-toggle {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 18px 26px !important;
        border: 1px solid var(--border) !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        color: #0f172a !important;
        font-size: 22px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-align: left !important;
        cursor: pointer !important;
    }

    /* Add a dropdown arrow on the right */
    .nav-dropdown > summary::after,
    .dropdown-toggle::after {
        content: "▾" !important;
        font-size: 16px !important;
        color: #64748b !important;
        margin-left: 12px !important;
    }

    /* When the dropdown is open, rotate/adjust arrow */
    .nav-dropdown[open] > summary::after {
        content: "▴" !important;
    }

    /* Normal links should match the same style */
    .nav > a:not(.btn) {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 18px 26px !important;
        border: 1px solid var(--border) !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        color: #0f172a !important;
        font-size: 22px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }

    /* Dropdown list under Technology / Creative Studio / Wellness */
    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-height: 280px !important;
        overflow-y: auto !important;
        margin-top: 8px !important;
        padding: 10px !important;
        border: 1px solid var(--border) !important;
        border-radius: 16px !important;
        background: #f8fafc !important;
        box-shadow: none !important;
        display: none !important;
    }

    .nav-dropdown[open] .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu a {
        display: block !important;
        width: 100% !important;
        padding: 14px 16px !important;
        margin-bottom: 8px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        color: #0f172a !important;
        font-size: 17px !important;
        font-weight: 700 !important;
    }

    .dropdown-menu a:hover {
        background: #eef6ff !important;
        color: #0369a1 !important;
    }

    /* Search should also remain full width */
    .header-search-wrap {
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-search {
        width: 100% !important;
    }

    /* Pay Online full width */
    .nav .btn,
    .nav a.btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        padding: 18px 26px !important;
        border-radius: 18px !important;
        font-size: 22px !important;
        font-weight: 800 !important;
    }
}

/* =========================
   Learner Video Library
========================= */

.video-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.video-library-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.video-thumbnail-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.video-library-card:hover .video-thumbnail {
    transform: scale(1.03);
}

.video-play-button {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    min-width: 68px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.video-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.video-library-content {
    padding: 20px;
}

.video-course-name {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.video-library-content h3 {
    margin: 0 0 10px;
    line-height: 1.35;
}

.lesson-video-wrap {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-top: 26px;
    border-radius: 20px;
    background: #000000;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
}

.lesson-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lesson-back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 700;
}

.lesson-task-section {
    margin-top: 48px;
}

.lesson-task-list {
    display: grid;
    gap: 18px;
}

.lesson-task-card {
    border-left: 5px solid var(--dark);
}

.task-number {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.course-upsell-section {
    background: #ffffff;
    border-top: 1px solid var(--border);
}

@media (max-width: 950px) {
    .video-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .video-library-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-actions {
    margin: 24px 0 32px;
}

.dashboard-grid {
    align-items: stretch;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
}

.dashboard-card > p {
    flex: 1;
}

.dashboard-card .actions {
    margin-top: auto;
}

.admin-tools-card {
    border-left: 5px solid var(--dark);
}

/* Admin dashboard statistics */

.admin-stat-grid {
display: grid !important;
grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
gap: 18px !important;
margin: 28px 0 32px !important;
}

.admin-stat-card {
min-height: 130px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}

.admin-stat-card strong {
display: block;
margin-bottom: 8px;
font-size: 38px;
line-height: 1;
color: var(--dark);
}

.admin-stat-card span {
color: var(--muted);
font-size: 15px;
font-weight: 700;
}

.admin-tool-grid {
align-items: stretch;
}

.admin-tool-grid .card {
display: flex;
flex-direction: column;
}

.admin-tool-grid .card p {
flex: 1;
}

@media (max-width: 900px) {
.admin-stat-grid {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
}

@media (max-width: 520px) {
.admin-stat-grid {
grid-template-columns: 1fr !important;
}
}

/* =================================
   COURSE AND VIDEO CARD FIXES
================================= */

.video-library-card,
.admin-video-card {
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.video-thumbnail-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 18px 18px 0 0;
}

.video-thumbnail,
.admin-video-thumbnail {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.admin-video-card {
    padding: 0;
}

.admin-video-card form {
    padding: 20px;
}

.video-library-content {
    padding: 20px;
}

.video-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 900px) {
    .video-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .video-library-grid {
        grid-template-columns: 1fr;
    }
}

.lesson-video-wrap {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 28px auto;
    background: #000;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.lesson-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =================================
   COURSE AND VIDEO CARD FIXES
================================= */

.video-library-card,
.admin-video-card {
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.video-thumbnail-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 18px 18px 0 0;
}

.video-thumbnail,
.admin-video-thumbnail {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.admin-video-card {
    padding: 0;
}

.admin-video-card form {
    padding: 20px;
}

.video-library-content {
    padding: 20px;
}

.video-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 900px) {
    .video-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .video-library-grid {
        grid-template-columns: 1fr;
    }
}

.lesson-video-wrap {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 28px auto;
    background: #000;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.lesson-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lesson-video-wrap {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 28px auto;
    background: #000000;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.lesson-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-duration-note {
    margin-top: 12px;
    color: var(--muted);
    font-weight: 700;
}

.lesson-back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 700;
}

.lesson-task-section {
    margin-top: 48px;
}

.lesson-task-list {
    display: grid;
    gap: 18px;
}

.lesson-task-card {
    border-left: 5px solid var(--dark);
}

.task-number {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.course-access-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.course-playlist {
    display: grid;
    gap: 16px;
}

.course-playlist-item {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.course-playlist-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    list-style: none;
}

.course-playlist-item summary::-webkit-details-marker {
    display: none;
}

.course-playlist-item summary::after {
    content: "＋";
    flex-shrink: 0;
    font-size: 22px;
}

.course-playlist-item[open] summary::after {
    content: "−";
}

.course-playlist-item[open] summary {
    border-bottom: 1px solid var(--border);
}

.course-playlist-content {
    padding: 24px;
}

.course-playlist-content .lesson-video-wrap {
    margin: 0 0 22px;
}

@media (max-width: 600px) {
    .course-playlist-item summary {
        align-items: flex-start;
        padding: 17px;
        font-size: 16px;
    }

    .course-playlist-content {
        padding: 16px;
    }
}
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.course-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.course-image-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-image-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--muted);
}

.course-card-content {
    padding: 22px;
}

.course-category {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.course-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
    color: var(--muted);
    font-size: 14px;
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.course-player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.course-playlist-sidebar {
    position: sticky;
    top: 140px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    max-height: 75vh;
    overflow-y: auto;
}

.playlist-link {
    display: block;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 10px;
    background: #ffffff;
}

.playlist-link strong,
.playlist-link span {
    display: block;
}

.playlist-link span {
    color: var(--muted);
    font-size: 14px;
}

.playlist-link.active {
    background: #e0f7ff;
    border-color: #7dd3fc;
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

@media (max-width: 950px) {
    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-player-layout {
        grid-template-columns: 1fr;
    }

    .course-playlist-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 600px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-card-footer {
        align-items: stretch;
        flex-direction: column;
    }
}
/* =========================
   Privacy, legal and secure-account controls
========================= */
.skip-link {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 20000;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--dark);
    color: #ffffff;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.narrow-container,
.legal-container {
    width: min(860px, 92%);
}

.legal-page h1,
.legal-page h2 {
    line-height: 1.25;
}

.legal-page h2 {
    margin-top: 34px;
}

.legal-meta,
.form-help,
.optional-label {
    color: var(--muted);
}

.form-help {
    font-size: 0.92rem;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
}

.legal-table th,
.legal-table td {
    text-align: left;
    vertical-align: top;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.legal-table th {
    background: #f8fafc;
}

.legal-table tr:last-child td {
    border-bottom: 0;
}

.notice {
    padding: 14px 16px;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    background: #f0f9ff;
    margin: 16px 0;
}

.notice.error {
    border-color: #fecaca;
    background: #fef2f2;
}

.notice.info {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.flash-wrap {
    margin-top: 16px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0;
}

.checkbox-row input {
    width: auto;
    margin-top: 6px;
}

.nav-inline-form {
    display: inline-flex;
    margin: 0;
}

.nav-link-button,
.footer-link-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.nav-link-button {
    text-decoration: none;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 10px;
}

.nav-link-button:hover,
.nav-link-button:focus-visible {
    background: #f1f5f9;
    color: #0369a1;
}

.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 15000;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.14);
    padding: 18px;
}

.cookie-banner-content {
    width: min(1180px, 96%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-content p {
    margin: 4px 0 0;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.privacy-modal[hidden],
.cookie-banner[hidden] {
    display: none;
}

.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 16000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.7);
}

.privacy-modal-panel {
    position: relative;
    width: min(650px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.3);
}

.privacy-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
}

.privacy-modal-open {
    overflow: hidden;
}

.preference-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.preference-row p,
.preference-row small {
    display: block;
    margin: 4px 0 0;
    color: var(--muted);
}

.preference-control input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.external-media-placeholder {
    min-height: 280px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px dashed #94a3b8;
    border-radius: 18px;
    background: #f8fafc;
    padding: 24px;
    overflow: hidden;
}

.external-media-inner {
    max-width: 560px;
}

.external-media-loaded {
    display: block;
    min-height: 0;
    padding: 0;
    border-style: solid;
    aspect-ratio: 16 / 9;
}

.external-media-loaded iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.profile-safe-thumbnail {
    display: grid;
    place-items: center;
    min-height: 180px;
    border-radius: 16px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    padding: 20px;
    text-align: center;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.btn-danger {
    background: #991b1b;
    border-color: #991b1b;
    color: #ffffff;
}

.btn-danger:hover {
    background: #7f1d1d;
}

.admin-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 760px) {
    .cookie-banner-content,
    .preference-row {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-actions,
    .cookie-actions .btn {
        width: 100%;
    }

    .admin-form-row {
        grid-template-columns: 1fr;
    }
}
