/* CSS Variables */
:root {
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Merriweather', serif;

    /* Core Colors (Tetradic - adapted for Corporate Eco-Minimalism) */
    --color-primary-dark: #2A3D45;      /* Dark Slate Gray - for text, serious elements */
    --color-primary-action: #A3B86C;    /* Sage Green - main CTAs, eco feel */
    --color-secondary-accent: #F7B801; /* Mustard Yellow - secondary CTAs, highlights */
    --color-tertiary-subtle: #D4C1EC;   /* Light Mauve - subtle accents, alternative backgrounds */
    --color-quaternary-bg: #F0EAD6;     /* Soft Beige - for eco-minimalism backgrounds */


    /* Neutral Colors */
    --color-text-dark: var(--color-primary-dark);
    --color-text-light: #FFFFFF;
    --color-text-medium: #555e64;
    --color-text-on-accent: var(--color-primary-dark); /* Text on yellow buttons */
    --color-background-light: #F8F9FA;
    --color-background-medium: #E9ECEF;
    --color-background-section-alt: var(--color-quaternary-bg); /* Use for alternate sections */
    --color-border: #DDE2E6;
    --color-border-darker: #CED4DA;

    /* UI Element Specifics */
    --button-primary-bg: var(--color-primary-action);
    --button-primary-text: var(--color-text-light);
    --button-primary-hover-bg: #8fa356; /* Darker sage green */
    
    --button-secondary-bg: var(--color-secondary-accent);
    --button-secondary-text: var(--color-text-on-accent);
    --button-secondary-hover-bg: #e0a800; /* Darker mustard yellow */

    --button-link-text: var(--color-primary-action);
    --button-link-hover-text: var(--color-primary-dark);

    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.07);
    --shadow-md: 0 5px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);

    /* Spacing & Sizing */
    --spacing-xs: 0.5rem;  /* 8px */
    --spacing-sm: 1rem;    /* 16px */
    --spacing-md: 1.5rem;  /* 24px */
    --spacing-lg: 2rem;    /* 32px */
    --spacing-xl: 3.5rem;  /* 56px */
    --section-padding: var(--spacing-xl) 0;
    --container-width: 1200px;
    --container-padding: var(--spacing-md);
    --header-height: 80px; 
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from AOS animations */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Subtle shadow for headings */
}
h1 { font-size: 2.8rem; margin-bottom: var(--spacing-md); }
h2 { font-size: 2.2rem; margin-bottom: var(--spacing-md); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-medium);
}

a {
    color: var(--color-primary-action);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover, a:focus {
    color: var(--button-primary-hover-bg);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.content-container { /* For general content blocks within sections */
    max-width: 1000px; /* Slightly narrower for better readability */
    margin-left: auto;
    margin-right: auto;
}

.narrow-container {
    max-width: 800px;
}

.section-padding {
    padding: var(--section-padding);
}

.alternate-bg {
    background-color: var(--color-background-section-alt);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-dark);
    position: relative;
    padding-bottom: var(--spacing-sm);
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary-action);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Container */
.main-container {
    overflow-x: hidden; /* Helps with animations */
}

/* Buttons - GLOBAL STYLES */
.button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8em 1.8em;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--transition-medium), color var(--transition-medium), transform var(--transition-fast), box-shadow var(--transition-medium);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
}
.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.button-primary {
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
}
.button-primary:hover {
    background-color: var(--button-primary-hover-bg);
    color: var(--button-primary-text);
}

.button-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
}
.button-secondary:hover {
    background-color: var(--button-secondary-hover-bg);
    color: var(--button-secondary-text);
}

.button-link {
    background-color: transparent;
    color: var(--button-link-text);
    padding: 0.5em 0;
    font-weight: bold;
    text-decoration: underline;
    box-shadow: none;
}
.button-link:hover {
    color: var(--button-link-hover-text);
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

/* Header & Navigation */
.site-header {
    background-color: rgba(255, 255, 255, 0.9); /* Slight transparency for eco-minimalism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-decoration: none;
}
.logo:hover {
    color: var(--color-primary-action);
}

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

.main-nav .nav-menu li {
    margin-left: var(--spacing-md);
}

.main-nav .nav-menu a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 0.5em 0;
    position: relative;
    transition: color var(--transition-fast);
}
.main-nav .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-action);
    transition: width var(--transition-medium);
}
.main-nav .nav-menu a:hover,
.main-nav .nav-menu a:focus,
.main-nav .nav-menu a.active { /* Add .active class via JS for current page */
    color: var(--color-primary-action);
}
.main-nav .nav-menu a:hover::after,
.main-nav .nav-menu a:focus::after,
.main-nav .nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav menu on mobile */
}
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary-dark);
    position: relative;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary-dark);
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, bottom 0.3s ease-in-out;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Mobile Nav Open State (triggered by JS adding a class to nav or body) */
.nav-open .hamburger {
    background-color: transparent; /* Middle line disappears */
}
.nav-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-open .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh; /* Adjust as needed, avoid fixed large heights if content is short */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--container-padding);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: var(--header-height); /* Offset for fixed header */
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
    font-size: 3.5rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    opacity: 0.9;
}
.hero-section .button-primary {
    padding: 1em 2.5em;
    font-size: 1.1rem;
}

