/* =============================================
   ACADEMY - Coursera-Inspired Homepage CSS
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Source+Serif+4:wght@400;600;700&display=swap');

:root {
    --primary: #0056D2;
    --primary-dark: #003d99;
    --primary-light: #e8f0fe;
    --accent: #0073e6;
    --success: #00875a;
    --warning: #ff8c00;
    --dark: #1f1f1f;
    --text: #3c3c3c;
    --text-muted: #636363;
    --border: #e0e0e0;
    --bg-light: #f5f7ff;
    --bg-card: #ffffff;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- NAVBAR ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    height: 44px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

.nav-logo svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.nav-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-search {
    flex: 1;
    max-width: 420px;
    margin: 0 32px;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #f5f5f5;
    transition: var(--transition);
    outline: none;
}

.nav-search input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.12);
}

.nav-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin-bottom: 0;
}

.nav-links a {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-actions .btn {
    padding: 8px 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 700;
}

.btn-white:hover {
    background: #f0f4ff;
    transform: translateY(-1px);
}

.btn-white-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 4px;
}

/* ---- HERO SECTION ---- */
.hero {
    background: linear-gradient(135deg, #0056D2 0%, #1A3C8B 50%, #0073e6 100%);
    min-height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 80px 80px 80px 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 115, 230, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.hero h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: #7dd3fc;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}

/* Hero Visual — Laptop Mockup */
.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-laptop {
    perspective: 1200px;
    animation: laptopEntry 0.8s ease forwards;
}

@keyframes laptopEntry {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(8deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.laptop-screen {
    width: 460px;
    background: #1e1e2e;
    border-radius: 12px 12px 0 0;
    border: 3px solid #3a3a50;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
}

.laptop-base {
    width: 520px;
    height: 14px;
    background: linear-gradient(180deg, #3a3a50 0%, #2a2a3c 100%);
    border-radius: 0 0 8px 8px;
    margin: 0 auto;
    position: relative;
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4a4a60;
    border-radius: 0 0 4px 4px;
}

/* Dashboard Top Bar (browser chrome) */
.dash-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: #2a2a3c;
    border-bottom: 1px solid #3a3a50;
}

.dash-dots {
    display: flex;
    gap: 5px;
}

.dash-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dash-dots span:nth-child(1) {
    background: #ff5f57;
}

.dash-dots span:nth-child(2) {
    background: #ffbd2e;
}

.dash-dots span:nth-child(3) {
    background: #28c840;
}

.dash-url {
    flex: 1;
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 12px;
    border-radius: 4px;
    font-family: 'Inter', monospace;
}

.dash-user {
    font-size: 14px;
}

/* Dashboard Body */
.dash-body {
    display: flex;
    min-height: 240px;
}

.dash-sidebar {
    width: 110px;
    background: #252536;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-right: 1px solid #3a3a50;
}

.dash-sb-item {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    padding: 7px 8px;
    border-radius: 6px;
    cursor: default;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dash-sb-item.active {
    background: rgba(0, 86, 210, 0.3);
    color: #7dd3fc;
    font-weight: 600;
}

/* Dashboard Main Content */
.dash-main {
    flex: 1;
    padding: 14px;
    background: #1e1e2e;
}

.dash-welcome {
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
}

.dash-course-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-mini-course {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dash-mini-course:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dash-mc-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.dash-mc-info {
    flex: 1;
    min-width: 0;
}

.dash-mc-title {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-mc-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.dash-mc-bar>div {
    height: 100%;
    background: linear-gradient(90deg, #0056D2, #00b4d8);
    border-radius: 2px;
    animation: barGrow 1.5s ease forwards;
}

@keyframes barGrow {
    from {
        width: 0 !important;
    }
}

/* Floating Popups */
.hero-popup {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 5;
    animation: popupSlide 0.6s ease forwards;
}

.popup-live {
    top: 30px;
    right: -30px;
    animation-delay: 0.5s;
    opacity: 0;
}

.popup-achieve {
    bottom: 60px;
    left: -30px;
    animation-delay: 1.2s;
    opacity: 0;
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .announcement-bar {
        padding: 8px 35px 8px 15px !important;
        font-size: 11px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        line-height: 1.3 !important;
        gap: 5px 10px !important;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px !important;
    }

    .courses-grid {
        grid-template-columns: 1fr !important;
    }
}

.popup-live-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

.popup-achieve-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.popup-title {
    font-size: 11px;
    font-weight: 700;
    color: #1f1f1f;
    white-space: nowrap;
}

.popup-sub {
    font-size: 10px;
    color: #636363;
    white-space: nowrap;
}



/* ---- PARTNERS STRIP ---- */
.partners-section {
    background: var(--white);
    padding: 48px 80px;
    border-bottom: 1px solid var(--border);
}

.partners-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
}

.partners-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.partner-logo:hover {
    background: var(--bg-light);
}

.partner-img {
    height: 32px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}

.partner-logo:hover .partner-img {
    filter: grayscale(0%) opacity(1);
}

.partner-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.partner-logo:hover .partner-name {
    color: var(--dark);
}

/* ---- SECTION COMMONS ---- */
.section {
    padding: 80px 80px;
}

.section-header {
    margin-bottom: 40px;
}

.section-header.centered {
    text-align: center;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 24px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 8px;
    max-width: 560px;
}

.section-header.centered .section-subtitle {
    margin: 8px auto 0;
}

/* ---- CATEGORY TABS ---- */
.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cat-tab {
    padding: 8px 20px;
    border-radius: 24px;
    border: 1.5px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    background: white;
    font-family: 'Inter', sans-serif;
}

.cat-tab:hover,
.cat-tab.active {
    background: rgba(0, 0, 0, 0.04);
}

/* ---- COURSE CARDS (UDEMY STYLE) ---- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.course-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 86, 210, 0.3);
}

.course-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
    border-bottom: 1px solid var(--border);
}

.course-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-card-thumb img {
    filter: brightness(0.9);
}

.course-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.course-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.course-card-instructor {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.course-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin-bottom: 4px;
}

.rating-num {
    font-weight: 700;
    color: #b4690e;
}

.rating-stars {
    color: #eb8a2f;
    font-size: 12px;
    letter-spacing: -1px;
}

.star-half {
    position: relative;
    display: inline-block;
}

.rating-count {
    color: var(--text-muted);
    font-size: 12px;
}

.course-card-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.price-current {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
}

.price-original {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.course-card-footer {
    margin-top: auto;
    padding-top: 12px;
}

/* Badge Labels */
.course-badge-label {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 2px;
    margin-top: 8px;
    width: fit-content;
}

.course-badge-label.bestseller {
    background: #eceb98;
    color: #3d3c0a;
}

.course-badge-label.hot {
    background: #f3ca8c;
    color: #593d10;
}

@media (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---- PREMIUM CATEGORIES GRID ---- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--hover-bg, transparent);
    opacity: 0;
    transition: all 0.3s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
    z-index: 10;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-color, rgba(0, 0, 0, 0.05));
    border-color: var(--brand-color, #cbd5e1);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover::after {
    left: 200%;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-icon-box {
    width: auto;
    height: auto;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-color, var(--primary));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    margin-bottom: 4px;
}

.cat-icon-box svg {
    width: 24px;
    height: 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover .cat-icon-box {
    transform: scale(1.1);
}

/* Base colors for categories */
.cat-purple {
    --brand-color: #8b5cf6;
    --icon-bg: #f3e8ff;
    --shadow-color: rgba(139, 92, 246, 0.15);
    --hover-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.04), transparent);
}

.cat-blue {
    --brand-color: #0ea5e9;
    --icon-bg: #e0f2fe;
    --shadow-color: rgba(14, 165, 233, 0.15);
    --hover-bg: linear-gradient(135deg, rgba(14, 165, 233, 0.04), transparent);
}

.cat-green {
    --brand-color: #10b981;
    --icon-bg: #d1fae5;
    --shadow-color: rgba(16, 185, 129, 0.15);
    --hover-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.04), transparent);
}

.cat-orange {
    --brand-color: #f59e0b;
    --icon-bg: #fef3c7;
    --shadow-color: rgba(245, 158, 11, 0.15);
    --hover-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.04), transparent);
}

.cat-pink {
    --brand-color: #ec4899;
    --icon-bg: #fce7f3;
    --shadow-color: rgba(236, 72, 153, 0.15);
    --hover-bg: linear-gradient(135deg, rgba(236, 72, 153, 0.04), transparent);
}

.cat-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    z-index: 2;
    transition: all 0.3s ease;
    text-align: left;
    margin-bottom: 2px;
}

