* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Orange / blue / green light theme */
    --primary: #F97316;
    --secondary: #1E40AF;
    --accent: #22C55E;
    --cta: #22C55E;
    --cta-dark: #16A34A;
    --background: #FFF7ED;
    --card: #FFFFFF;
    --text: #1E293B;
    --surface: #FFFFFF;
    --surface-elevated: #FFEDD5;

    /* Legacy aliases (used across HTML) */
    --primary-mint: var(--primary);
    --primary-mint-dark: #EA580C;
    --accent-mint: var(--secondary);
    --bg-mint-light: var(--surface-elevated);
    --text-main: var(--text);
    --white: #FFFFFF;

    --primary-color: var(--primary);
    --primary-light: var(--secondary);
    --primary-dark: #EA580C;
    --secondary-color: var(--secondary);
    --success-color: var(--accent);
    --danger-color: #EF4444;
    --warning-color: var(--primary);

    --bg-darkest: var(--background);
    --bg-dark: var(--surface-elevated);
    --bg-card: var(--card);
    --bg-light: var(--surface-elevated);
    --bg-lighter: var(--background);

    --text-primary: var(--text);
    --text-secondary: #475569;
    --text-tertiary: #64748B;
    --text-light: #94A3B8;

    --border-color: rgba(30, 41, 59, 0.12);
    --border-light: rgba(30, 41, 59, 0.06);

    /* Checkout / legacy page aliases */
    --light-bg: var(--background);
    --dark-text: var(--text);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar — solid white, professional */
.navbar {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 30px rgba(15, 23, 42, 0.06);
}

.navbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(249, 115, 22, 0.35) 15%,
        rgba(30, 64, 175, 0.5) 50%,
        rgba(34, 197, 94, 0.35) 85%,
        transparent 100%
    );
    pointer-events: none;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    gap: 1.25rem;
    min-height: 76px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 118px;
    height: 72px;
    line-height: 0;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.92;
}

.logo img {
    display: block;
    height: 90px;
    width: auto;
    max-width: 118px;
    object-fit: contain;
    object-position: center center;
    background: #ffffff;
}

