/* -------------------------------------------------------------
   SOLFEGGIO MUSIC ACADEMY - DESIGN SYSTEM & STYLES
   ------------------------------------------------------------- */

/* Reset & Base Setup */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --color-yellow: #f5b300;
    --color-teal: #00a8b5;
    --color-grey: #5a605c;
    --color-green: #84cc16;
    --color-orange: #f97316;
    
    --color-dark: #222222;
    --color-topbar: #333333;
    --color-border: #eaeaea;
    --color-text-light: #777777;
    --color-text-dark: #222222;

    /* Fonts */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Layout */
    --header-height: 120px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-accordion: flex 0.6s cubic-bezier(0.25, 1, 0.45, 1), height 0.6s cubic-bezier(0.25, 1, 0.45, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: #ffffff;
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------------------------------------------
   1. TOP INFO BAR
   ------------------------------------------------------------- */
.top-bar {
    background-color: var(--color-topbar);
    color: #cccccc;
    padding: 8px 0;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 500;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
}

.top-bar.hidden {
    opacity: 0;
    pointer-events: none;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-link {
    color: #cccccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-icon {
    font-size: 10px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-link {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.top-link:hover {
    color: #ffffff;
}

.top-right .bold-link {
    font-weight: 700;
    color: #ffffff;
}

.divider {
    color: #555555;
    font-size: 10px;
    user-select: none;
}

/* -------------------------------------------------------------
   2. MAIN HEADER & NAVIGATION
   ------------------------------------------------------------- */
.main-header {
    background-color: #ffffff;
    height: var(--header-height);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.main-header.sticky {
    height: 90px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.main-header.sticky .logo-image {
    height: 84px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: inline-block;
}

.logo-image {
    height: 108px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    border-right: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.nav-item:first-child {
    border-left: 1px solid var(--color-border);
}

.nav-link {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-light);
    text-decoration: none;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-text-dark);
    background-color: #fafafa;
}

/* Active State Styles */
.nav-item.active .nav-link {
    color: var(--color-text-dark);
    font-weight: 600;
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background-color: var(--color-dark);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-dark);
    cursor: pointer;
    padding: 10px;
}

/* -------------------------------------------------------------
   3. HERO SHOWCASE SECTION
   ------------------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 650px;
    height: calc(100vh - var(--header-height) - 35px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b0b0b;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(20%) contrast(110%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.85) 90%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Accordion Component */
.accordion-wrapper {
    display: flex;
    width: 100%;
    height: 520px;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    background-color: #111;
}

.accordion-panel {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-accordion);
}

/* Background image inside panels */
.panel-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(125%) brightness(80%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.45, 1);
}

/* Overlay tint colors for each panel */
.panel-color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

/* Define panel-specific colors matching the design screenshot */
.panel-yellow .panel-color-overlay {
    background-color: #fca311; /* Vibrant Yellow-Orange */
}

.panel-teal .panel-color-overlay {
    background-color: #0096c7; /* Vibrant Cyan-Teal */
}

.panel-grey .panel-color-overlay {
    background-color: #555c57; /* Neutral Charcoal-Grey */
}

.panel-green .panel-color-overlay {
    background-color: #70b000; /* Rich Lime Green */
}

.panel-orange .panel-color-overlay {
    background-color: #f37254; /* Warm Coral Orange-Red */
}

/* Accordion States: Hover and Active */
.accordion-panel:hover,
.accordion-panel.active {
    flex: 2.2; /* Expands dynamically */
}

.accordion-panel:hover .panel-bg-image,
.accordion-panel.active .panel-bg-image {
    transform: scale(1.08); /* Premium micro-zoom */
}

.accordion-panel:hover .panel-color-overlay,
.accordion-panel.active .panel-color-overlay {
    opacity: 0.65; /* Less saturated, showing more photographic details */
}

/* -------------------------------------------------------------
   4. HERO FLOATING CONTENT BOX
   ------------------------------------------------------------- */
.hero-content-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    pointer-events: none; /* Make clicks pass through to the accordion panels behind */
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 35px;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
}

.btn-book-online {
    pointer-events: auto; /* Re-enable clicks for the CTA button */
    display: inline-block;
    padding: 14px 45px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-dark);
    background-color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-book-online:hover {
    background-color: var(--color-dark);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Animations Trigger */
.hero-title.animated {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-subtitle.animated {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

.hero-cta.animated {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------
   5. RESPONSIVE MEDIA QUERIES
   ------------------------------------------------------------- */

/* Tablet Viewports */
@media (max-width: 1024px) {
    :root {
        --header-height: 100px;
    }
    
    .logo-image {
        height: 90px;
    }
    
    .nav-link {
        padding: 0 15px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .accordion-wrapper {
        height: 450px;
    }
}

/* Mobile Viewports */
@media (max-width: 768px) {
    :root {
        --header-height: 80px;
    }
    
    .top-bar {
        font-size: 9px;
        letter-spacing: 0.8px;
        padding: 6px 0;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .logo-image {
        height: 72px;
    }
    
    /* Navigation Drawer for Mobile */
    .mobile-menu-toggle {
        display: block;
        z-index: 101;
    }
    
    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: column;
        background-color: #ffffff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-top: 1px solid var(--color-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        align-items: stretch;
    }
    
    .nav-menu.open {
        max-height: 400px;
    }
    
    .nav-item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        width: 100%;
        height: 55px;
    }
    
    .nav-item:first-child {
        border-left: none;
    }
    
    .nav-link {
        width: 100%;
        padding: 0 30px;
        font-size: 16px;
    }
    
    .nav-item.active .nav-link::after {
        left: 30px;
        right: auto;
        width: 40px;
        bottom: 12px;
        height: 2px;
    }
    
    /* Accordion collapses to a vertical list of layers on mobile */
    .accordion-wrapper {
        flex-direction: column;
        height: 500px;
        max-width: 100%;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    }
    
    .accordion-panel {
        width: 100%;
        height: 20%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .accordion-panel:last-child {
        border-bottom: none;
    }
    
    /* Expands panels vertically on mobile */
    .accordion-panel:hover,
    .accordion-panel.active {
        flex: 2.5;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .btn-book-online {
        padding: 12px 30px;
        font-size: 11px;
    }
}

/* -------------------------------------------------------------
   6. ABOUT SECTION
   ------------------------------------------------------------- */
:root {
    --color-gold: #db9e10;
    --color-gold-hover: #b88209;
    --color-bg-warm: #fdfaf4;
}

.about-section {
    background-color: var(--color-bg-warm);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.about-watermark {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 320px;
    font-weight: 300;
    color: #e5dfd4;
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    font-family: var(--font-serif);
}

.about-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.about-title {
    font-family: var(--font-serif);
    font-size: 54px;
    color: #3b3534;
    font-weight: 600;
    margin-bottom: 8px;
}

.about-subtitle {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image-wrapper {
    width: 100%;
    height: 480px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.04);
}

.about-card-col {
    position: relative;
}

.about-card {
    background-color: #ffffff;
    padding: 65px 50px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* L-shape Gold Accent on Top Right */
.card-accent {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 80px;
    height: 80px;
    pointer-events: none;
}

.card-accent::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-top: 4px solid var(--color-gold);
    border-right: 4px solid var(--color-gold);
}

.card-tagline {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 38px;
    color: #3b3534;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 22px;
}

.card-text {
    font-family: var(--font-sans);
    font-size: 14.5px;
    color: var(--color-text-light);
    line-height: 1.85;
    margin-bottom: 35px;
}

.btn-more-about {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    background-color: var(--color-gold);
    color: #222222;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 20px rgba(219, 158, 16, 0.25);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-more-about:hover {
    background-color: var(--color-dark);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------
   7. SCROLL REVEAL ANIMATIONS
   ------------------------------------------------------------- */
.reveal-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.45, 1), transform 0.9s cubic-bezier(0.25, 1, 0.45, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.45, 1), transform 0.9s cubic-bezier(0.25, 1, 0.45, 1);
}

.reveal-fade.reveal-active,
.reveal-left.reveal-active,
.reveal-right.reveal-active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsiveness for About Section */
@media (max-width: 1024px) {
    .about-section {
        padding: 90px 0;
    }
    
    .about-title {
        font-size: 44px;
    }
    
    .about-grid {
        gap: 40px;
    }
    
    .about-image-wrapper {
        height: 400px;
    }
    
    .about-card {
        padding: 45px 35px;
    }
    
    .card-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 70px 0;
    }
    
    .about-title {
        font-size: 36px;
    }
    
    .about-watermark {
        font-size: 200px;
        top: 30px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image-wrapper {
        height: 350px;
    }
    
    .about-card {
        padding: 40px 30px;
    }
    
    .card-accent {
        top: -8px;
        right: -8px;
        width: 60px;
        height: 60px;
    }
    
    .card-accent::after {
        border-top-width: 3px;
        border-right-width: 3px;
    }
}

/* -------------------------------------------------------------
   8. WHY CHOOSE US SECTION
   ------------------------------------------------------------- */
.why-section {
    background-color: #ffffff;
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.why-header {
    text-align: center;
    margin-bottom: 70px;
}

.why-title {
    font-family: var(--font-sans);
    font-size: 54px;
    color: #3b3534;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.why-subtitle {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    color: #777777;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    background-color: #ffffff;
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.015);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.why-card-image-wrapper {
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.why-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.why-card-content {
    padding: 40px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.why-card-title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: #3b3534;
    font-weight: 600;
    margin-bottom: 18px;
    line-height: 1.3;
}

.why-card-text {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Why Card Hover States */
.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 55px rgba(0,0,0,0.07);
    border-color: #e5e5e5;
}

.why-card:hover .why-card-image {
    transform: scale(1.04);
}

/* Staggered Transition Delays */
.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

/* Responsiveness for Why Choose Us Section */
@media (max-width: 1024px) {
    .why-section {
        padding: 90px 0;
    }
    
    .why-title {
        font-size: 44px;
    }
    
    .why-grid {
        gap: 20px;
    }
    
    .why-card-content {
        padding: 30px 20px;
    }
    
    .why-card-title {
        font-size: 20px;
    }
    
    .why-card-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .why-section {
        padding: 70px 0;
    }
    
    .why-title {
        font-size: 36px;
    }
    
    .why-subtitle {
        font-size: 16px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-card-image-wrapper {
        height: 250px;
    }
    
    /* Reset delays on mobile so all items show immediately when scrolling down */
    .reveal-delay-1,
    .reveal-delay-2 {
        transition-delay: 0s;
    }
}

/* -------------------------------------------------------------
   9. CLASSES SECTION
   ------------------------------------------------------------- */
.classes-section {
    background-color: #fafafa;
    padding: 120px 0;
    position: relative;
    z-index: 10;
    border-top: 1px solid #f0f0f0;
}

.classes-header {
    text-align: center;
    margin-bottom: 80px;
}

.classes-title {
    font-family: var(--font-sans);
    font-size: 52px;
    font-weight: 800;
    color: #2d2d2d;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.classes-subtitle {
    font-family: var(--font-serif);
    font-size: 18px;
    color: #888888;
    font-style: italic;
    font-weight: 400;
}

/* 4x2 Instrument Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 60px;
    column-gap: 20px;
    margin-bottom: 80px;
}

/* Each instrument item */
.class-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 10px;
    transition-delay: var(--delay, 0s);
}

.class-item:hover {
    transform: translateY(-6px);
}

/* Icon circle wrapper */
.class-icon-wrapper {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1.5px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.class-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-smooth);
    z-index: 0;
}

.class-item:hover .class-icon-wrapper {
    border-color: var(--color-gold);
    box-shadow: 0 14px 35px rgba(219, 158, 16, 0.18);
}

.class-item:hover .class-icon-wrapper::before {
    opacity: 1;
    transform: scale(1);
}

/* SVG Icon */
.class-svg-icon {
    width: 46px;
    height: 46px;
    color: #555555;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.class-item:hover .class-svg-icon {
    color: #ffffff;
    transform: scale(1.08);
}

/* Instrument Label */
.class-label {
    font-family: var(--font-sans);
    font-size: 14px;
    color: #555555;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
    transition: var(--transition-smooth);
}

.class-item:hover .class-label {
    color: var(--color-gold);
    font-weight: 600;
}

/* More Classes CTA Button */
.classes-cta {
    text-align: center;
}

.btn-more-classes {
    display: inline-block;
    padding: 14px 50px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: #2d2d2d;
    background-color: transparent;
    border: 2px solid #2d2d2d;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: var(--transition-smooth);
}

.btn-more-classes:hover {
    background-color: #2d2d2d;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Staggered Reveal using CSS Custom Property --delay */
.class-item.reveal-fade {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease var(--delay, 0s), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1) var(--delay, 0s);
}

.class-item.reveal-fade.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive for Classes Section */
@media (max-width: 1024px) {
    .classes-section {
        padding: 90px 0;
    }
    
    .classes-title {
        font-size: 42px;
    }
    
    .classes-grid {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 50px;
    }
    
    .class-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .class-svg-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .classes-section {
        padding: 70px 0;
    }
    
    .classes-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 45px;
        column-gap: 15px;
    }
    
    .class-icon-wrapper {
        width: 75px;
        height: 75px;
    }
    
    .class-svg-icon {
        width: 36px;
        height: 36px;
    }
    
    .classes-header {
        margin-bottom: 55px;
    }
}

/* -------------------------------------------------------------
   10. CTA BANNER SECTION
   ------------------------------------------------------------- */
.cta-section {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

/* Background Photo */
.cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    transform: scale(1.05);
    transition: transform 8s ease-out;
    z-index: 0;
}

.cta-section:hover .cta-bg {
    transform: scale(1);
}

/* Dark Gradient Overlay */
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.42) 50%,
        rgba(0, 0, 0, 0.60) 100%
    );
    z-index: 1;
}

/* CTA Content */
.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 820px;
    margin: 0;
}

.cta-subtitle {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.cta-btn-wrapper {
    margin-top: 8px;
}

.btn-cta-book {
    display: inline-block;
    padding: 15px 52px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    background-color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border: 2px solid #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-cta-book::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-gold);
    border-radius: 50px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.btn-cta-book:hover {
    color: #ffffff;
    border-color: var(--color-gold);
    box-shadow: 0 18px 45px rgba(219, 158, 16, 0.35);
    transform: translateY(-3px);
}

.btn-cta-book:hover::before {
    transform: scaleX(1);
}

/* Five Colored Bottom Bars */
.cta-color-bars {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 14px;
    display: flex;
    z-index: 3;
}

.cta-bar {
    flex: 1;
    height: 100%;
    transition: var(--transition-smooth);
}

.cta-section:hover .cta-bar {
    height: 18px;
}

.bar-yellow  { background-color: #fca311; }
.bar-teal    { background-color: #0096c7; }
.bar-grey    { background-color: #555c57; }
.bar-green   { background-color: #70b000; }
.bar-orange  { background-color: #f37254; }

/* CTA Reveal overrides for centered content */
.cta-content .reveal-fade {
    transition-delay: calc(var(--i, 0) * 0.15s);
}

.cta-content .cta-title    { --i: 0; }
.cta-content .cta-subtitle { --i: 1; }
.cta-content .cta-btn-wrapper { --i: 2; }

/* Responsive */
@media (max-width: 1024px) {
    .cta-title {
        font-size: 40px;
    }
    
    .cta-bg {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .cta-section {
        min-height: 340px;
    }
    
    .cta-content {
        padding: 80px 20px 90px;
    }
    
    .cta-title {
        font-size: 28px;
        line-height: 1.35;
    }
    
    .cta-subtitle {
        font-size: 13px;
        letter-spacing: 1.5px;
    }
    
    .btn-cta-book {
        padding: 13px 38px;
        font-size: 11px;
    }
    
    .cta-color-bars {
        height: 10px;
    }
}

/* -------------------------------------------------------------
   11. FEATURES / THREE-COLUMN PROMO SECTION (PREMIUM REVAMP)
   ------------------------------------------------------------- */
.features-section {
    background-color: #fcfcfc;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e5e5e5 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 10px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: rgba(219, 158, 16, 0.1);
}

.feature-header {
    padding: 30px 20px 10px;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-subtitle {
    font-family: var(--font-sans);
    color: var(--color-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.feature-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 25px;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover img {
    transform: scale(1.1);
}

/* Glassmorphism overlay on hover */
.feature-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover .feature-image-overlay {
    opacity: 1;
}

.feature-body {
    padding: 0 30px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-description {
    font-family: var(--font-sans);
    color: #666666;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 30px;
}

/* Premium Rounded Button */
.btn-premium {
    display: inline-block;
    padding: 16px 36px;
    background: #ffffff;
    color: #111111;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 1px solid #eeeeee;
    border-radius: 50px;
    transition: all 0.4s ease;
    align-self: center;
}

.btn-premium:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: scale(1.05);
}

@media (max-width: 1100px) {
    .features-grid {
        gap: 25px;
        padding: 0 20px;
    }
    .feature-title { font-size: 22px; }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    .feature-image-container { height: 350px; }
}

/* -------------------------------------------------------------
   12. LEAD TEACHERS SECTION
   ------------------------------------------------------------- */
.teachers-section {
    background-color: #ffffff;
    padding: 120px 0;
}

.teachers-header {
    text-align: center;
    margin-bottom: 70px;
}

.teachers-title {
    font-family: var(--font-sans);
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #2b2b2b;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.teachers-subtitle {
    font-family: var(--font-serif);
    font-size: 18px;
    color: #888888;
    font-style: italic;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    align-items: start;
}

.teacher-card {
    background: transparent;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.teacher-card:hover {
    transform: translateY(-10px);
}

.teacher-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 22px 60px rgba(0,0,0,0.08);
    background: #f5f5f5;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.06);
}

.teacher-tag {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 14px 24px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.tag-yellow { background: var(--color-yellow); }
.tag-green  { background: var(--color-green); }
.tag-teal   { background: var(--color-teal); }
.tag-orange { background: var(--color-orange); }

.teacher-name {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 500;
    color: #2d2d2d;
    margin: 22px 0 10px;
}

.teacher-bio {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.9;
    color: #8a8a8a;
    max-width: 320px;
}

@media (max-width: 1100px) {
    .teachers-title {
        font-size: 44px;
    }
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .teachers-section {
        padding: 85px 0;
    }
    .teachers-title {
        font-size: 34px;
    }
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .teacher-bio {
        max-width: 100%;
    }
}

/* -------------------------------------------------------------
   13. TESTIMONIALS SECTION (SLIDER)
   ------------------------------------------------------------- */
.testimonials-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
    padding: 130px 0 120px;
    display: flex;
    align-items: center;
}

.testimonials-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(38%) contrast(115%);
    transform: scale(1.06);
    transition: transform 10s ease;
    z-index: 0;
}

.testimonials-section:hover .testimonials-bg {
    transform: scale(1.02);
}

.testimonials-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.78) 75%, rgba(0,0,0,0.88) 100%);
    z-index: 1;
}

.testimonials-container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
}

.testimonials-swiper {
    width: 100%;
    overflow: hidden;
}

/* Fallback if Swiper fails to initialize: show only the first slide */
.testimonials-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: block;
}

.testimonials-swiper:not(.swiper-initialized) .swiper-slide {
    display: none;
}

.testimonials-swiper:not(.swiper-initialized) .swiper-slide:first-child {
    display: block;
}

.testimonial-card {
    text-align: center;
    color: #ffffff;
    padding: 0 40px;
}

.testimonial-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 26px;
    border: 4px solid rgba(255,255,255,0.7);
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto 34px;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 6px 26px rgba(0,0,0,0.55);
}

.testimonial-person {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.testimonial-name {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.4px;
}

.testimonial-role {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

.testimonials-nav {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.testimonials-btn {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.testimonials-prev { left: -12px; }
.testimonials-next { right: -12px; }

.testimonials-btn:hover {
    transform: translateY(-50%) scale(1.06);
    background: rgba(0,0,0,0.40);
    border-color: rgba(255,255,255,0.45);
}

.testimonials-color-bars {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    display: flex;
    z-index: 4;
}

@media (max-width: 1024px) {
    .testimonials-prev { left: 0; }
    .testimonials-next { right: 0; }
    .testimonial-quote { font-size: 20px; }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 95px 0 90px;
        min-height: 460px;
    }
    .testimonial-card { padding: 0 20px; }
    .testimonial-quote { font-size: 16px; line-height: 1.85; }
    .testimonial-name { font-size: 24px; }
    .testimonials-btn { width: 44px; height: 44px; }
    .testimonials-color-bars { height: 12px; }
}

/* -------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------- */
.footer-section {
    position: relative;
    background: linear-gradient(180deg, #0b0b0c 0%, #060607 100%);
    color: rgba(255,255,255,0.85);
    padding: 0 0 26px;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(219, 158, 16, 0.12), transparent 55%),
                radial-gradient(circle at 80% 40%, rgba(0, 150, 199, 0.10), transparent 52%),
                radial-gradient(circle at 45% 90%, rgba(112, 176, 0, 0.08), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.footer-color-bars {
    position: relative;
    width: 100%;
    height: 14px;
    display: flex;
    z-index: 2;
}

.footer-container {
    position: relative;
    z-index: 2;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.9fr;
    gap: 46px;
    align-items: start;
    padding-bottom: 55px;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.4px;
}

.footer-title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    margin-bottom: 18px;
}

.footer-text {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255,255,255,0.72);
    margin-bottom: 18px;
    max-width: 520px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: rgba(219, 158, 16, 0.55);
    background: rgba(219, 158, 16, 0.12);
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    margin: 0;
}

.footer-list li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
}

.footer-icon {
    margin-top: 2px;
    color: rgba(255,255,255,0.85);
}

.footer-link {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-cta {
    display: inline-block;
    margin-top: 12px;
    padding: 14px 34px;
    border-radius: 50px;
    background: #ffffff;
    color: #111111;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #ffffff;
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.footer-cta:hover {
    transform: translateY(-3px);
    background: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: 0 18px 55px rgba(219, 158, 16, 0.28);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .footer-container {
        padding-top: 55px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .footer-brand {
        font-size: 26px;
    }
}
