:root {
    --primary: #1c0f2a;
    --primary-light: #471e52;
    --accent: #910ee9;
    --accent-dark: #0284c7;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --text: #334155;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.12);
    --radius: 16px;
    --header-bg: rgba(250, 217, 0, 0.95);
    --hero-grad: linear-gradient(145deg, #1f0f2a 0%, #521e5f 45%, #0c4a6e 100%);
    --footer-bg: #0f0031;
    --form-bg: #0f172a;
    --form-input-bg: rgba(255,255,255,0.08);
    --form-border: rgba(255,255,255,0.15);
    --map-border: #e2e8f0;
}

[data-theme="dark"] {
    --primary: #f1f5f9;
    --primary-light: #e2e8f0;
    --accent: #ffd900;
    --accent-dark: #050505;
    --text: #cbd5e1;
    --text-light: #94a3b8;
    --bg: #0f172a;
    --white: #1e293b;
    --border: #334155;
    --card-bg: #1e293b;
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(21, 6, 54, 0.95);
    --hero-grad: linear-gradient(145deg, #020617 0%, #0f172a 45%, #0c4a6e 100%);
    --footer-bg: #0f0031;
    --form-bg: #1e293b;
    --form-input-bg: rgba(255,255,255,0.06);
    --form-border: rgba(255,255,255,0.12);
    --map-border: #334155;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    transition: background 0.3s ease, color 0.3s ease;
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
    white-space: nowrap;
}
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), #0369a1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}
.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible { color: var(--accent); }
.nav-dropdown-toggle .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}
.nav-dropdown.open .nav-dropdown-toggle .fa-chevron-down { transform: rotate(180deg); }
.course-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    z-index: 1001;
    min-width: 260px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 0.45rem 0;
    list-style: none;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.nav-dropdown:hover .course-dropdown,
.nav-dropdown:focus-within .course-dropdown,
.nav-dropdown.open .course-dropdown { display: block; }
.course-dropdown a {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
}
.course-dropdown a:hover { background: var(--bg); }

.nav-cta {
    background: var(--whatsapp) !important;
    color: white !important;
    padding: 0.5rem 1.05rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-cta:hover { background: var(--whatsapp-dark) !important; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
    color: var(--primary);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    padding: 7rem 1.5rem 4rem;
    background: var(--hero-grad);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(14,165,233,0.25) 0%, transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.3rem;
}
.hero-badge i { color: #4ade80; }

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}
.hero h1 span {
    background: linear-gradient(90deg, #38bdf8, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.88;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-wa {
    background: var(--whatsapp);
    color: white;
}
.btn-wa:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37,211,102,0.4);
}
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}
.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}
.hero-stat strong {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    color: #4ade80;
}
.hero-stat span {
    font-size: 0.85rem;
    opacity: 0.75;
}

.hero-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 1.7rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.hero-card h3 {
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-card h3 i { color: var(--whatsapp); }

.quick-courses { list-style: none; }
.quick-courses li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.92rem;
}
.quick-courses li:last-child { border-bottom: none; }
.quick-courses a {
    color: #7dd3fc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.quick-courses a:hover { color: white; }

/* ========== SECTIONS ========== */
section { padding: 4.5rem 1.5rem; }
.container { max-width: 1180px; margin: 0 auto; }

.section-head {
    text-align: center;
    margin-bottom: 3rem;
}
.section-head .tag {
    display: inline-block;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
[data-theme="dark"] .section-head .tag {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
}
.section-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
}
.section-head p {
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.02rem;
}

/* ========== COURSES GRID ========== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.4rem;
}

.course-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.course-icon {
    width: 50px; height: 50px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}
.c1 { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.c2 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.c3 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.c4 { background: linear-gradient(135deg, #10b981, #059669); }
.c5 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.c6 { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.c7 { background: linear-gradient(135deg, #ec4899, #db2777); }
.c8 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.c9 { background: linear-gradient(135deg, #f97316, #ea580c); }

.course-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.45rem;
}
.course-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    flex-grow: 1;
    margin-bottom: 1.1rem;
}
.course-card .actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}
.course-card .view-btn {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
}
.course-card .view-btn:hover { text-decoration: underline; }
.course-card .enquire {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--whatsapp);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
}
.course-card .enquire:hover { color: var(--whatsapp-dark); }

/* ========== WHY US ========== */
.why { background: var(--white); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}
.why-card {
    text-align: center;
    padding: 1.8rem 1.3rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.25s;
}
.why-card:hover {
    border-color: var(--accent);
    background: var(--card-bg);
    box-shadow: var(--shadow);
}
.why-card i {
    font-size: 1.9rem;
    color: var(--accent);
    margin-bottom: 0.9rem;
}
.why-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
    color: var(--primary);
}
.why-card p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.1rem;
    letter-spacing: -0.02em;
}
.about-text p {
    color: var(--text-light);
    margin-bottom: 0.9rem;
    font-size: 1rem;
}
.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.6rem;
}
.ah-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}
.ah-item i { color: var(--accent); margin-top: 0.15rem; }
.ah-item strong {
    display: block;
    font-size: 0.92rem;
    color: var(--primary);
}
.ah-item span {
    font-size: 0.82rem;
    color: var(--text-light);
}

