/* ==========================================================================
   1. CSS Variables & Root Configuration
   ========================================================================== */
:root {
    /* Color Scheme: Complementary (Corporate Blue & Energetic Orange) */
    --primary-color: #0d47a1; /* Deep Corporate Blue */
    --secondary-color: #f4511e; /* Bright Energetic Orange */
    --primary-darker: #002171;
    --secondary-darker: #bf360c;
    
    /* Neutral Palette */
    --background-light: #f8f9fa; /* Off-white for main background */
    --background-medium: #e9ecef; /* Light grey for alternate sections */
    --text-dark: #212529; /* High-contrast dark grey for text */
    --text-light: #ffffff;
    --text-muted: #6c757d; /* For subtitles and secondary text */
    --border-color: #dee2e6;
    
    /* UI Element Colors */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-strong: rgba(0, 0, 0, 0.15);
    --overlay-color: rgba(10, 25, 47, 0.6); /* For Hero overlay */
    
    /* Typography */
    --font-family-headings: 'Poppins', sans-serif;
    --font-family-body: 'Work Sans', sans-serif;
    --font-size-base: 1rem; /* 16px */
    --line-height-base: 1.6;

    /* Spacing & Sizing */
    --container-width: 1200px;
    --gutter: 1.5rem;
    --section-padding: 5rem 0;
    --card-border-radius: 12px;
    --button-border-radius: 8px;
}

/* ==========================================================================
   2. Base & Global Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings and Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-darker);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-darker);
    text-decoration: underline;
}

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

/* ==========================================================================
   3. Layout & Helpers
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.main-container {
    overflow-x: hidden;
}

.section-padding {
    padding: var(--section-padding);
}

.section-padding-alt {
    padding: var(--section-padding);
    background-color: var(--background-medium);
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

/* Animation Helpers (triggered by JS) */
.fade-in, .slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible, .slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   4. Global UI Components (Buttons, Forms, Cards)
   ========================================================================== */
/* Global Button Styles */
.cta-button, button, input[type="submit"] {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
    background-color: var(--secondary-color);
    border: none;
    padding: 14px 32px;
    border-radius: var(--button-border-radius);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), 0 2px 5px rgba(0,0,0,0.08);
}

.cta-button:hover, button:hover, input[type="submit"]:hover {
    background-color: var(--secondary-darker);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color-strong), 0 4px 10px rgba(0,0,0,0.1);
    color: var(--text-light);
    text-decoration: none;
}

/* Global Card Styles */
.card {
    background-color: var(--text-light);
    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 30px -5px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center; /* Center text content */
}

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

.card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card appearance */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    object-position: center;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content > *:last-child {
    margin-bottom: 0;
}

.card-title {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

/* Global Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--button-border-radius);
    font-family: var(--font-family-body);
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04) inset;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.2), 0 2px 4px rgba(0,0,0,0.04) inset;
}

/* ==========================================================================
   5. Site Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: background-color 0.3s ease;
}

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

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

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

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}
.burger-menu .burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   6. Section Styles
   ========================================================================== */
/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(13, 71, 161, 0.7), rgba(0, 33, 113, 0.5));
}

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

.hero-title {
    font-size: 3.5rem;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* --- Research Section --- */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.progress-indicator {
    margin-top: 1rem;
    text-align: left;
}
.progress-indicator label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--background-medium);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.25rem;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #42a5f5);
    border-radius: 4px;
}

/* --- Webinars Section (Timeline) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0.2;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--secondary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 15px var(--shadow-color);
}
.timeline-date {
    font-family: var(--font-family-headings);
    color: var(--secondary-color);
    font-weight: 600;
}

/* --- Testimonials Section (Carousel) --- */
.testimonial-carousel-container {
    position: relative;
    max-width: 800px;
    margin: auto;
}
.testimonial-carousel {
    display: flex; /* JS will manage sliding */
    overflow: hidden;
}
.testimonial-card {
    min-width: 100%;
    flex-shrink: 0;
    padding: 2rem;
    background-color: var(--text-light);
    border-radius: var(--card-border-radius);
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--background-medium);
}
.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 600px;
}
.testimonial-author {
    font-weight: 700;
    font-style: normal;
    color: var(--primary-color);
}
.testimonial-role {
    font-size: 0.9rem;
    font-style: normal;
    color: var(--text-muted);
}
.carousel-controls {
    text-align: center;
    margin-top: 1.5rem;
}
.carousel-controls button {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}
.carousel-controls button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* --- Media Section --- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.media-card {
    text-decoration: none;
    color: inherit;
}
.media-card:hover {
    color: inherit;
}

/* --- External Resources Section --- */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.resource-link {
    display: block;
    padding: 1rem 1.5rem;
    background-color: #fff;
    border-radius: var(--button-border-radius);
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}
.resource-link:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 15px var(--shadow-color-strong);
    border-left-color: var(--secondary-color);
    text-decoration: none;
}
.resource-link strong {
    color: var(--primary-darker);
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* --- Modal --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: var(--card-border-radius);
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.close-modal-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-modal-btn:hover { color: #000; }

/* ==========================================================================
   7. Site Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary-darker);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.site-footer h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}
.site-footer p, .site-footer li {
    font-size: 0.95rem;
}
.footer-about p {
    line-height: 1.7;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer ul li {
    margin-bottom: 0.75rem;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--text-light);
    text-decoration: underline;
}
.footer-copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}
.footer-copyright p {
    margin: 0;
}

/* ==========================================================================
   8. Specific Page Styles
   ========================================================================== */
/* --- Success Page --- */
.page-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--background-light);
}
.success-content {
    background: white;
    padding: 3rem;
    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 40px var(--shadow-color-strong);
}

/* --- Static Content Pages (Privacy, Terms) --- */
.static-page-content {
    padding-top: 120px; /* Offset for fixed header */
    padding-bottom: 4rem;
    max-width: 800px;
    margin: 0 auto;
}
.static-page-content h1 {
    margin-bottom: 2rem;
}
.static-page-content h2 {
    margin-top: 2.5rem;
}

/* ==========================================================================
   9. Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 3rem; }
    .section-padding, .section-padding-alt {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    /* Header */
    .main-nav {
        display: none; /* Hide for mobile initially */
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .main-nav.is-active {
        display: flex;
    }
    .main-nav .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .main-nav a {
        font-size: 1.5rem;
    }
    .header-cta {
        display: none;
    }
    .burger-menu {
        display: block;
    }

    /* Timeline */
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 21px;
    }
    
    /* Other Sections */
    .contact-container {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}