/* style.css */

/* 1. CSS Variables & Basic Setup
-------------------------------------------------- */
:root {
    /* Color Scheme: Split-Complementary */
    --primary-color: #0D47A1; /* Deep Indigo Blue - Trust, Professionalism */
    --primary-color-darker: #0A3A80;
    --primary-color-lighter: #1E88E5; /* Lighter blue for accents if needed */

    --secondary-color: #FF8F00; /* Amber/Orange - Accent, CTAs, Warmth */
    --secondary-color-darker: #E67E00;

    --accent-color: #00BFA5; /* Teal - Freshness, Secondary Accent */
    --accent-color-darker: #009E86;

    /* Neutral & Text Colors */
    --text-color: #333333; /* Main body text */
    --text-light: #FFFFFF;
    --text-secondary: #555555; /* Subdued text */
    --heading-color: #222222; /* Darker for headings */
    --link-color: var(--primary-color);
    --link-hover-color: var(--primary-color-darker);

    /* Backgrounds */
    --bg-light: #F8F9FA; /* Very light gray for page background */
    --bg-medium: #E9ECEF; /* Light gray for dividers, subtle backgrounds */
    --bg-dark-section: #2c3e50; /* Example for a dark section */

    /* UI Elements */
    --card-bg: #FFFFFF;
    --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    --border-color: #DEE2E6;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px; /* For volumetric feel */

    /* Forms */
    --input-bg: #FFFFFF;
    --input-border: #CED4DA;
    --input-focus-border: var(--primary-color);
    --input-placeholder-color: #888;

    /* Typography */
    --font-primary: 'Source Sans Pro', sans-serif;
    --font-headings: 'Playfair Display', serif;

    /* Spacing */
    --space-xs: 0.5rem;  /* 8px */
    --space-sm: 1rem;    /* 16px */
    --space-md: 1.5rem;  /* 24px */
    --space-lg: 2.5rem;  /* 40px */
    --space-xl: 4rem;    /* 64px */

    /* Header */
    --header-height: 70px;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

/* Basic Reset & Defaults */
*,
*::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-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.site-container {
    overflow-x: hidden; /* Prevents horizontal scroll from animations */
}

/* 2. Typography
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

h1 { font-size: 2.8rem; } /* ~44.8px */
h2 { font-size: 2.2rem; } /* ~35.2px */
h3 { font-size: 1.6rem; } /* ~25.6px */
h4 { font-size: 1.3rem; } /* ~20.8px */

p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
}

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

/* 3. Layout & Container
-------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

.section-container {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--heading-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Subtle volume */
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-light { color: var(--text-light) !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Animate.css integration - elements initially hidden, revealed by JS */
.animate__animated {
    /*visibility: hidden; !* Hide until animation starts *!*/
}
.animate__animated.is-visible {
    visibility: visible;
}


/* 4. Header & Navigation
-------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--header-bg);
    box-shadow: var(--header-shadow);
    z-index: 1000;
    transition: background-color var(--transition-speed) var(--transition-timing);
}

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

.logo a {
    font-family: var(--font-headings);
    font-size: 1.8em;
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 700;
}
.logo a:hover {
    color: var(--primary-color-darker) !important;
}


.main-navigation .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-links li {
    margin-left: var(--space-md);
}

.main-navigation .nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-speed), background-color var(--transition-speed);
    position: relative;
}

.main-navigation .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) var(--transition-timing);
}

.main-navigation .nav-links a:hover,
.main-navigation .nav-links a.active { /* Add .active class with JS for current page/section */
    color: var(--secondary-color);
}
.main-navigation .nav-links a:hover::after,
.main-navigation .nav-links a.active::after {
    width: 70%;
}


/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above mobile menu when closed */
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: transform var(--transition-speed) var(--transition-timing);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: transform var(--transition-speed) var(--transition-timing), top var(--transition-speed) var(--transition-timing);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Active state for hamburger */
.menu-toggle.active .hamburger {
    background-color: transparent; /* Middle bar disappears */
}
.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}


/* 5. Hero Section
-------------------------------------------------- */
.hero-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* min-height: calc(100vh - var(--header-height)); */ /* Use padding for height */
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; /* For gradient overlay */
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1; /* Above background gradient */
}

.hero-title {
    font-size: 3.5rem; /* Larger for hero */
    color: var(--text-light) !important; /* Ensure white text */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light) !important; /* Ensure white text */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--space-lg);
}


/* 6. Global Button Styles
-------------------------------------------------- */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 2px solid transparent;
    padding: 0.75rem 1.75rem; /* Volumetric feel */
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius-lg); /* Rounded for volume */
    transition: all var(--transition-speed) var(--transition-timing);
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Subtle shadow */
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    color: var(--text-light);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-primary:hover {
    background-color: var(--secondary-color-darker);
    border-color: var(--secondary-color-darker);
    color: var(--text-light);
}

