/* style.css */

/*------------------------------------------------------------------
[Table of Contents]

1.  Global Styles & CSS Variables
    1.1 Root Variables
    1.2 Reset & Base Styles
    1.3 Typography
    1.4 Container & Layout
2.  UI Components
    2.1 Buttons
    2.2 Forms
    2.3 Cards (Generic)
    2.4 Sliders (Basic Structure)
3.  Header & Navigation
4.  Footer
5.  Page Sections
    5.1 Hero Section
    5.2 Features Section
    5.3 Projects Section
    5.4 Instructors/Experts Section
    5.5 Testimonials Section
    5.6 Team Section
    5.7 Blog Section
    5.8 News Section
    5.9 Press Section
    5.10 External Resources Section
    5.11 Contact Section
6.  Animations & Transitions
    6.1 Scroll Animations
    6.2 Hover Effects
7.  Specific Page Styles
    7.1 Success Page
    7.2 Privacy & Terms Pages
8.  Utility Classes
9.  Responsive Design
    9.1 Tablet & Larger
    9.2 Mobile
10. Cookie Consent (Reminder: Main styling is inline in HTML as requested)
-------------------------------------------------------------------*/

/* 1. Global Styles & CSS Variables
-------------------------------------------------------------------*/
/* 1.1 Root Variables */
:root {
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Nunito', sans-serif;

    --color-background: #f4f5f7; /* Light grayish-white, eco-friendly feel */
    --color-surface: #ffffff; /* White for cards, clean and minimalist */
    --color-text-primary: #333333; /* Dark gray for main text, high contrast */
    --color-text-secondary: #5f6368; /* Medium gray for less prominent text */
    --color-headings: #202124; /* Very dark gray/off-black for titles */

    --color-primary: #5C8D89; /* Muted teal/green - eco touch, primary actions */
    --color-primary-dark: #4A7B77; /* Darker shade of primary for hover/active */
    --color-accent: #A7D7C5; /* Light, desaturated teal/mint - subtle accent */
    --color-accent-dark: #8DBCA7;

    --color-border: #e0e0e0; /* Light gray for borders and dividers */
    --color-shadow: rgba(0, 0, 0, 0.08); /* Soft shadow */
    --color-shadow-strong: rgba(0, 0, 0, 0.12);

    --color-hero-text: #FFFFFF;
    --color-error: #d93025;
    --color-success: #1e8e3e;

    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-pill: 50px;

    --header-height: 80px;
    --footer-background: #202124;
    --footer-text: #bdc1c6;
    --footer-link: var(--color-accent);
    --footer-link-hover: #ffffff;

    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;

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

    /* Neutral for eco-minimalism */
    --neutral-100: #F8F9FA; /* Lightest */
    --neutral-200: #E9ECEF;
    --neutral-300: #DEE2E6;
    --neutral-700: #495057; /* Darker */
    --neutral-900: #212529; /* Darkest */
}

/* 1.2 Reset & 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-primary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

h1 { font-size: 2.8rem; /* 44.8px */ }
h2 { font-size: 2.2rem; /* 35.2px */ } /* Section Titles */
h3 { font-size: 1.6rem; /* 25.6px */ } /* Card Titles */
h4 { font-size: 1.25rem; /* 20px */ }
p { margin-bottom: var(--space-sm); }

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

.section-title {
    text-align: center;
    margin-bottom: var(--space-xs); /* Reduced from md */
    color: var(--color-headings); /* Ensured dark color */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-lg);
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* 1.4 Container & Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}

.main-container {
    overflow: hidden; /* For animations and layout control */
}

.section-padding {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}
.section-padding_alt {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    background-color: var(--color-surface); /* Alternate section background */
}

/* 2. UI Components
-------------------------------------------------------------------*/
/* 2.1 Buttons (Global) */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.8em 1.8em;
    border-radius: var(--border-radius-pill); /* Modern pill shape */
    transition: all var(--transition-speed) var(--transition-timing);
    box-shadow: 0 2px 4px var(--color-shadow);
    line-height: 1.5; /* Ensure text is vertically centered */
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--color-shadow-strong);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff; /* Ensure text color remains white on hover */
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-headings);
    border-color: var(--color-accent);
}
.btn-secondary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-headings);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* 2.2 Forms (Global) */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="search"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8em 1em;
    font-family: var(--font-secondary);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}

.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 3px rgba(var(--color-primary), 0.2); /* Check RGB for primary */
}

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

