/*
  Theme: Cómo Preparar tu Negocio para Atraer Inversores
  Design System: Glassmorphism + Eco-minimalism
  Color Scheme: Triad
  Animation Style: Micro-animations
  Fonts: Space Grotesk (Headings), DM Sans (Body)
*/

:root {
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;

    /* Triadic Color Scheme - Eco Minimalist Inspired */
    --color-primary: #2A9D8F; /* Persian Green - Main, calming, eco */
    --color-primary-dark: #217C70;
    --color-secondary: #E76F51; /* Burnt Sienna - Accent, energetic */
    --color-secondary-dark: #C75635;
    --color-accent: #F4A261; /* Sandy Brown - Highlight, warm */
    --color-accent-dark: #D6833E;

    --color-text-dark: #264653; /* Charcoal - For strong contrast on light bg */
    --color-text-light: #FFFFFF;
    --color-text-medium: #58747E; /* Softer dark text */
    --color-text-hero: #FFFFFF; /* Ensured by inline style in HTML, but good to have */

    --color-bg-light: #FEFBF7; /* Very light, warm off-white */
    --color-bg-alt: #F0F4F3;   /* Light, cool gray-green for alternating sections */
    --color-bg-footer: #264653; /* Dark Charcoal for footer */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.45); /* Increased opacity for better readability on complex backgrounds */
    --glass-border-color: rgba(255, 255, 255, 0.6);
    --glass-shadow-color: rgba(40, 60, 67, 0.1);
    --glass-blur: 6px; /* Slightly reduced blur for performance and subtlety */

    /* Layout & Spacing */
    --header-height: 75px;
    --container-width: 1140px;
    --container-padding: 20px; /* Increased padding for better spacing */
    --section-padding-y: 70px;

    /* Borders & Shadows */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --box-shadow-light: 0 4px 15px rgba(0, 0, 0, 0.06);
    --box-shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.1);
    --text-shadow-dark: 1px 1px 2px rgba(0,0,0,0.3); /* For light text on complex backgrounds */
    --text-shadow-light: 0px 1px 1px rgba(255,255,255,0.5); /* For dark text on light, textured backgrounds */


    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

/* Global 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);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height); /* Account for fixed header */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    margin-bottom: 0.75em;
    line-height: 1.3;
    font-weight: 700;
}
h1 { font-size: 2.8rem; margin-bottom: 0.5em; }
h2 { font-size: 2.2rem; } /* Section titles */
h3 { font-size: 1.6rem; } /* Card titles, sub-headings */
h4 { font-size: 1.2rem; }
p { margin-bottom: 1.25em; color: var(--color-text-medium); }

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

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

/* 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);
}
.alt-bg {
    background-color: var(--color-bg-alt);
}
.section-title {
    text-align: center;
    margin-bottom: 1.5em; /* More space after title */
    font-weight: 700;
    color: var(--color-text-dark);
    text-shadow: var(--text-shadow-light);
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5em; /* More space after subtitle */
    color: var(--color-text-medium);
    font-size: 1.1rem;
}

/* Global Button Styles */
.cta-button, .submit-button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    padding: 0.8em 1.8em;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
    box-shadow: var(--box-shadow-light);
}
.cta-button:hover, .submit-button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover,
.cta-button:focus, .submit-button:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus {
    background-color: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-strong);
    color: var(--color-text-light);
    text-decoration: none;
}
.cta-button.primary, .submit-button.primary { /* A variation if needed */
    background-color: var(--color-primary);
}
.cta-button.primary:hover, .submit-button.primary:hover {
    background-color: var(--color-primary-dark);
}


/* Header */
.site-header {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border-color);
    box-shadow: var(--box-shadow-light);
    padding: 0 var(--container-padding);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}
