/* style.css */

/* ------------------------ */
/* --- CSS VARIABLES --- */
/* ------------------------ */
:root {
    /* Tetradic Color Scheme */
    --color-primary: #0D47A1; /* Deep Blue */
    --color-primary-darker: #09316E;
    --color-primary-lighter: #1E63C3;

    --color-secondary: #0D7A0D; /* Deep Green */
    --color-secondary-darker: #085208;
    --color-secondary-lighter: #15A515;
    
    --color-accent1: #A15F0D; /* Burnt Orange */
    --color-accent1-darker: #7A4708;
    --color-accent1-lighter: #C8781A;

    --color-accent2: #7A0D7A; /* Deep Magenta */
    --color-accent2-darker: #5C0A5C;
    --color-accent2-lighter: #A01AA0;

    /* Neumorphism Background & Shadows */
    --color-background-light: #E0E5EC; /* Light Greyish Blue */
    --neumorphic-shadow-light: rgba(255, 255, 255, 0.8); /* Softer white for more subtlety */
    --neumorphic-shadow-dark: #A3B1C6;   /* Darker shade of background */
    --neumorphic-shadow-dark-stronger: #93A0B5; 

    /* Text Colors */
    --color-text-dark: #334155; /* Slate 700 */
    --color-text-light: #F8FAFC; /* Slate 50 */
    --color-text-muted: #64748B; /* Slate 500 */
    --color-text-hero: #FFFFFF;
    --color-text-heading: #222222; /* Darker for section titles */
    --color-link: var(--color-primary);
    --color-link-hover: var(--color-primary-darker);

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;

    /* Sizing & Spacing */
    --spacing-xs: 0.5rem;  /* 8px */
    --spacing-sm: 1rem;    /* 16px */
    --spacing-md: 1.5rem;  /* 24px */
    --spacing-lg: 2rem;    /* 32px */
    --spacing-xl: 3rem;    /* 48px */
    --spacing-xxl: 4rem;   /* 64px */

    --header-height: 70px; /* Adjusted slightly */

    /* Borders & Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;

    /* Transitions & Animations */
    --transition-duration-fast: 0.2s;
    --transition-duration-normal: 0.3s;
    --transition-timing-bouncy: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-timing-smooth: ease-in-out;
    
    /* Neumorphic Shadows */
    --neumorphic-shadow-convex: 7px 7px 15px var(--neumorphic-shadow-dark), 
                               -7px -7px 15px var(--neumorphic-shadow-light);
    --neumorphic-shadow-concave: inset 7px 7px 15px var(--neumorphic-shadow-dark), 
                                 inset -7px -7px 15px var(--neumorphic-shadow-light);
    --neumorphic-shadow-concave-stronger: inset 7px 7px 15px var(--neumorphic-shadow-dark-stronger), 
                                         inset -7px -7px 15px var(--neumorphic-shadow-light);

    /* Typography Scale (Adaptive) */
    --text-xs: clamp(0.75rem, 0.5vw + 0.6rem, 0.875rem); /* ~12px-14px */
    --text-sm: clamp(0.875rem, 0.5vw + 0.7rem, 1rem);    /* ~14px-16px */
    --text-base: clamp(1rem, 0.5vw + 0.8rem, 1.125rem);  /* ~16px-18px */
    --text-lg: clamp(1.125rem, 1vw + 0.8rem, 1.5rem);    /* ~18px-24px */
    --text-xl: clamp(1.5rem, 1.5vw + 1rem, 2rem);      /* ~24px-32px */
    --text-2xl: clamp(1.875rem, 2vw + 1.2rem, 2.5rem);  /* ~30px-40px */
    --text-3xl: clamp(2.25rem, 2.5vw + 1.5rem, 3.5rem); /* ~36px-56px */
    --text-4xl: clamp(3rem, 3vw + 2rem, 4.5rem);       /* ~48px-72px */
}

/* ------------------------ */
/* --- GLOBAL STYLES --- */
/* ------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* Base for rem units, typically 16px */
}

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

.main-container {
    width: 100%;
    overflow: hidden; /* Contains elements and prevents horizontal scroll */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-heading);
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05); /* Subtle shadow for better readability on light bg */
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    font-size: var(--text-base);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

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

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--spacing-md);
}