.about-visual {
    background: linear-gradient(135deg, #0f172a, #0c4a6e);
    border-radius: 24px;
    height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}
.about-visual i { font-size: 3.8rem; margin-bottom: 0.9rem; opacity: 0.9; }
.about-visual .av-text { font-size: 1.25rem; font-weight: 700; }
.about-visual .av-sub { font-size: 0.88rem; opacity: 0.7; margin-top: 0.25rem; }

/* ========== TESTIMONIALS ========== */
.testimonials { background: var(--bg); }
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.4rem;
}
.testi-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.6rem;
    border: 1px solid var(--border);
}
.testi-card .stars { color: #fbbf24; margin-bottom: 0.7rem; font-size: 0.88rem; }
.testi-card p {
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 1.1rem;
    font-style: italic;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testi-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #0369a1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.testi-author strong {
    display: block;
    font-size: 0.92rem;
    color: var(--primary);
}
.testi-author span {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ========== CONTACT ========== */
.contact { background: var(--white); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.8rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.7rem;
}
.contact-info > p {
    color: var(--text-light);
    margin-bottom: 1.8rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}
.info-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.95rem;
    background: var(--bg);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.info-item:hover {
    border-color: var(--accent);
    background: var(--card-bg);
}
.info-item i {
    width: 42px; height: 42px;
    background: var(--card-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.info-item strong {
    display: block;
    font-size: 0.92rem;
    color: var(--primary);
}
.info-item span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.branches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}
.branch {
    background: var(--bg);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}
.branch strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.branch span { color: var(--text-light); }
.branch-directory-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.branch-directory-link:hover { text-decoration: underline; }

.branch-directory {
    min-height: calc(100vh - 100px);
    padding: 8rem 1.5rem 4rem;
}
.branch-directory .section-head { margin-bottom: 2rem; }
.branch-directory-note {
    margin: 0.75rem auto 0;
    color: var(--text-light);
    font-size: 0.88rem;
}
.branch-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.branch-directory-card {
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.branch-directory-details { padding: 1.25rem; }
.branch-directory-details h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.branch-label {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--footer-bg);
    font-size: 0.65rem;
    font-weight: 700;
    vertical-align: middle;
}
.branch-directory-details p {
    min-height: 2.8em;
    color: var(--text-light);
    font-size: 0.9rem;
}
.branch-directory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
.branch-directory-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    background: var(--bg);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}
.branch-directory-actions a:hover { color: var(--accent); }
.branch-directory-actions .branch-whatsapp {
    background: var(--whatsapp);
    color: white;
}
.branch-directory-actions .branch-whatsapp:hover {
    background: var(--whatsapp-dark);
    color: white;
}
.branch-directory-card .map-container {
    height: 260px;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--map-border);
    border-radius: 0;
}

/* Map */
.map-container {
    margin-top: 1.8rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--map-border);
    height: 280px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Form */
.enquiry-form {
    background: var(--form-bg);
    color: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15,23,42,0.25);
}
.enquiry-form h3 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}
.enquiry-form .form-sub {
    font-size: 0.88rem;
    opacity: 0.75;
    margin-bottom: 1.4rem;
}