.form-group input[type="checkbox"] {
    margin-right: var(--space-xs);
    vertical-align: middle;
}
.form-group .checkbox-label {
    font-weight: normal;
    color: var(--color-text-primary);
    display: inline; /* Keep label next to checkbox */
}
.form-group .checkbox-label a {
    text-decoration: underline;
}

/* 2.3 Cards (Generic) */
.card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 12px var(--color-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a grid */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--color-shadow-strong);
}

.card-image {
    width: 100%;
    height: 220px; /* Consistent height for card images */
    overflow: hidden;
    position: relative; /* For potential overlays */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--space-md);
    flex-grow: 1; /* Allows content to fill space for equal height cards */
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin-top: 0;
    margin-bottom: var(--space-sm);
    font-size: 1.4rem; /* Slightly smaller for cards */
}
.card-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    flex-grow: 1; /* Pushes elements below to bottom if needed */
}
.card-content .read-more {
    margin-top: auto; /* Pushes read more to bottom */
    align-self: flex-start; /* Aligns button to left */
}

/* Read More Link Style */
.read-more {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 0.5em 1em;
  font-weight: 700;
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-pill);
  text-decoration: none;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}
.read-more:hover, .read-more:focus {
  background-color: var(--color-primary);
  color: var(--color-surface);
  text-decoration: none;
  border-color: var(--color-primary);
}


/* 2.4 Sliders (Basic Structure) */
.custom-slider-wrapper, .testimonial-slider-wrapper {
    position: relative;
    overflow: hidden; /* Important for clean look */
}
.project-slider, .testimonial-slider {
    display: flex; /* This will be handled by JS library, but good base */
    transition: transform 0.5s ease-in-out;
}
.project-card, .testimonial-item {
    min-width: 100%; /* Full width slides by default */
    flex-shrink: 0;
}
.slider-controls {
    text-align: center;
    margin-top: var(--space-md);
}
.slider-controls button {
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    line-height: 1; /* Adjust for icon centering */
    padding: 0;
    margin: 0 var(--space-xs);
}
.slider-controls button:hover {
    background: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
}

/* 3. Header & Navigation
-------------------------------------------------------------------*/
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-sm) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px var(--color-shadow);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.site-header .logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-headings);
    text-decoration: none;
}
.site-header .logo:hover {
    color: var(--color-primary);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

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

.main-nav a {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: var(--space-xs) 0;
    position: relative;
    font-size: 0.95rem;
}

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

.main-nav a:hover,
.main-nav a.active-link { /* Assuming JS adds active-link class */
    color: var(--color-primary);
}
.main-nav a:hover::after,
.main-nav a.active-link::after {
    width: 100%;
}

.nav-toggle { /* Hamburger */
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav items for clickability */
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-headings);
    position: relative;
    transition: transform var(--transition-speed) ease;
}

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

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

/* Styles for open mobile menu (JS toggled class on .main-nav or .nav-toggle) */
.nav-open .hamburger {
    background-color: transparent; /* Middle bar disappears */
}
.nav-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-open .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}


/* 4. Footer
-------------------------------------------------------------------*/
.site-footer {
    background-color: var(--footer-background);
    color: var(--footer-text);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-md);
    font-size: 0.9rem;
}

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

.footer-content h4 {
    font-family: var(--font-primary);
    color: var(--color-surface);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.footer-content p,
.footer-content ul,
.footer-content li {
    margin-bottom: var(--space-xs);
}

.footer-content ul {
    list-style: none;
}

.footer-content a {
    color: var(--footer-link);
    text-decoration: none;
}
.footer-content a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}

.footer-social ul { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-social a {
    display: inline-block; /* Allows padding and consistent look */
    padding: 2px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--neutral-700);
    font-size: 0.85rem;
}

/* 5. Page Sections
-------------------------------------------------------------------*/

/* 5.1 Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh; /* Ensure it's substantial but not overly large */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-hero-text); /* Enforced white text */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: var(--space-xl) 0; /* Add padding for content */
}
.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)); /* Darkening overlay */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px; /* Constrain content width */
}
.hero-title {
    font-size: 3.5rem; /* Larger for hero */
    color: var(--color-hero-text);
    margin-bottom: var(--space-sm);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Shadow for readability */
}
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-hero-text);
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}
.hero-section .btn-primary {
    font-size: 1.1rem;
    padding: 0.9em 2.2em;
}

/* 5.2 Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}
.feature-card .card-content h3 {
    text-align: center;
}
.feature-card .card-content p {
    text-align: center;
}


/* 5.3 Projects Section */
.project-slider .project-card {
    /* Each slide takes up a portion, JS will handle actual sizing */
    margin-right: var(--space-md); /* Spacing between slides */
}
.project-card .card-content {
    text-align: left; /* Or center if preferred */
}