/* General Section Styling */
.section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: var(--text-3xl);
    color: var(--color-text-heading);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-intro {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-xl);
}

.subsection-title {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

/* Columns (Basic Flex Fallback for the HTML structure provided) */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: -var(--spacing-sm);
    margin-right: -var(--spacing-sm);
}

.column {
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    padding: var(--spacing-sm);
}

.column.is-one-third { flex: none; width: 33.3333%; }
.column.is-half { flex: none; width: 50%; }
.column.is-two-thirds { flex: none; width: 66.6666%; }

@media (max-width: 768px) {
    .columns {
        display: block;
    }
    .column {
        width: 100% !important; /* Stack columns on mobile */
        margin-bottom: var(--spacing-md);
    }
}


/* ------------------------ */
/* --- NEUMORPHIC STYLES --- */
/* ------------------------ */
.neumorphic {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--neumorphic-shadow-convex);
    transition: box-shadow var(--transition-duration-bouncy) var(--transition-timing-bouncy), 
                transform var(--transition-duration-bouncy) var(--transition-timing-bouncy);
}

.neumorphic-inset {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--neumorphic-shadow-concave);
}
.neumorphic-inset-stronger { /* For form inputs */
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--neumorphic-shadow-concave-stronger);
}

/* ------------------------ */
/* --- BUTTONS (GLOBAL) --- */
/* ------------------------ */
.button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--text-base);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-lg); /* More rounded for buttons */
    transition: all var(--transition-duration-bouncy) var(--transition-timing-bouncy);
    box-shadow: var(--neumorphic-shadow-convex);
    background-color: var(--color-background-light);
    color: var(--color-primary);
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    box-shadow: var(--neumorphic-shadow-concave); /* Press effect */
    color: var(--color-primary-darker);
    transform: translateY(-2px);
}

.button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    box-shadow: var(--neumorphic-shadow-concave-stronger);
    transform: translateY(1px) scale(0.98);
}

.button-primary, .button.button-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: 5px 5px 10px color-mix(in srgb, var(--color-primary) 70%, black), 
               -5px -5px 10px color-mix(in srgb, var(--color-primary) 70%, white);
}
.button-primary:hover, .button.button-primary:hover {
    background-color: var(--color-primary-darker);
    color: var(--color-text-light);
    box-shadow: inset 3px 3px 7px color-mix(in srgb, var(--color-primary-darker) 80%, black), 
                inset -3px -3px 7px color-mix(in srgb, var(--color-primary-darker) 80%, white);
}

.button-secondary, .button.button-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
     box-shadow: 5px 5px 10px color-mix(in srgb, var(--color-secondary) 70%, black), 
               -5px -5px 10px color-mix(in srgb, var(--color-secondary) 70%, white);
}
.button-secondary:hover, .button.button-secondary:hover {
    background-color: var(--color-secondary-darker);
    color: var(--color-text-light);
    box-shadow: inset 3px 3px 7px color-mix(in srgb, var(--color-secondary-darker) 80%, black), 
                inset -3px -3px 7px color-mix(in srgb, var(--color-secondary-darker) 80%, white);
}

/* ------------------------ */
/* --- FORM ELEMENTS --- */
/* ------------------------ */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-dark);
}

.form-input, .form-textarea, .form-select,
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"],
textarea, select {
    width: 100%;
    padding: var(--spacing-sm);
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    border: 1px solid transparent; /* Prepare for focus */
    border-radius: var(--border-radius-md);
    box-shadow: var(--neumorphic-shadow-concave-stronger); /* Inset by default */
    transition: box-shadow var(--transition-duration-normal) var(--transition-timing-smooth), 
                border-color var(--transition-duration-normal) var(--transition-timing-smooth);
}

.form-input:focus, .form-textarea:focus, .form-select:focus,
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="number"]:focus,
textarea:focus, select:focus {
    outline: none;
    box-shadow: var(--neumorphic-shadow-convex), 0 0 0 2px var(--color-primary-lighter); /* Outer glow on focus */
    border-color: var(--color-primary-lighter);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ------------------------ */
/* --- HEADER & NAVIGATION --- */
/* ------------------------ */
.site-header {
    background-color: var(--color-background-light);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Standard shadow for fixed header */
}

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

.logo {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}
.logo:hover { text-decoration: none; }

.logo-accent {
    color: var(--color-accent1);
}

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

.main-nav .nav-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-text-dark);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-duration-fast) var(--transition-timing-smooth);
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--color-primary);
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: calc(var(--spacing-sm) - 10px); /* Adjust for visual center */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: width var(--transition-duration-normal) var(--transition-timing-bouncy);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 60%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    box-shadow: none; /* Override global button style for toggle */
}
.nav-toggle:hover, .nav-toggle:active { box-shadow: none; transform: none; }