.logo:hover {
    color: var(--color-primary-dark);
}
.main-navigation .nav-list {
    list-style: none;
    display: flex;
    gap: 2em;
}
.main-navigation .nav-list a {
    font-family: var(--font-secondary);
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5em 0;
    position: relative;
}
.main-navigation .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-speed) var(--transition-timing);
}
.main-navigation .nav-list a:hover::after,
.main-navigation .nav-list a:focus::after,
.main-navigation .nav-list a.active::after { /* Add .active for current page */
    width: 100%;
}
.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text-dark);
    position: relative;
    transition: background-color 0s var(--transition-speed); /* Instant change to transparent */
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: transform var(--transition-speed) var(--transition-timing), top var(--transition-speed) var(--transition-timing);
}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

/* Active state for hamburger menu (toggled by JS) */
.nav-active .hamburger-icon {
    background-color: transparent; /* Middle line disappears */
}
.nav-active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-active .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg);
}


/* Hero Section */
.hero-section {
    position: relative;
    color: var(--color-text-hero);
    padding: calc(var(--section-padding-y) * 1.5) 0;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* For basic parallax effect: */
    /* background-attachment: fixed; */ /* Can cause issues on mobile or with complex layouts */
    min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55); /* Dark overlay for text readability */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
    font-size: 3.2rem; /* Slightly larger for hero */
    color: var(--color-text-hero); /* Ensured by inline style but good fallback */
    margin-bottom: 0.4em;
    text-shadow: var(--text-shadow-dark);
}
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-hero); /* Ensured by inline style but good fallback */
    margin-bottom: 1.8em;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}
.hero-section .cta-button {
    padding: 1em 2.5em;
    font-size: 1.1rem;
    background-color: var(--color-accent);
}
.hero-section .cta-button:hover {
    background-color: var(--color-accent-dark);
}

/* Cards (Global styles for .card) */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-light);
    padding: var(--spacing-lg);
    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: var(--box-shadow-strong);
}
.card-image, .image-container { /* .image-container is the specified wrapper */
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-md); /* Rounded corners for image container */
    overflow: hidden; /* Ensures image respects border-radius */
    height: 200px; /* Fixed height for image consistency */
    width: 100%;
    display: flex; /* Center image if it's smaller (though object-fit:cover handles this) */
    align-items: center;
    justify-content: center;
}
.card-image img, .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for fixed height container */
    transition: transform var(--transition-speed) var(--transition-timing);
}
.card:hover .card-image img, .card:hover .image-container img {
    transform: scale(1.05);
}
.card-content {
    text-align: center; /* Center text content within the card */
    flex-grow: 1; /* Allows content to fill space, pushing actions to bottom if any */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* If there are actions like buttons */
}
.card-content h3 {
    margin-top: 0; /* Remove top margin if card-image is present */
    color: var(--color-text-dark);
}
.card-content p {
    font-size: 0.95rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-md); /* Space before any potential card actions */
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}
.feature-item.card .card-content h3 {
    color: var(--color-primary);
}

/* History Section */
.history-content p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 1.5em;
}
.history-timeline {
    position: relative;
    max-width: 700px;
    margin: 2em auto 0;
}
.history-timeline::before { /* The timeline vertical line */
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--color-primary-light, #B0D4C8); /* Lighter primary or accent */
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2em;
    padding-left: 40px; /* Space for dot and line */
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px; /* Align with text */
    width: 22px;
    height: 22px;
    background-color: var(--color-secondary);
    border: 3px solid var(--color-bg-alt); /* Match section background */
    border-radius: 50%;
    z-index: 1;
}
.timeline-content h4 {
    color: var(--color-primary);
    margin-bottom: 0.3em;
}
.timeline-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
    text-align: left;
}

/* Case Studies & Testimonials Sliders (Basic container styles, JS handles slider functionality) */
.case-studies-slider, .testimonials-slider {
    /* If using a library like Swiper, it will inject its own styles.
       This is a placeholder for potential custom wrapper styling. */
    display: flex; /* Example for basic horizontal scroll, JS better */
    overflow-x: auto; /* Example for basic horizontal scroll */
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-md); /* For scrollbar visibility */
}
.case-studies-slider .card, .testimonials-slider .card {
    min-width: 300px; /* Ensure cards have a minimum width in a slider */
    flex-shrink: 0;
}
.testimonial-item .card-content {
    text-align: center;
}
.testimonial-item h4 {
    color: var(--color-primary);
    margin-top: 1em;
    margin-bottom: 0.2em;
    font-size: 1.1rem;
}
.testimonial-rating {
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-top: 0.5em;
}

