/* style.css */

:root {
    /* Typography */
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Nunito', sans-serif;

    /* Neomorphism Base Colors */
    --color-bg: #F0F4F8;
    --color-element-bg: #F0F4F8;
    --color-shadow-light: #FFFFFF;
    --color-shadow-dark: #D1D9E6;
    --color-shadow-dark-strong: #A3B1C6;

    /* Tetradic Palette & Accents (Example - Adjust as needed) */
    /* Primary Action Color */
    --color-primary: #7B68EE;         /* Medium Slate Blue (Vibrant Purple-Blue) */
    --color-primary-dark: #5a4acf;    /* Darker shade for hover/active */
    --color-primary-light: #9D89F0;   /* Lighter shade */

    /* Secondary Accent (Complementary or Tetradic Point) */
    --color-secondary: #32CD32;       /* Lime Green (Vibrant Green) */
    --color-secondary-dark: #228B22;  /* Forest Green */

    /* Tertiary Accent */
    --color-tertiary: #FF6347;        /* Tomato (Vibrant Orange-Red) */
    --color-tertiary-dark: #E5533D;

    /* Quaternary Accent */
    --color-quaternary: #1E90FF;      /* Dodger Blue (Vibrant Blue) */
    --color-quaternary-dark: #104E8B;

    /* Text Colors */
    --color-text-headings: #1A202C;   /* Very Dark Blue (almost black) */
    --color-text-body: #333333;       /* Dark Grey for better contrast on light bg */
    --color-text-light: #FFFFFF;
    --color-text-subtle: #555555;     /* Medium Grey for less emphasis */
    --color-link: var(--color-primary);
    --color-link-hover: var(--color-primary-dark);

    /* Borders */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;
    --border-radius-pill: 50px;

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

    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.3s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;

    /* Box Shadows - Neomorphic */
    --shadow-neumorphic-sm: 5px 5px 10px var(--color-shadow-dark), -5px -5px 10px var(--color-shadow-light);
    --shadow-neumorphic-md: 8px 8px 15px var(--color-shadow-dark), -8px -8px 15px var(--color-shadow-light);
    --shadow-neumorphic-lg: 12px 12px 20px var(--color-shadow-dark-strong), -12px -12px 20px var(--color-shadow-light);
    --shadow-neumorphic-inset-sm: inset 2px 2px 5px var(--color-shadow-dark), inset -2px -2px 5px var(--color-shadow-light);
    --shadow-neumorphic-inset-md: inset 5px 5px 10px var(--color-shadow-dark), inset -5px -5px 10px var(--color-shadow-light);
    --shadow-neumorphic-pressed: inset 6px 6px 12px var(--color-shadow-dark), inset -6px -6px 12px var(--color-shadow-light);


    /* Standard Box Shadows (for overlays or non-neomorphic elements) */
    --shadow-standard-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-standard-md: 0 4px 8px rgba(0,0,0,0.1);
}

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

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

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-text-headings);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    text-align: center;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: var(--spacing-sm);
}
/* Decorative underline for section titles */
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-sm);
}

h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-body);
}
p:last-child {
    margin-bottom: 0;
}

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

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

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

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}
.text-center { text-align: center; }
.text-light { color: var(--color-text-light) !important; }
.text-primary { color: var(--color-primary) !important; }

/* Main Layout Elements */
.main-header {
    background-color: var(--color-element-bg);
    padding: var(--spacing-sm) 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-neumorphic-sm); /* Subtle neomorphic shadow */
    transition: var(--transition-medium);
}
.main-header.scrolled { /* Add via JS on scroll */
    background-color: rgba(240, 244, 248, 0.95); /* Slightly transparent */
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-standard-md);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
}
.logo:hover, .logo:focus {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.main-nav ul.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}
.main-nav ul.nav-menu li {
    margin-left: var(--spacing-md);
}
.main-nav ul.nav-menu li a {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-body);
    padding: var(--spacing-xs) 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.main-nav ul.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--color-primary);
    transition: var(--transition-medium);
    border-radius: var(--border-radius-sm);
}
.main-nav ul.nav-menu li a:hover::after,
.main-nav ul.nav-menu li a.active::after,
.main-nav ul.nav-menu li a:focus::after {
    width: 100%;
}
.main-nav ul.nav-menu li a:focus {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
    text-decoration: none;
}


.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001; /* Above nav menu for clickability */
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-headings);
    margin: 5px 0;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-medium);
}


main {
    padding-top: 100px; /* Adjust based on final header height */
}
section {
    padding: var(--spacing-xl) 0;
}

