/* --- Global Styles & Variables --- */
:root {
    --primary-color: #6A0572; /* Deep Plum - Artistic & Sophisticated */
    --secondary-color: #00B4D8; /* Energetic Teal - Dynamic & Fresh */
    --accent-color: #FFC300; /* Vibrant Gold - Joyful & Spotlight */
    --dark-text: #333333;
    --light-text: #ffffff;
    --light-bg: #F8F8F8;
    --medium-grey: #e0e0e0;
    --dark-bg: #222222;

    /* Spacing scale (8pt system) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    --space-xxxl: 96px;

    /* Border radius */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* Fluid Typography */
h1 {
    font-size: clamp(2.5rem, 6vw + 1rem, 4.5rem);
    line-height: 1.1;
}
h2 {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    line-height: 1.2;
}
h3 {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem);
    line-height: 1.3;
}
h4 {
    font-size: clamp(1.2rem, 2vw + 1rem, 1.8rem);
    line-height: 1.4;
}
p {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.15rem);
}
a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease, transform 0.2s ease;
}
a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-md);
}

/* Accessibility: visually hidden content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    line-height: 1; /* Ensure consistent height for tap targets */
    min-height: 44px; /* Accessible tap target */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--dark-text);
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1em;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 2px;
}
.btn-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.btn-text:hover::after {
    width: 100%;
}
.btn-text:hover {
    color: var(--primary-color);
}

/* --- Section Title Styling --- */
.section-title {
    text-align: center;
    margin-bottom: var(--space-xxl);
    position: relative;
    padding-bottom: var(--space-sm);
    color: var(--primary-color);
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: var(--space-xxl);
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    font-size: 1.15em;
    color: var(--dark-text);
}

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 3vw + 0.5rem, 1.8rem);
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    padding: var(--space-xs) 0;
}
.logo span {
    color: var(--secondary-color);
}
.logo svg {
    margin-right: var(--space-xs);
    fill: var(--primary-color);
    transition: fill 0.3s ease;
}
.logo:hover svg {
    fill: var(--secondary-color);
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    position: relative;
    z-index: 1001; /* Above nav menu */
    min-width: 44px; /* Accessible tap target */
    min-height: 44px; /* Accessible tap target */
}
.nav-toggle .icon-bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 5px 0;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
}
.nav-list li {
    margin-left: var(--space-lg);
}
.nav-list a {
    color: var(--dark-text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95em;
    padding: 5px 0;
    position: relative;
    display: block; /* For tap target */
    min-height: 44px; /* Accessible tap target */
    display: flex;
    align-items: center;
}
.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}
.nav-list a:hover {
    color: var(--primary-color);
}

.nav-cta {
    margin-left: var(--space-lg);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    filter: brightness(0.6); /* Darken video for text readability */
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: var(--space-md);
    background-color: rgba(0, 0, 0, 0.4); /* Subtle overlay for text */
    border-radius: var(--radius-md);
}

.hero-content h1 {
    margin-bottom: var(--space-md);
    color: var(--light-text);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    margin-bottom: var(--space-xl);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.hero-content .btn {
    padding: var(--space-md) var(--space-xxl);
    font-size: 1.2em;
}

/* --- General Section Styling --- */
section {
    padding: var(--space-xxl) 0;
    position: relative;
    overflow: hidden;
}

/* --- About Us Section --- */
.about-section {
    background-color: var(--light-bg);
}
.about-grid {
    display: flex;
    align-items: center;
    gap: var(--space-xxl);
}
.about-image-wrapper {
    flex: 1;
    position: relative;
    padding: var(--space-md) 0 0 var(--space-md); /* Space for pseudo-element */
}
.about-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}
.about-image-wrapper::before { /* Artistic overlay effect for image */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    opacity: 0.3;
    border-radius: var(--radius-md);
    z-index: 1;
}
.about-content-text {
    flex: 1;
    padding-right: var(--space-md);
}
.about-content-text h3 { /* Using h3 for a sub-title within this section */
    font-size: clamp(1.8rem, 3vw + 1rem, 2.2rem);
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}
.about-content-text p {
    margin-bottom: var(--space-md);
    color: var(--dark-text);
}
.about-features {
    list-style: none;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xl);
}
.about-features li {
    margin-bottom: var(--space-sm);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}
.about-features li::before {
    content: '★'; /* Star icon for list items */
    color: var(--accent-color);
    margin-right: var(--space-sm);
}

/* --- Our Classes Section --- */
.classes-section {
    background-color: #f0f8ff; /* A very light blue tint */
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xxl);
}

