/* style.css */

/* -------------------------------------------------------------------
   0. CSS Variables & Global Styles
------------------------------------------------------------------- */
:root {
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    /* Triadic Color Scheme (Earthy & Trustworthy) */
    --color-primary: #4CAF50; /* Vibrant Green - Growth, Nature */
    --color-primary-dark: #388E3C;
    --color-primary-light: #C8E6C9;

    --color-secondary: #FF9800; /* Warm Orange - Harvest, Energy */
    --color-secondary-dark: #F57C00;

    --color-accent: #2196F3; /* Trustworthy Blue - Sky, Stability */
    --color-accent-dark: #1976D2;

    --color-text-dark: #212121; /* Almost black for strong readability */
    --color-text-light: #FFFFFF;
    --color-text-medium: #555555;
    --color-text-subtle: #757575;

    --color-background-light: #FFFFFF;
    --color-background-medium: #F5F5F5; /* Light Gray */
    --color-background-dark: #333333; /* Dark Gray for footers/dark sections */
    --color-background-light-grayish: #EEEEEE; /* Slightly different light gray */

    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;

    --spacing-xs: 0.5rem;  /* 8px */
    --spacing-s: 1rem;    /* 16px */
    --spacing-m: 1.5rem;  /* 24px */
    --spacing-l: 2rem;    /* 32px */
    --spacing-xl: 3rem;   /* 48px */
    --spacing-xxl: 4rem;  /* 64px */

    --header-height: 80px;
}

/* Global Resets & 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-secondary);
    line-height: 1.7;
    color: var(--color-text-medium);
    background-color: var(--color-background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Adaptive Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-m);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p {
    margin-bottom: var(--spacing-s);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

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

ul {
    list-style: none;
}

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

/* Section Padding */
.section-padding {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}
.section-padding-dark {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
}
.section-padding-dark h1,
.section-padding-dark h2,
.section-padding-dark h3,
.section-padding-dark h4 {
    color: var(--color-text-light);
}
.section-padding-dark p {
    color: var(--color-primary-light); /* Lighter text for readability on dark bg */
}


/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    font-weight: 700;
}

.section-title::after { /* Subtle underline for section titles */
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    margin: var(--spacing-s) auto 0;
    border-radius: 2px;
}
.section-padding-dark .section-title::after {
    background-color: var(--color-secondary);
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-subtle);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-l);
}
.section-padding-dark .section-subtitle {
    color: var(--color-primary-light);
}

/* Global Button Styles */
.button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    padding: var(--spacing-s) var(--spacing-l);
    transition: background-color var(--transition-speed), color var(--transition-speed), transform 0.2s ease-out, box-shadow var(--transition-speed);
    min-width: 150px;
    box-shadow: var(--box-shadow-light);
}

.button-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}
.button-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

.button-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}
.button-secondary:hover {
    background-color: var(--color-secondary-dark);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

.button-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.button-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-decoration: none;
}

/* Animations on Scroll (JS will add .is-visible) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-speed), transform 0.6s var(--transition-speed);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------------
   1. Header & Navigation
------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9); /* Slight transparency for modern feel */
    backdrop-filter: blur(8px); /* Glassmorphism */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.site-header.scrolled { /* Optional: add class on scroll for different bg */
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    text-decoration: none;
}
.logo:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.main-navigation .nav-list {
    display: flex;
    gap: var(--spacing-m);
}

.main-navigation .nav-list a {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-s);
    border-radius: 4px;
    transition: color var(--transition-speed), background-color var(--transition-speed);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.main-navigation .nav-list a:hover,
.main-navigation .nav-list a.active {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
    text-decoration: none;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    position: relative;
    transition: background-color 0s 0.3s; /* Delay hiding middle bar */
}
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease 0.3s;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .main-navigation .nav-list {
        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-m) 0;
        text-align: center;
    }
    .main-navigation .nav-list.is-active {
        display: flex;
    }
    .main-navigation .nav-list li {
        width: 100%;
    }
    .main-navigation .nav-list a {
        display: block;
        padding: var(--spacing-s);
        border-bottom: 1px solid var(--color-background-light-grayish);
    }
    .main-navigation .nav-list li:last-child a {
        border-bottom: none;
    }
    .menu-toggle {
        display: block;
    }
    .menu-toggle[aria-expanded="true"] .hamburger {
        background-color: transparent; /* Hide middle bar */
    }
    .menu-toggle[aria-expanded="true"] .hamburger::before {
        top: 0;
        transform: rotate(45deg);
        transition: top 0.3s ease, transform 0.3s ease 0.3s;
    }
    .menu-toggle[aria-expanded="true"] .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
        transition: top 0.3s ease, transform 0.3s ease 0.3s;
    }
}

