/* CSS - style.css */

/* -------------------------------------------------------------------------
   0. ROOT VARIABLES & RESET
   ------------------------------------------------------------------------- */
:root {
    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    --color-primary: #2A7FFF; /* Vibrant Blue */
    --color-primary-dark: #1A5FFF;
    --color-primary-light: #5DA0FF;
    
    --color-analogous-1: #2AB8FF; /* Lighter, slightly cyan-ish Blue */
    --color-analogous-2: #2A47FF; /* Deeper, slightly violet-ish Blue */

    --color-accent: #FF8C2A; /* Vibrant Orange */
    --color-accent-dark: #E07B24;

    --color-text: #374151; /* Dark Gray for body text */
    --color-text-light: #FFFFFF;
    --color-text-muted: #6B7280; /* Medium Gray */
    --color-headings: #111827; /* Very Dark Gray / Near Black for headings */

    --color-background: #FFFFFF;
    --color-background-alt: #F9FAFB; /* Very Light Gray for alternating sections */
    --color-background-card: #FFFFFF;
    
    --color-background-dark-overlay: rgba(0, 0, 0, 0.5);
    --color-background-dark-overlay-hero: rgba(20, 30, 40, 0.6); /* Hero overlay */
    --color-background-community-overlay: rgba(30, 60, 90, 0.7); /* Community overlay */


    --border-radius-small: 5px;
    --border-radius-medium: 10px;
    --border-radius-large: 20px;
    --border-radius-round: 50%;

    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 6px 12px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 10px 20px rgba(0, 0, 0, 0.12);
    
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;

    --container-width: 1200px;
    --container-padding: 20px;
    --padding-section-y: 80px;
    --header-height: 70px;
}

*,
*::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);
    background-color: var(--color-background);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-wrapper {
    overflow-x: hidden; /* Ensure no horizontal scroll from inner elements */
}

/* -------------------------------------------------------------------------
   1. BASIC LAYOUT & TYPOGRAPHY
   ------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-headings);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Subtle shadow for dark headings */
}
h1.hero-title, .hero-subtitle { /* Override for hero */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}


h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 1em; } /* Section titles */
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
}

p {
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

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;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

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

.section-padding-bg {
    padding-top: var(--padding-section-y);
    padding-bottom: var(--padding-section-y);
    background-color: var(--color-background-alt);
}

.section-title {
    text-align: center;
    color: var(--color-headings);
    margin-bottom: 1.5rem; /* More space after title */
    font-weight: 800; /* Bolder section titles */
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem; /* More space after intro */
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   2. BUTTONS (GLOBAL)
   ------------------------------------------------------------------------- */
.cta-button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8em 1.8em;
    border-radius: var(--border-radius-medium);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-timing);
    box-shadow: var(--shadow-soft);
    letter-spacing: 0.5px;
}

.cta-button { /* Primary button style */
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border-color: var(--color-accent);
}

.cta-button:hover, .cta-button:focus {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.button-secondary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}
.button-secondary:hover, .button-secondary:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.button-tertiary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.button-tertiary:hover, .button-tertiary:focus {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
    text-decoration: none;
}

.animated-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.animated-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.animated-button:hover::before {
    left: 100%;
}

/* -------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   ------------------------------------------------------------------------- */
.site-header {
    background-color: var(--color-background);
    padding: 0 var(--container-padding);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    transition: background-color var(--transition-speed) var(--transition-timing),
                box-shadow var(--transition-speed) var(--transition-timing);
}
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-medium);
}

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

.logo img {
    max-height: calc(var(--header-height) - 30px); /* Adjust based on padding */
    width: auto;
}

.main-navigation .nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-list li {
    margin-left: 25px;
}

.main-navigation .nav-list a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text);
    padding: 10px 5px;
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
}

.main-navigation .nav-list 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-navigation .nav-list a:hover::after,
.main-navigation .nav-list a:focus::after,
.main-navigation .nav-list a.active::after {
    width: 100%;
}
.main-navigation .nav-list a:hover,
.main-navigation .nav-list a:focus,
.main-navigation .nav-list a.active {
    color: var(--color-primary);
    text-decoration: none;
}


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

.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    position: relative;
    transition: background-color var(--transition-speed) var(--transition-timing);
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    left: 0;
    transition: transform var(--transition-speed) var(--transition-timing);
}

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