/* General Card Styling */
.card {
    background-color: var(--color-text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a grid */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.card-image img {
    width: 100%;
    height: 100%; /* Ensure image fills container if fixed height is set on .card-image */
    object-fit: cover; /* Ensures the image covers the area, might crop */
    transition: transform 0.4s ease-out;
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Allows content to fill space in flex column */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes buttons/links to bottom if needed */
}
.card-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary-dark);
}
.card-content p {
    font-size: 0.95rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-md);
}

/* About Us Section */
.about-us-section .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}
.about-us-section .about-text p {
    margin-bottom: var(--spacing-md);
}
.about-us-section .about-image-container img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Services Section */
.services-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
/* If text is directly on bg, ensure contrast or add overlay */
/* .services-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.8); 
    z-index: 0;
}
.services-section .container { position: relative; z-index: 1;} */


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.service-card .card-image {
    height: 200px; /* Fixed height for service card images */
}
.progress-indicator-container {
    margin-top: auto; /* Pushes to bottom if card-content is flex column */
    padding-top: var(--spacing-sm);
}
.progress-indicator-container label {
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--color-text-medium);
    display: block;
    margin-bottom: var(--spacing-xs);
}
.progress-indicator-container progress {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.progress-indicator-container progress::-webkit-progress-bar {
    background-color: var(--color-background-medium);
}
.progress-indicator-container progress::-webkit-progress-value {
    background-color: var(--color-primary-action);
    transition: width 0.5s ease-in-out;
}
.progress-indicator-container progress::-moz-progress-bar {
    background-color: var(--color-primary-action);
}
.progress-indicator-container span {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-primary-action);
    margin-left: var(--spacing-xs);
}

/* Instructors & Team Section */
.instructors-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}
.instructor-card, .team-member-card {
    text-align: center;
}
.instructor-card .card-image, .team-member-card .card-image {
    width: 180px; /* Adjust as needed */
    height: 180px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--color-text-light);
    box-shadow: var(--shadow-md);
}
.instructor-card .card-image img, .team-member-card .card-image img {
    border-radius: 50%;
}
.instructor-title, .team-member-title {
    font-family: var(--font-primary);
    color: var(--color-primary-action);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

/* Portfolio Section */
.portfolio-controls {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}
.portfolio-controls .toggle-button {
    margin: 0 var(--spacing-xs) var(--spacing-sm);
    background-color: transparent;
    color: var(--color-text-medium);
    border: 2px solid var(--color-border);
    padding: 0.6em 1.2em;
    font-weight: 600;
}
.portfolio-controls .toggle-button.active,
.portfolio-controls .toggle-button:hover {
    background-color: var(--color-primary-action);
    color: var(--color-text-light);
    border-color: var(--color-primary-action);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.portfolio-item .card-image {
    height: 220px; /* Fixed height for portfolio images */
}
.portfolio-item .card-content h4 {
    font-size: 1.1rem;
}


/* Customer Stories / Testimonials Section */
.customer-stories-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--color-text-dark); /* Ensure text is dark if background is light */
}
/* Example: if background is dark, text should be light. Current HTML has light text on this bg */
/* .customer-stories-section .section-title,
.customer-stories-section .section-subtitle {
    color: var(--color-text-dark); 
} */
/* The HTML uses a parallax background; ensure text on cards is readable. Cards themselves have light BG */

.testimonial-slider { /* This would be handled by JS, showing one or few at a time */
    display: grid; /* Simple grid for now, JS would make it a slider */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}
.testimonial-card {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent for glasmorphism */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}
.testimonial-card .card-content {
    text-align: center;
}
.testimonial-author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm); /* Centered above the quote */
    border: 3px solid var(--color-primary-action);
}
.testimonial-author-image img {
    border-radius: 50%;
}
.testimonial-quote {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark); /* ensure readability */
    position: relative;
    padding: 0 var(--spacing-md);
}
.testimonial-quote::before {
    content: '“';
    font-size: 3rem;
    color: var(--color-primary-action);
    position: absolute;
    left: -5px;
    top: -10px;
    opacity: 0.8;
    font-family: var(--font-secondary);
}
.testimonial-author {
    font-weight: bold;
    font-family: var(--font-primary);
    color: var(--color-primary-dark);
}
.testimonial-author strong {
    display: block;
    font-size: 1.1rem;
}