/* -------------------------------------------------------------------
   2. Hero Section
------------------------------------------------------------------- */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    min-height: 90vh; /* Use min-height for hero to ensure visibility */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Simple Parallax */
}

.hero-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.7)); /* Dark overlay for text readability */
    z-index: 1;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-m);
    color: var(--color-text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: var(--spacing-l);
    color: var(--color-text-light) !important; /* Ensure white text as per requirement */
    opacity: 0.9;
}

.hero-section .button-primary {
    padding: var(--spacing-m) var(--spacing-xl);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* -------------------------------------------------------------------
   3. Card Styles (Global)
------------------------------------------------------------------- */
.card {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in grids */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex; /* Center image if it's smaller than container */
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Specific height for card images in blog/press/experts */
.blog-post .card-image,
.press-item .card-image,
.expert-card .card-image {
    height: 200px; /* Or adjust as needed */
}
.press-item .card-image img { /* For logos */
    object-fit: contain;
    padding: var(--spacing-s);
    max-height: 100px;
}


.card-content {
    padding: var(--spacing-m);
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill card height */
    text-align: center; /* Center text content within cards */
}
.card-content > *:last-child {
    margin-top: auto; /* Pushes last element (e.g. button) to bottom */
}

.card-content h3 {
    margin-top: 0;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}
.card-content p {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--color-text-medium);
}


/* -------------------------------------------------------------------
   4. Our Process Section
------------------------------------------------------------------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-l);
}

.process-step .card-image.process-icon-container {
    height: 120px; /* Adjust for icon size */
    background-color: var(--color-primary-light);
}
.process-icon-container img.process-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.process-step-title {
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-s);
}

/* -------------------------------------------------------------------
   5. Experts/Instructors Section
------------------------------------------------------------------- */
.experts-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
/* Assuming parallax effect for background if JS is used or pseudo elements */

.experts-carousel .expert-card {
    margin: 0 var(--spacing-s); /* For carousel item spacing */
    min-width: 300px; /* Ensure cards don't get too squished in carousel */
}
.expert-card .card-image img {
    border-radius: 50%; /* Circular expert images */
    width: 150px;
    height: 150px;
    margin: var(--spacing-m) auto; /* Center image in its container */
    border: 4px solid var(--color-background-light);
    box-shadow: var(--box-shadow-light);
}
/* Override global card image height for experts */
.expert-card .card-image {
    height: auto; /* Let image define height */
    padding-top: var(--spacing-m); /* Space above image */
}
.expert-name {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: var(--color-primary-dark); /* Match site's dark text color for consistency */
}
.experts-section .expert-name {
    color: var(--color-text-dark); /* Override if on dark background */
}
.section-padding-dark .expert-name { /* Correct for dark bg */
    color: var(--color-secondary);
}

.expert-specialty {
    font-style: italic;
    color: var(--color-text-subtle);
    margin-bottom: var(--spacing-s);
}
.section-padding-dark .expert-specialty {
    color: var(--color-primary-light);
}
.expert-bio {
    font-size: 0.9rem;
}
.section-padding-dark .expert-bio {
    color: var(--color-primary-light);
}
/* Carousel styling will largely depend on the JS library used.
   Here's basic styling for items if using a simple flex/grid based carousel wrapper */
.content-carousel {
    display: flex;
    overflow-x: auto; /* Allows horizontal scrolling if items exceed container */
    padding-bottom: var(--spacing-m); /* Space for scrollbar if it appears */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--color-secondary) var(--color-background-medium); /* Firefox */
}
.content-carousel::-webkit-scrollbar {
    height: 8px;
}
.content-carousel::-webkit-scrollbar-thumb {
    background-color: var(--color-secondary);
    border-radius: 4px;
}
.content-carousel::-webkit-scrollbar-track {
    background-color: var(--color-background-medium);
}
.section-padding-dark .content-carousel::-webkit-scrollbar-track {
    background-color: var(--color-text-dark);
}


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

