/* =====================================================================
   MLJ NET — Futuristic Dark ISP Theme
   PT MEDIA LINTAS JARINGAN — WE HAVE FULL CONNECTIONS
   ===================================================================== */

:root {
    --bg-primary:    #060912;
    --bg-secondary:  #0A0E1A;
    --bg-tertiary:   #111726;
    --bg-card:       #141A2E;
    --bg-elevated:   #1B2340;
    --bg-input:      #0E1424;
    --border:        #1F2942;
    --border-light:  #2A3458;
    --border-strong: #3B4676;

    --text-primary:   #FFFFFF;
    --text-secondary: #B8C2DC;
    --text-muted:     #6E7891;
    --text-dim:       #4A5470;

    --brand-cyan:    #00E5FF;
    --brand-purple:  #7C4DFF;
    --brand-green:   #00FF94;
    --brand-orange:  #FF6B35;
    --brand-yellow:  #FFD700;
    --brand-red:     #FF4757;

    --grad-primary: linear-gradient(135deg, #00E5FF 0%, #7C4DFF 100%);
    --grad-secondary: linear-gradient(135deg, #7C4DFF 0%, #FF6B35 100%);
    --grad-success: linear-gradient(135deg, #00FF94 0%, #00E5FF 100%);
    --grad-bg: radial-gradient(ellipse at top left, rgba(124, 77, 255, 0.08), transparent 50%),
               radial-gradient(ellipse at bottom right, rgba(0, 229, 255, 0.06), transparent 50%),
               #060912;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.3);
    --shadow-glow-purple: 0 0 40px rgba(124, 77, 255, 0.4);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    --container-max: 1280px;
    --header-h: 70px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--grad-bg);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: gridShift 30s linear infinite;
}
@keyframes gridShift { to { background-position: 60px 60px; } }

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-purple); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ===================== LAYOUT ===================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }

.section { padding: 100px 0; position: relative; z-index: 1; }
.section-sm { padding: 60px 0; position: relative; z-index: 1; }
@media (max-width: 768px) { .section { padding: 60px 0; } }

