/* --- CSS Variables --- */
:root {
    /* Tetrad Color Scheme (Adjusted for theme) */
    --color-bg-main: #E0E5EC;       /* Light Grey - Neuromorphic base */
    --color-bg-alt: #F0F3F6;        /* Slightly lighter for raised elements/sections */
    --color-primary: #3A7D44;       /* Deep Green - Main accent, CTAs, highlights */
    --color-primary-darker: #2E6436;/* Darker green for hover/active */
    --color-secondary: #B07156;     /* Terracotta - Earthy tone for details */
    --color-accent: #D4A017;        /* Muted Gold - For highlights, icons, secondary CTAs */
    --color-accent-darker: #B88D14; /* Darker gold for hover/active */
    --color-complement: #5F4B8B;    /* Deep Purple - For specific callouts or contrasts */

    --color-text-dark: #2C333A;     /* Darker, slightly desaturated for better readability on light bg */
    --color-text-medium: #48515A;   /* Medium grey for paragraphs */
    --color-text-light: #FFFFFF;
    
    --color-shadow-light: rgba(255, 255, 255, 0.7); /* Softer white for highlights */
    --color-shadow-dark: #A3B1C6;   /* Darker shadow for neuromorphism */
    --color-shadow-dark-rgb: 163, 177, 198; /* For rgba usage */

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --neu-border-radius: 15px;
    --neu-padding: 20px;

    --neu-shadow-convex: 
        -6px -6px 12px var(--color-shadow-light), 
        6px 6px 12px var(--color-shadow-dark);
    --neu-shadow-concave: 
        inset -5px -5px 10px var(--color-shadow-light), 
        inset 5px 5px 10px var(--color-shadow-dark);
    --neu-shadow-pressed:
        inset 4px 4px 8px var(--color-shadow-dark),
        inset -4px -4px 8px var(--color-shadow-light);
    --neu-shadow-flat: /* For elements that should appear flat but part of the system */
        3px 3px 6px var(--color-shadow-dark), 
        -3px -3px 6px var(--color-shadow-light);
    --neu-shadow-hover: /* More pronounced shadow for hover */
        -8px -8px 16px var(--color-shadow-light), 
        8px 8px 16px var(--color-shadow-dark);

    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
    --transition-slow: 0.6s ease-in-out;

    --text-shadow-hero: 1px 1px 3px rgba(0,0,0,0.6);
    --text-shadow-heading: 0px 1px 2px rgba(0,0,0,0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%; /* Usually 16px */
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--color-text-medium);
    background-color: var(--color-bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure footer sticks to bottom */
}

main {
    flex-grow: 1;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    margin-bottom: 0.75em;
    line-height: 1.2;
    font-weight: 500;
    text-shadow: var(--text-shadow-heading);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

.section-title, .page-title {
    text-align: center;
    margin-bottom: 1.5em; /* Increased margin for better separation */
    color: var(--color-text-dark);
    position: relative;
    padding-bottom: 0.6em;
}
.section-title::after, .page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(var(--color-shadow-dark-rgb), 0.3);
}
.page-title { /* For dedicated pages */
    font-size: clamp(2.5rem, 6vw, 3.5rem);
}

.section-intro {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3em; /* Increased margin */
    color: var(--color-text-medium);
}

p {
    margin-bottom: 1.25em;
}

ul, ol {
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}
li { 
    margin-bottom: 0.6em; 
}

/* --- Layout Helpers --- */
.container {
    width: 90%;
    max-width: 1240px; /* Slightly wider for modern layouts */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-padding {
    padding-top: clamp(3rem, 8vw, 5rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
}
.alt-bg {
    background-color: var(--color-bg-alt);
}

.grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
/* Add more as needed: .grid-cols-4, etc. */

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

/* For columns specified in HTML (main-column, sidebar-column) */
.content-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.main-column.is-two-thirds {
    flex: 2 1 0%; /* Allow shrinking, basis 0 */
    min-width: min(100%, 300px); /* Prevent excessive squishing */
}
.main-column { /* Default if not two-thirds */
    flex: 1 1 60%;
    min-width: min(100%, 300px);
}
.sidebar-column {
    flex: 1 1 30%;
    min-width: min(100%, 250px);
}


/* --- Global Button Styles --- */
.cta-button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.8em 1.8em;
    border: none;
    border-radius: 50px; /* Soft, pill-shaped */
    cursor: pointer;
    transition: all var(--transition-medium);
    text-align: center;
    text-decoration: none; /* Ensure links styled as buttons don't have underlines */
    position: relative; /* For "drawn" animations */
    overflow: hidden; /* For pseudo-element effects */
}
.cta-button, input[type="submit"], input[type="button"] { /* Primary button style */
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: var(--neu-shadow-convex);
}
.cta-button:hover, .cta-button:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
input[type="button"]:hover, input[type="button"]:focus {
    background-color: var(--color-primary-darker);
    box-shadow: var(--neu-shadow-pressed);
    transform: translateY(1px) translateX(1px); /* Slight press */
    color: var(--color-text-light); /* Ensure text color remains on hover */
    text-decoration: none;
}
/* "Hand-drawn" subtle animation on hover for buttons */
.cta-button::before, input[type="submit"]::before, input[type="button"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width var(--transition-medium), height var(--transition-medium), opacity var(--transition-medium);
}
.cta-button:active::before, input[type="submit"]:active::before, input[type="button"]:active::before {
    width: 200%;
    height: 200%;
    opacity: 1;
    transition: 0s; /* Instant effect on active */
}

/* Secondary Button Style */
.cta-button-secondary {
    background-color: var(--color-accent);
    color: var(--color-text-dark); /* Good contrast with gold */
    box-shadow: var(--neu-shadow-convex);
}
.cta-button-secondary:hover, .cta-button-secondary:focus {
    background-color: var(--color-accent-darker);
    box-shadow: var(--neu-shadow-pressed);
    color: var(--color-text-dark);
}
.cta-button-small {
    padding: 0.6em 1.5em;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}
.read-more-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent; /* Placeholder for hover animation */
    transition: color var(--transition-fast), border-color var(--transition-fast);
}
.read-more-link:hover, .read-more-link:focus {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    text-decoration: none;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--color-bg-main);
    padding: clamp(0.8rem, 2vw, 1.2rem) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(var(--color-shadow-dark-rgb), 0.1);
    border-bottom: 1px solid rgba(var(--color-shadow-dark-rgb), 0.3);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    max-height: clamp(35px, 6vw, 50px);
    width: auto;
}
.main-nav .nav-links {
    list-style: none;
    display: flex;
    padding: 0;
}
.main-nav .nav-links li {
    margin-left: clamp(1rem, 2.5vw, 2rem);
}
.main-nav .nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.5em 0;
    position: relative;
    text-decoration: none;
}
.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 1px;
    transition: width var(--transition-medium);
}
.main-nav .nav-links a:hover::after,
.main-nav .nav-links a:focus::after,
.main-nav .nav-links a.active::after {
    width: 100%;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Above mobile menu */
}
.hamburger-icon {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text-dark);
    position: relative;
    transition: background-color var(--transition-fast);
    border-radius: 1px;
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--color-text-dark);
    left: 0;
    transition: transform var(--transition-medium), top var(--transition-medium);
    border-radius: 1px;
}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