.class-card {
    background-color: var(--light-text);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-bottom: 5px solid var(--primary-color); /* Subtle accent */
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.class-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.class-card .card-content {
    padding: var(--space-md);
}

.class-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

.class-card p {
    margin-bottom: var(--space-md);
    color: var(--dark-text);
}

/* --- Instructors Section --- */
.instructors-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a745b1 100%); /* Gradient background */
    color: var(--light-text);
}
.instructors-section .section-title {
    color: var(--light-text);
}
.instructors-section .section-title::after {
    background-color: var(--accent-color);
}

.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xxl);
}

.instructor-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white */
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.instructor-card::before { /* Subtle gradient hover overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color) 0%, transparent 50%, var(--accent-color) 100%);
    opacity: 0.1;
    transform: scale(0);
    transition: transform 0.5s ease;
    border-radius: var(--radius-md);
}
.instructor-card:hover::before {
    transform: scale(1);
}

.instructor-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-xl);
}

.instructor-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.instructor-card h3 {
    margin-bottom: var(--space-xs);
    color: var(--light-text);
}

.instructor-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
    font-size: 1em;
}
.instructor-card .specialty {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9em;
    display: block;
    margin-top: var(--space-sm);
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--light-bg);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory;
    gap: var(--space-lg);
    padding-bottom: var(--space-md);
    /* Hide scrollbar for aesthetics */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
    flex: 0 0 45%; /* Show two cards at a time on larger screens */
    scroll-snap-align: start;
    background-color: var(--light-text);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    text-align: center;
    border-left: 5px solid var(--secondary-color); /* Alternating border colors */
    min-width: 350px; /* Minimum width for cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:nth-child(even) {
    border-left: 5px solid var(--primary-color);
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-sm);
    border: 2px solid var(--accent-color);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: var(--space-sm);
    color: var(--dark-text);
    font-size: 1.1em;
}

.testimonial-card h4 {
    color: var(--primary-color);
    font-weight: 600;
}
.testimonial-card span {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: var(--space-xs);
}

/* --- CTA Banner --- */
.cta-banner-section {
    background: url('images/placeholder.jpg') no-repeat center center/cover;
    padding: var(--space-xxxl) 0;
    text-align: center;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 2000px rgba(0,0,0,0.5); /* Dark overlay */
}
.cta-banner-section::before { /* Gradient overlay for artistic effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(106, 5, 114, 0.7) 0%, rgba(0, 180, 216, 0.7) 100%);
    z-index: 1;
}
.cta-banner-section .container {
    position: relative;
    z-index: 2;
}
.cta-banner-section .section-title {
    color: var(--light-text);
    margin-bottom: var(--space-md);
}
.cta-banner-section .section-title::after {
    background-color: var(--accent-color);
}
.cta-banner-section .section-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}
.cta-banner-section .btn {
    font-size: 1.5em;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-sm);
}
.cta-banner-section .btn-accent:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

/* --- Gallery Section --- */
.gallery-section {
    background-color: var(--light-bg);
}
.gallery-section .section-title {
    color: var(--primary-color);
}
.gallery-section .section-title::after {
    background-color: var(--secondary-color);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xxl);
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item-overlay { /* Overlay on hover for gallery items */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(106, 5, 114, 0.7); /* Primary color overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    color: var(--light-text);
    padding: var(--space-md);
}
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}
.gallery-item-overlay h3 {
    color: var(--light-text);
    margin-bottom: var(--space-sm);
}
.gallery-item-overlay p {
    font-size: 1.1em;
}

/* --- FAQ Section (Accordion) --- */
.faq-section {
    background-color: #f0f8ff; /* Light blue tint */
}
.accordion {
    max-width: 800px;
    margin: var(--space-xxl) auto;
}
.accordion-item {
    background-color: var(--light-text);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.accordion-item:hover {
    box-shadow: var(--shadow-md);
}
.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background-color: var(--light-text);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.25rem);
    color: var(--primary-color);
    text-align: left;
    transition: background-color 0.3s ease;
    min-height: 56px; /* Accessible tap target */
}
.accordion-header:hover, .accordion-header:focus {
    background-color: var(--light-bg);
    outline: none;
}
.accordion-icon {
    display: block;
    width: 24px;
    height: 24px;
    position: relative;
    margin-left: var(--space-md);
}
.accordion-icon::before, .accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--secondary-color);
    transition: transform 0.3s ease;
}
.accordion-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.accordion-icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.accordion-item[aria-expanded="true"] .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 var(--space-lg);
}
.accordion-item[aria-expanded="true"] .accordion-content {
    max-height: 200px; /* Adjust based on expected content height */
    padding-bottom: var(--space-md);
}
.accordion-content p {
    padding-top: var(--space-xs);
    font-size: 1em;
    color: #555;
}