/* Mobile Menu Open State */
.menu-toggle[aria-expanded="true"] .hamburger-icon {
    background-color: transparent; /* Middle bar disappears */
}
.menu-toggle[aria-expanded="true"] .hamburger-icon::before {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}


/* -------------------------------------------------------------------------
   4. HERO SECTION
   ------------------------------------------------------------------------- */
.hero-section {
    min-height: calc(100vh - var(--header-height)); /* Ensure it takes viewport height minus header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--color-text-light); /* Default text color for hero is white */
    padding-top: var(--header-height); /* Account for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-background-dark-overlay-hero);
    z-index: 1;
}

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

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 0.5em;
    color: var(--color-text-light); /* Explicitly white for hero title */
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5em;
    line-height: 1.6;
    color: var(--color-text-light); /* Explicitly white for hero subtitle */
}

.hero-section .cta-button {
    padding: 1em 2.5em;
    font-size: 1.1rem;
}

/* Curved bottom for Hero (optional, simple version) */
.section-curve-bottom {
    position: absolute;
    bottom: -1px; /* Overlap slightly to prevent gaps */
    left: 0;
    width: 100%;
    height: 80px; /* Adjust height of curve */
    overflow: hidden;
    z-index: 2;
}

.section-curve-bottom::before {
    content: '';
    display: block;
    width: 150%; /* Wider to create a gentle curve */
    height: 100px; /* Taller than the container */
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0; /* Elliptical curve */
    background-color: var(--color-background); /* Match next section bg */
}


/* -------------------------------------------------------------------------
   5. CARD STYLES (REUSABLE)
   ------------------------------------------------------------------------- */
.card {
    background-color: var(--color-background-card);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
    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 */
    text-align: center; /* Center text content */
}

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

.card-image { /* This is the container for the image */
    width: 100%;
    height: 200px; /* Fixed height for image container */
    overflow: hidden;
    display: flex; /* For centering if image is smaller, though object-fit handles it */
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0; /* Placeholder bg */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for image display */
    transition: transform 0.4s ease-out;
}

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to take remaining space for equal height cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes buttons to bottom if any */
}

.card-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: var(--color-headings);
}
.card-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    flex-grow: 1; /* Allows p to take space */
}
.card-content .button-tertiary, .card-content .button-secondary {
    margin-top: auto; /* Push button to bottom */
    align-self: center; /* Center button */
}

/* -------------------------------------------------------------------------
   6. SPECIFIC SECTIONS
   ------------------------------------------------------------------------- */

/* Insights Section */
.insights-grid, .casestudies-grid, .portfolio-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}
.toggle-label {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text);
}
/* Basic Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--color-primary);
}
input:checked + .slider:before {
    transform: translateX(24px);
}
.slider.round {
    border-radius: 26px;
}
.slider.round:before {
    border-radius: 50%;
}

/* Events Section */
.events-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.carousel {
    position: relative;
    overflow: hidden; /* Optional: if items overflow before JS init */
}
.carousel-item {
    /* Styling will be handled by JS for visibility/position */
    min-width: 100%; /* For basic non-JS fallback or simple carousels */
}
/* Example for a simple flexbox-based carousel structure that JS would manipulate */
.events-carousel, .testimonials-carousel {
    display: flex; /* Managed by JS for actual sliding typically */
    overflow-x: auto; /* For horizontal scroll if JS fails or for native scroll */
    scroll-snap-type: x mandatory;
    gap: 1.5rem; /* Space between carousel items */
    padding-bottom: 1rem; /* Space for scrollbar if visible */
}
.events-carousel .carousel-item, .testimonials-carousel .testimonial-item {
    flex: 0 0 calc(33.333% - 1rem); /* Show 3 items, adjust gap */
    min-width: 300px; /* Minimum width for smaller screens */
    scroll-snap-align: start;
}

@media (max-width: 992px) {
    .events-carousel .carousel-item, .testimonials-carousel .testimonial-item {
        flex: 0 0 calc(50% - 0.75rem);
    }
}
@media (max-width: 600px) {
    .events-carousel .carousel-item, .testimonials-carousel .testimonial-item {
        flex: 0 0 90%; /* Show almost one full item */
    }
}


