/* CSS Variables */
:root {
    --font-primary: 'Roboto', sans-serif;
    --font-headings: 'Archivo Black', sans-serif;

    /* Split-Complementary Color Scheme */
    --color-primary: #0A2463; /* Deep Indigo Blue */
    --color-secondary-1: #D8572A; /* Burnt Orange */
    --color-secondary-2: #FFBC42; /* Vibrant Yellow/Gold */
    
    --color-accent: #17A2B8; /* Teal */
    --color-success: #28a745;
    --color-danger: #dc3545;

    --color-text-light: #FFFFFF;
    --color-text-dark: #343A40;
    --color-text-medium: #555555;
    --color-text-headings: #222222;
    --color-text-subtle: #777777;

    --color-background-light: #F8F9FA;
    --color-background-dark: var(--color-primary);
    --color-background-body: #FFFFFF;

    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px; /* More pronounced for creative feel */

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);

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

    --transition-elastic: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: all 0.3s ease-in-out;

    --header-height: 70px; /* Adjusted for a sleeker header */
}

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

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

body {
    font-family: var(--font-primary);
    line-height: 1.7; /* Slightly more generous line height */
    color: var(--color-text-dark);
    background-color: var(--color-background-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.page-container {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-text-headings);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    text-wrap: balance;
}

h1 { font-size: 2.8rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.1); }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: var(--spacing-md); /* Increased default paragraph bottom margin */
    color: var(--color-text-medium);
}

a {
    color: var(--color-secondary-1);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

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

ul {
    list-style: none;
}

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

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

.bg-light {
    background-color: var(--color-background-light);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
    font-weight: bold; /* Archivo Black is bold, but this reinforces */
    color: var(--color-text-headings); /* Explicitly dark */
}

.section-title::after { 
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--color-secondary-2), var(--color-secondary-1)); /* Gradient underline */
    margin: var(--spacing-sm) auto 0; /* Increased top margin */
    border-radius: var(--border-radius-sm);
    transform: skewX(-20deg); /* "Curved grid" element */
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-subtle);
    max-width: 750px; /* Slightly wider */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg); /* Increased bottom margin */
}

/* Buttons - Global Styles */
.btn {
    display: inline-block;
    font-family: var(--font-headings);
    font-size: 1rem;
    padding: 0.8em 1.8em; /* Adjusted padding */
    border: none; /* Modern flat buttons often have no border initially */
    border-radius: var(--border-radius-md);
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.2px; /* Slightly more spacing */
    transition: var(--transition-elastic);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Softer, more spread shadow */
    font-weight: normal; /* Archivo Black is already bold */
}

.btn:hover, .btn:focus {
    transform: translateY(-3px) scale(1.03); /* More subtle pop */
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--color-secondary-2); 
    color: var(--color-text-dark);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #e9a429; /* Darker shade of secondary-2 */
    color: var(--color-text-dark);
}

.btn-secondary {
    background-color: var(--color-secondary-1); 
    color: var(--color-text-light);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #c0431e; /* Darker shade of secondary-1 */
    color: var(--color-text-light);
}

.btn-link { 
    background-color: transparent;
    color: var(--color-primary);
    padding: var(--spacing-xs) 0;
    text-transform: none;
    letter-spacing: normal;
    font-family: var(--font-primary);
    font-weight: bold;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-link:hover, .btn-link:focus {
    color: var(--color-secondary-1);
    text-decoration-color: var(--color-secondary-1); /* Match underline color */
    transform: none; 
    box-shadow: none;
}


/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.logo {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: normal; /* Archivo Black is bold */
}

.logo strong {
    color: var(--color-secondary-1);
}

.main-nav .nav-menu {
    display: flex;
    align-items: center;
}

.main-nav .nav-menu li {
    margin-left: var(--spacing-md);
}

.main-nav .nav-menu a {
    font-family: var(--font-primary);
    font-weight: 700; /* Bolder primary font */
    color: var(--color-text-dark);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-xs); /* Add some horizontal padding */
    position: relative;
    transition: color var(--transition-smooth);
}

.main-nav .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px; /* Slightly lower */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px; /* Thicker underline */
    background-color: var(--color-secondary-2);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smoother transition */
}

.main-nav .nav-menu a:hover,
.main-nav .nav-menu a:focus,
.main-nav .nav-menu li.active a {
    color: var(--color-secondary-1);
}

.main-nav .nav-menu a:hover::after,
.main-nav .nav-menu a:focus::after,
.main-nav .nav-menu li.active a::after {
    width: 100%;
}

.nav-toggle { 
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; 
}

