/* ===================================
   S.S. COMPUTECH - Main Stylesheet
   Modern, Professional Design
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #204478;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --dark-color: #1e293b;
    --dark-light: #334155;
    --light-color: #f8fafc;
    --gray-color: #224474;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--light-color);
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.logo-loader {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.header .nav-link {
    color: var(--white);
}

.header .logo-text,
.header .logo-sub {
    color: var(--white);
}

.header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.header.scrolled .nav-link {
    color: var(--dark-color);
}

.header.scrolled .logo-text,
.header.scrolled .logo-sub {
    color: var(--primary-color);
}

.header.always-scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.header.always-scrolled .nav-link {
    color: var(--dark-color);
}

.header.always-scrolled .logo-text,
.header.always-scrolled .logo-sub {
    color: var(--primary-color);
}

.navbar {
    padding: 20px 0;
    overflow: visible;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

.nav-container .logo {
    justify-self: start;
    grid-column: 1;
}

.nav-container .nav-menu {
    justify-self: center;
    grid-column: 2;
}

.nav-container .nav-cta {
    justify-self: end;
    grid-column: 3;
}

.nav-container .hamburger {
    justify-self: end;
    grid-column: 3;
    grid-row: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-secondary);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition);
}

.logo-sub {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

/* Override large inline logo sizes used across pages to prevent mobile overflow */
.header .logo-sub {
    font-size: clamp(1.15rem, 3.5vw, 2.35rem) !important;
    line-height: 1.05;
}

.footer .logo-sub {
    font-size: clamp(1rem, 2.6vw, 1.8rem) !important;
    line-height: 1.05;
}

.header.scrolled .logo-sub {
    color: var(--gray-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    overflow: visible;
    position: relative;
}

.nav-item {
    position: relative;
}

/* ═══════════════════════════════════════════
   MEGA MENU — S.S. COMPUTECH
   ═══════════════════════════════════════════ */

/* Mega-parent positioning for hover bridge */
.mega-parent { position: relative; }

/* Trigger arrow rotation */
.mega-arrow { font-size: 0.65em; margin-left: 4px; transition: transform 0.25s ease; display: inline-block; }
.mega-parent:hover .mega-arrow,
.mega-parent.open .mega-arrow { transform: rotate(180deg); }

/* ── Mega panel ── */
.mega-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    top: 100%;
    width: 100vw;
    background: #fff;
    box-shadow: 0 16px 48px rgba(0,0,0,0.14);
    border-top: 3px solid #667eea;
    z-index: 99999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s, max-height 0s 0.2s;
}

/* Bridge the gap between nav-link and mega-menu panel */
.mega-parent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 20px;
    background: transparent;
    display: none;
}
.mega-parent:hover::after { display: block; }

.mega-parent:hover .mega-menu,
.mega-parent-simple:hover .mega-menu,
.mega-parent.open .mega-menu {
    max-height: 80vh;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s, max-height 0s 0s;
}

/* ── Inner grid ── */
.mega-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
}

/* ── Column ── */
.mega-col {
    padding: 22px 20px 20px;
    border-right: 1px solid #f0f0f0;
}
.mega-col:last-child { border-right: none; }

.mega-col-head {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #667eea;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4ff;
}
.mega-col-head i { margin-right: 6px; }

/* ── Each course item ── */
.mega-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: background 0.15s, transform 0.15s;
    margin-bottom: 4px;
}
.mega-item:hover {
    background: #f0f4ff;
    transform: translateX(3px);
    color: #4f46e5;
}
.mega-item::after { display: none !important; width: 0 !important; }

.mega-item img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8f9fa;
    padding: 3px;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}

.mega-item-info { display: flex; flex-direction: column; }

.mega-item-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: inherit;
}

.mega-item-dur {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 1px;
}