/* Search Bar */
.search-container {
    display: flex;
    align-items: center;
    background: #f4f6f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0 6px 0 16px;
    margin: 0 0.5rem;
    flex-grow: 1;
    max-width: 380px;
    min-height: 44px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-container:focus-within {
    background: #ffffff;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08);
}

.search-container input {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 10px 8px;
    outline: none;
    flex-grow: 1;
    font-size: 0.9rem;
}

.search-container input::placeholder {
    color: var(--text-tertiary);
}

.search-container button {
    background: var(--secondary);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-container button:hover {
    background: #1e3a8a;
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
    padding: 0.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #eef2f6;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover {
    color: var(--secondary);
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.nav-links a.nav-active {
    color: var(--secondary);
    background: #ffffff;
    font-weight: 700;
    box-shadow: 0 1px 6px rgba(30, 64, 175, 0.12);
}

/* Cart & Login — same labels */
.nav-links a.nav-cart {
    color: var(--primary) !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa;
    font-weight: 700 !important;
    margin-left: 0.25rem;
    padding: 0.5rem 0.95rem !important;
    box-shadow: none;
}

.nav-links a.nav-cart:hover {
    color: var(--white) !important;
    background: var(--primary) !important;
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.25);
}

.nav-links #authLink a,
.nav-links a.nav-auth-link {
    color: var(--white) !important;
    background: var(--secondary) !important;
    border: 1px solid transparent;
    font-weight: 700 !important;
    padding: 0.5rem 1.2rem !important;
    margin-left: 0.25rem;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.nav-links #authLink a:hover,
.nav-links a.nav-auth-link:hover {
    color: var(--white) !important;
    background: #1e3a8a !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.28);
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.35rem;
    cursor: pointer;
    color: #334155 !important;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.hamburger:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: var(--secondary) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(
        120deg,
        #FF6B6B 0%,
        #EF4444 12%,
        #DC2626 28%,
        #B91C1C 42%,
        #7C3AED 58%,
        var(--secondary) 78%,
        #172554 100%
    );
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 55% at 12% 18%, rgba(255, 255, 255, 0.38) 0%, transparent 52%),
        radial-gradient(ellipse 60% 40% at 28% 75%, rgba(255, 200, 200, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-content.hero-animate .hero-title {
    animation: heroTitleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content.hero-animate .hero-subtitle {
    opacity: 0;
    animation: heroSubtitleIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.hero-content.hero-animate .hero-cta {
    opacity: 0;
    animation: heroCtaIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSubtitleIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

@keyframes heroCtaIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-content h1,
.hero-content .hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-content p,
.hero-content .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--white);
    font-style: italic;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--cta);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--cta-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* Homepage: EDCEPTA Advantage */
.advantage-section {
    padding: 4rem 0;
    background: var(--white);
}

.advantage-heading {
    text-align: center;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.advantage-card {
    text-align: center;
}

.advantage-visual {
    position: relative;
    width: min(280px, 100%);
    margin: 0 auto 1.25rem;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.25rem;
}

.advantage-visual--orange {
    background: radial-gradient(circle at 30% 30%, #FFEDD5 0%, #FED7AA 45%, #FDBA74 100%);
}

.advantage-visual--blue {
    background: radial-gradient(circle at 70% 30%, #DBEAFE 0%, #BFDBFE 45%, #93C5FD 100%);
}

.advantage-visual--green {
    background: radial-gradient(circle at 50% 70%, #DCFCE7 0%, #BBF7D0 45%, #86EFAC 100%);
}

.advantage-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.12);
}

.advantage-caption {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.45;
    max-width: 260px;
    margin: 0 auto;
}

/* Homepage: Subscribe / membership banner */
#membership,
#membership-details {
    scroll-margin-top: 92px;
}

.subscribe-section {
    padding: 2rem 0 4rem;
    background: var(--background);
}

.subscribe-banner,
.membership-home-banner {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 44%);
    gap: 2.5rem;
    align-items: center;
    background: linear-gradient(145deg, #1c1f26 0%, #1e293b 35%, #172554 100%);
    border-radius: 16px;
    padding: 3rem 3rem 3rem 3.25rem;
    color: var(--white);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.membership-home-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.subscribe-banner .membership-plan-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FDBA74;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.75rem;
    background: rgba(249, 115, 22, 0.15);
    border-radius: 4px;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.membership-plan-price-tag--home {
    margin-bottom: 1.5rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.membership-details--home {
    margin-top: 2.5rem;
}

.membership-details--home .membership-details-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.membership-details--home h4 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.subscribe-visual-main {
    position: relative;
}

.membership-home-visual .subscribe-visual-main {
    width: 78%;
    max-width: 300px;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
    background: #e2e8f0;
}

.membership-home-visual .subscribe-visual-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.membership-home-visual .subscribe-visual-accent {
    width: 20%;
    max-width: 64px;
    min-height: 220px;
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        rgba(167, 139, 250, 0.9) 0%,
        rgba(59, 130, 246, 0.85) 45%,
        rgba(34, 197, 94, 0.8) 100%
    );
}

.subscribe-content h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subscribe-lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.subscribe-lead strong {
    color: #FDBA74;
    font-weight: 700;
}

.subscribe-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.subscribe-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.45;
}

.subscribe-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.subscribe-icon--primary {
    background: linear-gradient(135deg, var(--primary), #EA580C);
    color: var(--white);
}

.subscribe-icon--secondary {
    background: linear-gradient(135deg, #3B82F6, var(--secondary));
    color: var(--white);
}

.subscribe-icon--accent {
    background: linear-gradient(135deg, var(--accent), var(--cta-dark));
    color: var(--white);
}

.subscribe-icon--warm {
    background: linear-gradient(135deg, #F472B6, #EC4899);
    color: var(--white);
}

.subscribe-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.btn-subscribe-primary {
    display: inline-block;
    background: var(--white);
    color: #1E293B;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-subscribe-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--secondary);
}

.subscribe-learn-more {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.95rem;
}

.subscribe-learn-more:hover {
    color: #FDBA74;
}

.subscribe-visual {
    position: relative;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.subscribe-visual-main {
    width: 72%;
    max-width: 280px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 2;
}

.subscribe-visual-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subscribe-visual-accent {
    width: 22%;
    max-width: 72px;
    align-self: stretch;
    min-height: 200px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    opacity: 0.95;
    z-index: 1;
}

@media (max-width: 992px) {
    .advantage-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 360px;
        margin: 0 auto;
    }

    .subscribe-banner {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .subscribe-visual {
        min-height: 220px;
        justify-content: center;
    }

    .subscribe-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .advantage-section {
        padding: 3rem 0;
    }

    .subscribe-banner {
        padding: 1.5rem;
    }
}

/* Homepage: Certifications */
.cert-section {
    padding: 0 0 4rem;
    background: var(--background);
}

.cert-banner {
    display: grid;
    grid-template-columns: minmax(240px, 38%) 1fr;
    gap: 2rem;
    align-items: stretch;
    background: linear-gradient(145deg, #1E293B 0%, #172554 55%, #1E3A5F 100%);
    border-radius: 16px;
    padding: 2.5rem 2rem 2.5rem 2.5rem;
    color: var(--white);
    border: 1px solid rgba(249, 115, 22, 0.15);
    box-shadow: 0 12px 40px rgba(30, 41, 59, 0.2);
}

.cert-intro h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cert-intro p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.cert-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.cert-cta-link:hover {
    color: #FDBA74;
    gap: 0.55rem;
}

.cert-cta-link span {
    font-size: 1.1rem;
}

.cert-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.cert-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.cert-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(249, 115, 22, 0.45);
    transform: translateY(-4px);
}

.cert-badges {
    position: relative;
    height: 120px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.65rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: var(--white);
}

/* CompTIA-style badges */
.cert-badges--comptia .cert-badge--lg {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, #DC2626, #991B1B);
    font-size: 0.55rem;
    z-index: 3;
    top: 28%;
    left: 38%;
}

.cert-badges--comptia .cert-badge--md {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #EF4444, #B91C1C);
    top: 12%;
    left: 18%;
    z-index: 2;
}

.cert-badges--comptia .cert-badge:nth-child(1) {
    width: 38px;
    height: 38px;
    background: linear-gradient(145deg, #F87171, #DC2626);
    top: 50%;
    left: 8%;
    z-index: 1;
}

.cert-badges--comptia .cert-badge:nth-child(4) {
    width: 38px;
    height: 38px;
    background: linear-gradient(145deg, #FCA5A5, #EF4444);
    top: 55%;
    right: 12%;
    left: auto;
    z-index: 1;
}

.cert-badges--comptia .cert-badge--xs {
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, #FCA5A5, #EF4444);
    top: 8%;
    right: 15%;
    font-size: 0.5rem;
    z-index: 2;
}

/* AWS hex-style badges */
.cert-badge--hex {
    width: 42px;
    height: 48px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border-radius: 0;
    background: linear-gradient(160deg, #3B82F6, var(--secondary));
    font-size: 0.55rem;
}

.cert-badges--aws .cert-badge--hex:nth-child(1) {
    top: 20%;
    left: 12%;
    z-index: 1;
}

.cert-badges--aws .cert-badge--hex-lg {
    width: 52px;
    height: 58px;
    background: linear-gradient(160deg, #6366F1, #1E40AF);
    top: 30%;
    left: 36%;
    z-index: 3;
    font-size: 0.6rem;
}

.cert-badges--aws .cert-badge--hex:nth-child(3) {
    top: 18%;
    right: 18%;
    left: auto;
    background: linear-gradient(160deg, #818CF8, #4338CA);
    z-index: 2;
}

.cert-badges--aws .cert-badge--hex-sm {
    width: 36px;
    height: 40px;
    bottom: 8%;
    right: 22%;
    top: auto;
    left: auto;
    background: linear-gradient(160deg, #60A5FA, #2563EB);
    z-index: 1;
}

/* PMI round badges */
.cert-badge--round {
    border-radius: 50%;
    font-size: 0.55rem;
}

.cert-badge--pmp {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, var(--primary), #EA580C);
    top: 25%;
    left: 35%;
    z-index: 3;
}

.cert-badge--capm {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, var(--accent), var(--cta-dark));
    top: 12%;
    left: 15%;
    z-index: 2;
}

.cert-badge--rmp {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #A855F7, #7C3AED);
    top: 45%;
    right: 18%;
    left: auto;
    z-index: 2;
}

.cert-card h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.cert-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 992px) {
    .cert-banner {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .cert-intro p {
        max-width: none;
    }

    .cert-cards {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cert-section {
        padding-bottom: 3rem;
    }
}

/* Homepage: Career Accelerators */
.career-section {
    padding: 4rem 0;
    background: var(--white);
}

.career-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.career-subtitle {
    color: var(--text-tertiary);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 640px;
    line-height: 1.55;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.career-card {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.06);
}

.career-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(30, 64, 175, 0.12);
    border-color: rgba(249, 115, 22, 0.35);
}

.career-card-visual {
    position: relative;
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
}

.career-card-visual--green {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 50%, #15803D 100%);
}

.career-card-visual--pink {
    background: linear-gradient(135deg, #F472B6 0%, #EC4899 45%, #7C3AED 100%);
}

.career-card-visual--purple {
    background: linear-gradient(135deg, #A855F7 0%, var(--secondary) 60%, #4338CA 100%);
}

.career-card-visual img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    mask-image: linear-gradient(to left, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%);
}

.career-card-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: 72px;
    color: rgba(255, 255, 255, 0.45);
    z-index: 2;
}

.career-card-icon svg {
    width: 100%;
    height: 100%;
}

.career-card-icon--chart {
    width: 64px;
    height: 64px;
    left: 1.5rem;
}

.career-card-icon--phone {
    width: 56px;
    height: 56px;
}

.career-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
}

.career-card-body h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

.career-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.career-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-right: 0.25rem;
}

.career-star {
    color: var(--primary);
    font-size: 0.9rem;
}

.career-pill {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
}

@media (max-width: 992px) {
    .career-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .career-section {
        padding: 3rem 0;
    }
}

/* Homepage: Popular Skills */
.skills-section {
    padding: 4rem 0;
    background: var(--white);
    border-top: 1px solid var(--border-light);
}

.skills-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.skills-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 2.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1fr;
    gap: 2rem 2.5rem;
    align-items: start;
}

.skills-featured-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0.75rem;
    max-width: 220px;
}

.skills-column-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.skills-link {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.skills-link:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.skills-featured .skills-link {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.skills-learners {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.skills-featured .skills-learners {
    margin-bottom: 2rem;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    margin-bottom: 1.35rem;
}

.skills-list li:last-child {
    margin-bottom: 0;
}

.skills-show-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 260px;
    padding: 0.85rem 1.25rem;
    border: 2px solid var(--secondary);
    border-radius: 6px;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.skills-show-all:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.skills-show-all svg {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .skills-featured {
        grid-column: 1 / -1;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-light);
    }

    .skills-featured-title {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .skills-section {
        padding: 3rem 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage: Testimonials */
.testimonials-section {
    padding: 4rem 0;
    background: var(--background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.testimonial-card {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 28px rgba(30, 41, 59, 0.08);
    border-color: rgba(30, 64, 175, 0.2);
}

.testimonial-quote-mark {
    display: block;
    font-size: 3rem;
    line-height: 1;
    color: var(--text-main);
    font-family: Georgia, 'Times New Roman', serif;
    margin-bottom: 0.25rem;
    user-select: none;
}

.testimonial-text {
    margin: 0 0 1.5rem;
    padding: 0;
    border: none;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    flex: 1;
}

.testimonial-text strong {
    color: var(--text-main);
    font-weight: 700;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-top: 0.25rem;
}

.testimonial-initials {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

.testimonial-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.15rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.4;
}

.testimonial-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.testimonial-link:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .testimonials-section {
        padding: 3rem 0;
    }
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--text-main);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
}

.category-card:hover {
    border-color: var(--primary-mint);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
    background-color: var(--bg-mint-light);
}

.category-card h3 {
    margin-top: 1rem;
    color: var(--text-main);
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
    background-color: var(--background);
}

.courses-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: var(--text-main);
}

.filter-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--accent-mint);
    background-color: transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-mint);
    color: var(--white);
    border-color: var(--primary-mint);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.2);
    border-color: var(--accent-mint);
    background-color: var(--bg-mint-light);
}

.course-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
}

.course-content {
    padding: 1.5rem;
}

.course-badge {
    display: inline-block;
    background-color: var(--bg-mint-light);
    color: var(--primary-mint-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--accent-mint);
}

.course-card h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-main);
}

.course-info {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.course-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-mint-dark);
}

.course-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.course-btn {
    background-color: var(--cta);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.course-btn:hover {
    background-color: var(--cta-dark);
    transform: scale(1.02);
}

.course-btn-cart {
    background-color: transparent;
    color: var(--primary-mint-dark);
    border: 2px solid var(--primary-mint);
}

.course-btn-cart:hover {
    background-color: var(--bg-mint-light);
    color: var(--primary-mint-dark);
    border-color: var(--primary-mint-dark);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-section h2,
.about-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.about-text.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-text.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.about-text.animate-in .about-title {
    animation: aboutTitleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes aboutTitleIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.about-list-item {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.2s ease;
    transition-delay: calc(0.1s + var(--i, 0) * 0.08s);
}

.about-text.animate-in .about-list-item {
    opacity: 1;
    transform: translateX(0);
}

.about-list-item:hover {
    color: var(--primary-mint-dark);
    padding-left: 8px;
}

.about-list {
    list-style: none;
}

.about-list li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background-color: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    transition-delay: calc(0.15s + var(--i, 0) * 0.12s);
}

.stat.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stat:hover {
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.25);
    border-color: var(--accent-mint);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-mint-dark);
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat:hover .stat-number {
    transform: scale(1.08);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-mint-dark);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-tertiary);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-inner {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.newsletter-inner.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.newsletter-inner.animate-in .newsletter-form {
    animation: newsletterFormIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes newsletterFormIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form:focus-within {
    transform: scale(1.02);
}

.newsletter-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.newsletter-section p {
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--white);
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--surface);
    color: var(--text-main);
    transition: box-shadow 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

/* Site footer wrapper */
.site-footer {
    margin-top: 0;
}

/* Footer explore mega-menu (dark) */
.footer-explore {
    background: linear-gradient(180deg, #1E293B 0%, #172554 100%);
    color: var(--white);
    padding: 3rem 0 3.5rem;
    border-top: 3px solid var(--primary);
}

.footer-explore-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.footer-explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 2.5rem;
}

.footer-explore-col h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-explore-col ul {
    list-style: none;
}

.footer-explore-col li {
    margin-bottom: 0.55rem;
}

.footer-explore-col a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.footer-explore-col a:hover {
    color: #FDBA74;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 992px) {
    .footer-explore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 2rem;
    }
}

@media (max-width: 600px) {
    .footer-explore {
        padding: 2.5rem 0;
    }

    .footer-explore-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer main (light) */
.footer,
.footer-main {
    background-color: var(--surface);
    color: var(--text-secondary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.site-footer .footer-main {
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-section {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(0.1s + var(--i, 0) * 0.1s);
}

.footer-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.footer-section:hover h3 {
    color: var(--primary-mint-dark);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-mint);
    padding-left: 4px;
}

.footer-main .footer-contact-email {
    color: var(--text-tertiary);
}

.footer-main .footer-contact-email:hover {
    color: var(--primary-mint);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.footer-bottom.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--surface);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    box-shadow: 0 12px 40px rgba(30, 41, 59, 0.15);
}

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

.close {
    color: var(--text-tertiary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--primary-mint);
}

.modal-details {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.modal-details p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

#enrollBtn {
    width: 100%;
    margin-top: 1rem;
}

/* Toast notification (add to cart, etc.) */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 10px 40px rgba(30, 41, 59, 0.12);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}

.toast.toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    background: var(--primary-mint);
    color: var(--white);
    border: 1px solid var(--primary-mint-dark);
}

.toast-info {
    background: var(--surface-elevated);
    color: var(--text-main);
    border: 1px solid var(--accent-mint);
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .toast {
        bottom: 16px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .toast-message {
        white-space: normal;
        max-width: 260px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        width: 92px;
        height: 56px;
    }
    .logo img {
        height: 70px;
        max-width: 92px;
    }
    
    .search-container {
        margin: 0 5px;
        order: 1; /* Move to center */
        padding: 0 5px;
    }
    
    .search-container input {
        width: 100px; /* Smaller input */
        font-size: 0.8rem;
    }

    .hamburger {
        display: block;
        order: 2; /* Move to right */
    }

    .navbar {
        position: sticky;
    }

    .nav-wrapper {
        flex-wrap: wrap;
        min-height: auto;
        padding: 0.5rem 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
        padding: 1rem;
        border: 1px solid #e8ecf1;
        border-top: none;
        border-radius: 0 0 14px 14px;
        margin: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0;
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem !important;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .nav-links a.nav-cart,
    .nav-links #authLink a {
        text-align: center;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero {
        padding: 60px 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .filter-section {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .categories-section h2,
    .courses-section h2,
    .about-section h2,
    .newsletter-section h2 {
        font-size: 1.5rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.pagination button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-mint);
    color: var(--white);
    border-color: var(--primary-mint);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Membership page — Udemy-style plan banner */
.membership-page-body {
    background: var(--background);
}

.membership-plan-page {
    padding: 2rem 0 3rem;
}

.membership-plan-banner {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 44%);
    gap: 2.5rem;
    align-items: center;
    background: linear-gradient(145deg, #1c1f26 0%, #1e293b 35%, #172554 100%);
    border-radius: 16px;
    padding: 3rem 3rem 3rem 3.25rem;
    color: var(--white);
    overflow: hidden;
    box-shadow:
        0 24px 64px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    margin-bottom: 3.5rem;
    position: relative;
}

.membership-plan-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.membership-plan-banner--compact {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}

.membership-plan-banner--compact .membership-plan-visual {
    display: none;
}

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

.membership-plan-content--center {
    max-width: 520px;
    margin: 0 auto;
}

.membership-plan-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FDBA74;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(249, 115, 22, 0.15);
    border-radius: 4px;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.membership-plan-banner h1 {
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.membership-plan-title-sm {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.membership-plan-lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.membership-plan-lead--sm {
    margin-bottom: 1.5rem;
    max-width: none;
}

.membership-plan-lead strong {
    color: #FDBA74;
    font-weight: 700;
}

.membership-plan-page .membership-plan-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.75rem;
    margin-bottom: 1.75rem;
}

.membership-plan-page .membership-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.45;
    border: none;
    padding: 0;
}

.membership-plan-page .membership-plan-features li::before {
    display: none;
}

.membership-plan-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.membership-plan-icon--purple {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
}

.membership-plan-icon--blue {
    background: linear-gradient(135deg, #3B82F6, var(--secondary));
}

.membership-plan-icon--pink {
    background: linear-gradient(135deg, #F472B6, #EC4899);
}

.membership-plan-icon--green {
    background: linear-gradient(135deg, var(--accent), var(--cta-dark));
}

.membership-plan-price-tag {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.membership-plan-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.membership-plan-price-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.membership-plan-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.btn-membership-subscribe {
    display: inline-block;
    background: var(--white);
    color: #1c1f26;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-membership-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.25);
    background: #f8fafc;
}

.membership-plan-learn-more {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.membership-plan-learn-more:hover {
    color: #FDBA74;
}

.membership-plan-visual {
    position: relative;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    z-index: 1;
}

.membership-plan-visual-main {
    width: 78%;
    max-width: 300px;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 2;
    background: #e2e8f0;
}

.membership-plan-visual-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(125deg, transparent 40%, rgba(124, 58, 237, 0.85) 40%, rgba(124, 58, 237, 0.85) 48%, transparent 48%),
        linear-gradient(215deg, transparent 55%, rgba(99, 102, 241, 0.7) 55%, rgba(99, 102, 241, 0.7) 62%, transparent 62%);
    pointer-events: none;
}

.membership-plan-visual-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.membership-plan-visual-accent {
    width: 20%;
    max-width: 64px;
    align-self: stretch;
    min-height: 220px;
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        rgba(167, 139, 250, 0.9) 0%,
        rgba(59, 130, 246, 0.85) 45%,
        rgba(34, 197, 94, 0.8) 100%
    );
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.membership-details {
    margin-bottom: 3.5rem;
}

.membership-details-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 2rem;
}

.membership-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.membership-detail-card {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.membership-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.1);
}

.membership-detail-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.membership-detail-card h3 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.membership-detail-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.membership-faq-section--page {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.membership-section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.membership-faq-section {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.membership-faq-list {
    margin-top: 1.5rem;
}

.membership-faq-item {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.membership-faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    list-style: none;
}

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

.membership-faq-item summary::after {
    content: '+';
    float: right;
    color: var(--primary);
    font-weight: 700;
}

.membership-faq-item[open] summary::after {
    content: '−';
}

.membership-faq-item p {
    padding: 0 1.25rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.membership-faq-item a {
    color: var(--secondary);
}

@media (max-width: 992px) {
    .membership-plan-banner {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .membership-plan-visual {
        min-height: 240px;
        justify-content: center;
    }

    .membership-plan-page .membership-plan-features {
        grid-template-columns: 1fr;
    }

    .membership-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .membership-plan-page {
        padding: 1.25rem 0 2rem;
    }

    .membership-plan-banner {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .membership-details-grid {
        grid-template-columns: 1fr;
    }

    .btn-membership-subscribe {
        width: 100%;
        text-align: center;
    }
}