.form-group { margin-bottom: 0.95rem; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 2px solid var(--form-border);
    border-radius: 12px;
    background: var(--form-input-bg);
    color: white;
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group select option {
    background: #0f172a;
    color: white;
}
.form-group textarea {
    min-height: 95px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    margin-top: 0.4rem;
    background: var(--whatsapp);
    color: white;
    border: none;
    padding: 0.95rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: all 0.25s;
}
.form-submit:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

/* ========== FOOTER ========== */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 3.2rem 1.5rem 1.4rem;
}
.footer-grid {
    max-width: 1180px;
    margin: 0 auto 2.2rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.2rem;
}
.footer-brand .logo {
    color: white;
    margin-bottom: 0.9rem;
}
.footer-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
    max-width: 270px;
    margin-bottom: 1.1rem;
}
.footer-social {
    display: flex;
    gap: 0.6rem;
}
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}
.footer-social a:hover { background: var(--whatsapp); }

.footer-col h4 {
    font-size: 0.92rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
    display: block;
    padding: 0.28rem 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.55;
}

/* ========== FLOATING WHATSAPP ========== */
.wa-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.wa-tooltip {
    background: var(--card-bg);
    color: var(--primary);
    padding: 0.55rem 0.95rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid var(--border);
}
.wa-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateY(0);
}
.wa-btn {
    width: 60px; height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.85rem;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
    transition: all 0.3s;
    animation: wa-pulse 2.2s infinite;
}
.wa-btn:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.08);
    animation: none;
}
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ========== COURSE DETAIL PAGE ========== */
.course-hero {
    padding: 7.5rem 1.5rem 3.5rem;
    background: var(--hero-grad);
    color: white;
}
.course-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}
.breadcrumb {
    font-size: 0.88rem;
    opacity: 0.75;
    margin-bottom: 1.2rem;
}
.breadcrumb a {
    color: #7dd3fc;
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.course-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}
.course-hero .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.8rem;
}
.course-hero .meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.course-hero .actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.course-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

.course-main h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2rem 0 1rem;
}
.course-main h2:first-child { margin-top: 0; }
.course-main p {
    color: var(--text-light);
    margin-bottom: 1rem;
}
.course-main ul {
    margin: 0.8rem 0 1.2rem 1.2rem;
    color: var(--text-light);
}
.course-main li { margin-bottom: 0.4rem; }

.module-block {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.3rem 1.4rem;
    margin-bottom: 1rem;
}
.module-block h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.module-block h3 i { color: var(--accent); font-size: 0.95rem; }
.module-block ul {
    margin-left: 1.1rem;
    color: var(--text-light);
    font-size: 0.92rem;
}
.module-block li { margin-bottom: 0.3rem; }

.course-sidebar {
    position: sticky;
    top: 90px;
}
.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
}
.sidebar-card h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.sidebar-info-item {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.9rem;
}
.sidebar-info-item i {
    color: var(--accent);
    margin-top: 0.15rem;
    width: 18px;
}
.sidebar-info-item strong {
    display: block;
    color: var(--primary);
    font-size: 0.88rem;
}
.sidebar-info-item span {
    color: var(--text-light);
    font-size: 0.85rem;
}
.sidebar-wa {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.jobs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.job-tag {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
}
[data-theme="dark"] .job-tag {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
    .hero-inner,
    .about-grid,
    .contact-grid,
    .course-content {
        grid-template-columns: 1fr;
    }
    .hero-card { max-width: 420px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 1.2rem 1.5rem;
        gap: 0.7rem;
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        border-top: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-dropdown { width: 100%; }
    .nav-dropdown-toggle { align-self: center; }
    .course-dropdown {
        position: static;
        width: 100%;
        max-height: 50vh;
        margin-top: 0.4rem;
        padding: 0.35rem 0 0.35rem 0.5rem;
        border: 0;
        border-left: 2px solid var(--border);
        border-radius: 0;
        box-shadow: none;
    }
    .course-dropdown a { text-align: left; }
    .nav-dropdown:hover .course-dropdown,
    .nav-dropdown:focus-within .course-dropdown { display: none; }
    .nav-dropdown.open .course-dropdown { display: block; }
    .menu-btn { display: block; }
    .branches { grid-template-columns: 1fr; }
    .course-sidebar { position: static; }
}

@media (max-width: 560px) {
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-highlights { grid-template-columns: 1fr; }
    .branch-directory-grid { grid-template-columns: 1fr; }
}