/* --- Contact Section --- */
.contact-section {
    background-color: var(--light-bg);
}
.contact-section .section-title {
    color: var(--primary-color);
    text-align: left; /* Adjust for grid layout */
}
.contact-section .section-title::after {
    transform: translateX(0);
    left: 0;
}
.contact-section .section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
.contact-grid {
    display: flex;
    gap: var(--space-xxl);
    margin-top: var(--space-xxl);
    align-items: flex-start;
}
.contact-info {
    flex: 1;
    padding-right: var(--space-md);
}
.contact-info .section-title { /* H2 is already styled, just adjust alignment */
    margin-bottom: var(--space-lg);
}
.contact-info p {
    margin-bottom: var(--space-sm);
    font-size: 1.1em;
    display: flex;
    align-items: flex-start;
    color: var(--dark-text);
}
.contact-info p .icon { /* Icons for contact info */
    margin-right: var(--space-md);
    fill: var(--secondary-color);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.contact-info .social-links {
    margin-top: var(--space-xl);
    display: flex;
    gap: var(--space-sm);
}
.contact-info .social-links a {
    display: inline-block;
    color: var(--primary-color);
    min-width: 44px; /* Accessible tap target */
    min-height: 44px; /* Accessible tap target */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.contact-info .social-links a .icon {
    width: 35px;
    height: 35px;
    fill: var(--primary-color);
    transition: fill 0.3s ease;
    margin-right: 0; /* Override default p .icon margin */
}
.contact-info .social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}
.contact-info .social-links a:hover .icon {
    fill: var(--light-text);
}

.contact-form-wrapper {
    flex: 1;
}
.contact-form {
    background-color: var(--light-text);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--accent-color); /* Accent border */
}
.contact-form h3 {
    font-size: clamp(1.8rem, 3vw + 1rem, 2.2rem);
    margin-bottom: var(--space-lg);
    color: var(--primary-color);
}
.contact-form .form-group {
    margin-bottom: var(--space-md);
}
.contact-form label {
    display: block;
    margin-bottom: var(--space-xs);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark-text);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--medium-grey);
    border-radius: var(--radius-sm);
    font-family: 'Lora', serif;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px; /* Accessible tap target */
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
    outline: none;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form .btn {
    font-size: 1.1em;
    padding: var(--space-sm) var(--space-lg);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-xxl) 0;
    text-align: center;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: var(--space-md); /* For mobile */
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: var(--space-sm);
}
.footer-logo span {
    color: var(--secondary-color);
}

.footer-nav {
    margin-bottom: var(--space-md); /* For mobile */
}
.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}
.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    display: block; /* Ensure tap target */
    min-height: 44px; /* Accessible tap target */
    padding: var(--space-xs) 0;
}
.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-social-links {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md); /* For mobile */
}
.footer-social-links a {
    display: inline-block;
    margin: 0 var(--space-xs);
    color: var(--light-text);
    min-width: 44px; /* Accessible tap target */
    min-height: 44px; /* Accessible tap target */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.footer-social-links a .icon {
    width: 25px;
    height: 25px;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.3s ease, transform 0.3s ease;
    margin-right: 0;
}
.footer-social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}
.footer-social-links a:hover .icon {
    fill: var(--accent-color);
}

.copyright {
    width: 100%;
    margin-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    text-align: left; /* Adjust for desktop footer-brand alignment */
}


