/* CSS Variables */
:root {
    --color-primary: #007bff; /* Bold primary color (Blue) */
    --color-primary-dark: #0056b3; /* Darker shade for hover */
    --color-accent: #ff8c00; /* Complementary accent color (Orange) */
    --color-text-dark: #333333; /* Dark text for light backgrounds */
    --color-text-darker: #222222; /* Even darker text for headings */
    --color-text-light: #ffffff; /* Light text for dark backgrounds */
    --color-background-light: #ffffff; /* Light background */
    --color-background-grey: #f8f9fa; /* Light grey background for sections */
    --color-border: #e0e0e0; /* Light border color */
    --spacing-small: 10px;
    --spacing-medium: 20px;
    --spacing-large: 40px;
    --spacing-section-padding: 80px;
}

/* Base Styles */
body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    color: var(--color-text-darker);
    text-align: center;
    margin-bottom: 1em; /* Adjusted margin */
    line-height: 1.3;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

p {
    margin-bottom: 1em;
    color: #555555; /* Slightly lighter text for paragraphs */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
}

section {
    padding: var(--spacing-section-padding) 0;
    position: relative;
    overflow: hidden; /* Needed for potential curved grid background elements */
}

/* Sections with background colors */
#about, #accolades, #history, #statistics, #methodology, #external-links {
    background-color: var(--color-background-grey);
}

/* Section Heading */
.section-heading {
    text-align: center;
    margin-bottom: var(--spacing-large);
}

.section-heading h2 {
    margin-bottom: var(--spacing-small);
}


/* Text Overlay for images/dark backgrounds */
.text-overlay {
    position: relative;
    color: var(--color-text-light);
    z-index: 1; /* Ensure text is above overlay */
    /* Background image and overlay will be set per section */
}

.text-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); /* Dark overlay */
    z-index: -1; /* Place overlay behind text */
}


/* Global Buttons */
.btn, button[type="submit"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: 'Manrope', sans-serif; /* Use heading font for buttons */
    font-size: 1rem;
}

.btn-primary, button[type="submit"] {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover, button[type="submit"]:hover {
    background-color: var(--color-primary-dark);
}

/* Global Form Elements */
.form-group {
    margin-bottom: var(--spacing-medium);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: 'Rubik', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

/* Card Styles */
.cards-grid, .accolades-list, .stats-grid, .gallery {
    display: grid;
    gap: var(--spacing-medium); /* Gap between cards */
}

/* Default for most grids */
.cards-grid, .gallery {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid with minimum card width */
}
/* Specific grid for smaller items */
.accolades-list, .stats-grid {
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


.card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-background-light);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures equal height in grid */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Subtle lift effect */
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    overflow: hidden;
    position: relative;
    display: flex; /* Use flex to center image */
    justify-content: center;
    align-items: center;
}

.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop and cover container */
    /* Image descriptions (data-prompt) are in HTML */
}

.card-content {
    padding: var(--spacing-medium);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top */
    text-align: left; /* As per HTML structure */
}

.card-content h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-small);
    text-align: left; /* As per HTML structure */
    color: var(--color-text-darker);
    text-align: center;
}

.card-content p {
    color: #555555;
    margin-bottom: var(--spacing-small);
    text-align: center;
}

/* Specific Card adjustments (e.g., Accolades, Stats) */
.accolades-list .card, .stats-grid .card {
    text-align: center; /* Center content for simpler cards */
}

.accolades-list .card .card-content h3, .stats-grid .card .card-content h3 {
     text-align: center;
}

.stats-grid .card .card-content h3 {
    font-size: 2em;
    color: var(--color-primary);
    margin-bottom: 5px;
}
.stats-grid .card .card-content p {
    font-size: 1em;
    color: var(--color-text-dark);
}


/* Header */
.site-header {
    background-color: var(--color-background-light);
    padding: var(--spacing-medium) 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky; /* Sticky header */
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensure header is above other content */
}

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

.site-logo a {
    font-family: 'Manrope', sans-serif;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.site-logo a:hover {
    color: var(--color-primary-dark);
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.site-nav li {
    margin-left: var(--spacing-large);
}

.site-nav a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500; /* Rubik medium */
    transition: color 0.3s ease;
}

.site-nav a:hover {
    color: var(--color-primary);
}

.burger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav links when open */
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    margin: 5px 0;
    transition: 0.4s;
}


/* Hero Section */
#hero {
    background: url('../image/hero.jpg') no-repeat center center; /* Placeholder background */
    background-size: cover;
    display: flex; /* Use flex to center content vertically */
    align-items: center;
    min-height: 600px; /* Example min-height, adjusted from 400px */
    position: relative;
    text-align: center;
}

#hero .container {
    position: relative;
    z-index: 2; /* Ensure container is above overlay */
}

#hero .hero-content {
     max-width: 800px; /* Limit width for readability */
     margin: 0 auto; /* Center content */
}

#hero h1 {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-medium);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Add text shadow for readability on varied backgrounds */
}

#hero p {
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    margin-bottom: var(--spacing-large);
     text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Add text shadow */
}