/* Mobile Nav Open State */
.nav-open .hamburger-icon { background-color: transparent; }
.nav-open .hamburger-icon::before { transform: rotate(45deg); top: 0; }
.nav-open .hamburger-icon::after { transform: rotate(-45deg); top: 0; }

/* --- Cards --- */
.card {
    background-color: var(--color-bg-main);
    border-radius: var(--neu-border-radius);
    box-shadow: var(--neu-shadow-convex);
    padding: clamp(1rem, 2.5vw, var(--neu-padding));
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    overflow: hidden;
    display: flex; /* For centering content as per strict rule */
    flex-direction: column;
    align-items: center; /* Center block content like images */
    text-align: center; /* Center inline content */
}
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--neu-shadow-hover);
}
.card-image { /* Container for the image */
    width: 100%;
    /* height: 200px;  A fixed height for consistency, adjust as needed */
    aspect-ratio: 16 / 10; /* Maintain aspect ratio */
    margin-bottom: 1.25rem;
    border-radius: calc(var(--neu-border-radius) - 5px); /* Slightly smaller radius */
    overflow: hidden;
    box-shadow: var(--neu-shadow-concave); /* Image appears slightly pressed in */
    display: flex; /* Ensure img inside is centered if it's smaller */
    align-items: center;
    justify-content: center;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
    display: block; /* Remove extra space below image */
    margin: 0 auto; /* Center image if aspect ratio doesn't match container perfectly */
}
.card-content {
    width: 100%; /* Take full width of card */
}
.card-content h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 0.5em;
    color: var(--color-primary);
}
.card-content p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--color-text-medium);
    line-height: 1.6;
}