.carousel-controls {
    text-align: center;
    margin-top: 2rem;
}
.carousel-controls .prev-btn,
.carousel-controls .next-btn {
    background-color: var(--color-primary-light);
    color: white;
    border: none;
    padding: 0.6em 1em;
    margin: 0 0.5em;
    border-radius: var(--border-radius-small);
    font-size: 1.2rem;
}
.carousel-controls .prev-btn:hover,
.carousel-controls .next-btn:hover {
    background-color: var(--color-primary);
}

/* Testimonials Section */
.testimonials-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Simple parallax */
    position: relative;
}
.testimonials-section .section-title {
    color: var(--color-headings); /* Ensure visibility on patterned bg */
    text-shadow: 1px 1px 2px rgba(255,255,255,0.3); /* Light shadow if bg is dark */
}
.testimonial-item {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent cards */
    backdrop-filter: blur(5px); /* Glassmorphism effect */
    padding: 2rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-soft);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-round);
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--color-primary-light);
}
.testimonial-item blockquote {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    position: relative;
    padding: 0 1.5rem;
}
.testimonial-item blockquote::before,
.testimonial-item blockquote::after {
    content: '"';
    font-size: 2.5rem;
    color: var(--color-primary-light);
    position: absolute;
    line-height: 1;
}
.testimonial-item blockquote::before { top: -0.2em; left: -0.2em; }
.testimonial-item blockquote::after { bottom: -0.5em; right: -0.2em; }

.testimonial-item footer {
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-primary);
}

/* Blog Section */
.blog-post-preview .card-content {
    text-align: left; /* Blog posts usually left-aligned */
}
.post-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    position: relative;
}
.read-more-link::after {
    content: '→';
    margin-left: 0.5em;
    transition: margin-left var(--transition-speed) var(--transition-timing);
}
.read-more-link:hover::after {
    margin-left: 0.8em;
}
.read-more-link:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}


/* News Section */
.news-list {
    list-style: none;
    padding-left: 0;
}
.news-item {
    background-color: var(--color-background-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--color-primary-light);
    transition: box-shadow var(--transition-speed) var(--transition-timing);
}
.news-item:hover {
    box-shadow: var(--shadow-medium);
}
.news-date {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.news-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Community Section */
.community-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    padding: calc(var(--padding-section-y) * 1.5) var(--container-padding); /* More padding for impact */
}
.community-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--color-background-community-overlay);
    z-index: 1;
}
.community-content {
    position: relative;
    z-index: 2;
}
.community-section .section-title,
.community-section p {
    color: var(--color-text-light); /* White text on dark overlay */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.community-section .cta-button {
    margin-top: 1.5rem;
}

/* External Resources Section */
.resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.resource-item.card .card-content {
    text-align: left;
}
.resource-item.card h3 a {
    color: var(--color-headings);
    text-decoration: none;
}
.resource-item.card h3 a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
.resource-item.card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Contact Section */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-background-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-strong);
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.8em 1em;
    border: 1px solid #D1D5DB; /* Light Gray border */
    border-radius: var(--border-radius-small);
    font-family: var(--font-secondary);
    font-size: 1rem;
    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 input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form .form-consent {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}
.contact-form .form-consent input[type="checkbox"] {
    margin-right: 0.5em;
    width: auto; /* Override default width */
    height: auto; /* Override default height */
    accent-color: var(--color-primary); /* Modern checkbox color */
}
.contact-form .form-submit-button {
    width: 100%;
    padding: 1em;
    font-size: 1.1rem;
}