/* 5.4 Instructors/Experts Section */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}
.instructor-card .card-image {
    height: 280px; /* Square-ish for portraits */
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; /* Match card */
}
.instructor-card .card-content {
    text-align: center;
}
.instructor-card .card-content h3 {
    margin-bottom: var(--space-xs);
}

/* 5.5 Testimonials Section */
.testimonial-slider-wrapper {
    max-width: 100%;
    margin: 0 auto;
}
.testimonial-item {
    background-color: var(--color-surface); /* Card-like appearance for items */
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 4px 12px var(--color-shadow);
    margin: 0 var(--space-sm); /* If slides are shown partially */
}
.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-md) auto;
    border: 3px solid var(--color-accent);
}
.testimonial-item blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}
.testimonial-item blockquote footer {
    font-weight: 700;
    color: var(--color-headings);
}

/* 5.6 Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}
.team-member-card .card-image {
    height: 300px;
}
.team-member-card .card-content {
    text-align: center;
}
.team-member-card h3 {
    margin-bottom: var(--space-xs);
}
.team-member-card h4 { /* Role */
    font-family: var(--font-secondary);
    font-weight: 400;
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

/* 5.7 Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}
.blog-post-card .card-image {
    height: 200px;
}
.blog-post-card .card-content h3 {
    font-size: 1.3rem;
}

/* 5.8 News Section */
.news-list {
    display: grid;
    gap: var(--space-lg);
}
.news-item {
    display: flex;
    gap: var(--space-md);
    background-color: var(--color-surface);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px var(--color-shadow);
    align-items: flex-start; /* Align items to the top */
}
.news-item-image-container {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}
.news-item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-item-content h4 {
    margin-top: 0;
    margin-bottom: var(--space-xs);
    font-size: 1.15rem;
}
.news-item-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
    line-height: 1.6;
}
.news-date {
    font-size: 0.8rem;
    color: var(--color-accent-dark);
    display: block;
    margin-top: var(--space-xs);
}

/* 5.9 Press Section */
.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    align-items: center; /* Vertically align items if they have different heights */
}
.press-mention {
    text-align: center;
    padding: var(--space-md);
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px var(--color-shadow);
}
.press-logo {
    max-height: 50px; /* Control logo height */
    width: auto; /* Maintain aspect ratio */
    margin: 0 auto var(--space-sm) auto;
    filter: grayscale(100%); /* Eco-minimalist touch */
    opacity: 0.7;
    transition: filter var(--transition-speed), opacity var(--transition-speed);
}
.press-mention:hover .press-logo {
    filter: grayscale(0%);
    opacity: 1;
}
.press-mention p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-style: italic;
}
.press-mention p strong {
    color: var(--color-headings);
    font-style: normal;
}


/* 5.10 External Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}
.resource-card .card-content h3 a {
    font-size: 1.2rem;
    color: var(--color-primary);
}
.resource-card .card-content h3 a:hover {
    color: var(--color-primary-dark);
}

/* 5.11 Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: var(--space-xl);
    background-color: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px var(--color-shadow-strong);
}
@media (min-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 2fr 1fr; /* Form takes more space on larger screens */
    }
}

.contact-form-container {
    /* Styles for form container if needed */
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}
.contact-info p, .contact-info ul {
    margin-bottom: var(--space-md);
}
.contact-info ul {
    list-style: none;
}
.contact-info ul li {
    margin-bottom: var(--space-xs);
}
.contact-info ul li strong {
    color: var(--color-headings);
}
.map-placeholder img {
    border-radius: var(--border-radius-sm);
    margin-top: var(--space-sm);
    border: 1px solid var(--color-border);
}


/* 6. Animations & Transitions
-------------------------------------------------------------------*/
/* 6.1 Scroll Animations */
.animate-on-scroll {
    /*opacity: 0;*/
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-timing), transform 0.6s var(--transition-timing);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Staggered animation example (apply to children of a container) */
.animate-on-scroll.is-visible.stagger-child {
    transition-delay: calc(var(--stagger-order, 0) * 150ms);
}


/* 7. Specific Page Styles
-------------------------------------------------------------------*/
/* 7.1 Success Page */
.success-page-container, .error-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
    text-align: center;
    padding: var(--space-lg);
}
.success-page-container h1, .error-page-container h1 {
    color: var(--color-success);
    margin-bottom: var(--space-md);
}
.error-page-container h1 {
    color: var(--color-error);
}
.success-page-container p, .error-page-container p {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
}

