/* style.css */

:root {
    /* Fonts */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Colors - Neutral Scheme with Creative Accents */
    --color-primary: #5DADE2; /* Accent Blue */
    --color-primary-dark: #3498DB; /* Darker shade for hover */
    --color-primary-light: #A9CCE3; /* Lighter shade */
    
    --color-text-dark: #333333;
    --color-text-darker: #222222; /* For main headings */
    --color-text-light: #FFFFFF;
    --color-text-on-primary: #FFFFFF;
    --color-text-muted: #555555; /* For less important text on light backgrounds */
    --color-text-muted-dark-bg: #BDC3C7; /* For less important text on dark backgrounds */
    --color-link: var(--color-primary);
    --color-link-hover: var(--color-primary-dark);

    --color-background-body: #F4F6F8; /* Light grey for overall page background */
    --color-background-light: #FFFFFF; /* For cards, content areas */
    --color-background-medium: #F8F9FA; /* For sections with slightly different bg */
    --color-background-dark-section: #2C3E50; /* Example dark background for sections like stats */
    --color-background-footer: #1C2833;

    --color-border: #DEE2E6;
    --color-input-border: #CED4DA;
    --color-input-focus-border: var(--color-primary);
    --color-input-background: #FFFFFF;

    /* Shadows for Volumetric UI */
    --shadow-depth-small: 0 2px 4px rgba(0, 0, 0, 0.07);
    --shadow-depth-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-depth-large: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-volumetric-button: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-volumetric-button-hover: 0 6px 12px rgba(0,0,0,0.2);
    --shadow-volumetric-card: 0px 8px 25px rgba(0, 0, 0, 0.08), 0px 0px 5px rgba(0,0,0,0.05);

    /* Spacing */
    --spacing-unit: 8px;
    --container-width: 1140px;
    --container-padding: calc(var(--spacing-unit) * 2); /* 16px */
    --section-padding-y: calc(var(--spacing-unit) * 8); /* 64px */

    /* Borders & Radii */
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 12px;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.3s ease-in-out;
}

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

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 0px !important;
}

.main-wrapper {
    overflow: hidden; /* Contains AOS animations */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--color-text-darker);
}

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

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

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

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

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

ul {
    list-style: none;
}

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

/* Section Styling */
.section-padding {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 5); /* 40px */
    font-weight: 800;
    color: var(--color-text-darker); /* Ensure good contrast */
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 5); /* 40px */
    color: var(--color-text-muted);
    font-size: 1.1em;
}

/* Parallax Background Effect (Basic) */
/* Advanced parallax would require JavaScript (e.g., GSAP ScrollTrigger) */
.parallax-bg {
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Overlay for backgrounds with text */
.hero-overlay,
.statistics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}

/* Header */
.site-header {
    background-color: var(--color-background-light);
    padding: calc(var(--spacing-unit) * 1.5) 0; /* 12px */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-depth-small);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8em;
    color: var(--color-text-darker);
    text-decoration: none;
}
.logo span {
    color: var(--color-primary);
}
.logo:hover {
    text-decoration: none;
}

.main-navigation .nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 3); /* 24px */
}

.main-navigation .nav-links a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-text-dark);
    padding: var(--spacing-unit) 0;
    position: relative;
    text-decoration: none;
}

.main-navigation .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-smooth);
}

.main-navigation .nav-links a:hover::after,
.main-navigation .nav-links a.active::after {
    width: 100%;
}
.main-navigation .nav-links a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-darker);
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-darker);
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

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

.nav-links.active + .menu-toggle .hamburger, /* This might be incorrect for toggling, check HTML structure */
.menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent; /* Middle bar disappears */
}
.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}


/* General Volumetric Element Style */
.volumetric-element {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-volumetric-card);
    padding: calc(var(--spacing-unit) * 3); /* 24px */
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
/* .volumetric-element:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 7px 10px rgba(0,0,0,0.08);
} */