.cat-desc {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
    line-height: 1.5;
    z-index: 2;
    transition: all 0.3s ease;
    text-align: left;
}

.category-card:hover .cat-name {
    color: var(--brand-color);
    transform: translateX(4px);
}

.category-card:hover .cat-desc {
    transform: translateX(4px);
}

/* Decorative background elements */
.categories-section {
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 120px;
}

.bg-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.blob-1 {
    top: -100px;
    left: -100px;
    background: #6366f1;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    background: #22d3ee;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 60px 24px;
    }

    .categories-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section {
        padding: 40px 16px;
    }

    .categories-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .category-card {
        padding: 24px 16px;
    }

    .section-title {
        font-size: 26px;
    }
}

/* ---- WHO ARE YOU SECTION ---- */
.goals-section {
    background: var(--bg-light);
    padding: 80px;
}

.goals-tabs {
    display: flex;
    gap: 4px;
    background: white;
    padding: 4px;
    border-radius: 12px;
    width: fit-content;
    margin: 0 auto 48px;
    box-shadow: var(--shadow-sm);
}

.goal-tab {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
}

.goal-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.goals-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.goals-text h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.goals-text p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.goals-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.goals-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text);
}

.check-icon {
    width: 22px;
    height: 22px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-size: 12px;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 2px;
}

