/* CSS Variables */
:root {
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Triadic Color Scheme - Brutalist Adaptation */
    --primary-color: #E63946; /* Fiery Red - Strong, bold */
    --primary-color-dark: #C22A37; /* Darker Red for hover/active states */
    --secondary-color: #1D3557; /* Prussian Blue - Deep, serious */
    --accent-color: #F4A261;  /* Sandy Brown/Orange - Energetic accent */
    --accent-color-dark: #D88741; /* Darker accent */

    --light-bg-color: #F8F9FA; /* Very light gray, almost white */
    --dark-bg-color: #121212; /* Very dark gray, almost black */
    --neutral-bg-color: #E9ECEF; /* Light gray for subtle background differences */

    --text-color-light: #FFFFFF; /* White for dark backgrounds */
    --text-color-dark: #212529;  /* Very dark gray for light backgrounds */
    --text-color-medium: #495057; /* Medium gray for less emphasis text */
    --text-color-accent: var(--primary-color);

    --border-color-strong: #000000; /* Stark black for brutalist borders */
    --border-color-subtle: #DEE2E6; /* Subtle border for cards on light bg */

    --shadow-strong: 4px 4px 0px var(--border-color-strong); /* Brutalist hard shadow */
    --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.1);

    --container-width: 1140px;
    --container-padding: 15px;

    --header-height: 80px;
    --border-radius-sharp: 0px; /* Brutalism often uses sharp edges */
    --border-radius-soft: 4px; /* For some interactive elements like buttons if needed */
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px base */
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--light-bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #222222; /* Default dark for headings, ensuring contrast */
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.hero-section h1, .hero-section h2, .hero-section h3 { /* Hero text covered by specific styles */
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.section-title.text-light { /* For External Resources section title on dark bg */
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}


h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); } /* Section Titles */
h3 { font-size: clamp(1.5rem, 3vw, 2rem); } /* Card Titles, Sub-section titles */
h4 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-color-medium);
}
.bg-dark p, .text-light-muted {
    color: #CED4DA; /* Lighter gray for p on dark bg */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}
a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}
.press-link, .resource-title a { /* Specific link styles */
    font-weight: bold;
    text-decoration: none; /* No underline by default */
}
.press-link:hover, .resource-title a:hover {
    text-decoration: underline;
}


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

ul, ol {
    list-style: none;
    padding-left: 0;
}

/* Utility Classes */
.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-padding {
    padding-top: clamp(60px, 8vh, 100px);
    padding-bottom: clamp(60px, 8vh, 100px);
}

.bg-light { background-color: var(--light-bg-color); }
.bg-dark {
    background-color: var(--dark-bg-color);
    color: var(--text-color-light); /* Base text color for dark sections */
}
.bg-neutral { background-color: var(--neutral-bg-color); }

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

.section-title {
    text-align: center;
    margin-bottom: clamp(2rem, 5vh, 3.5rem); /* Reduced bottom margin slightly */
    font-weight: 800;
}

.section-intro {
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(2rem, 5vh, 3rem);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color-medium);
}
.bg-dark .section-intro {
    color: #E0E0E0;
}

.accent-text { color: var(--primary-color); }

/* Buttons - Global Styles */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.8em 1.8em;
    border: 2px solid var(--border-color-strong);
    border-radius: var(--border-radius-sharp);
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-shadow: 3px 3px 0 var(--border-color-strong);
    background-color: var(--light-bg-color);
    color: var(--text-color-dark);
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    box-shadow: 1px 1px 0 var(--border-color-strong);
    transform: translate(2px, 2px);
}
.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    box-shadow: none;
    transform: translate(3px, 3px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
    box-shadow: 3px 3px 0 var(--secondary-color);
}
.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    box-shadow: 1px 1px 0 var(--secondary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border-color: var(--secondary-color);
    box-shadow: 3px 3px 0 var(--primary-color);
}
.btn-secondary:hover {
    background-color: #12243E; /* Darker secondary */
    border-color: #12243E;
    box-shadow: 1px 1px 0 var(--primary-color);
}