.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition-duration-normal) var(--transition-timing-smooth);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .main-nav .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-background-light);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: var(--spacing-sm) 0;
    }

    .main-nav .nav-menu.is-active {
        display: flex;
    }

    .main-nav .nav-link {
        text-align: center;
        width: 100%;
        padding: var(--spacing-md) var(--spacing-sm);
    }
    .main-nav .nav-link::after { bottom: var(--spacing-sm); }

    .nav-toggle {
        display: block;
    }

    .nav-toggle.is-active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.is-active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Main content padding to avoid overlap with fixed header */
main {
    padding-top: var(--header-height);
}


/* ------------------------ */
/* --- HERO SECTION --- */
/* ------------------------ */
.hero-section {
    min-height: calc(100vh - var(--header-height));
    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-hero); /* White text from HTML */
    padding: var(--spacing-xl) var(--spacing-sm);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-hero); /* Ensure white */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Enhance readability */
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-hero); /* Ensure white */
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7); /* Enhance readability */
}

.hero-section .button {
    font-size: var(--text-lg);
    padding: var(--spacing-md) var(--spacing-xl);
    /* Primary button style will apply */
}

/* ------------------------ */
/* --- CARDS (GLOBAL) --- */
/* ------------------------ */
.card {
    padding: var(--spacing-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-background-light); /* Ensure cards have base BG */
    height: 100%; /* For equal height cards in a grid */
}

.card .card-image, .card .image-container { /* Ensure both classes work */
    width: 100%;
    max-width: 300px; /* Control max image width within card */
    height: 200px; /* Fixed height for image containers in cards */
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    display: flex; /* For centering image inside */
    justify-content: center;
    align-items: center;
}

.card .card-image img, .card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop and center image */
    display: block; /* remove extra space below image */
}

.card .card-content {
    flex-grow: 1; /* Allows content to fill space if cards are equal height */
    width: 100%;
}

.card .card-content h3, .card .card-content .step-title, .card .card-content .team-member-name {
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.card .card-content p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: 0; /* Remove default p margin if it's the last element */
}

/* ------------------------ */
/* --- PROCESS SECTION --- */
/* ------------------------ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}
.process-step .step-icon-container {
    width: 100px;
    height: 100px;
    margin-bottom: var(--spacing-md);
    border-radius: 50%; /* Circular icons */
    padding: var(--spacing-sm); /* Padding inside the neumorphic circle */
}
.process-step .step-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ------------------------ */
/* --- HISTORY SECTION --- */
/* ------------------------ */
.history-section .image-column .image-container {
    padding: var(--spacing-sm); /* Neumorphic effect on the container */
    border-radius: var(--border-radius-lg);
}
.history-section .image-column img {
    border-radius: calc(var(--border-radius-lg) - var(--spacing-sm)); /* Inner image radius */
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

/* ------------------------ */
/* --- INSIGHTS SECTION (STAT WIDGETS) --- */
/* ------------------------ */
.stats-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}
.stat-widget {
    padding: var(--spacing-lg);
    text-align: center;
}
.stat-widget .stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-accent1);
    display: block;
}
.stat-widget .stat-unit {
    font-size: var(--text-lg);
    color: var(--color-accent1);
    margin-left: var(--spacing-xs);
}
.stat-widget .stat-label {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-dark);
    margin-top: var(--spacing-xs);
    display: block;
}
.stat-widget .stat-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--spacing-sm);
}

/* ------------------------ */
/* --- GALLERY SECTION --- */
/* ------------------------ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.gallery-item .card-image { height: 250px; } /* Specific height for gallery images */
.gallery-item .card-content p {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-dark);
}