.section-header { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--brand-cyan);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.section-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #B8C2DC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--grad-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.5);
    color: #FFFFFF;
}
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-light);
}
.btn-ghost:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--brand-cyan);
}
.btn-outline {
    background: transparent;
    color: var(--brand-cyan);
    border-color: var(--brand-cyan);
}
.btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--brand-cyan);
}
.btn-wa {
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.btn-wa:hover { background: #1da851; color: #FFFFFF; transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; aspect-ratio: 1; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===================== HEADER ===================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(6, 9, 18, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}
.site-header.scrolled {
    background: rgba(6, 9, 18, 0.95);
    box-shadow: var(--shadow-md);
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}
.logo-mark {
    width: 36px; height: 36px;
    background: var(--grad-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 900;
    font-size: 16px;
    box-shadow: var(--shadow-glow);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .brand-sub {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--brand-cyan);
    background: rgba(0, 229, 255, 0.05);
}
.nav-dropdown { position: relative; }
.nav-dropdown-toggle::after {
    content: '▾';
    margin-left: 6px;
    font-size: 10px;
    opacity: 0.6;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%; left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    margin-top: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: var(--radius-sm);
}
.nav-dropdown-menu a:hover { background: var(--bg-elevated); color: var(--brand-cyan); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; padding: 8px; }

@media (max-width: 1024px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: rgba(6, 9, 18, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .main-nav.open .nav-link,
    .main-nav.open .nav-dropdown { width: 100%; }
}

/* ===================== HERO ===================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.2), transparent 70%);
    top: -200px; right: -100px;
    border-radius: 50%;
    filter: blur(60px);
    animation: floatA 12s ease-in-out infinite;
}
.hero-bg::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.18), transparent 70%);
    bottom: -100px; left: -100px;
    border-radius: 50%;
    filter: blur(60px);
    animation: floatB 14s ease-in-out infinite;
}
@keyframes floatA { 50% { transform: translate(-30px, 30px); } }
@keyframes floatB { 50% { transform: translate(30px, -30px); } }

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}
@media (max-width: 1024px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: var(--radius-full);
    color: var(--brand-cyan);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}
.hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--brand-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-green);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.hero-title {
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.hero-title .grad {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.hero-slogan {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat .num {
    font-size: 32px;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat .label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.hero-visual {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-globe {
    width: 100%; height: 100%;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.2), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(124, 77, 255, 0.2), transparent 50%),
                var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}
.hero-globe::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: spin 60s linear infinite;
}
.hero-globe::after {
    content: '';
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.3);
    animation: spin 30s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-orbit {
    position: absolute;
    top: 50%; left: 50%;
    width: 80%; height: 80%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(124, 77, 255, 0.3);
    border-radius: 50%;
    animation: spin 40s linear infinite;
}
.hero-orbit::before {
    content: '';
    position: absolute;
    top: -6px; left: 50%;
    width: 12px; height: 12px;
    background: var(--brand-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--brand-cyan);
}

/* ===================== CARDS ===================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.card-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-primary);
    opacity: 0;
    transition: var(--transition);
}
.card-glow:hover::before { opacity: 1; }

.icon-badge {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(124, 77, 255, 0.15));
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-cyan);
    margin-bottom: 20px;
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge.purple { color: var(--brand-purple); border-color: rgba(124, 77, 255, 0.3); }
.icon-badge.green { color: var(--brand-green); border-color: rgba(0, 255, 148, 0.3); }
.icon-badge.orange { color: var(--brand-orange); border-color: rgba(255, 107, 53, 0.3); }

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.card-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ===================== GRID ===================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===================== PACKAGES ===================== */
.pkg-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pkg-card:hover { border-color: var(--brand-cyan); transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.pkg-card.featured { border-color: var(--brand-cyan); }
.pkg-card.featured::before {
    content: 'POPULER';
    position: absolute;
    top: 20px; right: -32px;
    background: var(--grad-primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 36px;
    transform: rotate(45deg);
    box-shadow: var(--shadow-sm);
}
.pkg-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.pkg-speed {
    font-size: 14px;
    color: var(--brand-cyan);
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.pkg-speed .num { font-size: 36px; font-weight: 800; }
.pkg-speed .unit { font-size: 14px; color: var(--text-muted); }
.pkg-price {
    margin: 16px 0 8px;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}
.pkg-price .per { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.pkg-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; min-height: 42px; }
.pkg-features { list-style: none; margin: 0 0 24px; flex-grow: 1; }
.pkg-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 14px;
}
.pkg-features li::before {
    content: '✓';
    color: var(--brand-green);
    font-weight: 700;
    flex-shrink: 0;
}

.pkg-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px;
    margin: 0 auto 40px;
    width: fit-content;
    flex-wrap: wrap;
}
.pkg-tab {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: transparent;
}
.pkg-tab.active {
    background: var(--grad-primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}
.pkg-tab:hover:not(.active) { color: var(--brand-cyan); }

/* ===================== TESTIMONIALS ===================== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--border-strong); }
.testimonial-stars { color: var(--brand-yellow); margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { color: var(--text-secondary); font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
}
.testimonial-author-info .name { font-weight: 600; font-size: 14px; }
.testimonial-author-info .role { font-size: 12px; color: var(--text-muted); }

/* ===================== BLOG ===================== */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover { border-color: var(--brand-cyan); transform: translateY(-4px); }
.blog-thumb {
    aspect-ratio: 16/9;
    background: var(--grad-primary);
    position: relative;
    overflow: hidden;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 24px; }
.blog-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.blog-card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card-title a { color: var(--text-primary); }
.blog-card-title a:hover { color: var(--brand-cyan); }
.blog-excerpt { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ===================== LEARNING ===================== */
.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.course-card:hover { border-color: var(--brand-cyan); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.course-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.2), rgba(0, 229, 255, 0.2));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.course-thumb svg { width: 48px; height: 48px; opacity: 0.5; }
.course-level {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border-light);
}
.course-level.beginner { color: var(--brand-green); }
.course-level.intermediate { color: var(--brand-yellow); }
.course-level.advanced { color: var(--brand-orange); }
.course-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.course-cat {
    font-size: 11px;
    color: var(--brand-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.course-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.course-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.6; margin-bottom: 16px; flex-grow: 1; }
.course-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.course-meta .rating { color: var(--brand-yellow); }

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.form-label .req { color: var(--brand-red); }
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 120px; font-family: inherit; }
select.form-control {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236E7891'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    appearance: none;
    padding-right: 40px;
}
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--brand-red); margin-top: 6px; }
.input-group { display: flex; gap: 8px; }
.input-group .form-control { flex: 1; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ===================== FOOTER ===================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { margin-bottom: 20px; }
.footer-about { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.footer-social a:hover { background: var(--brand-cyan); color: var(--bg-primary); border-color: var(--brand-cyan); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-secondary); font-size: 14px; }
.footer-col ul a:hover { color: var(--brand-cyan); padding-left: 4px; }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}
.footer-contact-item svg { width: 18px; height: 18px; color: var(--brand-cyan); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--brand-cyan); }

/* ===================== WHATSAPP FAB ===================== */
.wa-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: var(--transition);
    animation: waPulse 2s infinite;
}
.wa-fab:hover { transform: scale(1.1); color: #FFFFFF; }
.wa-fab svg { width: 32px; height: 32px; }
@keyframes waPulse {
    0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-cyan); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--brand-cyan); }