/* ── CTA card (last column bottom) ── */
.mega-cta {
    margin-top: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
}
.mega-cta-icon { font-size: 22px; color: #fff; margin-bottom: 6px; }
.mega-cta-text { font-size: 11.5px; color: rgba(255,255,255,0.85); margin-bottom: 10px; line-height: 1.4; }
.mega-cta-btn {
    display: block;
    background: #fff;
    color: #667eea;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 7px;
    transition: background 0.15s;
}
.mega-cta-btn:hover { background: #f0f4ff; }
.mega-cta-enroll {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
}
.mega-cta-enroll:hover { color: #fff; text-decoration: underline; }

/* ── Course-page simple nav dropdown ── */
.mega-parent-simple {
    position: relative;
    display: inline-block;
}
.mega-parent-simple > a {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted, #555);
    text-decoration: none;
    transition: background 0.15s;
}
.mega-parent-simple > a:hover { background: #f3f4f6; }
.mega-menu-simple { top: 100%; }

/* ── Mobile: collapse to accordion inside sidebar ── */
@media (max-width: 992px) {
    .mega-menu {
        display: flex;
        position: static !important;
        width: 100% !important;
        left: auto !important;
        transform: none !important;
        box-shadow: none !important;
        border-top: none !important;
        border-radius: 8px;
        background: #f8f9fa !important;
        transition: max-height 0.3s ease, opacity 0.3s ease !important;
        z-index: auto !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    .mega-parent::after { display: none !important; }
    .mega-parent:hover .mega-menu {
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    .mega-parent.open .mega-menu {
        display: block !important;
        max-height: 2000px !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        overflow: visible !important;
        margin-bottom: 10px;
    }
    .mega-inner {
        grid-template-columns: 1fr;
        padding: 0 0 20px 0;
    }
    .mega-col {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 14px 16px;
    }
    .mega-col:last-child {
        border-bottom: none;
        padding-bottom: 20px;
    }
    .mega-item { padding: 6px 8px; }
    .mega-item img { width: 30px; height: 30px; }
    .mega-item-dur { display: none; }
    .mega-cta { display: none; }
    .mega-menu-simple { top: auto; }
}




.nav-link {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.header.scrolled .bar {
    background: var(--dark-color);
}

.header.always-scrolled .bar {
    background: #224376;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: fadeInDown 0.8s ease-out;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1558655146-d09347e0b7a8?w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 120px 20px 60px;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-badge i {
    color: var(--accent-color);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    opacity: 0.7;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Page Hero Section */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
    padding-top: 40px;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
    z-index: -2;
}

.page-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1558655146-d09347e0b7a8?w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.1;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.page-hero-content {
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #818cf8;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb i {
    margin: 0 10px;
    opacity: 0.6;
}

/* Trusted By Section */
.trusted-by {
    padding: 40px 0;
    background: var(--light-color);
}

.trusted-text {
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.logo-carousel {
    overflow: hidden;
    position: relative;
}

.logo-track {
    display: flex;
    gap: 60px;
    animation: scroll-logos 20s linear infinite;
}

.partner-logo {
    font-size: 3rem;
    color: var(--gray-color);
    opacity: 0.4;
    transition: var(--transition);
    flex-shrink: 0;
}

.partner-logo:hover {
    opacity: 0.8;
    color: var(--primary-color);
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* Courses Preview Section */
.courses-preview {
    padding: 100px 0;
    background: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.course-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.75rem;
    color: var(--white);
}

.card-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(45deg);
}

.card-ribbon.premium {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.course-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.course-description {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.course-features {
    margin-bottom: 25px;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--dark-light);
}

.course-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.course-btn {
    width: 100%;
}

.view-all-wrapper {
    text-align: center;
}

/* Why Choose Section */
.why-choose {
    padding: 100px 0;
    background: var(--light-color);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-text .section-tag {
    margin-bottom: 10px;
}

.why-text .section-title {
    margin-bottom: 15px;
}

.why-text .section-subtitle {
    margin-bottom: 30px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.feature-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.why-image {
    position: relative;
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-2xl);
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.floating-card div strong {
    display: block;
    font-size: 1.3rem;
    color: var(--dark-color);
}

.floating-card div span {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.card-1 {
    top: 30px;
    left: -40px;
}

.card-2 {
    bottom: 30px;
    right: -40px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Testimonials Preview */
.testimonials-preview {
    padding: 100px 0;
    background: var(--white);
}

.testimonial-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: calc(100% - 60px);
    scroll-snap-align: center;
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info {
    text-align: left;
}

.author-info strong {
    display: block;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.author-info span {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.rating {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1541701494587-cb58502866ab?w=1920&h=600&fit=crop') center/cover;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 15px;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-secondary);
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
}

.footer-logo .logo-sub {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: white;
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar {
        padding: 14px 0;
    }

    .nav-container {
        gap: 12px;
        grid-template-columns: 1fr auto 1fr;
        justify-items: center;
    }

    .nav-container .logo {
        gap: 6px;
        max-width: none;
        justify-self: center;
        grid-column: 1 / 3;
    }

    .nav-container .hamburger {
        justify-self: end;
        grid-column: 3;
    }

    .nav-container .nav-menu {
        display: flex;
    }

    .logo img {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .logo-sub {
        white-space: nowrap;
    }
.nav-container .nav-menu {
        display: flex; /* CRITICAL: This must be flex, not none! */
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(86vw, 360px);
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 96px 24px 80px;
        gap: 10px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-2xl);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
        visibility: hidden;
        
    }

    .nav-menu.active {
        right: 0;
        visibility: visible;
        
    }

    .nav-menu .nav-item {
        width: 100%;
    }

    .nav-menu .nav-link {
        color: var(--dark-color);
        font-size: 1rem;
        width: 100%;
        padding: 12px 0;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-menu .nav-submenu {
        position: static;
        display: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 0;
        width: 100%;
    }

    .nav-menu .nav-item.active .nav-submenu {
        display: block;
    }

    .nav-menu .nav-submenu a {
        padding: 10px 20px 10px 40px;
        font-size: 0.9rem;
    }

    .nav-link::after {
        background: var(--primary-color);
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .nav-cta {
        display: none;
    }

    .why-content {
        grid-template-columns: 1fr;
    }

    .why-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .header .logo-sub {
        font-size: clamp(1.15rem, 5vw, 2rem) !important;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 105px 14px 48px;
    }

    .page-hero {
        min-height: 42vh;
        margin-top: 64px;
        padding-top: 22px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .course-card {
        padding: 24px;
    }

    .feature-item {
        gap: 14px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        right: 14px;
        bottom: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .floating-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 10px 0;
        animation: none;
    }

    .image-wrapper {
        text-align: center;
    }

    .testimonial-card {
        padding: 25px;
    }

    .slider-controls {
        gap: 10px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 420px) {
    .container,
    .nav-container {
        padding: 0 12px;
    }

    .hero-title {
        line-height: 1.15;
    }

    .btn {
        padding: 11px 20px;
        font-size: 0.95rem;
    }
}

/* Utility Classes */
.mt-4 {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}

/* Smooth Scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Course Detail Button */
.btn-outline-primary {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 8px;
}
.btn-outline-primary:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.btn-outline-primary i { margin-right: 6px; }

/* ===================================================================
   Course detail page styles (views/courses/show.ejs + course.body_html)
   Extracted from the original course pages — shared by 13 of 14 courses.
   coreldraw uses an older design and gets its own CSS via
   courses.custom_css (see database/schema.sql + seed).

   Scoped under .course-page (the wrapper div in show.ejs) — this block
   was originally written as its own standalone page, so several of its
   selectors (.hero, .hero-stats, .btn-primary, body, a, img, and an
   entire alternate footer design) reused the SAME class/element names
   as the main site and the shared footer partial. Appending it
   unscoped broke the homepage hero, the online-courses hero, every
   button, and the site footer. Scoping everything under .course-page
   fixes that without touching a single course page's own look.
   =================================================================== */
.course-page { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.65; font-size: 16px; }
.course-page a { color: var(--brand); text-decoration: none; }
.course-page a:hover { text-decoration: underline; }
.course-page img { max-width: 100%; display: block; }

:root {
  --brand: #e63946;
  --brand-dark: #c1121f;
  --text: #1a1a2e;
  --text-muted: #555;
  --bg: #fff;
  --bg-light: #f8f9fb;
  --border: #e2e5ea;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* HERO */
.course-page .hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%); color: #fff; padding: 64px 24px 56px; text-align: center; display: block; min-height: auto; }
.course-page .hero-eyebrow { display: inline-block; background: rgba(230,57,70,.18); color: #ff8fa3; border: 1px solid rgba(230,57,70,.35); border-radius: 99px; padding: 4px 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.course-page .hero h1 { font-size: clamp(26px, 5vw, 46px); font-weight: 800; line-height: 1.15; max-width: 760px; margin: 0 auto 16px; }
.course-page .hero p { font-size: 17px; color: rgba(255,255,255,.72); max-width: 600px; margin: 0 auto 32px; }
.course-page .hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; grid-template-columns: none; max-width: none; padding-top: 0; border-top: none; }
.course-page .hero-stat { text-align: center; }
.course-page .hero-stat strong { display: block; font-size: 22px; font-weight: 800; }
.course-page .hero-stat span { font-size: 12px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }
.course-page .hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.course-page .btn-primary { background: var(--brand); color: #fff; padding: 13px 28px; border-radius: 8px; font-weight: 700; font-size: 15px; transition: background .15s; display: inline-block; }
.course-page .btn-primary:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.course-page .btn-ghost { background: transparent; color: #fff; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; border: 1.5px solid rgba(255,255,255,.4); display: inline-block; transition: border-color .15s; }
.course-page .btn-ghost:hover { border-color: #fff; text-decoration: none; color: #fff; }

/* BREADCRUMB */
.course-page .breadcrumb { background: var(--bg-light); border-bottom: 1px solid var(--border); padding: 10px 24px; font-size: 13px; color: var(--text-muted); }
.course-page .breadcrumb-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 6px; align-items: center; }
.course-page .breadcrumb a { color: var(--text-muted); }
.course-page .breadcrumb a:hover { color: var(--brand); }
.course-page .breadcrumb-sep { opacity: .4; }

/* MAIN LAYOUT */
.course-page .page-body { max-width: 1100px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
@media (max-width: 860px) { .course-page .page-body { grid-template-columns: 1fr; } .course-page .sidebar { order: -1; } }

/* SECTIONS */
.course-page .section { margin-bottom: 48px; }
.course-page .section h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--brand); display: inline-block; }
.course-page .section h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }

/* SKILL GRID */
.course-page .skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.course-page .skill-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.course-page .skill-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--brand); }
.course-page .skill-card ul { list-style: none; }
.course-page .skill-card ul li { font-size: 14px; color: var(--text-muted); padding: 3px 0; padding-left: 16px; position: relative; }
.course-page .skill-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--brand); font-size: 12px; top: 4px; }

/* SYLLABUS */
.course-page .week { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.course-page .week-header { background: var(--bg-light); padding: 14px 20px; display: flex; gap: 14px; align-items: center; }
.course-page .week-badge { background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.course-page .week-title { font-size: 15px; font-weight: 600; }
.course-page .week-body { padding: 16px 20px; }
.course-page .week-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.course-page .week-body strong { color: var(--text); }
.course-page .week-project { margin-top: 10px; background: #fff8f8; border-left: 3px solid var(--brand); padding: 8px 14px; border-radius: 0 6px 6px 0; font-size: 13px; }
.course-page .week-project span { font-weight: 700; color: var(--brand); }

/* REQUIREMENTS */
.course-page .req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.course-page .req-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.course-page .req-card h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin-bottom: 6px; }
.course-page .req-card p { font-size: 14px; color: var(--text-muted); }

/* CAREERS */
.course-page .career-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.course-page .career-item { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.course-page .career-icon { font-size: 22px; flex-shrink: 0; }
.course-page .career-item h3 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.course-page .career-item p { font-size: 13px; color: var(--text-muted); }

/* SIDEBAR */
.course-page .sidebar { position: sticky; top: 80px; }
.course-page .sidebar-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.course-page .sidebar-top { background: linear-gradient(135deg, #1a1a2e, #0f3460); color: #fff; padding: 24px; }
.course-page .sidebar-top .price { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.course-page .sidebar-top .price-note { font-size: 13px; color: rgba(255,255,255,.6); }
.course-page .sidebar-details { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.course-page .detail-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.course-page .detail-row:last-child { border-bottom: none; }
.course-page .detail-label { color: var(--text-muted); }
.course-page .detail-value { font-weight: 600; }
.course-page .sidebar-cta { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.course-page .sidebar-cta a { text-align: center; }
.course-page .sidebar-note { font-size: 12px; color: var(--text-muted); text-align: center; padding: 0 24px 16px; }

/* CTA BANNER */
.course-page .cta-banner { background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%); color: #fff; padding: 56px 24px; text-align: center; margin-top: 24px; }
.course-page .cta-banner h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.course-page .cta-banner p { color: rgba(255,255,255,.7); margin-bottom: 28px; font-size: 16px; }
.course-page .cta-banner-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.course-page .btn-white { background: #fff; color: var(--brand); padding: 13px 28px; border-radius: 8px; font-weight: 700; font-size: 15px; display: inline-block; transition: opacity .15s; }
.course-page .btn-white:hover { opacity: .9; text-decoration: none; color: var(--brand); }

/* NOTE: the original course-template design also included its own
   standalone dark footer (footer{}, .footer-grid, .footer-brand, etc.)
   and used .footer-contact / .footer-bottom — class names that COLLIDE
   with the real site's shared footer.ejs partial. That footer design
   is unused (every page renders the real footer.ejs instead) and has
   been dropped entirely rather than scoped, since keeping it around
   even scoped serves no purpose and risks future confusion. */

/* WHATSAPP FLOAT — shared site-wide via footer.ejs, intentionally global */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; width: 52px; height: 52px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,.4); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { background: #1ebe57; text-decoration: none; }

@media (max-width: 640px) {
  .course-page .hero { padding: 40px 20px 36px; }
  .course-page .page-body { padding: 32px 20px; gap: 32px; }
}