/* --- Forms (Contact Section & Others) --- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--color-text-dark);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.8em 1em;
    border: none;
    border-radius: 10px; /* Softer radius */
    background-color: var(--color-bg-main);
    box-shadow: var(--neu-shadow-concave);
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--color-text-dark);
    transition: box-shadow var(--transition-medium), background-color var(--transition-medium);
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: var(--color-bg-alt); /* Slight change on focus */
    box-shadow: 
        inset -3px -3px 6px var(--color-shadow-light), 
        inset 3px 3px 6px var(--color-shadow-dark),
        0 0 0 2px var(--color-primary); /* Focus ring */
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    /* min-height: 85vh; Remove fixed min-height if content dictates less */
    padding: clamp(6rem, 15vh, 10rem) 0; /* Vertical padding instead of min-height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* For CSS parallax */
    color: var(--color-text-light); /* Default text color for hero */
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.75)); /* Ensure text readability */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}
.hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--color-text-light); /* Explicitly white */
    text-shadow: var(--text-shadow-hero);
    animation: fadeInDown 1s var(--transition-medium) both; /* Example "drawn" entrance */
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 1.8em;
    color: var(--color-text-light); /* Explicitly white */
    text-shadow: var(--text-shadow-hero);
    opacity: 0.9;
    animation: fadeInUp 1s var(--transition-medium) 0.3s both;
}
.hero-section .cta-button {
    animation: zoomIn 0.8s var(--transition-medium) 0.6s both;
}

/* --- Features Section --- */
.features-grid { /* Alias for grid-cols-3 or similar */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.feature-card .card-image {
    /* height: 180px; */ /* Example fixed height */
    aspect-ratio: 16 / 9;
}
.feature-card .card-content h3 { color: var(--color-secondary); }

/* --- Innovation Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem 0;
}
.timeline::before { /* Vertical line */
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
    box-shadow: 1px 0 3px rgba(var(--color-shadow-dark-rgb),0.3);
}
.timeline-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
    color: var(--color-text-dark);
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 55px; /* Space for dot and line */
}
.timeline-dot {
    position: absolute;
    left: 10px; 
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--color-bg-main);
    border: 4px solid var(--color-accent);
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--neu-shadow-flat);
}
.timeline-content {
    background-color: var(--color-bg-alt);
    padding: var(--neu-padding);
    border-radius: var(--neu-border-radius);
    box-shadow: var(--neu-shadow-flat);
}
.timeline-content h4 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--color-complement);
    margin-bottom: 0.5em;
}
.innovation-toggles .subsection-title {
    text-align: center;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}
.toggle-switch-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: var(--neu-padding);
    background-color: var(--color-bg-alt);
    border-radius: var(--neu-border-radius);
    box-shadow: var(--neu-shadow-flat);
}
.toggle-switch-container span { margin-left: 1rem; font-weight: 600; color: var(--color-text-dark); }
.toggle-description {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    margin-left: 3.5rem; 
    color: var(--color-text-medium);
    margin-top: 0.3rem;
    line-height: 1.5;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0; /* Prevent shrinking in flex container */
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition-medium);
    border-radius: 28px;
    box-shadow: var(--neu-shadow-concave);
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-medium);
    border-radius: 50%;
    box-shadow: var(--neu-shadow-convex);
}
input:checked + .slider { background-color: var(--color-primary); }
input:checked + .slider:before { transform: translateX(22px); }

/* --- Instructors Section --- */
.instructors-grid { /* Alias for grid-cols-3 or similar */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.instructor-card .card-image {
    width: 150px; /* Smaller, circular images for profiles */
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    aspect-ratio: 1/1; /* Ensure it's a circle */
}
.instructor-card .card-content h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.instructor-card .card-content h4 { /* For instructor title */
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.8em;
}

/* --- Insights Section --- */
.stats-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 3rem;
}
.stat-widget {
    background-color: var(--color-bg-alt);
    padding: clamp(1.2rem, 2.5vw, var(--neu-padding));
    text-align: center;
    border-radius: var(--neu-border-radius);
    box-shadow: var(--neu-shadow-convex);
}
.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.1em;
    line-height: 1;
}
.stat-label {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5em;
}
.stat-description {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: var(--color-text-medium);
    line-height: 1.5;
}
.insights-chart-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: var(--neu-border-radius);
    box-shadow: var(--neu-shadow-flat);
    margin-bottom: 0.8rem;
}
.insights-chart-placeholder .caption {
    text-align: center;
    font-style: italic;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: var(--color-text-medium);
}