.hamburger {
    display: block;
    width: 28px; /* Slightly larger */
    height: 3px;
    background-color: var(--color-primary);
    position: relative;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 90vh; 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden; 
}

.hero-overlay { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.75), rgba(0,0,0,0.55)); /* primary color blend, slightly darker */
    z-index: 1;
}

.hero-section::before { /* Curved bottom shape */
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Height of the curve */
    background: var(--color-background-body);
    clip-path: ellipse(80% 100% at 50% 100%); /* Smoother curve */
    z-index: 2;
}


.hero-content {
    position: relative;
    z-index: 3; 
    padding: var(--spacing-lg);
    max-width: 850px;
}

.hero-title {
    font-size: 3.8rem; 
    color: var(--color-text-light) !important; 
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7); /* Enhanced shadow */
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-light) !important; 
    margin-bottom: var(--spacing-lg); /* More space before button */
    line-height: 1.8;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.hero-section .btn-primary {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(255, 188, 66, 0.4); /* Glow effect for primary button */
}
.hero-section .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255, 188, 66, 0.5);
}


/* Cards - General Styling */
.card {
    background-color: var(--color-text-light);
    border-radius: var(--border-radius-lg); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* Softer, more diffused shadow */
    transition: var(--transition-elastic);
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    text-align: center; 
    border: 1px solid #e9ecef; /* Subtle border */
}

.card:hover {
    transform: translateY(-10px) scale(1.03); 
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.card-image { 
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10; /* Maintain aspect ratio */
}

.card-image img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smoother zoom */
    margin: 0 auto; 
}

.card:hover .card-image img {
    transform: scale(1.12); 
}

.card-content {
    padding: var(--spacing-md) var(--spacing-lg); /* More horizontal padding */
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.card-content h3 {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 1.4rem; /* Slightly larger card titles */
}

.card-content p {
    font-size: 0.95rem;
    flex-grow: 1; 
    line-height: 1.6;
}

.card .btn {
    margin-top: var(--spacing-md); /* More space above button */
    align-self: center; 
}


/* Statistics Section */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Adjusted minmax */
    gap: var(--spacing-lg); /* Increased gap */
}

.stat-item.card { 
    padding: var(--spacing-lg); /* More padding */
    text-align: center;
    border-left: 5px solid; /* Accent border based on HTML color */
}
.stat-item.card:nth-child(1) { border-color: var(--color-primary); }
.stat-item.card:nth-child(2) { border-color: var(--color-secondary-1); }
.stat-item.card:nth-child(3) { border-color: var(--color-secondary-2); }
.stat-item.card:nth-child(4) { border-color: var(--color-accent); }


.stat-item .stat-number {
    font-size: 3.2rem; 
    font-family: var(--font-headings);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
    /* color set in HTML, use var for consistency if preferred */
}

.stat-item .stat-label {
    font-size: 1rem;
    color: var(--color-text-dark);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase; /* Uppercase labels */
    letter-spacing: 0.5px;
}
.stat-item p:not(.stat-label) { 
    font-size: 0.9rem;
    color: var(--color-text-medium);
}


/* News Section - Carousel */
.news-section .content-carousel {
    display: grid; /* Using grid for better control */
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 1fr); /* Min width, flexible up to 1fr */
    overflow-x: auto; 
    gap: var(--spacing-md);
    padding: var(--spacing-xs) 0 var(--spacing-md) 0; /* Padding for scrollbar & aesthetics */
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary-2) var(--color-background-light);
    scroll-snap-type: x mandatory; /* Snap scrolling */
}
.news-section .content-carousel > * {
    scroll-snap-align: start; /* Snap items to start */
}

.news-section .content-carousel::-webkit-scrollbar { height: 10px; }
.news-section .content-carousel::-webkit-scrollbar-thumb {
    background-color: var(--color-secondary-2);
    border-radius: var(--border-radius-md);
    border: 2px solid var(--color-background-light);
}
.news-section .content-carousel::-webkit-scrollbar-track { background-color: #e0e0e0; }


.news-item.card {
    /* min-width removed as grid-auto-columns handles it */
    text-align: left; 
}

.news-item .card-image { /* Uses aspect-ratio from global .card-image */ }

.news-item .news-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.news-item .news-date {
    font-size: 0.85rem;
    color: var(--color-text-subtle);
    margin-bottom: var(--spacing-sm);
}

.news-item .news-excerpt {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.news-item .btn-secondary {
    align-self: flex-start; 
}


/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg); /* Increased gap */
}

.blog-post.card {
    text-align: left; 
}

.blog-post .card-image { /* Uses aspect-ratio from global .card-image */ }