/* ------------------------ */
/* --- CLIENTELE SECTION --- */
/* ------------------------ */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}
.client-logo-item {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    text-align: center;
}
.client-logo-item img {
    max-height: 80px;
    width: auto;
    margin: 0 auto var(--spacing-sm) auto;
    filter: grayscale(30%); /* Subtle desaturation for neumorphic feel */
    opacity: 0.85;
}
.client-logo-item p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ------------------------ */
/* --- CUSTOMER STORIES --- */
/* ------------------------ */
.story-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}
.story-card .card-image { /* For portrait */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
}
.story-card .testimonial-text {
    font-size: var(--text-base);
    font-style: italic;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-lg);
}
.story-card .testimonial-text::before {
    content: '“';
    font-size: var(--text-4xl);
    color: var(--color-accent1);
    position: absolute;
    left: -5px;
    top: -10px;
    font-family: serif;
    opacity: 0.5;
}
.story-card .testimonial-author {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
}

/* ------------------------ */
/* --- TEAM (INSTRUCTORS) SECTION --- */
/* ------------------------ */
.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.team-member-card .card-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
}
.team-member-card .team-member-title {
    font-size: var(--text-base);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}
.team-member-card .team-member-bio {
    font-size: var(--text-sm);
}

/* ------------------------ */
/* --- MEDIA RESOURCES SECTION --- */
/* ------------------------ */
.external-links-grid {
    gap: var(--spacing-lg) 0; /* Vertical gap, no horizontal for columns */
}
.resource-card {
    height: 100%;
    display: flex; /* Ensure content alignment */
    flex-direction: column;
}
.resource-card .card-content {
    text-align: left; /* Override default card center for these */
    flex-grow: 1;
}
.resource-card .resource-title a {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}
.resource-card .resource-title a:hover {
    color: var(--color-primary-darker);
    text-decoration: underline;
}
.resource-card .resource-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
}
.resource-card .title.is-5 { /* Bulma compatibility from HTML */
    font-size: var(--text-lg); margin-bottom: var(--spacing-xs);
}
.resource-card .subtitle.is-6 { /* Bulma compatibility from HTML */
    font-size: var(--text-sm); margin-top: 0;
}

/* ------------------------ */
/* --- COMMUNITY SECTION --- */
/* ------------------------ */
.community-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}
.community-section .section-title,
.community-section .community-text,
.community-section .community-assurance {
    color: var(--color-text-hero); /* White text from HTML */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}
.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    max-width: 600px;
    margin: var(--spacing-lg) auto;
}
.newsletter-form .form-input {
    flex-grow: 1;
    box-shadow: var(--neumorphic-shadow-concave-stronger); /* Ensure good contrast on dark bg */
    background-color: rgba(255,255,255,0.9); /* Slightly transparent white for input */
    color: var(--color-text-dark);
}
.newsletter-form .form-input::placeholder { color: var(--color-text-muted); }
.newsletter-form .button {
    /* Uses .button-secondary styles */
    flex-shrink: 0;
}
@media (max-width: 500px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form .form-input, .newsletter-form .button {
        width: 100%;
    }
}
.community-assurance {
    font-size: var(--text-xs);
    opacity: 0.8;
}

/* ------------------------ */
/* --- CONTACT SECTION --- */
/* ------------------------ */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}
.contact-info-columns {
    margin-top: var(--spacing-xl);
    gap: var(--spacing-lg) 0;
}
.contact-info-item {
    padding: var(--spacing-lg);
    text-align: center;
}
.contact-info-item .contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md) auto;
    filter: brightness(0.9) contrast(1.1); /* Adjust icon for neumorphic bg */
}
.contact-info-item .contact-info-title {
    font-size: var(--text-lg);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}
.contact-info-item p {
    font-size: var(--text-base);
    margin-bottom: 0;
}
.map-container {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-lg);
}
.map-container iframe {
    border-radius: calc(var(--border-radius-lg) - var(--spacing-sm));
    display: block;
    width: 100%;
}

/* ------------------------ */
/* --- FOOTER --- */
/* ------------------------ */
.site-footer {
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    background-color: var(--color-background-light);
    border-top: 3px solid var(--neumorphic-shadow-dark); /* Neumorphic separator */
    box-shadow: 0 -5px 15px -5px var(--neumorphic-shadow-dark); /* Subtle top shadow */
}