.blog-post .card-image { height: 220px; }

.blog-post-title a {
    color: var(--color-text-dark);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 700;
    text-decoration: none;
}
.blog-post-title a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
.blog-post-meta {
    font-size: 0.85rem;
    color: var(--color-text-subtle);
    margin-bottom: var(--spacing-s);
}
.blog-post-excerpt {
    margin-bottom: var(--spacing-m);
    flex-grow: 1; /* Make excerpt take available space */
}
.blog-post .button-secondary {
    margin-top: auto; /* Pushes button to bottom of card */
    align-self: center; /* Center button in card */
}

/* -------------------------------------------------------------------
   7. Stats Section
------------------------------------------------------------------- */
.stats-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    color: var(--color-text-light);
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 128, 185, 0.7); /* Accent color overlay */
    z-index: 1;
}
.stats-section .container {
    position: relative;
    z-index: 2;
}
.stats-section .section-title,
.stats-section .section-description,
.stats-section .stat-label {
    color: var(--color-text-light) !important; /* Ensure white/light text */
}
.stats-section .section-title::after {
    background-color: var(--color-secondary); /* Brighter accent for dark bg */
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-l);
    text-align: center;
}

.stat-item .stat-icon {
    font-size: 3rem; /* Placeholder for actual icons */
    color: var(--color-secondary); /* Or other accent */
    margin-bottom: var(--spacing-s);
    /* For animated icons, ensure container has dimensions if icons are absolutely positioned */
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--color-primary-light); /* Lighter for readability */
}

/* -------------------------------------------------------------------
   8. Press Section
------------------------------------------------------------------- */
.press-carousel .press-item {
    margin: 0 var(--spacing-s);
    min-width: 320px; /* Ensure cards don't get too squished */
    background-color: var(--color-background-medium); /* Slightly different bg for press cards */
}
.press-item .card-image {
    height: 100px;
    padding: var(--spacing-m);
}
.press-item .card-image img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}
.press-quote {
    font-style: italic;
    margin-bottom: var(--spacing-s);
    color: var(--color-text-medium);
    border-left: 3px solid var(--color-primary);
    padding-left: var(--spacing-s);
    font-size: 0.95rem;
}
.press-source {
    font-weight: bold;
    color: var(--color-text-dark);
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------
   9. Useful Links Section
------------------------------------------------------------------- */
.useful-links-section {
    background-color: var(--color-background-light-grayish);
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-l);
}
.link-card {
    background-color: var(--color-background-light);
    text-align: left; /* Links usually left aligned */
}
.link-card .card-content {
    text-align: left;
}
.link-title a {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-primary-dark);
    font-weight: 500;
}
.link-title a:hover {
    color: var(--color-secondary-dark);
}
.link-description {
    font-size: 0.9rem;
    color: var(--color-text-subtle);
}

/* -------------------------------------------------------------------
   10. Contact Section
------------------------------------------------------------------- */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.contact-form-container,
.contact-details-container {
    flex: 1;
    min-width: 300px; /* Prevent excessive squishing on small screens */
}

.contact-form .form-group {
    margin-bottom: var(--spacing-m);
}

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-s);
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2); /* Use RGB version of primary if available */
}
/* Placeholder for --color-primary-rgb if not defined (e.g. 76, 175, 80 for #4CAF50) */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
     box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}


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

.contact-details-title {
    margin-bottom: var(--spacing-m);
    color: var(--color-primary-dark);
}
.contact-details-container p {
    margin-bottom: var(--spacing-s);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}
.contact-details-container p .icon-placeholder { /* Style for text icons */
    color: var(--color-primary);
    font-size: 1.2em; /* Make icon slightly larger */
}
.contact-details-container a {
    color: var(--color-primary);
}
.contact-details-container a:hover {
    color: var(--color-primary-dark);
}

/* -------------------------------------------------------------------
   11. Footer
------------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-background-dark);
    color: var(--color-primary-light); /* Lighter text on dark bg */
}
.site-footer h4 {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-m);
}
.site-footer p {
    color: var(--color-primary-light); /* Use a lighter shade of primary or just light gray */
    font-size: 0.9rem;
}

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