.blog-post-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.blog-post-meta {
    font-size: 0.8rem;
    color: var(--color-text-subtle);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.blog-post-excerpt {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}
.blog-post .btn-link {
    align-self: flex-start;
    font-weight: bold;
}


/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted min width */
    gap: var(--spacing-md);
}

.resource-card.card {
    background-color: var(--color-text-light); 
    text-align: left;
    border-top: 4px solid var(--color-accent); /* Accent top border */
}
.resource-card.card:hover {
    border-top-color: var(--color-secondary-1);
}

.resource-card .card-content {
    padding: var(--spacing-md);
}

.resource-title {
    font-size: 1.25rem; /* Slightly larger */
    margin-bottom: var(--spacing-xs);
}
.resource-title a {
    color: var(--color-primary);
    font-weight: bold; /* Make title stand out */
}
.resource-title a:hover {
    color: var(--color-secondary-1);
}

.resource-description {
    font-size: 0.9rem;
    color: var(--color-text-medium);
}

/* Contact Section */
.contact-form-container.card {
    padding: var(--spacing-lg);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg) auto;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Stronger shadow for form container */
}

.form-group {
    margin-bottom: var(--spacing-md);
    position: relative; /* For potential icon placement or floating labels */
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-dark);
    font-size: 0.9rem; /* Smaller label */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"], /* Added tel type */
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md); /* More padding */
    border: 1px solid #ced4da; /* Standard border color */
    border-radius: var(--border-radius-md); /* Consistent radius */
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    background-color: #fff; /* Ensure white background */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(10, 36, 99, 0.25); /* Bootstrap-like focus */
}

.form-group textarea {
    resize: vertical;
    min-height: 150px; /* Taller textarea */
}

.btn-submit { 
    width: 100%;
    padding: var(--spacing-md); 
    font-size: 1.1rem;
    background-image: linear-gradient(to right, var(--color-secondary-2) 0%, var(--color-secondary-1) 100%);
    color: var(--color-text-light);
    border: none;
}
.btn-submit:hover {
    background-image: linear-gradient(to right, #e9a429 0%, #c0431e 100%);
}


.contact-details {
    text-align: center;
    margin-top: var(--spacing-xl); /* More space above details */
}
.contact-details h3 {
    color: var(--color-text-headings);
    margin-bottom: var(--spacing-md); /* More space */
}
.contact-details p {
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-sm); /* More space */
    font-size: 1.05rem; /* Slightly larger */
}
.contact-details p strong {
    color: var(--color-text-dark);
}


/* Footer */
.site-footer {
    background-color: var(--color-text-dark); 
    color: #B0BEC5; /* Lighter gray for better contrast */
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    margin-top: var(--spacing-xl); 
    position: relative;
    font-size: 0.95rem; /* Slightly larger base font for footer */
}
.site-footer::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Thinner, more elegant */
    background: linear-gradient(90deg, var(--color-secondary-2), var(--color-secondary-1), var(--color-primary));
}


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

.footer-col h4.footer-heading {
    font-family: var(--font-headings);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.4rem; /* Larger footer headings */
    position: relative;
    padding-bottom: var(--spacing-xs);
}
.footer-col h4.footer-heading::after { 
    content: '';
    display: block;
    width: 50px; /* Longer accent */
    height: 3px;
    background-color: var(--color-secondary-2);
    margin-top: var(--spacing-xs);
    border-radius: 2px;
}


.footer-links li {
    margin-bottom: calc(var(--spacing-xs) + 2px); /* Slightly more spacing */
}

.footer-links a {
    color: #B0BEC5;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease; /* Add padding transition */
}

.footer-links a:hover, .footer-links a:focus {
    color: var(--color-secondary-2);
    text-decoration: none; /* Remove underline, rely on color change */
    padding-left: 5px; /* Slight indent on hover */
}

.footer-social-links li {
    margin-bottom: calc(var(--spacing-xs) + 2px); 
}
.footer-social-links a { 
    color: #B0BEC5;
    text-decoration: none;
    font-weight: bold; 
    display: inline-block; /* For transform */
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social-links a:hover, .footer-social-links a:focus {
    color: var(--color-secondary-2);
    transform: translateX(3px); /* Slight move right on hover */
}


.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg); /* More padding */
    border-top: 1px solid #4A4A4A; /* Darker separator */
    font-size: 0.9rem;
    color: #90A4AE; /* Slightly darker for bottom text */
}