/* --- Portfolio Section --- */
.portfolio-grid { /* Alias for grid-cols-3 or similar */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.portfolio-card .card-image {
    aspect-ratio: 4/3; /* Common aspect ratio for portfolio items */
}

/* --- Clientele Section --- */
.clientele-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
}
.client-logo img {
    max-height: clamp(50px, 8vw, 75px);
    width: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: filter var(--transition-medium), opacity var(--transition-medium);
}
.client-logo img:hover {
    filter: grayscale(0%) opacity(1);
}
.testimonial-intro {
    text-align: center;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
}
.testimonial { /* Also a .card like structure but concave */
    background-color: var(--color-bg-main);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--neu-border-radius);
    box-shadow: var(--neu-shadow-concave); /* Inset for contrast */
    max-width: 700px;
    margin: 0 auto;
    text-align: center; /* Center content */
}
.testimonial blockquote {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-style: italic;
    margin-bottom: 1em;
    position: relative;
    padding-left: 2.5rem; /* Space for quote mark */
    text-align: left; /* Quote text can be left aligned */
    color: var(--color-text-medium);
}
.testimonial blockquote::before {
    content: '“';
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--color-accent);
    position: absolute;
    left: 0;
    top: -0.2em; /* Adjust vertical alignment */
    font-family: serif;
    line-height: 1;
    opacity: 0.8;
}
.testimonial cite {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--color-secondary);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* --- Resources Section --- */
.resources-list .resource-item.card {
    margin-bottom: 1.5rem;
    text-align: left; /* Resources typically have more text */
    align-items: flex-start; /* Align content to start for text blocks */
}
.resource-item h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 0.5em;
}
.resource-item h3 a {
    color: var(--color-primary);
}
.resource-item h3 a:hover {
    color: var(--color-primary-darker);
}
.resource-description {
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
    color: var(--color-text-medium);
    line-height: 1.6;
}

/* --- Contact Section (on homepage and contact page) --- */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(2rem, 4vw, 3rem);
}
.contact-form-container, .contact-info {
    flex: 1;
    min-width: min(100%, 320px); 
}
.contact-info h3, .contact-info h4 {
    color: var(--color-primary);
    margin-bottom: 0.8em;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}
.contact-info p {
    margin-bottom: 0.8em;
    display: flex; 
    align-items: flex-start; /* Align icon with first line of text */
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}
.contact-icon {
    margin-right: 0.8rem;
    margin-top: 0.2em; /* Align icon better with text */
    width: 20px;
    height: 20px;
    flex-shrink: 0; /* Prevent icon from shrinking */
    /* Basic filter for color, replace with actual SVG or font icons for better control */
    filter: invert(26%) sepia(39%) saturate(1079%) hue-rotate(99deg) brightness(92%) contrast(90%);
}
.map-placeholder img, .map-placeholder iframe {
    width: 100%;
    height: 250px; /* Fixed height for map */
    border-radius: var(--neu-border-radius);
    box-shadow: var(--neu-shadow-flat);
    margin-top: 1.5rem;
    object-fit: cover; /* For img placeholder */
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-text-dark); /* Darker footer */
    color: #B0BEC5; /* Lighter grey for text */
    padding: clamp(2.5rem, 5vw, 4rem) 0 0;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}
.footer-column h4 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--color-text-light);
    margin-bottom: 1em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.footer-column p, .footer-column ul li a {
    color: #B0BEC5;
    line-height: 1.7;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 0.8em;
}
.footer-column ul li a:hover {
    color: var(--color-text-light);
    text-decoration: underline;
}
/* Styling for text-based social links */
.social-links li a {
    text-transform: capitalize;
    font-weight: 500;
    padding: 0.3em 0; /* Add some padding for easier clicking */
    display: inline-block; /* Allows padding */
}
.social-links li a:hover {
    color: var(--color-accent); /* Highlight on hover */
}
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(176, 190, 197, 0.2); /* Subtle separator */
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: #90A4AE;
}