/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: var(--transition-medium);
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: var(--shadow-neumorphic-md);
}
.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light); /* Ensure text remains light */
    box-shadow: var(--shadow-neumorphic-lg);
    transform: translateY(-2px);
    text-decoration: none;
}
.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active,
.btn:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus {
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-neumorphic-pressed);
    transform: translateY(1px);
    outline: none; /* Custom focus visibility or remove if not needed */
}
.btn:focus-visible { /* Modern focus styling */
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

.btn-secondary {
    background-color: var(--color-element-bg);
    color: var(--color-primary);
    box-shadow: var(--shadow-neumorphic-md);
}
.btn-secondary:hover {
    background-color: var(--color-element-bg);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-neumorphic-lg);
}
.btn-secondary:active, .btn-secondary:focus {
    background-color: var(--color-element-bg);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-neumorphic-pressed);
}

.btn-light { /* For use on dark backgrounds */
    background-color: var(--color-text-light);
    color: var(--color-primary);
}
.btn-light:hover {
    background-color: #f0f0f0; /* Slightly off-white */
    color: var(--color-primary-dark);
}

/* Text Link (e.g., "Read More") */
.text-link {
    font-weight: 700;
    color: var(--color-primary);
    display: inline-block;
    position: relative;
    padding-right: var(--spacing-md); /* Space for arrow */
}
.text-link::after {
    content: '→'; /* Simple arrow */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition-fast);
}
.text-link:hover::after {
    transform: translateY(-50%) translateX(3px);
}
.text-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}


/* Global Card Styles */
.card {
    background-color: var(--color-element-bg);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-neumorphic-md);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    /* align-items: center; Already applied below specific to card-image */
    text-align: left; /* Default text alignment in card */
}
.card:hover {
    box-shadow: var(--shadow-neumorphic-lg);
    transform: translateY(-5px);
}
.card-image { /* Container for image in card */
    width: 100%;
    /* STROGO: fixed height for image containers for consistency */
    height: 200px; /* Example fixed height, adjust as needed per card type */
    border-radius: var(--border-radius-sm); /* Rounded corners for the image itself */
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    display: flex; /* For centering the image if it's smaller than container */
    justify-content: center;
    align-items: center;
    background-color: var(--color-shadow-dark); /* Placeholder bg for image area */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* STROGO: Ensures image covers container without distortion */
    display: block; /* Remove extra space below image */
    border-radius: var(--border-radius-sm); /* Match container if image is direct child */
}
.card-content {
    flex-grow: 1; /* Allows content to take up remaining space if card uses flex */
}
.card-content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    text-align: left; /* Titles typically left aligned in cards */
}
.card-content h3 a {
    color: inherit;
}
.card-content h3 a:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}
.card-content p {
    font-size: 0.95rem;
    color: var(--color-text-subtle);
    margin-bottom: var(--spacing-sm);
}
/* Centering for elements within cards when specifically needed, like team member cards */
.card.text-center-content,
.team-member-card, .testimonial-card /* Example classes */ {
    text-align: center; /* Centers inline/inline-block children */
}
.card.text-center-content .card-image,
.team-member-card .card-image { /* If image needs to be centered within a non-full-width container */
    margin-left: auto;
    margin-right: auto;
}
.card.text-center-content .card-content h3 {
    text-align: center;
}

/* Grid for Cards */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}
/* Default to 1 column, then adjust with media queries */
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); } /* Responsive 2-col */
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); } /* Responsive 3-col */


/* Hero Section */
.hero-section {
    /* min-height: 75vh; Adjust to content, avoid fixed large min-heights */
    padding: var(--spacing-xl) 0; /* Ample padding */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
/* Dark overlay for readability if there's a background image */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Example: background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)); */
    /* This is handled by inline style in HTML for specific image */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-content h1 {
    color: var(--color-text-light); /* IMPORTANT: Hero text must be white */
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    margin-bottom: var(--spacing-md);
}
.hero-content p {
    color: var(--color-text-light); /* IMPORTANT: Hero text must be white */
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    margin-bottom: var(--spacing-lg);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
.hero-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* Mission Section */
.mission-section .mission-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}
.mission-image-container img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-neumorphic-lg);
}
/* Asymmetric balance: image can be offset or sized differently */
@media (min-width: 768px) {
    .mission-section .mission-content {
        grid-template-columns: 1.2fr 0.8fr; /* Text takes more space, image less */
    }
    .mission-section .mission-image-container {
        justify-self: end; /* Pushes image to the right for asymmetry */
    }
    .mission-section .mission-image-container img {
        max-width: 450px; /* Control image size */
    }
}


/* Instructors, Projects, News, Case Studies, External Resources (Use general card + grid styles) */
.instructors-grid, .projects-grid, .news-grid, .case-studies-slider, .resources-grid {
    /* Default to 1 column, adjust in media queries */
    grid-template-columns: 1fr;
}
@media (min-width: 600px) {
    .instructors-grid, .projects-grid, .news-grid, .case-studies-slider, .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}