.goals-visual {
    position: relative;
}

.dashboard-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.mockup-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3c8b 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-title {
    color: white;
    font-size: 15px;
    font-weight: 700;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.mockup-body {
    padding: 20px 24px;
}

.mockup-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mockup-label {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.mockup-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.mockup-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.mockup-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00b4d8);
    border-radius: 4px;
}

.mockup-certs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.mockup-cert {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-size: 20px;
}

.mockup-cert-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* ---- SUBSCRIPTION SECTION ---- */
.subscription-section {
    background: linear-gradient(135deg, #0056D2 0%, #003d99 100%);
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.subscription-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.subscription-section h2 {
    font-size: 40px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    position: relative;
}

.subscription-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    position: relative;
}

.subscription-plans {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.plan-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 260px;
    text-align: left;
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.plan-card.featured {
    background: #f0f7ff;
    border: 2.5px solid var(--primary);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 36px;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
}

.plan-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 12px 0 20px;
    line-height: 1.6;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.plan-features li {
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 900;
    font-size: 12px;
}

.plan-btn {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    text-align: center;
    display: block;
}

.plan-btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.plan-btn-primary:hover {
    background: var(--primary-dark);
}

.plan-btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.plan-btn-outline:hover {
    background: var(--primary-light);
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
    background: #f8fafc;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonials-marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
    margin-top: 40px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, white 5%, white 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, white 5%, white 95%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 32px;
    padding: 20px 0;
    width: max-content;
    animation: scrollMarquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 16px));
    }
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 85vw;
    max-width: 380px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 24px 48px rgba(0, 86, 210, 0.12) !important;
    transform: translateY(-8px) scale(1.02);
    z-index: 2;
}

.testimonial-quote {
    font-size: 36px;
    color: var(--primary);
    line-height: 1;
    font-family: Georgia, serif;
    margin-bottom: 4px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.author-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- STATS SECTION ---- */
.stats-section {
    background-color: #050a15;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridScroll 15s linear infinite;
    padding: 64px 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, #050a15 90%);
    pointer-events: none;
    z-index: 0;
}

.stats-section>* {
    position: relative;
    z-index: 1;
}

@keyframes gridScroll {
    0% {
        background-position: 0px 0px;
    }

    100% {
        background-position: 40px 40px;
    }
}

.stat-item {}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    font-weight: 500;
}