#hero .btn-primary {
    background-color: var(--color-accent); /* Use accent color for Hero button */
    color: var(--color-text-light);
}
#hero .btn-primary:hover {
     background-color: #cc7000; /* Darker orange */
}


/* Timeline Section */
.timeline {
    position: relative;
    padding: var(--spacing-large) 0;
}

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

.timeline-item {
    margin-bottom: var(--spacing-large);
    position: relative;
    width: 50%;
    padding: 10px 40px;
    box-sizing: border-box;
}

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

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

.timeline-date {
    position: absolute;
    top: 15px;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
    z-index: 1;
    font-weight: bold;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -40px; /* Position date circle */
}

.timeline-item:nth-child(even) .timeline-date {
    left: -40px; /* Position date circle */
}

.timeline-content {
    padding: var(--spacing-medium);
    background: var(--color-background-light);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline-content h3 {
     text-align: left;
     margin-top: 0;
}


/* External Links Section */
.external-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--spacing-small);
}

.external-links-list li {
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.external-links-list li:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}


.external-links-list a {
    display: block;
    padding: var(--spacing-medium);
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: normal;
}

.external-links-list h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    color: var(--color-primary-dark);
    text-align: left;
}

.external-links-list p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}


/* Contact Section */
.contact-section {
     background-color: var(--color-background-grey);
}

.contact-form-wrapper {
    max-width: 600px; /* Limit form width */
    margin: 0 auto;
    padding: var(--spacing-large);
    background-color: var(--color-background-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form-wrapper form button[type="submit"] {
    width: 100%; /* Full width button */
    padding: 15px;
    font-size: 1.1em;
}


/* Footer */
footer {
    background-color: var(--color-background-grey);
    color: #555555;
    padding: var(--spacing-large) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-text-darker);
    margin-bottom: var(--spacing-medium);
}

.footer-nav ul {
    list-style: none;
    margin: 0 0 var(--spacing-medium) 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
}

.footer-nav li {
    margin: 0 var(--spacing-small) 10px var(--spacing-small); /* Add bottom margin for wrap */
}

.footer-nav a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9em;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.social-links {
    margin-top: var(--spacing-medium);
    margin-bottom: var(--spacing-medium);
}

.social-links a {
    display: inline-block;
    margin: 0 var(--spacing-small);
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s ease;
}

.social-links a:hover {
     color: var(--color-primary);
}

footer p {
    margin-top: var(--spacing-medium);
    font-size: 0.9em;
    color: #777;
}

/* Specific Page Styles (Privacy, Terms) */
/* These styles would apply to about.html, privacy.html, terms.html */
body.static-page main {
    padding-top: 100px; /* Offset for fixed header */
}

body.static-page section {
    padding-top: var(--spacing-large); /* Adjust top padding for static pages */
}

/* Success Page Styles */
/* These styles would apply to success.html */
body.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full viewport height */
    text-align: center;
    background-color: var(--color-background-grey);
}

.success-message {
    max-width: 600px;
    padding: var(--spacing-large);
    background-color: var(--color-background-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.success-message h2 {
    color: green; /* Success color */
    margin-bottom: var(--spacing-medium);
}

.success-message p {
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-large);
}


/* Responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.7em; }
    h3 { font-size: 1.3em; }

    section {
        padding: 60px 0;
    }

    .site-nav {
        display: none; /* Hide nav by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--color-background-light);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: var(--spacing-medium) 0;
        transition: all 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
        z-index: 999;
    }

    .site-nav.active {
        display: flex; /* Show nav when active */
        opacity: 1;
        visibility: visible;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .site-nav li {
        margin: 10px 0; /* Vertical spacing */
    }

    .burger-menu {
        display: block; /* Show burger menu on mobile */
    }

    /* Animation for burger menu */
    .burger-menu.active span:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }

    .burger-menu.active span:nth-child(2) {
      opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }


    .timeline::before {
        left: 20px; /* Move timeline line to the left */
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px; /* Adjust padding */
        padding-right: 10px;
        left: 0 !important; /* Override left/right positioning */
    }

    .timeline-date {
        left: 0;
        margin-left: 0;
        top: 0; /* Adjust vertical position */
        width: 60px; /* Smaller date circle */
        height: 60px;
        line-height: 60px;
        font-size: 0.9em;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
         right: auto; /* Remove right positioning */
         left: 0; /* Position on the left */
    }
     .timeline-content {
         margin-left: 30px; /* Space between date circle and content */
     }

    .cards-grid, .accolades-list, .stats-grid, .gallery {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    .footer-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav li {
        margin: 5px 0;
    }

    .footer-content {
        padding: 0 var(--spacing-medium);
    }
}



/* Curved Grid Element Hint (Optional, more complex implementations might be needed) */
/* Example: A subtle curved border or background shape */
/* This is a simple interpretation and might need adjustment based on full design */
/* #features {
    position: relative;
}
#features::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--color-background-light);
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
    z-index: 0;
} */

.advantages-list + p {
  text-align: center;
}

textarea {
  resize: none;
}