/* Buttons - Global Styles */
.volumetric-button, .cta-button, .link-button, .submit-button {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3); /* 12px 24px */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1em;
    color: var(--color-text-on-primary);
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--border-radius-medium);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
    box-shadow: var(--shadow-volumetric-button);
    line-height: 1.5; /* Ensure text is vertically centered */
}

.volumetric-button:hover, .cta-button:hover, .link-button:hover, .submit-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-volumetric-button-hover);
    color: var(--color-text-on-primary); /* Ensure text color remains contrasty */
    text-decoration: none;
}

.cta-button { /* Hero button */
    font-size: 1.15em;
    padding: calc(var(--spacing-unit) * 1.8) calc(var(--spacing-unit) * 3.5); /* 14.4px 28px */
}

.link-button { /* Smaller buttons often used in cards */
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2); /* 8px 16px */
    font-size: 0.9em;
}
.link-button-small { /* Alias for .link-button if used elsewhere, for consistency */
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    font-size: 0.9em;
}
.link-button-discreet { /* For "Read more" links that are less button-like */
    font-family: var(--font-body);
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
    background: none;
    padding: 0;
    box-shadow: none;
}
.link-button-discreet:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
    background: none;
    transform: none;
    box-shadow: none;
}

/* Forms */
.form-group {
    margin-bottom: calc(var(--spacing-unit) * 2.5); /* 20px */
}

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

.form-input, .form-textarea, .volumetric-input {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5); /* 12px */
    border: 1px solid var(--color-input-border);
    border-radius: var(--border-radius-small);
    background-color: var(--color-input-background);
    font-family: var(--font-body);
    font-size: 1em;
    color: var(--color-text-dark);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06); /* Subtle inset shadow for volumetric feel */
}

.form-input:focus, .form-textarea:focus, .volumetric-input:focus {
    outline: none;
    border-color: var(--color-input-focus-border);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary), 0.25), inset 0 1px 3px rgba(0,0,0,0.06);
}

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

.submit-button { /* Already styled by general button rules */
    width: auto; /* Or 100% if desired */
    margin-top: var(--spacing-unit);
}

/* Cards */
.card, .volumetric-card {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-large); /* Slightly larger radius for cards */
    box-shadow: var(--shadow-volumetric-card);
    overflow: hidden; /* Ensure content respects border-radius */
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a grid */
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    text-align: left; /* Default text align for card content */
}

.card:hover, .volumetric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-depth-large);
}

.card-image {
    width: 100%;
    height: 220px; /* Fixed height for card images */
    overflow: hidden;
    position: relative; /* For potential overlays or captions on image */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, may crop */
    transition: transform var(--transition-smooth);
}

.card:hover .card-image img, .volumetric-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: calc(var(--spacing-unit) * 3); /* 24px */
    flex-grow: 1; /* Allows content to fill available space, useful for button at bottom */
    display: flex;
    flex-direction: column;
}

.card-title {
    margin-bottom: calc(var(--spacing-unit) * 1.5); /* 12px */
    color: var(--color-text-darker);
}

.card-content p {
    color: var(--color-text-muted);
    font-size: 0.95em;
    flex-grow: 1; /* Pushes button to bottom if card has varying text length */
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.card-content .link-button {
    margin-top: auto; /* Pushes button to the bottom of the card content */
    align-self: flex-start; /* Aligns button to the left */
}


/* Hero Section */
#hero {
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 85vh; /* Slightly less than full viewport */
    position: relative; /* For overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    color: var(--color-text-light); /* Ensured by HTML inline style but good fallback */
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: calc(var(--spacing-unit) * 4);
    line-height: 1.8;
    color: var(--color-text-light); /* Ensured by HTML inline style */
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 3.5); /* 28px */
}