/* ===================== PAGE HEADER ===================== */
.page-header {
    padding: calc(var(--header-h) + 80px) 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15), transparent 70%);
    top: -200px; right: -100px;
    border-radius: 50%;
    filter: blur(60px);
}
.page-header::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.12), transparent 70%);
    bottom: -100px; left: -50px;
    border-radius: 50%;
    filter: blur(60px);
}
.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--brand-cyan);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    position: relative;
}
.page-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #B8C2DC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}
.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}

/* ===================== ALERT ===================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid;
}
.alert-success { background: rgba(0, 255, 148, 0.08); border-color: rgba(0, 255, 148, 0.3); color: var(--brand-green); }
.alert-error { background: rgba(255, 71, 87, 0.08); border-color: rgba(255, 71, 87, 0.3); color: var(--brand-red); }
.alert-info { background: rgba(0, 229, 255, 0.08); border-color: rgba(0, 229, 255, 0.3); color: var(--brand-cyan); }
.alert-warning { background: rgba(255, 215, 0, 0.08); border-color: rgba(255, 215, 0, 0.3); color: var(--brand-yellow); }

/* ===================== BADGE ===================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-success { background: rgba(0, 255, 148, 0.12); color: var(--brand-green); }
.badge-warning { background: rgba(255, 215, 0, 0.12); color: var(--brand-yellow); }
.badge-danger { background: rgba(255, 71, 87, 0.12); color: var(--brand-red); }
.badge-info { background: rgba(0, 229, 255, 0.12); color: var(--brand-cyan); }
.badge-purple { background: rgba(124, 77, 255, 0.12); color: var(--brand-purple); }
.badge-muted { background: var(--bg-elevated); color: var(--text-muted); }

/* ===================== CTA ===================== */
.cta-band {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(124, 77, 255, 0.1));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.15), transparent 70%);
}
.cta-band > * { position: relative; }

/* ===================== STATS ===================== */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}
.stat-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(124, 77, 255, 0.15));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-cyan);
}
.stat-value {
    font-size: 36px;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================== FAQ ===================== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.active { border-color: var(--brand-cyan); }
.faq-q {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--text-primary);
    font-size: 16px;
}
.faq-q::after {
    content: '+';
    font-size: 24px;
    color: var(--brand-cyan);
    transition: var(--transition);
    flex-shrink: 0;
}
.faq-item.active .faq-q::after { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.faq-item.active .faq-a { max-height: 500px; padding: 0 24px 20px; }

/* ===================== UTILITY ===================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-cyan { color: var(--brand-cyan); }
.text-purple { color: var(--brand-purple); }
.text-green { color: var(--brand-green); }
.text-orange { color: var(--brand-orange); }
.text-red { color: var(--brand-red); }
.text-yellow { color: var(--brand-yellow); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-mono { font-family: var(--font-mono); }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 24px; }
.text-2xl { font-size: 32px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none; }
.grid-cols-2 { grid-template-columns: 1fr 1fr; }

/* ===================== ANIMATION ===================== */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.7s ease forwards; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===================== TABLE ===================== */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.table tbody tr:hover { background: var(--bg-elevated); }

/* ===================== PAGINATION ===================== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
}
.pagination a:hover { border-color: var(--brand-cyan); color: var(--brand-cyan); }
.pagination .active { background: var(--grad-primary); color: #FFFFFF; border-color: transparent; }

/* ===================== DIVIDER ===================== */
.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* ===================== EMPTY STATE ===================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 20px; opacity: 0.4; }