/* Success Stories Section */
.success-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.success-story-item .card-image img {
    border-radius: 50%; /* Circular images for founders */
    width: 150px; /* Fixed size for these profile pics */
    height: 150px;
    object-fit: cover;
    margin: 0 auto var(--spacing-md); /* Center image */
    box-shadow: 0 0 0 5px var(--color-bg-alt), 0 0 0 7px var(--color-accent);
}
.success-story-item .card-image { /* Override general card image height */
    height: auto; /* Let the circular image define its space */
    margin-bottom: var(--spacing-sm);
}
.success-story-item h4 {
    color: var(--color-secondary);
    margin-bottom: 0.5em;
}

/* Research Section */
.research-items-container {
    max-width: 800px;
    margin: 0 auto;
}
.research-item {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-primary-light, #E0E0E0);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--box-shadow-light);
    overflow: hidden; /* For content slide */
}
.research-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
}
.research-item-header h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: var(--color-primary);
}
.toggle-button {
    background: none;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    line-height: 26px; /* Center content */
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-speed) var(--transition-timing), background-color var(--transition-speed), color var(--transition-speed);
    font-weight: bold;
    padding:0; /* remove default button padding */
}
.toggle-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}
.toggle-button[aria-expanded="true"] {
    transform: rotate(45deg);
}
.research-item-content {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    font-size: 0.95rem;
    max-height: 0; /* Collapsed by default */
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-in-out, padding var(--transition-speed) ease-in-out; /* Smooth transition */
}
.research-item-content[style*="block"] { /* When JS sets display: block */
    max-height: 500px; /* Or a sufficiently large value */
    /* padding will be applied by JS or direct style */
}


/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}
.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-light);
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 250px; /* Consistent height for gallery images */
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}
.gallery-item::after { /* Optional: overlay on hover */
    content: ''; /* Or a lens icon */
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-family: 'Font Awesome 5 Free'; font-weight: 900; content: "\f002";  Example icon */
    color: white;
    font-size: 2rem;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Clientele Section */
.clientele-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
}
.clientele-logos img {
    max-height: 60px; /* Control logo height */
    width: auto;
    opacity: 0.75;
    transition: opacity var(--transition-speed) var(--transition-timing);
}
.clientele-logos img:hover {
    opacity: 1;
}

/* External Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.resource-card.card { /* Use card styling */
    text-align: left; /* Override card's default text-align: center if needed for more text */
}
.resource-card .card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5em;
}
.resource-card .card-content h3 a {
    color: var(--color-primary);
}
.resource-card .card-content h3 a:hover {
    color: var(--color-primary-dark);
}
.resource-card .card-content p {
    font-size: 0.9rem;
    color: var(--color-text-medium);
    text-align: left;
}

/* Contact Section */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-strong);
    border: 1px solid var(--glass-border-color);
}
.form-group {
    margin-bottom: var(--spacing-lg);
}
.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid #D0D8DB; /* Light border for inputs */
    border-radius: var(--border-radius-sm);
    font-family: var(--font-secondary);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.8); /* Slightly opaque white */
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
.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, 42, 157, 143), 0.25); /* Needs --color-primary-rgb */
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form .submit-button {
    width: 100%;
    padding: var(--spacing-lg);
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-footer);
    color: var(--color-text-light_muted, #A8B2B7); /* Muted light text */
    padding: var(--section-padding-y) 0 calc(var(--section-padding-y) / 2);
    font-size: 0.9rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}
.footer-column h4 {
    font-family: var(--font-primary);
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-bottom: 1em;
}
.footer-column p, .footer-column ul {
    margin-bottom: 0;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 0.6em;
}
.footer-column ul a {
    color: var(--color-text-light_muted, #A8B2B7);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing), padding-left var(--transition-speed) var(--transition-timing);
}
.footer-column ul a:hover {
    color: var(--color-accent);
    padding-left: 5px;
    text-decoration: none;
}
.footer-social .social-links a {
    /* Styling for text-based social links */
    text-transform: capitalize;
}
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-text-medium_darker, #4A6572); /* Darker separator */
    font-size: 0.85rem;
}