.footer-nav li {
    margin-bottom: var(--spacing-xs);
}
.footer-nav a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}
.footer-nav a:hover {
    color: var(--color-secondary); /* Use accent for hover */
    text-decoration: underline;
}

.social-links li {
    margin-bottom: var(--spacing-xs);
}
.social-links a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-speed);
    display: inline-block; /* For better hover effect */
    padding: 5px 0;
}
.social-links a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}
/* Example of adding pseudo-elements if icons were desired with text */
/*
.social-links a::before {
    content: '◉ ';
    font-family: 'FontAwesome'; // Example if using an icon font
    margin-right: 8px;
}
*/

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-l);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}
.footer-bottom p {
    color: var(--color-text-subtle); /* More subtle color for copyright */
}
.site-footer .footer-bottom p { /* Ensure copyright text is light enough on dark footer */
    color: #A0A0A0;
}

/* -------------------------------------------------------------------
   12. Cookie Popup (as per requirements)
------------------------------------------------------------------- */
.cookie-popup {
    display: none; /* Hidden by default, JS will show it */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(33, 33, 33, 0.95); /* Dark semi-transparent */
    color: #f1f1f1;
    padding: var(--spacing-m);
    z-index: 9999;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-m);
}
.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    flex-grow: 1;
    color: #e0e0e0;
}
.cookie-content a {
    color: var(--color-secondary); /* Use a theme color for link */
    text-decoration: underline;
}
.cookie-content a:hover {
    color: var(--color-secondary-dark);
}
#accept-cookies.button-secondary {
    padding: var(--spacing-xs) var(--spacing-m); /* Smaller padding for cookie button */
    min-width: 120px;
}

/* -------------------------------------------------------------------
   13. Specific Page Styles (Privacy, Terms, Success)
------------------------------------------------------------------- */
.privacy-page-content,
.terms-page-content,
.about-page-content,
.contacts-page-content,
.success-page-content {
    padding-top: calc(var(--header-height) + var(--spacing-xl)); /* Ensure content below fixed header */
    padding-bottom: var(--spacing-xl);
}

.privacy-page-content .container h1,
.terms-page-content .container h1,
.about-page-content .container h1,
.contacts-page-content .container h1 {
    margin-bottom: var(--spacing-l);
}
.privacy-page-content .container h2,
.terms-page-content .container h2,
.about-page-content .container h2,
.contacts-page-content .container h2 {
    margin-top: var(--spacing-l);
    margin-bottom: var(--spacing-s);
    color: var(--color-primary-dark);
}

.success-page-content {
    min-height: calc(100vh - var(--header-height) - var(--footer-height, 200px)); /* Adjust footer height estimate */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.success-page-content .container {
    padding-top: var(--spacing-l);
    padding-bottom: var(--spacing-l);
}
.success-page-content h1 {
    color: var(--color-primary);
}
.success-page-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-l);
}
.success-page-content .icon-success { /* Placeholder for a success icon */
    font-size: 5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-m);
}


/* -------------------------------------------------------------------
   14. Responsive Adjustments
------------------------------------------------------------------- */
@media (max-width: 992px) { /* Tablet */
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) { /* Mobile */
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-padding, .section-padding-dark {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }
    .section-title {
        margin-bottom: var(--spacing-l);
    }
    .footer-container {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-container .footer-column {
        margin-bottom: var(--spacing-l);
    }
    .social-links {
        justify-content: center; /* Center social links if they are flex */
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    #accept-cookies.button-secondary {
        width: 100%;
        margin-top: var(--spacing-s);
    }
}

@media (max-width: 480px) { /* Small Mobile */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .container {
        width: 95%;
    }
     .button, button, input[type="submit"], input[type="button"] {
        padding: var(--spacing-s) var(--spacing-m); /* Slightly smaller padding on small screens */
        width: 100%; /* Make buttons full-width in forms or single-button contexts */
        max-width: 300px; /* But not excessively wide */
        margin-left: auto;
        margin-right: auto;
    }
    .hero-section .button-primary {
        width: auto; /* Hero button shouldn't be full width */
    }
    .contact-form .button {
        width: 100%;
    }
    .process-grid, .blog-grid, .stats-grid, .links-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
}

@media (max-width: 768px) {
    .main-navigation{
        width: 40px;
    }
}
*{
    opacity: 1 !important;
}