/* Form Elements - Modern Brutalist */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color-dark);
    background-color: var(--light-bg-color);
    border: 2px solid var(--border-color-strong);
    border-radius: var(--border-radius-sharp);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.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(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-dark); /* Wider, more brutalist focus ring */
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95); /* Lightly transparent */
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Subtle shadow */
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 1.8rem); /* Slightly smaller logo */
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
}
.main-nav .nav-list { display: flex; align-items: center; }
.main-nav .nav-list li { margin-left: clamp(15px, 2.5vw, 25px); }
.main-nav .nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5em 0;
    position: relative;
    transition: color 0.3s ease;
}
.main-nav .nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 3px; background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--primary-color); }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger { display: block; position: relative; width: 28px; height: 3px; background-color: var(--secondary-color); border-radius: var(--border-radius-soft); transition: transform 0.3s ease, background-color 0.3s ease; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 28px; height: 3px; background-color: var(--secondary-color); border-radius: var(--border-radius-soft); transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease; }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }
.nav-open .hamburger { background-color: transparent; }
.nav-open .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-open .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + clamp(40px, 6vh, 60px));
    padding-bottom: clamp(60px, 8vh, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light); /* Base color for text elements */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.hero-content { max-width: 800px; z-index: 1; }
.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color-light) !important; /* Ensure white text */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7); /* Stronger shadow for readability */
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    color: var(--text-color-light) !important; /* Ensure white text */
    opacity: 0.95;
    line-height: 1.6;
}
.hero-section .btn-primary { /* CTA button specific style */
    font-size: 1.05rem;
    padding: 0.9em 2.2em;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 3px 3px 0 var(--secondary-color);
}
.hero-section .btn-primary:hover {
    background-color: var(--accent-color-dark);
    border-color: var(--accent-color-dark);
}

/* General Card Styles */
.card {
    background-color: var(--light-bg-color);
    border: 2px solid var(--border-color-strong);
    border-radius: var(--border-radius-sharp);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-strong);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem; /* For stacked cards on mobile */
}
.card:hover {
    transform: translateY(-3px) translateX(-3px);
    box-shadow: 6px 6px 0px var(--border-color-strong);
}
.card-image { /* Image container */
    width: 100%;
    overflow: hidden;
    background-color: var(--neutral-bg-color); /* BG for image area */
    position: relative; /* For potential overlays */
    display: flex; /* To ensure img inside behaves if not 100% height/width set on img */
    align-items: center;
    justify-content: center;
}
.card-image img {
    width: 100%;
    height: 100%; /* Required for object-fit to work with fixed height container */
    object-fit: cover;
    transition: transform 0.3s ease-out;
}
.card:hover .card-image img { transform: scale(1.03); }

.card-content {
    padding: clamp(1.2rem, 4vw, 1.8rem);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center; /* STROGO: Center card content */
    align-items: center; /* STROGO: Center items in flex column */
}
.card-content .card-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem); /* Slightly smaller card titles */
    margin-bottom: 0.6rem;
    color: var(--secondary-color);
}
.card-content p {
    font-size: 0.95rem;
    color: var(--text-color-medium); /* Standard p color */
    margin-bottom: 1rem;
    flex-grow: 1; /* Pushes button to bottom */
}
.card-content .btn { margin-top: auto; } /* Button at bottom */

/* Specific Card Image Heights */
.services-grid .card-image { height: 200px; }
.team-grid .card-image { height: 280px; }
.press-grid .card .card-image { height: 120px; } /* For logos */
.press-grid .card .card-image img { object-fit: contain; padding: 10px; } /* Logos should not be cropped */
.webinar-item .card-image { height: 200px; }

/* History Section */
.history-content { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.history-text p { font-size: 1.05rem; line-height: 1.8; color: var(--text-color-dark); }
.history-image-container img { border: 3px solid var(--border-color-strong); box-shadow: var(--shadow-strong); }

/* Grids for Services, Team, Press */
.services-grid, .team-grid, .press-grid, .gallery-grid { display: grid; gap: 2rem; }
.services-grid, .team-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.press-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } /* Can allow 2 items too */
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

