/* ========================================================
   SLW Institute of Music — Instrument Page Shared Styles
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
    --accent: #FF462E;
    --accent-glow: rgba(255, 70, 46, 0.35);
    --accent-soft: rgba(255, 70, 46, 0.1);
    --bg: #000000;
    --bg-surface: #0a0a0a;
    --bg-card: #111111;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.07);
    --border-light: rgba(255, 255, 255, 0.18);
    --max-width: 1280px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
    --bg: #ffffff;
    --bg-surface: #f4f4f5;
    --bg-card: #f1f5f9;
    --text: #18181b;
    --text-muted: #52525b;
    --border: rgba(0, 0, 0, 0.07);
    --border-light: rgba(0, 0, 0, 0.18);
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Container ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Typography ── */
h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 45px var(--accent-glow), 0 0 80px var(--accent-glow);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

.aos {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.aos.visible {
    opacity: 1;
    transform: translateY(0);
}

.aos-delay-1 {
    transition-delay: 0.1s;
}

.aos-delay-2 {
    transition-delay: 0.2s;
}

.aos-delay-3 {
    transition-delay: 0.3s;
}

.aos-delay-4 {
    transition-delay: 0.4s;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 9999;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .nav-btn {
    background: rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
}

.logo-img {
    max-height: 42px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: center; /* Ensure items are vertically centered */
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Menu overrides for instrument pages */
.nav-item.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.dropdown-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.nav-item.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevent clicks when hidden */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: #0f0f0f;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto; /* Re-enable clicks */
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #a1a1aa;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.dropdown-menu .drop-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.dropdown-menu a:hover .drop-icon {
    opacity: 1;
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    z-index: 101;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-wa {
    background: transparent;
    color: #25d366;
    border: 1.5px solid rgba(37, 211, 102, 0.45);
}

.btn-wa:hover {
    background: rgba(37, 211, 102, 0.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
    transform: scale(1.04);
}

.btn-sm {
    padding: 0.45rem 1.1rem;
    font-size: 0.8rem;
}

/* ── Section spacing ── */
section {
    padding: 6rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.center {
    text-align: center;
}

.section-header.center p {
    max-width: 600px;
    margin: 0.75rem auto 0;
}

.accent {
    color: var(--accent);
}

/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */
.hero-instrument {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    overflow: hidden;
}

.hero-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: saturate(1.2);
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-instrument:hover .hero-bg-wrap img {
    transform: scale(1.0);
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.45) 40%,
            rgba(0, 0, 0, 0.85) 80%,
            #000 100%);
}

.hero-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    margin-bottom: 1.25rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: #d4d4d8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-glow 2s infinite;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   ABOUT INSTRUMENT
═══════════════════════════════════════ */
.about-instrument {
    background: var(--bg-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.about-img-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-img-wrap:hover img {
    transform: scale(1.04);
}

.about-img-glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: inset 0 0 0 2px var(--border-light), 0 0 60px var(--accent-glow);
    pointer-events: none;
}

.about-text h2 {
    margin-bottom: 1.25rem;
}

.about-text p {
    margin-bottom: 1.25rem;
}

.highlight-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.highlight-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text);
}

.highlight-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ═══════════════════════════════════════
   WHY LEARN
═══════════════════════════════════════ */
.why-learn {
    background: var(--bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.why-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.why-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.why-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

/* ═══════════════════════════════════════
   WHAT YOU LEARN
═══════════════════════════════════════ */
.what-learn {
    background: var(--bg-surface);
}

.learn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.learn-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.learn-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.learn-item:hover {
    border-color: var(--accent);
    transform: translateX(6px);
}

.learn-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.5;
    min-width: 2rem;
    line-height: 1;
}

.learn-item-text h4 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.learn-item-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.learn-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.learn-visual img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 24px;
}

/* Portrait card variant */
.learn-visual-portrait {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    max-width: 380px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px var(--accent-glow);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.learn-visual-portrait:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 80px var(--accent-glow);
}

.learn-visual-portrait img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.6s ease;
}

.learn-visual-portrait:hover img {
    transform: scale(1.04);
}

.learn-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.learn-badge-stat {
    text-align: center;
}

.learn-badge-stat strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.learn-badge-stat span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   WHO IS IT FOR
═══════════════════════════════════════ */
.who-for {
    background: var(--bg);
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.who-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s var(--ease);
}

.who-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
}

.who-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.who-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════
   LEARNING PATH
═══════════════════════════════════════ */
.learning-path {
    background: var(--bg-surface);
}

.path-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.path-timeline::before {
    content: '';
    position: absolute;
    left: 2.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(255, 255, 255, 0.06));
}