.neumorphic-footer { /* Keep this class if it has specific neumorphic aspects not covered by .site-footer */
    /* Add specific neumorphic styles if needed, else merge with .site-footer */
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column .footer-heading {
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.footer-column p, .footer-column ul {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column ul li a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--neumorphic-shadow-dark);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Social Media Text Links in Footer */
.footer-column.social-media ul li a {
    font-weight: 500; /* Make them slightly bolder */
}

/* ------------------------ */
/* --- SPECIFIC PAGE STYLES --- */
/* ------------------------ */

/* Page Title Section (used on about.html, contacts.html etc.) */
.page-title-section {
    min-height: 40vh; /* Shorter than hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xl) var(--spacing-sm);
}
.page-main-title {
    font-size: var(--text-3xl); /* Slightly smaller than hero title */
    color: var(--color-text-hero);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}
.page-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-hero);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}


/* About Page Specifics */
.mission-card .card-image, .vision-card .card-image {
    width: 100px; height: 100px; border-radius: 50%; padding: var(--spacing-sm);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}
.value-item { padding: var(--spacing-lg); }
.value-item .value-title { font-size: var(--text-lg); color: var(--color-secondary); }

/* Privacy & Terms Pages */
.page-privacy main, .page-terms main,
body:has(#privacy-policy-content) main,
body:has(#terms-content) main {
    padding-top: calc(var(--header-height) + var(--spacing-lg)); /* Ensures content is below fixed header */
}
.content-text {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.content-text ul {
    list-style: disc;
    padding-left: var(--spacing-lg);
}
.content-text ul li { margin-bottom: var(--spacing-xs); }


/* Success Page */
.success-page-section {
    min-height: calc(100vh - var(--header-height) - var(--footer-height, 100px)); /* Adjust footer height if known */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.success-message-container {
    padding: var(--spacing-xxl);
    max-width: 600px;
}
.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-lg) auto;
}
.success-title {
    font-size: var(--text-2xl);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}
.success-text {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

/* ------------------------ */
/* --- UTILITY CLASSES --- */
/* ------------------------ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent1 { color: var(--color-accent1); }
.text-light { color: var(--color-text-light); }
.text-dark { color: var(--color-text-dark); }
.text-muted { color: var(--color-text-muted); }

.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--spacing-xs) !important; }
.mb-sm { margin-bottom: var(--spacing-sm) !important; }
.mb-md { margin-bottom: var(--spacing-md) !important; }
.mb-lg { margin-bottom: var(--spacing-lg) !important; }
.mb-xl { margin-bottom: var(--spacing-xl) !important; }

/* Read More Link Style */
.read-more-link {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-accent1);
    text-decoration: none;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color var(--transition-duration-fast) var(--transition-timing-smooth);
}
.read-more-link::after {
    content: '→';
    margin-left: var(--spacing-xs);
    transition: transform var(--transition-duration-fast) var(--transition-timing-smooth);
    display: inline-block;
}
.read-more-link:hover {
    color: var(--color-accent1-darker);
}
.read-more-link:hover::after {
    transform: translateX(5px);
}


/* Cookie Consent Popup */
#cookieConsentPopup p {
    color: #fff; /* Explicitly set for direct style block */
    font-size: 14px; /* from HTML */
}
#cookieConsentPopup button {
    /* Uses global button styles but can be overridden if needed */
    font-size: 14px; /* from HTML */
    padding: 10px 20px; /* from HTML */
    color: white; /* from HTML */
    background-color: var(--color-primary); /* Use a theme color */
    box-shadow: none; /* Might want simpler shadow for this */
}
#cookieConsentPopup button:hover {
    background-color: var(--color-primary-darker);
    box-shadow: none;
}


/* Parallax placeholder - actual effect via JS */
.parallax-background {
    background-attachment: fixed; /* Basic parallax, JS can enhance */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* Responsive adjustments for columns if not using a grid framework's classes */
@media (max-width: 992px) {
    .column.is-one-third, .column.is-half, .column.is-two-thirds {
        width: 50%;
    }
    .column.is-two-thirds {
        /* On medium screens, two-thirds might still take more space or stack */
    }
}

@media (max-width: 768px) {
    .column.is-one-third, .column.is-half, .column.is-two-thirds {
        width: 100%; /* Fully stack on smaller screens */
    }
    .section-title { font-size: var(--text-2xl); }
    .hero-title { font-size: var(--text-3xl); }
    .hero-subtitle { font-size: var(--text-lg); }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input, .newsletter-form button { width: 100%; }
}