/* Team Section specific */
.team-member-card .team-member-name { margin-top: 0.5rem; color: var(--primary-color); }
.team-member-card .team-member-title { font-size: 0.9rem; color: var(--text-color-medium); font-style: italic; margin-bottom: 0.5rem; }

/* Webinars Section */
.webinar-item.card { border-color: var(--secondary-color); box-shadow: 4px 4px 0 var(--secondary-color); }
.webinar-details { text-align: left; align-items: flex-start; } /* Override card-content centering for webinars */
.webinar-title { color: var(--secondary-color); text-align: left; }
.webinar-date { font-size: 0.9em; color: var(--text-color-medium); margin-bottom: 0.5rem; font-weight: 500; text-align: left; }
.webinar-details p { text-align: left; }
.webinar-item .btn-secondary { align-self: flex-start; margin-top: 1rem; }

/* Gallery Section */
.gallery-item img { width: 100%; height: 250px; object-fit: cover; border: 3px solid var(--border-color-strong); border-radius: var(--border-radius-sharp); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-item img:hover { transform: scale(1.02) rotate(0.5deg); box-shadow: var(--shadow-strong); }

/* External Resources Section */
.external-resources-section .resource-item { background-color: rgba(255,255,255,0.07); padding: 1.5rem; margin-bottom: 1.5rem; border-left: 5px solid var(--accent-color); border-radius: var(--border-radius-sharp); }
.external-resources-section .resource-title a { color: var(--accent-color); font-family: var(--font-heading); font-size: 1.25rem; }
.external-resources-section .resource-description { color: #D5D5D5; font-size: 0.95rem; }

/* Press Section */
.press-item .card-content { text-align: left; align-items: flex-start; } /* Override card-content centering */
.press-item .press-publication-name { color: var(--primary-color); font-size: 1.2rem; text-align: left; }
.press-item .press-link { display: inline-block; margin-top: 1rem; font-weight: bold; color: var(--secondary-color); text-transform: uppercase; font-size: 0.9rem; }
.press-logos-container { margin-top: 3rem; text-align: center; }
.press-logos-container .subsection-title { margin-bottom: 1.5rem; font-size: 1.4rem; color: var(--text-color-medium); }
.press-logos-container img { max-width: 100%; height: auto; margin: 0 auto; filter: grayscale(0.6) opacity(0.8); transition: filter 0.3s ease; }
.press-logos-container img:hover { filter: grayscale(0) opacity(1); }

/* Contact Section */
.contact-wrapper { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-subtitle { font-size: 1.5rem; color: var(--secondary-color); margin-bottom: 1.5rem; }
.contact-details-container p { margin-bottom: 0.8rem; font-size: 1rem; }
.contact-details-container .contact-label { font-weight: 700; color: var(--text-color-dark); }
.map-placeholder { margin-top: 2rem; border: 2px dashed var(--border-color-subtle); padding: 1rem; text-align: center; background-color: #f0f0f0; }
.map-placeholder p { color: var(--text-color-medium); font-style: italic; }
.map-placeholder img { margin-top: 1rem; max-width: 100%; border: 1px solid var(--border-color-subtle); }

/* Footer */
.site-footer { padding-top: clamp(50px, 8vh, 70px); padding-bottom: clamp(30px, 5vh, 40px); }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 2rem; }
.footer-column .footer-heading { font-size: 1.2rem; color: var(--text-color-light); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-text, .footer-links li a, .footer-social-links li a { color: #C0C0C0; font-size: 0.95rem; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links li a:hover, .footer-social-links li a:hover { color: var(--accent-color); }
.footer-social-links li { display: block; margin-bottom: 0.5rem; } /* Text links, one per line */
.copyright-container { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); }
.copyright-text { font-size: 0.9rem; color: #999; }

/* Specific Page Styles */
.success-page-container { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; text-align: center; padding: 2rem; background-color: var(--light-bg-color); }
.success-page-container .icon { font-size: 4rem; color: var(--primary-color); margin-bottom: 1.5rem; } /* Add an icon if you want */
.success-page-container h1 { color: var(--secondary-color); margin-bottom: 1rem; }
.success-page-container p { font-size: 1.1rem; color: var(--text-color-medium); max-width: 600px; margin-bottom: 2rem; }

.privacy-policy-page, .terms-page {
    padding-top: calc(var(--header-height) + 40px); /* Space for fixed header */
    padding-bottom: 60px;
}
.privacy-policy-page .container, .terms-page .container { max-width: 800px; }
.privacy-policy-page h1, .terms-page h1 { margin-bottom: 2rem; color: var(--secondary-color); }
.privacy-policy-page h2, .terms-page h2 { font-size: 1.5rem; color: var(--primary-color); margin-top: 2.5rem; margin-bottom: 1rem; border-bottom: 2px solid var(--neutral-bg-color); padding-bottom: 0.5rem; }
.privacy-policy-page p, .terms-page p,
.privacy-policy-page ul li, .terms-page ul li { line-height: 1.8; color: var(--text-color-dark); }
.privacy-policy-page ul, .terms-page ul { list-style: disc; padding-left: 25px; margin-bottom: 1rem; }

/* Animations (Initial states for GSAP) */
.animate-on-scroll { opacity: 1; transform: translateY(25px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive Media Queries */
@media (min-width: 768px) { /* Tablet and larger */
    .history-content { grid-template-columns: 2fr 1fr; } /* Text wider */
    .history-content:nth-of-type(even) .history-image-container { order: -1; } /* Alternate image position */
    .webinar-item.card { flex-direction: row; align-items: stretch; }
    .webinar-item .card-image { flex: 0 0 clamp(250px, 35%, 350px); height: auto; }
    .webinar-item .card-content { flex: 1 1 auto; padding: 1.5rem 2rem; }
}

@media (min-width: 992px) { /* Desktop */
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-wrapper { grid-template-columns: 3fr 2fr; } /* Form larger */
}

@media (max-width: 991px) { /* Mobile Nav */
    .main-nav .nav-toggle { display: block; }
    .main-nav .nav-list { display: none; flex-direction: column; position: absolute; top: var(--header-height); left: 0; width: 100%; background-color: #ffffff; padding: 0.5rem 0; box-shadow: 0 3px 5px rgba(0,0,0,0.1); border-top: 1px solid var(--border-color-subtle); }
    .nav-open .main-nav .nav-list { display: flex; }
    .main-nav .nav-list li { margin-left: 0; width: 100%; text-align: center; }
    .main-nav .nav-link { display: block; padding: 0.9rem 1rem; width: 100%; border-bottom: 1px solid var(--neutral-bg-color); }
    .main-nav .nav-list li:last-child .nav-link { border-bottom: none; }
    .main-nav .nav-link::after { display: none; }
    .main-nav .nav-link:hover, .main-nav .nav-link.active { background-color: var(--neutral-bg-color); }
    .main-nav.nav-open .nav-list{
        display: block;
    }
}

/* Cookie Popup Styles (minimal overrides if needed, mostly inline) */
#cookie-popup { border-top: 3px solid var(--primary-color); } /* Brutalist border */
#cookie-popup p { color: #F0F0F0; }
#cookie-popup button#accept-cookie {
    background-color: var(--primary-color) !important; /* Ensure important if overriding inline */
    color: white !important;
    border-radius: var(--border-radius-sharp) !important; /* Brutalist sharp */
    box-shadow: 2px 2px 0px var(--secondary-color) !important; /* Subtle brutalist shadow */
    border: none !important;
    padding: 0.7em 1.6em !important;
}
#cookie-popup button#accept-cookie:hover {
    background-color: var(--primary-color-dark) !important;
    box-shadow: 1px 1px 0px var(--secondary-color) !important;
    transform: translate(1px, 1px);
}