.path-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    transition: all 0.3s ease;
}

.path-step:hover .path-step-content {
    transform: translateX(6px);
}

.path-dot {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px var(--accent-glow);
    margin-left: 0.55rem;
}

.path-step-content {
    padding-top: 0.5rem;
    transition: transform 0.3s ease;
}

.path-step-content .path-month {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.path-step-content h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

/* ═══════════════════════════════════════
   TEACHERS SECTION
═══════════════════════════════════════ */
.teachers-section {
    background: var(--bg);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.teacher-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.teacher-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.teacher-photo {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.teacher-card:hover .teacher-photo img {
    transform: scale(1.07);
}

.teacher-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.teacher-card:hover .teacher-photo-overlay {
    opacity: 1;
}

.teacher-info-box {
    padding: 1.5rem;
    text-align: center;
}

.teacher-info-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.teacher-role {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.75rem;
}

.teacher-info-box p {
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════
   PERFORMANCES
═══════════════════════════════════════ */
.performances {
    background: var(--bg-surface);
}

.perf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.perf-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    transition: all 0.4s var(--ease);
    border: 1px solid var(--border);
}

.perf-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.perf-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.perf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.perf-card:hover .perf-thumb img {
    transform: scale(1.06);
}

.perf-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.perf-card:hover .perf-play {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 25px var(--accent-glow);
}

.perf-info {
    padding: 1.25rem 1.5rem;
}

.perf-info h4 {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.perf-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
.faq-section {
    background: var(--bg);
}

.faq-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    gap: 1rem;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question h3 {
    font-size: 1.05rem;
    font-weight: 600;
    flex: 1;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: var(--accent);
}

.faq-item.open .faq-icon {
    background: var(--accent);
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0;
}

.faq-answer p {
    padding-bottom: 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

/* ═══════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */
.cta-section {
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   LOCAL SEO SECTION
═══════════════════════════════════════ */
.local-seo {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.local-seo-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.local-seo-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

.local-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.local-tag {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    background: var(--accent-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.local-map-box {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 280px;
}

.local-map-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ═══════════════════════════════════════
   INSTRUMENT FOOTER
═══════════════════════════════════════ */
.page-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 280px;
    font-size: 0.9rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.social-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-logo {
    max-height: 36px;
    width: auto;
    margin-bottom: 1rem;
}

/* WhatsApp FAB */
.wa-fab {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.wa-fab:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ═══════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .about-grid,
    .learn-grid,
    .local-seo-inner {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9998;
        transition: right 0.4s var(--ease);
        gap: 2rem;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Light Theme Body Adjustment */
    body {
        transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
    }
    
    .theme-transitioning * {
        transition: all 0.4s var(--ease) !important;
    }
    
    .nav-container .logo {
        flex-shrink: 0;
    }

    /* Center the enroll button and theme toggle group on mobile subpages */
    .nav-right > div:first-child {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex !important;
        align-items: center;
        gap: 0.5rem !important;
    }

    /* Ensure the mobile subpage Enroll button looks proper in the group */
    .nav-right .btn {
        display: inline-flex;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .mobile-menu-btn {
        margin-left: auto;
    }
    
    /* Reset dropdown for mobile menu */
    .nav-item.dropdown .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1 !important;
        visibility: visible;
        pointer-events: auto;
        background-color: transparent !important;
        border: none;
        box-shadow: none;
        min-width: auto;
        padding: 0;
        margin-top: 10px;
        align-items: center;
        width: 100%;
    }
    
    .nav-item.dropdown .dropdown-menu::before {
        display: none;
    }
    
    .nav-item.dropdown {
        flex-direction: column;
        align-items: center;
        pointer-events: auto;
    }
    
    .nav-item.dropdown .dropdown-icon {
        display: none; /* Hide the chevron arrow on mobile for a cleaner look */
    }

    .about-grid,
    .learn-grid,
    .local-seo-inner {
        grid-template-columns: 1fr;
    }

    .about-img-wrap img,
    .learn-visual img {
        height: 320px;
    }

    .hero-stats {
        gap: 1.5rem;
        padding: 1.25rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .teachers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .perf-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .teachers-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .who-grid {
        grid-template-columns: 1fr 1fr;
    }
}