.btn-secondary {
    color: var(--primary-color);
    background-color: transparent;
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.btn-link {
    color: var(--accent-color);
    background-color: transparent;
    border: none;
    padding: 0;
    text-decoration: underline !important;
    font-weight: 600;
    box-shadow: none;
}
.btn-link:hover {
    color: var(--accent-color-darker);
    text-decoration: underline !important;
    transform: none;
    box-shadow: none;
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 7. Card Styling (Generic and Specific)
-------------------------------------------------- */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    display: flex; /* STRICT */
    flex-direction: column; /* STRICT */
    /* align-items: center;  STRICT - if card content elements are not 100% width. */
    height: 100%; /* For consistent height in grids */
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
}

.card-image { /* Container for image in card */
    width: 100%;
    height: 220px; /* Fixed height for card images */
    overflow: hidden;
    position: relative;
    /* border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; */ /* top corners if card has border-radius */
}
.card-image::after { /* Optional: subtle overlay for text on image, if any */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.05)); /* Very subtle */
    opacity: 0;
    transition: opacity var(--transition-speed);
}
.card:hover .card-image::after {
    opacity: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, maintains aspect ratio */
    display: block;
    transition: transform var(--transition-speed) ease-out;
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--space-md);
    flex-grow: 1; /* Allows content to fill space if card height is fixed by grid */
    display: flex;
    flex-direction: column;
    text-align: center; /* STRICT: for content within */
}
.card-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
}
.card-content p {
    font-size: 0.95rem;
    flex-grow: 1; /* Pushes button to bottom if any */
    margin-bottom: var(--space-md);
}
.card-content .btn, .card-content .btn-link {
    margin-top: auto; /* Pushes button to the bottom */
    align-self: center; /* Center button if text-align isn't enough */
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    align-items: stretch; /* Make cards same height if content differs */
}
.pricing-card {
    text-align: center;
    padding-bottom: var(--space-md);
}
.pricing-card .card-header {
    background-color: var(--primary-color-lighter);
    color: var(--text-light);
    padding: var(--space-md);
}
.pricing-card .card-header h3 {
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-headings);
    margin-bottom: var(--space-xs);
}
.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
}
.pricing-card .periodo { display: block; font-size: 0.9rem; margin-top: -0.5rem; }

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
    text-align: left;
}
.pricing-card ul li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: var(--space-md);
}
.pricing-card ul li::before {
    content: '✔';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.pricing-card ul li:last-child { border-bottom: none; }

.pricing-card.featured {
    border: 3px solid var(--secondary-color);
    transform: scale(1.05); /* Make it stand out */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    position: relative; /* For badge */
}
.pricing-card.featured .card-header {
    background-color: var(--secondary-color);
}
.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: bold;
}


/* Workshop Cards */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}
.workshop-card .workshop-date {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    display: block;
    font-weight: 600;
}

/* Resource Cards */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}
.resource-card .card-content {
    text-align: left;
}
.resource-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
}
.resource-card h3 a {
    color: var(--primary-color);
}
.resource-card h3 a:hover {
    color: var(--primary-color-darker);
}


/* 8. Mission Section
-------------------------------------------------- */
.mission-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}
.mission-image-container img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}
.mission-text p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .mission-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
    .mission-text {
        text-align: left;
    }
}

/* 9. Accolades Section (Stats Widgets)
-------------------------------------------------- */
.accolades-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light); /* Assuming dark background image for accolades */
}
.accolades-section .section-title,
.accolades-section .section-subtitle {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.stats-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}
.stat-widget {
    background: rgba(255, 255, 255, 0.1); /* Glassmorphism hint */
    backdrop-filter: blur(5px);
    padding: var(--space-md);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255,255,255,0.2);
}
.stat-value {
    font-size: 3rem;
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--secondary-color); /* Highlight color for stats */
    margin-bottom: var(--space-xs);
}
.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}
.stat-description {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
}

/* 10. Events Calendar Section
-------------------------------------------------- */
.events-list {
    max-width: 800px;
    margin: 0 auto;
}
.event-item {
    display: flex;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    transition: var(--card-hover-shadow) var(--transition-speed);
}
.event-item:hover {
    box-shadow: var(--card-hover-shadow);
}

.event-date {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--space-md);
    text-align: center;
    min-width: 100px; /* Ensure some width */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.event-date .month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
}
.event-date .day {
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}
.event-details {
    padding: var(--space-md);
    flex-grow: 1;
}
.event-details h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--primary-color);
}
.event-details p {
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}
.event-time-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-sm);
}

/* 11. External Resources Section - Uses .resource-card styling */