/* Clientele Section */
.client-logos-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
}
.client-logos-gallery img {
    max-height: 60px; /* Adjust as needed */
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-medium);
    filter: grayscale(80%);
}
.client-logos-gallery img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Awards Section */
.awards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}
.award-card {
    text-align: center;
}
.award-card .card-image {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.award-card .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}
.blog-post-card .card-image {
    height: 220px;
}
.post-meta {
    font-size: 0.85rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-primary);
}
.blog-post-card .button-link {
    margin-top: auto; /* Pushes to bottom */
    align-self: flex-start;
}

/* External Resources Section */
.resources-list .resource-item {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md); /* It's a card */
}
.resources-list .resource-item h4 a {
    font-size: 1.15rem;
    color: var(--color-primary-dark);
}
.resources-list .resource-item h4 a:hover {
    color: var(--color-primary-action);
}
.resources-list .resource-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact Form Section */
.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}
.contact-form label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-dark);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary-action);
    box-shadow: 0 0 0 3px rgba(163, 184, 108, 0.3); /* Sage green focus ring */
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form button[type="submit"] {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.1rem;
}


/* Footer */
.site-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-background-medium);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-sm);
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}
.footer-column h4 {
    font-family: var(--font-primary);
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}
.footer-column h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary-action);
    margin-top: var(--spacing-xs);
}
.footer-column p,
.footer-column ul li a {
    color: var(--color-background-medium); /* Light gray text on dark bg */
    font-size: 0.95rem;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}
.footer-column ul li a:hover {
    color: var(--color-primary-action);
    text-decoration: underline;
}
.social-links-text a { /* Already text links in HTML */
    text-decoration: none;
}
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: var(--color-background-medium);
}
.footer-bottom p {
    margin-bottom: 0;
}

/* Success Page Styling */
body.success-page { /* Add class to body in success.html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.success-page main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.success-content {
    background-color: var(--color-text-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
}
.success-content h1 {
    color: var(--color-primary-action);
    font-size: 2.5rem;
}
.success-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

/* Privacy & Terms Page Styling */
/* Add this class to the main content wrapper div in privacy.html and terms.html */
.static-page-content {
    padding-top: calc(var(--header-height) + var(--spacing-xl));
    padding-bottom: var(--spacing-xl);
}
.static-page-content h1 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}
.static-page-content h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: 1.8rem;
}
.static-page-content ul {
    list-style-position: inside;
    margin-left: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .about-us-section .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-us-section .about-image-container {
        margin-top: var(--spacing-lg);
        order: -1; /* Image first on mobile if desired */
    }
    .about-us-section .about-image-container img {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    .hero-section { margin-top: var(--header-height); }

    .section-title { font-size: 2rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    /* Mobile Navigation */
    .nav-toggle {
        display: block;
    }
    .main-nav .nav-menu {
        display: none; /* Hidden by default */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-text-light);
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Smooth non-linear animation */
    }
    .nav-open .main-nav .nav-menu { /* Class added by JS */
        display: flex; /* Or block, then flex inside */
        max-height: 100vh; /* Or a large enough value */
    }
    .main-nav .nav-menu li {
        margin-left: 0;
        width: 100%;
    }
    .main-nav .nav-menu a {
        display: block;
        padding: var(--spacing-md) var(--container-padding);
        text-align: left;
        border-bottom: 1px solid var(--color-border);
    }
    .main-nav .nav-menu a::after {
        display: none; /* Remove underline effect for mobile */
    }
    .main-nav .nav-menu li:last-child a {
        border-bottom: none;
    }

    .footer-container {
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center;
    }
    .footer-column h4::after {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-section .button-primary {
        padding: 0.8em 1.5em;
        font-size: 1rem;
    }
    .services-grid, .instructors-grid, .team-grid, .portfolio-gallery, .testimonial-slider, .awards-list, .blog-grid {
        grid-template-columns: 1fr; /* Single column */
    }
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
}

/* AOS animation overrides or custom animations if needed */
[data-aos="fade-up"] {
    transform: translate3d(0, 50px, 0); /* Example of adjusting default AOS */
}

/* Cookie Popup (from HTML, basic enhancements) */
#cookie-popup {
    font-family: var(--font-secondary);
}
#cookie-popup p a:hover {
    color: var(--color-text-light);
}
#accept-cookie:hover {
    background-color: #8fa356 !important; /* Darker sage, needs important due to inline style */
}