/* Specific Page Styles */
.success-page-container { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-background-light) 0%, #e0f2f1 100%); /* Soft gradient background */
}
.success-page-container .card { /* Style success message in a card */
    max-width: 500px;
    padding: var(--spacing-xl);
    background-color: #fff;
    border-left: 8px solid var(--color-success);
}
.success-page-container h1 {
    color: var(--color-success);
    font-size: 2.5rem; /* Adjusted size */
    margin-bottom: var(--spacing-sm);
}
.success-page-container p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-medium);
}
.success-page-container .btn {
    margin-top: var(--spacing-sm);
}

.legal-page-content { 
    padding-top: calc(var(--header-height) + var(--spacing-xl)); /* Increased top padding */
    padding-bottom: var(--spacing-xl);
    background-color: var(--color-background-body); /* Ensure body background */
}
.legal-page-content .container {
    max-width: 800px; /* Constrain width for readability */
}
.legal-page-content .container h1 {
    margin-bottom: var(--spacing-lg);
    text-align: center; /* Center main title */
}
.legal-page-content .container h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    font-size: 1.8rem; /* Slightly smaller h2 for legal */
    border-bottom: 2px solid var(--color-secondary-2);
    padding-bottom: var(--spacing-xs);
}
.legal-page-content .container p,
.legal-page-content .container ul li {
    line-height: 1.8; /* Better readability for long texts */
    color: var(--color-text-dark);
}
.legal-page-content .container ul {
    list-style: disc;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 3.2rem; }
    .hero-subtitle { font-size: 1.3rem; }

    .news-section .content-carousel {
        grid-auto-columns: minmax(280px, 1fr); /* Adjust for tablet */
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    :root { --header-height: 60px; } /* Adjust header height for mobile */

    .nav-toggle { display: block; }

    .main-nav .nav-menu {
        display: none; 
        flex-direction: column;
        position: fixed; /* Use fixed for full screen coverage potential */
        top: var(--header-height); 
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height)); /* Full height */
        background-color: rgba(255, 255, 255, 0.98); /* Almost opaque */
        backdrop-filter: blur(5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: var(--spacing-md) 0;
        overflow-y: auto; /* Scrollable if many items */
        transform: translateX(-100%); /* Start off-screen */
        transition: transform 0.3s ease-in-out;
    }

    .main-nav .nav-menu.is-active { 
        display: flex;
        transform: translateX(0); /* Slide in */
    }

    .main-nav .nav-menu li {
        margin-left: 0;
        width: 100%;
    }

    .main-nav .nav-menu a {
        display: block;
        padding: var(--spacing-md); /* Larger tap targets */
        width: 100%;
        text-align: center;
        font-size: 1.2rem; /* Larger font for mobile nav */
        border-bottom: 1px solid #e0e0e0;
    }
    .main-nav .nav-menu li:last-child a { border-bottom: none; }
    .main-nav .nav-menu a::after { display: none; }

    .nav-toggle.is-active .hamburger { background-color: transparent; }
    .nav-toggle.is-active .hamburger::before { transform: translateY(8px) rotate(45deg); background-color: var(--color-secondary-1); }
    .nav-toggle.is-active .hamburger::after { transform: translateY(-8px) rotate(-45deg); background-color: var(--color-secondary-1); }


    .hero-section { min-height: 75vh; }
    .hero-title { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .hero-section::before { height: 100px; } /* Adjust curve on mobile */

    .statistics-grid, .blog-grid, .resources-grid { grid-template-columns: 1fr; }
    .news-section .content-carousel { grid-auto-columns: 85%; /* Wider items on mobile scroll */ }


    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4.footer-heading::after { margin-left: auto; margin-right: auto; }
    .footer-links a:hover, .footer-social-links a:hover { padding-left: 0; transform: none; } /* Disable hover move on mobile */
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { width: 95%; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .section-padding { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
    
    .btn { padding: 0.7em 1.5em; font-size: 0.95rem; }
    .hero-section .btn-primary { padding: var(--spacing-sm) var(--spacing-md); font-size: 1rem; }
    
    .card-content { padding: var(--spacing-md); }
    .contact-form-container.card { padding: var(--spacing-md); }
    .news-section .content-carousel { grid-auto-columns: 90%; }

    .success-page-container .card { padding: var(--spacing-lg); }
    .success-page-container h1 { font-size: 2rem; }
}

/* Cookie Consent (ensure styles here match or override inline styles if any issues) */
#cookieConsentPopup {
    font-family: var(--font-primary); /* Apply site font */
}
#acceptCookieButton {
    font-family: var(--font-headings); /* Apply site font */
    transition: var(--transition-smooth);
    background-color: var(--color-secondary-2);
    color: var(--color-text-dark);
}
#acceptCookieButton:hover {
    background-color: #e9a429; /* Darker shade of secondary-2 */
}