/* Our Process Section - Accordion */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    margin-bottom: calc(var(--spacing-unit) * 1.5); /* 12px */
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-medium); /* From volumetric-element */
    /* box-shadow: var(--shadow-depth-small); From volumetric-element */
    /* padding: 0; Override volumetric-element padding for header/content structure */
}
.accordion-header {
    background-color: transparent; /* Parent .accordion-item has bg */
    border: none;
    width: 100%;
    text-align: left;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.5); /* 16px 20px */
    font-family: var(--font-heading);
    font-size: 1.15em;
    font-weight: 600;
    color: var(--color-text-darker);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius-medium); /* For visual consistency when not expanded */
    transition: background-color var(--transition-fast);
}
.accordion-header:hover {
    background-color: var(--color-background-medium); /* Subtle hover */
}
.accordion-header[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: var(--color-primary-light); /* Indicate active */
    color: var(--color-text-darker);
}
.accordion-icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-text-darker);
    border-bottom: 2px solid var(--color-text-darker);
    transform: rotate(45deg);
    transition: transform var(--transition-smooth);
}
.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(225deg); /* Up arrow */
    margin-top: -6px; /* Adjust position */
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth);
    background-color: var(--color-background-light);
    border-bottom-left-radius: var(--border-radius-medium);
    border-bottom-right-radius: var(--border-radius-medium);
}
.accordion-header[aria-expanded="true"] + .accordion-content {
    /* padding: calc(var(--spacing-unit) * 2.5) handled by content.scrollHeight */
}
.accordion-content p {
    padding: calc(var(--spacing-unit) * 2.5); /* 20px */
    margin-bottom: 0;
    color: var(--color-text-muted);
}

/* Statistics Section */
#statistics {
    color: var(--color-text-light);
    text-align: center;
}
#statistics .section-title, #statistics .section-intro {
    color: var(--color-text-light); /* Overrides default dark title color */
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(var(--spacing-unit) * 3); /* 24px */
    position: relative;
    z-index: 2;
}
.stat-item {
    background-color: rgba(255, 255, 255, 0.1); /* Glassmorphism hint */
    backdrop-filter: blur(5px);
    padding: calc(var(--spacing-unit) * 3); /* 24px */
    border-radius: var(--border-radius-large);
    /* box-shadow: none; volumetric-element shadow might be too much here */
}
.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-unit);
}
.stat-label {
    display: block;
    font-size: 1.1em;
    color: var(--color-text-muted-dark-bg);
    margin-bottom: var(--spacing-unit);
}
.stat-item p {
    font-size: 0.9em;
    color: var(--color-text-muted-dark-bg);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Events & Webinars Sections */
.events-grid, .webinars-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 3.5); /* 28px */
}
.event-date, .webinar-date {
    font-size: 0.9em;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-unit);
}

/* Research Section */
.research-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(var(--spacing-unit) * 4); /* 32px */
}
/* Basic Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.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: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--color-primary);
}
input:focus + .slider {
    box-shadow: 0 0 1px var(--color-primary);
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}
.slider.volumetric-element { /* Combining switch with volumetric */
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1), inset -2px -2px 5px rgba(255,255,255,0.5);
}
input:checked + .slider.volumetric-element {
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1), inset -2px -2px 5px rgba(255,255,255,0.5), 0 0 5px var(--color-primary);
}

.research-item {
    margin-bottom: calc(var(--spacing-unit) * 3); /* 24px */
    padding: calc(var(--spacing-unit) * 3); /* from volumetric-element */
}
.research-title {
    margin-bottom: var(--spacing-unit);
}

/* External Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 3); /* 24px */
}
.resource-card .card-content {
    padding: calc(var(--spacing-unit) * 2.5); /* 20px */
}
.resource-card .card-title a {
    text-decoration: none;
    color: var(--color-text-darker);
}
.resource-card .card-title a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Contact Section */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 5) auto; /* 40px bottom margin */
    padding: calc(var(--spacing-unit) * 4); /* 32px, override default volumetric-element padding if needed */
}
.contact-details {
    text-align: center;
}
.contact-details h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.contact-details p {
    margin-bottom: var(--spacing-unit);
    font-size: 1.1em;
}


/* Footer */
.site-footer {
    background-color: var(--color-background-footer);
    color: var(--color-text-muted-dark-bg);
    padding: var(--section-padding-y) 0 calc(var(--spacing-unit) * 3) 0;
    font-size: 0.95em;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 4); /* 32px */
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.footer-column h4, .footer-column h5 {
    color: var(--color-text-light);
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-weight: 600;
}