@media (min-width: 992px) {
    /* For 3-column layouts if desired on larger screens */
    .instructors-grid, .projects-grid, .news-grid {
       /* Example: grid-template-columns: repeat(3, 1fr); */
    }
}

/* Specific Card types */
.instructor-card .card-image, .team-member-card .card-image {
    height: 280px; /* Specific height for instructor/team photos */
}
.resource-card .card-content h3 {
    font-size: 1.3rem; /* Smaller headings for resource links */
    color: var(--color-quaternary);
}
.resource-card .card-content h3 a:hover {
    color: var(--color-quaternary-dark);
}

/* History Section */
.history-timeline {
    margin-top: var(--spacing-lg);
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.history-timeline::before { /* The central line */
    content: '';
    position: absolute;
    left: 10px; /* Or 50% for centered, then adjust items */
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-shadow-dark);
    border-radius: var(--border-radius-sm);
}
.timeline-item {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    background: var(--color-element-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-neumorphic-sm);
    position: relative;
    padding-left: var(--spacing-xl); /* Space for the dot */
    margin-left: 30px; /* Space from central line */
}
.timeline-item::before { /* The dot on the line */
    content: '';
    position: absolute;
    left: -23px; /* ( (30px margin-left) - ( (4px line width / 2) + 10px left offset for line) ) - ( (10px dot width / 2 )  ) */
    top: 1.2rem; /* Align with text */
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
    border: 2px solid var(--color-element-bg);
    z-index: 1;
}
.timeline-item h4 {
    text-align: left;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

/* Press Section */
.press-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}
.press-logos img {
    max-height: 50px;
    width: auto;
    filter: grayscale(80%);
    opacity: 0.8;
    transition: var(--transition-medium);
}
.press-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}
.press-quote {
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg) auto;
    color: var(--color-text-subtle);
    padding: var(--spacing-md);
    background-color: var(--color-element-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-neumorphic-inset-md);
}
.press-quote p:first-child {
    font-weight: 700;
    color: var(--color-text-body);
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    background-color: var(--color-element-bg);
    box-shadow: var(--shadow-neumorphic-sm);
    overflow: hidden;
    transition: var(--transition-medium);
}
.faq-item:hover {
    box-shadow: var(--shadow-neumorphic-md);
}
.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: var(--color-text-headings);
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after { /* Toggle icon */
    content: '+';
    font-size: 1.8rem;
    color: var(--color-primary);
    transition: transform var(--transition-fast);
}
.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
    /* padding: 0 var(--spacing-lg); Handled by JS for smoother transition */
}
.faq-answer p {
    padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-md);
    font-size: 0.95rem;
    color: var(--color-text-body);
    margin:0;
}

/* Contact Section & Form (on contacts.html but can be styled globally) */
.contact-form-container {
    padding: var(--spacing-lg);
    background-color: var(--color-element-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-neumorphic-md);
}
.contact-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
    color: var(--color-text-subtle);
    font-size: 0.9rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"], /* Added tel for consistency */
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border: none;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-element-bg); /* Base for neomorphism */
    box-shadow: var(--shadow-neumorphic-inset-md);
    font-size: 1rem;
    color: var(--color-text-body);
    transition: var(--transition-fast);
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: var(--shadow-neumorphic-inset-md), 0 0 0 2.5px var(--color-primary-light); /* Focus ring */
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form button[type="submit"] {
    width: 100%; /* Full width button in form */
}
.contact-info-container {
    padding: var(--spacing-lg);
}
.contact-info-container h3 {
    text-align: left;
    color: var(--color-primary);
}
.contact-info-container p {
    margin-bottom: var(--spacing-sm);
}
.contact-info-container a {
    color: var(--color-text-body);
}
.contact-info-container a:hover {
    color: var(--color-primary);
}
.map-placeholder {
    margin-top: var(--spacing-lg);
    background-color: var(--color-element-bg);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    text-align:center;
    box-shadow: var(--shadow-neumorphic-md);
}
.map-placeholder img {
    border-radius: var(--border-radius-sm);
    margin-top: var(--spacing-sm);
    border: 2px solid var(--color-shadow-dark);
}