/* --- Page Specific Styles --- */
/* Header for inner pages (About, Contact, Privacy, Terms) */
.page-header-section {
    padding: clamp(4rem, 10vh, 6rem) 0; /* Shorter than main hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-text-light);
    position: relative;
}
.page-header-section .hero-overlay {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}
.page-header-section .page-title {
    position: relative;
    z-index: 2;
    color: var(--color-text-light);
    text-shadow: var(--text-shadow-hero);
}

/* Padding for Privacy and Terms content to avoid header overlap */
.privacy-page-content, .terms-page-content { /* Add these classes to main content of privacy/terms */
    padding-top: 100px; /* If header is fixed and ~70-80px tall */
}
.text-content h2 { /* For Privacy/Terms pages */
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--color-primary);
}
.text-content h2:first-of-type {
    margin-top: 0;
}
.text-content p, .text-content ul, .text-content ol {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.75;
}

/* Success Page Specific Styles */
.success-message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Full viewport height */
    text-align: center;
    padding: 2rem;
    background-color: var(--color-bg-alt); /* Optional: different background */
}
.success-icon {
    width: clamp(60px, 12vw, 90px);
    height: clamp(60px, 12vw, 90px);
    margin-bottom: 1.5rem;
    /* SVG Checkmark (already in HTML provided, this is a fallback or alternative) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233A7D44'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.success-message-container .section-title {
    color: var(--color-primary);
}

/* --- Animations (Keyframes for "drawn" style) --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translate3d(0, -30px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 30px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Hand-drawn scribble underline for specific headings (example) */
.scribble-underline::after {
    content: '';
    display: block;
    width: 80%;
    margin: 0.2em auto 0;
    height: 5px; /* Adjust height for thickness */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0,5 Q25,0 50,5 T100,5' fill='none' stroke='%233A7D44' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}


/* --- Responsive Design --- */
@media (max-width: 992px) { /* Tablet */
    .timeline::before { left: 10px; }
    .timeline-item { padding-left: 40px; }
    .timeline-dot { left: 0px; } /* Align with the new line position */

    .main-column.is-two-thirds, .sidebar-column {
        flex-basis: 100%; /* Stack columns */
    }
}

@media (max-width: 768px) { /* Mobile */
    .nav-toggle { display: block; }
    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        position: fixed; /* Changed from absolute to fixed for full screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Full viewport height */
        background-color: var(--color-bg-main);
        padding-top: 70px; /* Space for header */
        align-items: center;
        justify-content: center;
        text-align: center;
        box-shadow: 0 5px 15px rgba(var(--color-shadow-dark-rgb),0.15);
        overflow-y: auto; /* Allow scrolling if many links */
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Smooth slide */
        transform: translateX(-100%); /* Start off-screen */
    }
    .main-nav .nav-links.nav-open {
        display: flex;
        transform: translateX(0);
    }
    .main-nav .nav-links li {
        margin: 1.2rem 0;
    }
    .main-nav .nav-links a {
        font-size: 1.3rem; /* Larger for easier tapping */
    }

    .footer-container {
        text-align: center; /* Center footer content on mobile */
    }
    .footer-column {
        margin-bottom: 1.5rem;
    }
    .social-links {
        justify-content: center; /* Center social links */
    }

    .contact-wrapper {
        flex-direction: column;
    }

    /* Adjust padding for content under fixed header on specific pages if needed */
    .privacy-page-content, .terms-page-content {
        padding-top: 80px; /* May need adjustment based on final header height */
    }
}

@media (max-width: 480px) { /* Small Mobile */
    .section-title::after, .page-title::after {
        width: 70px; /* Smaller underline */
        height: 3px;
    }
    .card {
        padding: calc(var(--neu-padding) * 0.8);
    }
    .cta-button, button, input[type="submit"] {
        padding: 0.7em 1.5em; /* Slightly smaller padding */
    }
}

/* --- Utility Classes --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.parallax-background { /* For JS-driven parallax */
    background-attachment: scroll !important; /* Override fixed if JS is handling it */
}
/* Glassmorphism utility (use sparingly) */
.glass-effect {
    background: rgba(230, 235, 240, 0.6); /* Light base, adjust alpha */
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border-radius: var(--neu-border-radius);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}