.footer-links li {
    margin-bottom: var(--spacing-unit);
}

.footer-links a, .social-links a {
    color: var(--color-text-muted-dark-bg);
    text-decoration: none;
}

.footer-links a:hover, .social-links a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}
.social-links li {
    margin-bottom: var(--spacing-unit);
}

.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 3); /* 24px */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
}

/* Cookie Consent Popup */
/* Basic styles are in HTML, this is for potential enhancements if needed */
#cookie-consent-popup p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-unit) * 2;
}
#accept-cookie { /* Already styled in HTML, this is for consistency if we move styles */
    /* background-color: var(--color-primary);
    color: var(--color-text-on-primary); */
}

/* Specific Page Styles */

/* Success Page (success.html) */
body.page-success { /* Add class="page-success" to body of success.html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.success-page-content { /* Wrap content of success.html in this div */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--container-padding);
}
.success-page-content h1 {
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 3);
}
.success-page-content p {
    font-size: 1.2em;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Privacy Policy & Terms and Conditions Pages */
/* Ensure content is not overlapped by sticky header */
body.page-privacy main,
body.page-terms main,
.privacy-policy-container, /* Add these classes to main content wrappers on respective pages */
.terms-conditions-container {
    padding-top: calc(var(--spacing-unit) * 15); /* Approx 120px, adjust based on actual header height */
    padding-bottom: var(--section-padding-y);
    background-color: var(--color-background-light); /* To make content area distinct */
}

.privacy-policy-container .container, /* If using global .container */
.terms-conditions-container .container {
     min-height: calc(100vh - (var(--spacing-unit) * 15) - 180px); /* 180px approx footer height */
}

.privacy-policy-container h1,
.terms-conditions-container h1 {
    margin-bottom: calc(var(--spacing-unit) * 4);
}
.privacy-policy-container h2,
.terms-conditions-container h2 {
    margin-top: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 2);
}


/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }
    .hero-title { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001; /* Above nav links */
    }
    .main-navigation .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--color-background-light);
        box-shadow: var(--shadow-depth-medium);
        padding: var(--spacing-unit) 0;
        border-top: 1px solid var(--color-border);
    }
    .main-navigation .nav-links.active {
        display: flex; /* Shown when active */
    }
    .main-navigation .nav-links li {
        width: 100%;
        text-align: center;
    }
    .main-navigation .nav-links a {
        display: block;
        padding: calc(var(--spacing-unit) * 1.5) var(--container-padding); /* 12px */
        width: 100%;
    }
    .main-navigation .nav-links a::after { display: none; /* No underline for mobile dropdown */ }

    .section-title { font-size: 1.8rem; margin-bottom: calc(var(--spacing-unit) * 4); }
    .section-intro { font-size: 1rem; margin-bottom: calc(var(--spacing-unit) * 4); }
    
    .services-grid, .events-grid, .webinars-list, .resources-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
        gap: calc(var(--spacing-unit) * 3);
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: calc(var(--spacing-unit) * 2);
    }
    .stat-number { font-size: 2.2rem; }
    .stat-label { font-size: 0.95em; }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column {
        margin-bottom: calc(var(--spacing-unit) * 2);
    }
    .footer-links, .social-links {
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    html { font-size: 15px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .cta-button { font-size: 1em; padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2.5); }
    .contact-form-container { padding: calc(var(--spacing-unit) * 3); } /* 24px */
    
    body.page-privacy main,
    body.page-terms main,
    .privacy-policy-container,
    .terms-conditions-container {
        padding-top: calc(var(--spacing-unit) * 12); /* ~96px for smaller screens if header shrinks */
    }
}

/* AOS Animation Overrides / Complements (if any) */
[data-aos] {
    /* Example: ensure elements are hidden before animation if needed */
    /* opacity: 0; */
    /* will-change: transform, opacity; */ /* Performance hint */
}
[data-aos].aos-animate {
    /* opacity: 1; */
}
*{
    opacity: 1 !important;
}