/* "Read More" Link Style */
.read-more-link {
    display: inline-block;
    font-family: var(--font-primary);
    color: var(--color-secondary);
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 2px;
    position: relative;
    transition: color var(--transition-speed);
}
.read-more-link::after {
    content: '→'; /* Arrow icon */
    margin-left: 0.4em;
    transition: transform var(--transition-speed);
    display: inline-block;
}
.read-more-link:hover {
    color: var(--color-secondary-dark);
    text-decoration: none;
}
.read-more-link:hover::after {
    transform: translateX(4px);
}

/* Specific Page Styles */
/* For success.html page */
body.success-page {
    display: flex;
    flex-direction: column; /* Ensure header/footer can stack if present */
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-bg-alt); /* Light background for contrast */
    padding-top: 0; /* Override body padding-top if header is not meant to be fixed here */
}
/* If success page has its own minimal header, adjust accordingly */
body.success-page .site-header { display: none; } /* Example: hide main header */

.success-page .success-container {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: var(--spacing-xxl, 40px) var(--spacing-xl, 50px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-strong);
    border: 1px solid var(--glass-border-color);
    max-width: 500px;
}
.success-page h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
}
.success-page p {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: 1.5em;
}

/* For privacy.html and terms.html pages */
body.privacy-page main,
body.terms-page main {
    padding-top: var(--spacing-xl); /* Already have body padding-top, this is additional for content */
    padding-bottom: var(--section-padding-y);
}
body.privacy-page .content-container,
body.terms-page .content-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-bg-light); /* Or use glass if desired */
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
}
body.privacy-page h1,
body.terms-page h1 {
    margin-bottom: 1em;
    text-align: center;
}
body.privacy-page h2,
body.terms-page h2 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1.5rem;
    color: var(--color-primary);
}
body.privacy-page p, body.privacy-page li,
body.terms-page p, body.terms-page li {
    text-align: justify;
    color: var(--color-text-medium);
}
body.privacy-page ul, body.privacy-page ol,
body.terms-page ul, body.terms-page ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

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

@media (max-width: 768px) {
    body {
        padding-top: calc(var(--header-height) - 10px); /* Slightly smaller header on mobile */
    }
    .site-header {
        height: calc(var(--header-height) - 10px);
    }

    .main-navigation .nav-list {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: calc(var(--header-height) - 10px); /* Position below header */
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: var(--spacing-md) 0;
        border-top: 1px solid var(--glass-border-color);
        z-index: -1; /* Below header content initially */
    }
    .main-navigation.nav-active .nav-list { /* JS adds .nav-active to .main-navigation */
        display: flex;
    }
    .main-navigation .nav-list li {
        width: 100%;
        text-align: center;
    }
    .main-navigation .nav-list a {
        display: block;
        padding: var(--spacing-md) var(--container-padding);
        border-bottom: 1px solid rgba(var(--color-primary-rgb, 42, 157, 143), 0.1);
    }
    .main-navigation .nav-list li:last-child a {
        border-bottom: none;
    }
    .main-navigation .nav-list a::after { /* Mobile nav link indicator */
        display: none; /* Or style differently for mobile */
    }

    .nav-toggle {
        display: block; /* Show burger icon */
        z-index: 1001; /* Above nav list */
    }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-section .cta-button { font-size: 1rem; padding: 0.8em 2em; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }

    .features-grid, .success-stories-grid, .resources-grid, .gallery-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column ul {
        padding-left: 0;
    }
}

/* AOS animations - default fade-up, can be overridden in HTML */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition-property: opacity, transform;
}
[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Helper for RGB variable if needed for box-shadow with alpha */
/* Example: --color-primary-rgb: 42, 157, 143; */
/* Then use: box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.25); */

html,body{
    overflow-x: hidden;
}