/* ---- FAQ ---- */
.faq-section {
    background: var(--bg-light);
    padding: 80px;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.faq-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    background: var(--primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ---- FOOTER ---- */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 80px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 24px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

.footer-brand-name {
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    transition: var(--transition);
}

.footer-social-icon svg {
    width: 20px;
    height: 20px;
    object-fit: contain;
    stroke: currentColor;
    stroke-width: 2px;
    fill: none;
}

.footer-social-icon:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ---- ANNOUNCEMENT BAR ---- */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary) 0%, #1a3c8b 100%);
    color: white;
    text-align: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.announcement-bar a {
    color: #7dd3fc;
    font-weight: 700;
    text-decoration: underline;
}

.announcement-close {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
    padding: 4px;
}

.announcement-close:hover {
    opacity: 1;
}

body.announcement-active .navbar {
    top: 0;
}

body.announcement-active .hero {
    margin-top: 0;
}

/* ---- MOBILE HAMBURGER ---- */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-mobile-only {
    display: none;
    width: 100%;
    margin-top: 10px;
}

.nav-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Ensure full width */
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    color: var(--text);
}

.nav-link-btn.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-mobile-search {
    display: none;
    margin-bottom: 20px;
    width: 100%;
}

.mobile-search-container {
    position: relative;
    width: 100%;
}

.mobile-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    outline: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
    .nav-search {
        margin: 0 16px;
        max-width: 300px;
    }

    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .nav-search {
        display: none;
        /* Hide search bar on tablet to save space, or make it an icon */
    }

    .navbar {
        height: 64px;
        padding: 0 20px;
    }

    .hero {
        padding: 60px 40px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        justify-content: center;
    }

    .section {
        padding: 60px 40px;
    }

    .partners-section {
        padding: 40px;
    }

    .goals-section {
        padding: 60px 40px;
    }

    .goals-content {
        grid-template-columns: 1fr;
    }

    .goals-visual {
        display: none;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 48px 40px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subscription-section {
        padding: 60px 40px;
    }

    .faq-section {
        padding: 60px 40px;
    }

    footer {
        padding: 48px 40px 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links.active .nav-mobile-search {
        display: block;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }

    .nav-actions {
        display: flex;
        gap: 8px;
        order: 2;
    }

    .nav-actions .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .navbar {
        height: 72px;
        padding: 0 20px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .nav-brand {
        flex: 1;
    }

    .nav-brand-name {
        font-size: 18px;
    }

    .nav-logo img {
        height: 36px;
    }

    .nav-mobile-toggle {
        display: flex;
        order: 3;
        margin-left: 10px;
    }

    .nav-search {
        display: none;
        /* Hide top search on small mobile, can be added to menu */
    }

    .hero h1 {
        font-size: 32px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        /* Make the brand span the entire row on tablets */
    }

    footer {
        padding: 48px 24px 24px;
    }

    .stats-section {
        grid-template-columns: 1fr 1fr;
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 12px;
        height: 64px;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-actions .btn {
        display: inline-flex;
        padding: 6px 10px;
        font-size: 11px;
    }

    .nav-brand-name {
        display: none;
        /* Hide name on very small screens, logo is enough */
    }

    .nav-mobile-only {
        display: block;
    }

    .goals-section {
        padding: 60px 20px;
    }

    .goals-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding: 5px;
        -ms-overflow-style: none;
        /* Hide scrollbar for IE/Edge */
        scrollbar-width: none;
        /* Hide scrollbar for Firefox */
    }

    .goals-tabs::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for Chrome/Safari */
    }

    .goal-tab {
        padding: 8px 16px;
        font-size: 13px;
        flex: 0 0 auto;
    }

    .goals-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .goals-text h3 {
        font-size: 22px;
    }

    .goals-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .goals-features li {
        font-size: 14px;
    }

    .section {
        padding: 40px 16px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .categories-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .category-card {
        padding: 24px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        /* Completely stack on mobile */
        gap: 32px;
    }
}

/* ---- SCROLL ANIMATIONS ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 38px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUpPopup {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 30px;
        right: 40px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Base Responsive Grid Enforcements */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .category-card {
        padding: 24px 16px !important;
    }
}