/* 12. Contact Section & Form
-------------------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    background-color: var(--card-bg);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
}
.contact-info h3 { color: var(--primary-color); margin-top: 0; }
.contact-info p { margin-bottom: var(--space-sm); }
.contact-info strong { color: var(--text-color); }

.contact-form .form-group {
    margin-bottom: var(--space-md);
}
.contact-form label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text-color);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem; /* Volumetric padding */
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-md); /* Rounded for volume */
    font-family: var(--font-primary);
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04); /* Subtle inset shadow */
}
.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: var(--input-placeholder-color);
    opacity: 1;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb, 13, 71, 161), 0.25), inset 0 2px 4px rgba(0,0,0,0.04);
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form .btn-submit {
    width: 100%;
    padding: 0.9rem 1.5rem; /* Larger submit button */
    font-size: 1.1rem;
}

@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr; /* Info | Form */
    }
}


/* 13. Footer
-------------------------------------------------- */
.site-footer {
    background-color: var(--bg-dark-section);
    color: rgba(255,255,255,0.8);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-md);
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.site-footer h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    position: relative;
}
.site-footer h4::after { /* Underline effect for footer titles */
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.site-footer p, .site-footer ul {
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}
.site-footer ul {
    list-style: none;
    padding: 0;
}
.site-footer ul li {
    margin-bottom: var(--space-xs);
}
.site-footer ul a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.site-footer ul a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
.footer-social ul li a { /* Ensure these are text links */
    display: inline-block;
    /* padding: 5px 0; Remove if just text */
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}
.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255,255,255,0.7);
}

/* 14. Modal Styling
-------------------------------------------------- */
.modal {
    display: none; /* Hidden by default, shown by JS */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Dim background */
    backdrop-filter: blur(5px); /* Glassmorphism */
}
.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInModal 0.4s ease-out;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-button {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}
.close-button:hover,
.close-button:focus {
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
}
.modal-content h2 {
    margin-top: 0;
    color: var(--primary-color);
}
.modal-content ul {
    list-style: disc;
    padding-left: var(--space-md);
}
.modal-content ul li {
    margin-bottom: var(--space-xs);
}

/* 15. Responsive Adjustments
-------------------------------------------------- */
@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }

    .main-navigation .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: var(--space-sm) 0;
        border-top: 1px solid var(--border-color);
    }
    .main-navigation .nav-links.active { /* Shown by JS */
        display: flex;
    }
    .main-navigation .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-navigation .nav-links a {
        display: block;
        padding: var(--space-sm);
        border-bottom: 1px solid var(--border-color);
    }
    .main-navigation .nav-links li:last-child a {
        border-bottom: none;
    }
    .main-navigation .nav-links a::after { display: none; } /* Remove underline hover effect on mobile */

    .menu-toggle {
        display: block; /* Show on mobile */
    }
}

@media (max-width: 767px) {
    .container { width: 95%; }
    .section-container { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-title { font-size: 2.5rem; }

    .services-grid, .pricing-grid, .workshops-grid, .resources-grid, .stats-widgets-grid {
        grid-template-columns: 1fr; /* Stack cards */
    }
    .pricing-card.featured {
        transform: scale(1); /* No extra scale on mobile stack */
    }
    .event-item {
        flex-direction: column;
    }
    .event-date {
        min-width: auto;
        width: 100%;
        padding: var(--space-sm);
        flex-direction: row;
        justify-content: center;
        align-items: baseline;
    }
    .event-date .month { margin-right: var(--space-xs); font-size: 1rem;}
    .event-date .day { font-size: 1.8rem; }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .site-footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 16. Specific Page Styles
-------------------------------------------------- */
/* For success.html */
body.success-page main { /* Assuming <main> is the primary content wrapper */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - 150px); /* 150px approx footer height */
    text-align: center;
    padding: var(--space-lg);
}
.success-page .success-message-container {
    background-color: var(--card-bg);
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    max-width: 500px;
}
.success-page .success-message-container h1 {
    color: var(--accent-color);
    font-size: 2.5rem;
}
.success-page .success-message-container p {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

/* For privacy.html & terms.html */
body.privacy-page main,
body.terms-page main { /* Assuming <main> is the content wrapper */
    padding-top: calc(var(--header-height) + var(--space-lg));
    padding-bottom: var(--space-lg);
}
body.privacy-page .content-wrapper,
body.terms-page .content-wrapper {
    background-color: var(--card-bg);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
body.privacy-page .content-wrapper h1,
body.terms-page .content-wrapper h1 {
    margin-bottom: var(--space-lg);
    text-align: center;
}
body.privacy-page .content-wrapper h2,
body.terms-page .content-wrapper h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}


/* Cookie Consent Popup (from HTML, can be enhanced slightly if needed) */
#cookieConsentPopup {
    /* Basic styles are in HTML as per prompt */
    /* Enhance if needed: */
    /* box-shadow: 0 -2px 10px rgba(0,0,0,0.1); */
}
#cookieConsentPopup p a {
    color: var(--secondary-color); /* Matches button for consistency */
}