/* CTA Section (Example from ./) */
.cta-contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-primary); /* Solid background */
    text-align: center;
}
.cta-contact-section h2 {
    color: var(--color-text-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.cta-contact-section p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}


/* Footer */
.main-footer {
    background-color: var(--color-shadow-dark-strong); /* Darker base for footer */
    color: var(--color-bg); /* Light text on dark footer */
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    text-align: center;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    text-align: left;
}
.main-footer h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.main-footer ul {
    list-style: none;
    padding: 0;
}
.main-footer ul li {
    margin-bottom: var(--spacing-xs);
}
.main-footer ul li a {
    color: var(--color-bg); /* Light link color */
    opacity: 0.85;
    transition: var(--transition-fast);
}
.main-footer ul li a:hover, .main-footer ul li a:focus {
    color: var(--color-text-light);
    opacity: 1;
    text-decoration: underline;
    padding-left: 3px; /* Microinteraction */
}
.footer-contact-info p {
    margin-bottom: var(--spacing-xs);
    color: var(--color-bg);
    opacity: 0.85;
}
.footer-social ul { /* Text-based social links */
    display: flex;
    flex-direction: column; /* Stack them or make them inline as needed */
}
.footer-social ul li a {
    font-weight: 700; /* Make social links slightly bolder */
}
.footer-copyright {
    grid-column: 1 / -1; /* Span all columns */
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: var(--color-bg);
    opacity: 0.7;
}

/* Specific Page Styles */
/* privacy.html & terms.html */
body.page-privacy main,
body.page-terms main { /* Add class to body of these pages */
    padding-top: 120px; /* Extra padding to not overlap with fixed header */
}
.page-privacy .container, .page-terms .container {
    background-color: var(--color-text-light); /* White background for readability */
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-standard-md);
}
.page-privacy h1, .page-terms h1 { margin-top:0; }
.page-privacy h2, .page-terms h2 { text-align: left; margin-top: var(--spacing-lg); }
.page-privacy ul, .page-terms ul { margin-left: var(--spacing-md); }

/* success.html */
body.page-success {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.page-success main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0; /* Override default main padding */
}
body.page-success .container { /* The content box */
    background-color: var(--color-element-bg);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-neumorphic-lg);
    text-align: center;
    max-width: 600px;
}
body.page-success h1 {
    color: var(--color-secondary); /* Green for success */
    font-size: clamp(2rem, 4vw, 3rem);
}
body.page-success img {
    margin: 0 auto var(--spacing-md) auto; /* Center image */
}

/* Modal Styles (Basic - hidden by default) */
.modal {
    display: none; /* Hidden by default, shown with JS */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Dark overlay */
    backdrop-filter: blur(5px); /* Glassmorphism touch */
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex; /* Use flex to center */
}
.modal-content {
    background-color: var(--color-element-bg);
    margin: auto;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-neumorphic-lg);
    max-width: 90%;
    width: 600px; /* Adjust as needed */
    position: relative;
    animation: modalCardAppear 0.4s ease-out;
}
@keyframes modalCardAppear {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close-btn {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-subtle);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    box-shadow: none;
}
.modal-close-btn:hover {
    color: var(--color-tertiary);
    background: none;
    box-shadow: none;
    transform: none;
}


/* Responsive Design */
@media (max-width: 991px) {
    /* Adjust grid for tablets if needed */
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 767px) {
    html { font-size: 93.75%; } /* 15px base */
    h1 { font-size: 2.2rem; }
    h2.section-title { font-size: 1.8rem; margin-bottom: var(--spacing-lg); }
    
    .main-nav ul.nav-menu {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--color-element-bg);
        box-shadow: var(--shadow-standard-md);
        padding: var(--spacing-sm) 0;
        border-top: 1px solid var(--color-shadow-dark);
    }
    .main-nav ul.nav-menu.active {
        display: flex; /* Show when active */
        animation: slideDownNav 0.3s ease-out;
    }
    @keyframes slideDownNav {
        from { opacity:0; transform: translateY(-10px); }
        to { opacity:1; transform: translateY(0); }
    }
    .main-nav ul.nav-menu li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .main-nav ul.nav-menu li a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        width: 100%;
        border-bottom: 1px solid var(--color-shadow-dark);
    }
    .main-nav ul.nav-menu li:last-child a {
        border-bottom: none;
    }
    .main-nav ul.nav-menu li a::after {
        display: none; /* No underline for mobile menu items typically */
    }
    .main-nav ul.nav-menu li a:hover,
    .main-nav ul.nav-menu li a.active {
        background-color: var(--color-primary-light);
        color: var(--color-text-light);
    }
    .nav-toggle {
        display: block; /* Show burger icon */
    }
    /* Burger icon animation */
    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .mission-section .mission-content {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .mission-section .mission-image-container {
        justify-self: center; /* Center image on mobile */
        margin-top: var(--spacing-md);
    }
    .mission-section .mission-image-container img {
        max-width: 100%;
    }

    .footer-container {
        text-align: center;
    }
    .footer-container > div {
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    .main-footer ul {
        display: inline-block; /* Allows text-align center to work */
    }
}

/* Animate.css Integration (Optional, ensure it doesn't conflict) */
/* You can add custom delays or variations for Animate.css classes if needed */
/* Example:
.animate__fadeInUp {
    --animate-duration: 0.8s;
}
*/