/* -------------------------------------------------------------------------
   7. FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-headings); /* Dark footer */
    color: #E5E7EB; /* Light gray text */
    padding-top: calc(var(--padding-section-y) * 0.8);
    padding-bottom: calc(var(--padding-section-y) * 0.5);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.footer-column h4 {
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.footer-column p, .footer-column ul {
    font-size: 0.95rem;
    color: #D1D5DB; /* Slightly darker light gray */
    margin-bottom: 0.5rem;
}
.footer-nav {
    list-style: none;
    padding: 0;
}
.footer-nav li {
    margin-bottom: 0.5rem;
}
.footer-nav a, .social-links-text a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing), 
                padding-left var(--transition-speed) var(--transition-timing);
}
.footer-nav a:hover, .footer-nav a:focus,
.social-links-text a:hover, .social-links-text a:focus {
    color: var(--color-text-light);
    padding-left: 5px; /* Subtle hover effect */
    text-decoration: underline;
}
.social-links-text {
    list-style: none;
    padding: 0;
}
.social-links-text li {
    margin-bottom: 0.5rem;
}
.copyright-text {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4B5563; /* Divider line */
    font-size: 0.9rem;
    color: #9CA3AF; /* Muted light gray */
}
.copyright-text p {
    margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   8. UTILITY & PARALLAX (Conceptual)
   ------------------------------------------------------------------------- */
.parallax-element {
    /* JS will handle actual parallax transformations */
    /* Basic transition for smoothness if JS applies transforms */
    transition: transform 0.1s linear; 
}
.parallax-section { /* Simple CSS parallax */
    background-attachment: fixed;
}

/* -------------------------------------------------------------------------
   9. RESPONSIVE STYLES
   ------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .insights-grid, .casestudies-grid, .portfolio-grid, .blog-grid, .resources-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --padding-section-y: 60px;
        --header-height: 60px;
    }
    .hero-section {
         min-height: calc(80vh - var(--header-height));
    }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .section-title { font-size: 1.9rem; }
    .section-intro { font-size: 1rem; margin-bottom: 2rem; }

    .main-navigation .nav-list {
        display: none; /* Hidden for mobile */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-background);
        box-shadow: var(--shadow-medium);
        padding: 1rem 0;
        border-top: 1px solid #eee;
    }
    .main-navigation .nav-list.active {
        display: flex; /* Shown when active */
    }
    .main-navigation .nav-list li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .main-navigation .nav-list a {
        display: block;
        padding: 0.8rem 1rem;
        width: 100%;
    }
    .main-navigation .nav-list a::after {
        /* Adjust or remove underline for mobile dropdown */
        display: none; 
    }
     .main-navigation .nav-list a:hover,
     .main-navigation .nav-list a.active {
        background-color: var(--color-background-alt);
        color: var(--color-primary);
    }

    .menu-toggle {
        display: block; /* Show hamburger */
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center;
    }
    .footer-column ul {
        padding-left: 0;
    }
     .footer-nav a:hover, .footer-nav a:focus,
    .social-links-text a:hover, .social-links-text a:focus {
        padding-left: 0; /* Remove padding shift on mobile */
    }

    .section-curve-bottom { height: 60px; }
    .section-curve-bottom::before { height: 80px; }
}


@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.6rem; }

    .insights-grid, .casestudies-grid, .portfolio-grid, .blog-grid, .resources-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 1.5rem;
    }
    .events-carousel .carousel-item, .testimonials-carousel .testimonial-item {
        flex: 0 0 100%; /* Full width items on very small screens */
    }
}


/* -------------------------------------------------------------------------
   10. Specific Page Styles (success.html, privacy.html, terms.html)
   ------------------------------------------------------------------------- */

/* success.html specific styles */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.success-page .site-header { position: static; } /* Or adjust as needed */
.success-page main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--container-padding);
}
.success-content {
    max-width: 600px;
}
.success-content h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.success-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.success-content .icon {
    font-size: 4rem; /* For a potential success icon */
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* privacy.html & terms.html specific styles */
.privacy-page main,
.terms-page main {
    padding-top: calc(var(--header-height) + 40px); /* Header height + extra space */
    padding-bottom: var(--padding-section-y);
}
.static-content-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-background-card);
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
}
.static-content-container h1 {
    margin-bottom: 1.5rem;
    text-align: center;
}
.static-content-container h2 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    border-bottom: 2px solid var(--color-background-alt);
    padding-bottom: 0.3rem;
}
.static-content-container p,
.static-content-container ul,
.static-content-container ol {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.static-content-container ul, .static-content-container ol {
    padding-left: 1.5rem;
}
.static-content-container li {
    margin-bottom: 0.5rem;
}
.static-content-container a {
    font-weight: 600;
}

@media (max-width: 768px) {
    .static-content-container {
        padding: 1.5rem;
    }
    .privacy-page main,
    .terms-page main {
        padding-top: calc(var(--header-height) + 20px);
    }
}