/* 7.2 Privacy & Terms Pages */
.privacy-policy-page main,
.terms-conditions-page main,
.about-page main, /* also for about page */
.contacts-page main /* also for contacts page */
{
    padding-top: calc(var(--header-height) + var(--space-lg)); /* Header height + extra space */
    padding-bottom: var(--space-xl);
}
.privacy-policy-page .container h1,
.terms-conditions-page .container h1,
.about-page .container h1,
.contacts-page .container .section-title /* For contacts page title if structure is different */
{
    margin-bottom: var(--space-lg);
    text-align: left; /* Or center if preferred for these pages */
}
.privacy-policy-page .content-section,
.terms-conditions-page .content-section,
.about-page .content-section {
    background-color: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 12px var(--color-shadow);
}
.privacy-policy-page .content-section h2,
.terms-conditions-page .content-section h2,
.about-page .content-section h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}
.privacy-policy-page .content-section h2:first-child,
.terms-conditions-page .content-section h2:first-child,
.about-page .content-section h2:first-child {
    margin-top: 0;
}

/* 8. Utility Classes
-------------------------------------------------------------------*/
.text-center { text-align: center; }
.margin-bottom-lg { margin-bottom: var(--space-lg); }
.margin-top-lg { margin-top: var(--space-lg); }

/* 9. Responsive Design
-------------------------------------------------------------------*/
@media (max-width: 991px) { /* Tablet */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.15rem; }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background-color: var(--color-surface);
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.4s var(--transition-timing);
        padding-top: calc(var(--header-height) + var(--space-md));
        overflow-y: auto;
    }
    .main-nav.nav-open {
        transform: translateX(0);
    }
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-md);
    }
    .main-nav li {
        margin-left: 0;
        width: 100%;
    }
    .main-nav a {
        display: block;
        padding: var(--space-sm) var(--space-md);
        width: 100%;
        color: var(--color-headings); /* Darker for better visibility on white bg */
    }
    .main-nav a:hover,
    .main-nav a.active-link {
        background-color: var(--color-background);
        color: var(--color-primary);
    }
    .main-nav a::after {
        display: none; /* Remove underline for mobile nav items */
    }
    .nav-toggle {
        display: block;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-md);
    }
}

@media (max-width: 767px) { /* Mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section-title { margin-bottom: var(--space-sm); }
    .section-subtitle { margin-bottom: var(--space-md); font-size: 1rem; }

    .hero-section { min-height: 70vh; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-section .btn-primary { font-size: 1rem; padding: 0.8em 1.8em; }

    .features-grid,
    .instructors-grid,
    .team-grid,
    .blog-grid,
    .resources-grid,
    .press-grid {
        grid-template-columns: 1fr; /* Stack cards */
        gap: var(--space-md);
    }

    .news-item {
        flex-direction: column;
        align-items: center; /* Center image when stacked */
        text-align: center;
    }
    .news-item-image-container {
        width: 80%; /* Adjust image width */
        max-width: 200px; /* Max image width */
        height: 120px;
        margin-bottom: var(--space-sm);
    }
    .news-item-content {
      width: 100%;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: var(--space-md);
    }
    .contact-form-container {
      order: 1; /* Form first on mobile */
    }
    .contact-info {
      order: 2;
      text-align: center;
    }
    .contact-info ul {
      text-align: left; /* List items still left aligned */
      display: inline-block;
    }

    .footer-content {
        text-align: center;
    }
    .footer-content > div {
        margin-bottom: var(--space-md);
    }
    .footer-social ul {
        justify-content: center;
        flex-direction: row; /* Social links in a row on mobile */
        gap: var(--space-md);
    }
}

/* 10. Cookie Consent
-------------------------------------------------------------------*/
/*
#cookieConsentPopup {
    STYLES ARE INLINE IN HTML AS PER PROMPT
    Example:
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: rgba(0,0,0,0.85); color: #fff; padding: 20px;
    text-align: center; z-index: 9999; font-family: 'Nunito', sans-serif;
    font-size: 14px; line-height: 1.6;
}
#cookieConsentPopup p { margin: 0 0 15px 0; }
#cookieConsentPopup a { color: #a7d7c5; text-decoration: underline; }
#acceptCookieConsent {
    background-color: #5c8d89; color: #fff; border: none;
    padding: 10px 20px; border-radius: 5px; cursor: pointer;
    font-size: 14px; font-weight: bold; transition: background-color 0.3s ease;
}
*/
.testimonial-item {
    background-color: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 4px 12px var(--color-shadow);
    margin: 0 var(--space-sm);
    max-width: 350px;
}