/* --- Animate On Scroll (CSS for JS-triggered animations) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for list items */
.about-features li.animate-on-scroll {
    transition-delay: var(--li-delay, 0s); /* Custom property for stagger */
}
.about-features li.animate-on-scroll:nth-child(1) { --li-delay: 0.1s; }
.about-features li.animate-on-scroll:nth-child(2) { --li-delay: 0.2s; }
.about-features li.animate-on-scroll:nth-child(3) { --li-delay: 0.3s; }
.about-features li.animate-on-scroll:nth-child(4) { --li-delay: 0.4s; }
.about-features li.animate-on-scroll:nth-child(5) { --li-delay: 0.5s; }


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .main-nav {
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(255, 255, 255, 0.95);
        border-top: 1px solid var(--medium-grey);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        opacity: 0;
        pointer-events: none;
    }
    .main-nav.is-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-toggle {
        display: block;
    }
    .nav-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle[aria-expanded="true"] .icon-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-list {
        flex-direction: column;
        width: 100%;
        margin-top: var(--space-md);
    }
    .nav-list li {
        margin: 0;
        border-bottom: 1px solid var(--medium-grey);
    }
    .nav-list a {
        padding: var(--space-sm) var(--space-md);
        color: var(--dark-text);
        text-align: center;
        justify-content: center;
        min-height: 48px; /* Larger tap target for mobile */
    }
    .nav-list a::after {
        background-color: var(--secondary-color);
        height: 3px;
    }
    .nav-cta {
        width: calc(100% - var(--space-lg) * 2);
        margin: var(--space-md) var(--space-lg) var(--space-lg);
        text-align: center;
    }

    .hero-content {
        padding: var(--space-md);
    }
    .hero-content h1 {
        font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    }
    .hero-content p {
        font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
    }
    .hero-content .btn {
        padding: var(--space-sm) var(--space-xl);
        font-size: 1.1em;
    }

    .about-grid {
        flex-direction: column;
        gap: var(--space-xl);
    }
    .about-image-wrapper {
        padding: var(--space-sm) 0 0 var(--space-sm);
    }
    .about-image-wrapper::before {
        top: -var(--space-sm);
        left: -var(--space-sm);
    }
    .about-content-text {
        padding-right: 0;
        text-align: center;
    }
    .about-content-text .section-title, .about-content-text .section-description {
        text-align: center;
    }
    .about-content-text .about-features {
        align-items: center;
        justify-content: center;
    }
    .about-content-text .about-features li {
        justify-content: center;
    }
    .about-features {
        padding: 0 var(--space-md);
    }

    .class-grid, .instructor-grid, .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-md);
    }
    .testimonial-slider {
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 0; /* No horizontal scroll */
        scroll-snap-type: none;
    }
    .testimonial-card {
        flex: 0 0 90%; /* Single card per row on medium screens */
        min-width: unset;
        width: 100%;
    }
    .cta-banner-section .section-title {
        font-size: clamp(2rem, 5vw + 1rem, 3rem);
    }
    .cta-banner-section .section-description {
        font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
    }

    .contact-grid {
        flex-direction: column;
        gap: var(--space-xl);
    }
    .contact-info, .contact-form-wrapper {
        flex: none;
        width: 100%;
    }
    .contact-info .section-title, .contact-info .section-description {
        text-align: center;
    }
    .contact-info .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-info address {
        text-align: center;
    }
    .contact-info p {
        justify-content: center;
    }
    .contact-info .social-links {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
    }
    .footer-brand, .footer-nav, .footer-social-links, .copyright {
        width: 100%;
        text-align: center;
        align-items: center;
    }
    .footer-nav {
        order: 2; /* Move nav below social links on mobile */
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    .copyright {
        margin-top: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--space-sm);
    }
    section {
        padding: var(--space-xl) 0;
    }
    h1 { font-size: clamp(2rem, 8vw + 0.5rem, 3.5rem); }
    h2 { font-size: clamp(1.8rem, 7vw + 0.5rem, 2.5rem); }
    h3 { font-size: clamp(1.3rem, 5vw + 0.5rem, 1.8rem); }
    p { font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.05rem); }

    .hero-content h1 {
        font-size: clamp(2rem, 7vw + 0.5rem, 3rem);
    }
    .hero-content p {
        font-size: clamp(1rem, 2vw + 0.5rem, 1.15rem);
    }

    .about-image-wrapper img {
        height: 300px;
    }

    .class-grid, .instructor-grid, .gallery-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        gap: var(--space-md);
    }
    .testimonial-card {
        flex: 0 0 95%; /* Make cards almost full width for better readability */
    }
    .cta-banner-section .section-title {
        font-size: clamp(1.8rem, 7vw + 0.5rem, 2.8rem);
    }
    .cta-banner-section .section-description {
        font-size: clamp(0.95rem, 2vw + 0.5rem, 1.15rem);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: clamp(1.2rem, 5vw + 0.5rem, 1.5rem);
    }
    .nav-toggle {
        right: var(--space-md);
    }

    .hero-content {
        padding: var(--space-sm);
    }
    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw + 0.5rem, 2.5rem);
    }
    .hero-content p {
        font-size: clamp(0.9rem, 2vw + 0.5rem, 1rem);
        margin-bottom: var(--space-md);
    }
    .hero-content .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 1em;
    }
    .section-title {
        margin-bottom: var(--space-xl);
    }
    .about-features li {
        justify-content: flex-start; /* Revert to left-align for very small screens if centered looks bad */
    }
    .about-image-wrapper {
        padding: var(--space-xs) 0 0 var(--space-xs);
    }
    .about-image-wrapper::before {
        top: -var(--space-xs);
        left: -var(--space-xs);
    }
    .testimonial-card {
        flex: 0 0 100%;
        min-width: unset;
    }
    .contact-form {
        padding: var(--space-md);
    }
    .footer-links a {
        min-height: unset;
    }
}