/* =====================================================================
   RESPONSIVE FIXES — Mobile-first refinements
   ===================================================================== */

/* ---- Large desktop (>1280px) ---- */
@media (min-width: 1281px) {
    .container { padding: 0 32px; }
    .section { padding: 120px 0; }
    .hero-title { font-size: clamp(40px, 6vw, 80px); }
    .grid-auto { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* ---- Tablet landscape (1024px - 1280px) ---- */
@media (max-width: 1280px) {
    .hero-inner { gap: 40px; }
    .hero-stats { gap: 28px; }
    .hero-stat .num { font-size: 28px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Tablet portrait (768px - 1024px) ---- */
@media (max-width: 1024px) {
    :root { --header-h: 64px; }

    .container { padding: 0 20px; }
    .section { padding: 70px 0; }

    /* Hero becomes stacked */
    .hero { padding-top: calc(var(--header-h) + 20px); }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-content { order: 2; }
    .hero-visual { order: 1; max-width: 320px; margin: 0 auto; aspect-ratio: 1; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; gap: 24px; }
    .hero-desc { margin-left: auto; margin-right: auto; }

    /* Grid adjustments */
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }

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

/* ---- Mobile (480px - 768px) ---- */
@media (max-width: 768px) {
    :root {
        --header-h: 60px;
        --radius-lg: 12px;
        --radius-xl: 16px;
    }

    body { font-size: 15px; }

    .container { padding: 0 16px; }
    .section { padding: 56px 0; }
    .section-sm { padding: 40px 0; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: clamp(24px, 5vw, 32px); }
    .section-subtitle { font-size: 15px; }

    /* Header */
    .logo { font-size: 18px; gap: 8px; }
    .logo-mark { width: 32px; height: 32px; font-size: 14px; }
    .logo-text .brand-sub { font-size: 8px; letter-spacing: 1.5px; }
    .header-actions { gap: 8px; }
    .header-actions .btn { padding: 8px 14px; font-size: 13px; }

    /* Hero */
    .hero-title { font-size: clamp(32px, 8vw, 48px); }
    .hero-slogan { font-size: 14px; letter-spacing: 1.5px; }
    .hero-desc { font-size: 15px; margin-bottom: 24px; }
    .hero-actions { flex-direction: column; gap: 10px; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: space-around; }
    .hero-stat { flex: 0 0 calc(50% - 10px); text-align: center; }
    .hero-stat .num { font-size: 24px; }
    .hero-stat .label { font-size: 11px; }
    .hero-visual { max-width: 240px; }

    /* Page header */
    .page-header { padding: calc(var(--header-h) + 40px) 0 32px; }
    .page-title { font-size: clamp(26px, 7vw, 36px); }
    .page-subtitle { font-size: 15px; }

    /* Buttons */
    .btn { padding: 12px 20px; font-size: 14px; }
    .btn-lg { padding: 14px 24px; font-size: 15px; }
    .btn-sm { padding: 8px 14px; font-size: 12px; }

    /* Cards */
    .card { padding: 20px; }
    .card-title { font-size: 18px; }

    /* Package cards */
    .pkg-card { padding: 24px 20px; }
    .pkg-tabs { width: 100%; justify-content: center; }
    .pkg-tab { padding: 8px 14px; font-size: 13px; }

    /* Grids */
    .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; gap: 16px; }

    /* Stats */
    .stat-card { padding: 20px; }
    .stat-value { font-size: 28px; }

    /* FAQ */
    .faq-q { padding: 16px 20px; font-size: 15px; }
    .faq-a { padding: 0 20px; }

    /* Testimonials */
    .testimonial-card { padding: 20px; }
    .testimonial-text { font-size: 14px; }

    /* Blog */
    .blog-body { padding: 20px; }
    .blog-card-title { font-size: 16px; }

    /* Courses */
    .course-body { padding: 16px; }
    .course-title { font-size: 15px; }

    /* CTA band */
    .cta-band { padding: 40px 24px; }
    .cta-band .section-title { font-size: 24px; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .site-footer { padding: 56px 0 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand .logo { justify-content: center; margin-bottom: 16px; }
    .footer-about { text-align: center; }
    .footer-social { justify-content: center; }
    .footer-col { text-align: center; }
    .footer-col ul li a { display: block; padding: 6px; }
    .footer-contact-item { justify-content: center; text-align: left; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; }

    /* WhatsApp FAB */
    .wa-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
    .wa-fab svg { width: 28px; height: 28px; }

    /* Section divider */
    .divider { margin: 32px 0; }

    /* Pagination */
    .pagination { flex-wrap: wrap; gap: 4px; }
    .pagination a, .pagination span { padding: 6px 10px; font-size: 13px; }

    /* Tables: horizontal scroll */
    .table { font-size: 13px; }
    .table th, .table td { padding: 8px 12px; }
}

/* ---- Small mobile (<480px) ---- */
@media (max-width: 480px) {
    body { font-size: 14px; }

    .container { padding: 0 12px; }
    .section { padding: 40px 0; }

    /* Header — hide slogan text on tiny screens */
    .logo-text .brand-sub { display: none; }
    .logo-text > span:first-child { font-size: 18px; }

    /* Hero */
    .hero { padding-top: calc(var(--header-h) + 16px); min-height: auto; }
    .hero-title { font-size: clamp(28px, 9vw, 36px); line-height: 1.1; }
    .hero-desc { font-size: 14px; }
    .hero-stat { flex: 0 0 100%; }
    .hero-stat .num { font-size: 22px; }
    .hero-badge { font-size: 10px; padding: 5px 12px; }

    /* Buttons — make lg more compact */
    .btn-lg { padding: 12px 20px; font-size: 14px; width: 100%; }
    .btn-block { width: 100%; }

    /* Cards */
    .card { padding: 16px; border-radius: var(--radius-md); }
    .card-title { font-size: 16px; }
    .icon-badge { width: 48px; height: 48px; }

    /* Package cards — compact */
    .pkg-card { padding: 20px 16px; }
    .pkg-speed .num { font-size: 30px; }
    .pkg-price { font-size: 26px; }
    .pkg-features li { font-size: 13px; }

    /* Stats */
    .stat-card { padding: 16px; }
    .stat-value { font-size: 24px; }

    /* Section eyebrow */
    .section-eyebrow { font-size: 11px; padding: 5px 10px; }

    /* Page header */
    .page-header { padding: calc(var(--header-h) + 24px) 0 24px; }
    .page-title { font-size: 24px; }
    .page-subtitle { font-size: 14px; }

    /* Forms */
    .form-control { padding: 10px 12px; font-size: 14px; }
    .form-label { font-size: 13px; }

    /* Footer */
    .site-footer { padding: 40px 0 20px; }

    /* Blog/Course cards */
    .blog-thumb, .course-thumb { aspect-ratio: 16/10; }
    .blog-body, .course-body { padding: 14px; }
    .blog-card-title, .course-title { font-size: 15px; }

    /* Testimonials */
    .testimonial-card { padding: 16px; }
    .testimonial-stars { font-size: 14px; }
    .testimonial-avatar { width: 36px; height: 36px; }

    /* CTA */
    .cta-band { padding: 32px 16px; }
    .cta-band .section-title { font-size: 20px; }

    /* FAQ */
    .faq-q { padding: 14px 16px; font-size: 14px; }
    .faq-q::after { font-size: 20px; }

    /* WhatsApp FAB — slightly smaller */
    .wa-fab { width: 48px; height: 48px; bottom: 12px; right: 12px; }
    .wa-fab svg { width: 26px; height: 26px; }
}

/* ---- Extra small mobile (<360px) ---- */
@media (max-width: 360px) {
    .container { padding: 0 10px; }
    .logo-text > span:first-child { font-size: 16px; }
    .hero-title { font-size: 26px; }
    .hero-stat .num { font-size: 20px; }
    .hero-stat .label { font-size: 10px; }
}

/* ---- Reduced motion accessibility ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    body::before { animation: none !important; }
    .hero-globe::before, .hero-orbit, .wa-fab { animation: none !important; }
}

/* ---- Print styles ---- */
@media print {
    .site-header, .wa-fab, .footer-social, .hero-bg, .hero-orbit { display: none !important; }
    body { background: white !important; color: black !important; }
    .card, .pkg-card { border: 1px solid #ccc !important; box-shadow: none !important; }
}

/* ---- Captcha widget alignment (cross-provider) ---- */
.cf-turnstile, .g-recaptcha {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 4px;
}
@media (max-width: 480px) {
    .cf-turnstile, .g-recaptcha {
        transform: scale(0.92);
        transform-origin: left top;
        margin-bottom: -8px;
    }
}

/* ---- Form validation states ---- */
.form-control.is-invalid {
    border-color: var(--brand-red) !important;
    background: rgba(255, 71, 87, 0.05);
}
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}
.form-msg { margin-bottom: 16px; }

/* ---- Mobile menu drawer animation ---- */
@media (max-width: 1024px) {
    .main-nav.open {
        animation: slideDown 0.25s ease;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-elevated);
        margin-top: 4px;
        padding: 4px;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    .nav-dropdown-menu { display: none; }
    .nav-dropdown-toggle::after { display: inline-block; }
}

/* ---- Touch device adjustments ---- */
@media (hover: none) {
    .card:hover, .pkg-card:hover, .blog-card:hover, .course-card:hover {
        transform: none;
    }
    .btn:hover { transform: none; }
}

/* ---- High-DPI / Retina display polish ---- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-mark, .icon-badge, .stat-box-icon { box-shadow: var(--shadow-sm); }
}

/* ---- Scrollbar styling for desktop ---- */
@media (min-width: 1025px) {
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: var(--bg-secondary); }
    ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--brand-cyan); }
}

/* =====================================================================
   AD CONTAINERS (Google AdSense) — styling & compliance
   ===================================================================== */

.ad-container {
    margin: 24px auto;
    padding: 0;
    background: transparent;
    position: relative;
    min-height: 90px;
    text-align: center;
    overflow: hidden;
    border-radius: var(--radius-md);
}
.ad-container .ad-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-align: left;
    padding-left: 4px;
    opacity: 0.7;
}
.ad-container .ad-content {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px;
    overflow: hidden;
}
.ad-container .ad-content:empty::before {
    content: 'Ad space';
    color: var(--text-dim);
    font-size: 12px;
}
.ad-container ins.adsbygoogle {
    width: 100%;
    max-width: 100%;
}
.ad-container iframe { max-width: 100%; border: 0; }

/* Ad position variants */
.ad-position-home_top, .ad-position-home_middle, .ad-position-home_bottom {
    max-width: var(--container-max);
}
.ad-position-sidebar {
    min-height: 250px;
    position: sticky;
    top: 90px;
}
.ad-position-blog_feed {
    margin: 16px 0;
    min-height: 120px;
}
.ad-position-blog_top, .ad-position-blog_bottom, .ad-position-blog_in_article {
    margin: 24px 0;
}
.ad-position-blog_in_article {
    background: var(--bg-elevated);
    padding: 0;
}
.ad-position-blog_in_article .ad-content {
    border: 1px dashed var(--border-light);
}

/* Mobile adjustments for ads */
@media (max-width: 768px) {
    .ad-container { margin: 16px auto; min-height: 100px; }
    .ad-container .ad-content { padding: 8px; }
    .ad-position-sidebar { position: static; min-height: auto; }
}

@media (max-width: 480px) {
    .ad-container { margin: 12px auto; }
    .ad-container .ad-content { min-height: 80px; padding: 6px; }
    /* Scale down AdSense on mobile to prevent layout breakage */
    .ad-container ins.adsbygoogle {
        max-height: 100px;
        overflow: hidden;
    }
}

/* =====================================================================
   COOKIE CONSENT BANNER (GDPR / AdSense compliance)
   ===================================================================== */

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}
.cookie-consent-bottom {
    bottom: 16px;
    left: 16px;
    right: 16px;
    border-radius: var(--radius-md);
    max-width: 720px;
    margin: 0 auto;
}
.cookie-consent-top {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}
.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    flex-wrap: wrap;
}
.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}
.cookie-consent-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.cookie-consent-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.cookie-consent-text a {
    color: var(--brand-cyan);
    text-decoration: underline;
}
.cookie-consent-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    .cookie-consent-text p { font-size: 12px; }
    .cookie-consent-actions {
        justify-content: stretch;
    }
    .cookie-consent-actions .btn {
        flex: 1;
    }
    .cookie-consent-bottom {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
}

/* Adjust WA FAB position when cookie banner is visible */
@media (max-width: 600px) {
    body:has(.cookie-consent[style*="block"]) .wa-fab {
        bottom: 120px;
    }
}
