/* style.css */

/* 1. Root Variables & Global Setup
-------------------------------------------------- */
:root {
    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;

    /* Vibrant Color Palette */
    --color-primary: #00E676; /* Vibrant Green */
    --color-primary-dark: #00c767;
    --color-secondary: #2979FF; /* Bright Blue */
    --color-secondary-dark: #236add;
    --color-accent: #FFD600; /* Vibrant Yellow */
    --color-accent-dark-text: #333333; /* For text on accent background */

    /* Text Colors */
    --color-text-light: #FDFDFD;
    --color-text-hero: #FFFFFF;
    --color-text-dark: #1A252F; /* Very Dark Blue (for headings on light bg) */
    --color-text-medium: #2C3E50; /* Dark Slate Blue (for body text on light bg) */
    --color-text-subtle: #5a738b; /* Lighter for less important text */
    --color-text-on-dark-bg: #E0E7EF; /* For text on dark backgrounds like footer */
    --color-text-on-dark-bg-subtle: #bdc3c7; /* For subtle text on dark backgrounds */

    /* Background Colors */
    --color-background-body: #F4F7F6; /* Light Eco Grey */
    --color-background-light-section: #FFFFFF; /* For sections that need to stand out on light body */
    --color-background-dark-section: #1A252F; /* For dark sections like footer */
    --color-background-card: #FFFFFF;

    /* Borders & Dividers */
    --color-border: #DDE2E7;
    --color-divider-light: rgba(0, 0, 0, 0.08);
    --color-divider-dark: rgba(255, 255, 255, 0.15);

    /* Shadows */
    --shadow-soft: 0 4px 12px rgba(44, 62, 80, 0.08);
    --shadow-medium: 0 8px 20px rgba(44, 62, 80, 0.12);
    --shadow-strong: 0 12px 28px rgba(44, 62, 80, 0.18);

    /* Transitions & Animations */
    --transition-smooth: all 0.3s ease-in-out;
    --transition-elastic: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Elastic bounce */

    /* Spacing & Sizing */
    --spacing-xs: 0.5rem;  /* 8px */
    --spacing-sm: 1rem;    /* 16px */
    --spacing-md: 1.5rem;  /* 24px */
    --spacing-lg: 2.5rem;  /* 40px */
    --spacing-xl: 4rem;    /* 64px */
    --header-height: 70px; /* Approximate header height for offsets */

    /* Border Radius */
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 16px;
    --radius-circle: 50%;
    --radius-pill: 50px;
}

/* Global HTML & Body Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-medium);
    background-color: var(--color-background-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    text-shadow: none; /* Ensure high contrast */
}
.section-title { /* Already in HTML, enhancing */
    color: var(--color-text-dark);
    font-weight: 700;
    margin-bottom: var(--spacing-lg); /* Increased margin */
}
h1.title.is-1 { font-size: 3rem; }
h2.title.is-2, .section-title { font-size: 2.5rem; } /* .section-title is an h2 */
h3.title.is-3 { font-size: 2rem; }
h4.title.is-4 { font-size: 1.5rem; }
h5.title.is-5 { font-size: 1.25rem; }

/* Paragraphs & Links */
p {
    margin-bottom: var(--spacing-md);
}
a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--color-secondary-dark);
    text-decoration: underline;
}

/* Selection Highlight */
::selection {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
}

/* General Section Styling */
.section {
    padding: var(--spacing-xl) var(--spacing-md); /* Natural height based on content */
}
.section.has-background-light {
    background-color: var(--color-background-light-section) !important; /* Override Bulma if needed */
}

/* Site Wrapper & Main Content */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content {
    flex-grow: 1;
}


/* 2. Global Button Styles
-------------------------------------------------- */
/* Base for all button-like elements */
.button, button, input[type="submit"], input[type="button"], input[type="reset"] {
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: var(--radius-pill); /* Futurisic rounded pill shape */
    padding: 0.75em 1.75em;
    transition: var(--transition-elastic); /* Elastic animation */
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
    box-shadow: var(--shadow-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover {
    transform: translateY(-3px) scale(1.03); /* Elastic pop */
    box-shadow: var(--shadow-medium);
}
.button:active, button:active, input[type="submit"]:active, input[type="button"]:active, input[type="reset"]:active {
    transform: translateY(-1px) scale(0.98); /* Elastic press */
    box-shadow: none;
}

/* Bulma Button Enhancements */
.button.is-primary {
    background-color: var(--color-primary);
    color: var(--color-text-dark); /* Ensure contrast */
    border-color: var(--color-primary);
}
.button.is-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-dark);
}

.button.is-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border-color: var(--color-secondary);
}
.button.is-secondary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    color: var(--color-text-light);
}

.button.is-link.is-light { /* For "Read more" links */
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    padding: 0.5em 1.2em;
}
.button.is-link.is-light:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border-color: var(--color-secondary);
}

.button.is-outlined.is-primary {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
}
.button.is-outlined.is-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
}

/* 3. Header & Navigation
-------------------------------------------------- */
.header {
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.navbar {
    min-height: var(--header-height);
}
.navbar-brand .navbar-item {
    font-size: 1.75rem; /* Larger logo text */
    font-weight: 700;
    color: var(--color-text-dark);
}
.navbar-item, .navbar-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-text-medium);
    transition: color 0.3s ease;
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active, .navbar-link.is-active {
    color: var(--color-primary);
    background-color: transparent; /* Override Bulma's hover bg if not desired */
}
.navbar-link::after { /* Arrow for dropdown */
    border-color: var(--color-primary);
}
.navbar-dropdown {
    border-top-color: var(--color-primary);
    border-radius: 0 0 var(--radius-medium) var(--radius-medium);
    box-shadow: var(--shadow-medium);
}
.navbar-burger span {
    background-color: var(--color-text-dark); /* Ensure burger is visible */
    height: 3px; /* Thicker lines */
    width: 20px;
}
.navbar-burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}
.navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Navbar Menu */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.98); /* Solid for mobile readability */
        box-shadow: var(--shadow-soft);
        padding: var(--spacing-sm) 0;
    }
    .navbar-menu.is-active {
        display: block; /* Ensure it shows */
    }
    .navbar-item {
        padding: 0.75rem 1.5rem;
    }
}


/* 4. Hero Section
-------------------------------------------------- */
#hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Dark overlay is applied via inline style in HTML, which is good */
}
#hero .hero-body {
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative; /* For potential pseudo-elements or effects */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
    max-height: 800px; /* Cap height */
}
#hero .title.is-1 {
    color: var(--color-text-hero); /* White text as per requirement */
    font-size: 3.5rem; /* Larger hero title */
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Stronger shadow for readability */
}
#hero .subtitle.is-3 {
    color: var(--color-text-hero); /* White text */
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 400; /* Lighter subtitle */
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}
#hero .button.is-primary {
    font-size: 1.1rem;
    padding: 0.9em 2.2em;
}
#hero p.is-size-5 { /* Contact info in hero */
    color: var(--color-text-hero);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

@media screen and (max-width: 768px) {
    #hero .hero-body {
        min-height: auto; /* Adjust for smaller screens */
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    #hero .title.is-1 {
        font-size: 2.5rem;
    }
    #hero .subtitle.is-3 {
        font-size: 1.25rem;
    }
}


/* 5. Card Styles (General and Specific Sections)
-------------------------------------------------- */
.card {
    background-color: var(--color-background-card);
    border-radius: var(--radius-large); /* More rounded for futuristic */
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden; /* Important for child elements like .card-image */
    height: fit-content; /* Make cards in a row equal height */
    display: flex;
    flex-direction: column;
    text-align: center; /* Center content within the card */
    align-items: center; /* Center flex items (image, content) */
}
.card:hover {
    transform: translateY(-8px) scale(1.02); /* More pronounced hover */
    box-shadow: var(--shadow-strong);
}

.card .card-image { /* Container for the image */
    width: 100%;
    height: 220px; /* Fixed height for image containers in cards */
    overflow: hidden;
    display: flex; /* To center the img if it's smaller than container */
    justify-content: center;
    align-items: center;
}
.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover ensures image fills container without distortion */
    transition: transform 0.4s ease;
}
.card:hover .card-image img {
    transform: scale(1.05); /* Subtle zoom on image hover */
}

.card .card-content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Allows content to fill space if card heights are equalized */
    width: 100%; /* Ensure content takes full width for text alignment */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes buttons to bottom if present */
}
.card .card-content .title {
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xs); /* Tighter spacing for card titles */
}
.card .card-content .content {
    color: var(--color-text-medium);
    font-size: 0.95rem;
    flex-grow: 1;
}
.card .card-content .content p:last-child {
    margin-bottom: 0;
}
.card .card-content .button {
    margin-top: auto; /* Push button to bottom */
    align-self: center; /* Center button */
}

/* Specific Card Usages */
/* Methodology Section Cards */
#methodology .card .title.is-4 {
    margin-top: 0;
}
#methodology .card ul {
    text-align: left;
    margin-left: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    list-style: disc;
    padding-left: var(--spacing-sm);
}
#methodology .card strong {
    color: var(--color-text-dark);
}

/* Statistics Section Cards */
#statistics .card .progress-indicator {
    background-color: #e9ecef; /* Lighter grey for progress track */
    border-radius: var(--radius-pill);
    height: 25px; /* Thicker progress bar */
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}
#statistics .card .progress-bar {
    height: 100%;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill); /* Match parent */
    color: var(--color-text-light); /* Ensure text is visible on bar */
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--spacing-xs);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}
#statistics .card .progress-bar[data-value="75"] { background-color: var(--color-primary); }
#statistics .card .progress-bar[data-value="90"] { background-color: var(--color-secondary); }
#statistics .card .progress-bar[data-value="92"] { background-color: var(--color-accent); color: var(--color-accent-dark-text); }


/* News Section Cards */
#news .card .card-content .title {
    min-height: 3em; /* Ensure titles have enough space, preventing layout jumps */
}
#news .card .content {
    min-height: 5em; /* Ensure consistent content height before button */
}


/* Events Section Cards */
#events .event-card {
    text-align: left; /* Override general card center for event details */
    align-items: stretch; /* Override general card align for event details */
}
#events .event-card .media-left figure {
    margin: 0;
}
#events .event-card .media-left img {
    border-radius: var(--radius-medium);
    object-fit: contain; /* For icons */
}
#events .event-card .media-content .title,
#events .event-card .media-content .subtitle {
    margin-bottom: var(--spacing-xs);
}
#events .box img { /* Calendar placeholder */
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
}

/* 6. Form Styles (Contact Section)
-------------------------------------------------- */
#contact .card {
    padding: var(--spacing-sm); /* Add padding inside the card for the form */
}
.label {
    color: var(--color-text-dark);
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}
.input, .textarea {
    border-radius: var(--radius-medium); /* More modern radius */
    border: 1px solid var(--color-border);
    box-shadow: none;
    transition: var(--transition-smooth);
    background-color: #fdfdfd; /* Slightly off-white for inputs */
    padding: 0.9em 1em; /* Increased padding */
}
.input:focus, .textarea:focus,
.input.is-focused, .textarea.is-focused,
.input:active, .textarea:active,
.input.is-active, .textarea.is-active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.125em rgba(0, 230, 118, 0.25); /* Primary color focus glow */
}
.textarea {
    min-height: 150px;
}
#contact .button.is-primary {
    width: 100%;
    max-width: 300px; /* Max width for submit button */
    margin: 0 auto; /* Center button */
    display: block;
}
#contact .content h4 {
    margin-top: var(--spacing-lg);
}
#contact .content p strong {
    color: var(--color-text-dark);
}
#contact .content img { /* Map image */
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    margin-top: var(--spacing-sm);
}

/* 7. Footer
-------------------------------------------------- */
.footer {
    background-color: var(--color-background-dark-section);
    color: var(--color-text-on-dark-bg);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    text-align: center; /* Default text align for footer content */
}
.footer .title.is-5 {
    color: var(--color-text-light); /* Brighter titles in footer */
    font-family: var(--font-primary);
    margin-bottom: var(--spacing-sm);
}
.footer p {
    color: var(--color-text-on-dark-bg-subtle);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}
.footer .columns > .column {
    margin-bottom: var(--spacing-md); /* Spacing between columns on mobile */
}
.footer a {
    color: var(--color-primary); /* Bright links */
    font-weight: 500;
}
.footer a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}
.footer hr {
    background-color: var(--color-divider-dark);
    height: 1px;
    margin: var(--spacing-lg) auto;
}
.footer .footer-social-links p { /* Text-based social links */
    margin-bottom: var(--spacing-xs);
}

/* 8. Specific Page Styles
-------------------------------------------------- */
/* Success Page */
.page-success-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height)); /* Full viewport minus header */
    text-align: center;
    padding: var(--spacing-lg);
}
.page-success-wrapper .success-icon {
    font-size: 5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    /* Add an animation for the icon if desired via Animate.css or GSAP */
}
.page-success-wrapper h1 {
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
}
.page-success-wrapper p {
    color: var(--color-text-medium);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

/* Privacy & Terms Pages Content Area */
.page-content-wrapper {
    padding-top: calc(var(--header-height) + var(--spacing-lg)); /* Offset for fixed header */
    padding-bottom: var(--spacing-xl);
}
.page-content-wrapper .content h1,
.page-content-wrapper .content h2,
.page-content-wrapper .content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}
.page-content-wrapper .content p,
.page-content-wrapper .content ul,
.page-content-wrapper .content ol {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-medium);
    line-height: 1.8;
}
.page-content-wrapper .content ul,
.page-content-wrapper .content ol {
    margin-left: var(--spacing-md);
}


/* 9. Utility & Helper Classes
-------------------------------------------------- */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-light { color: var(--color-text-light) !important; }
.text-dark { color: var(--color-text-dark) !important; }
.text-medium { color: var(--color-text-medium) !important; }

.bg-primary { background-color: var(--color-primary) !important; }
/* ... other bg utilities if needed */

.full-width-image-container {
    width: 100%;
    max-height: 500px; /* Or other desired max height */
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-large);
}
.full-width-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Switch Component (from Methodology section) */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.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: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background-color: var(--color-primary);
}
input:focus + .slider {
  box-shadow: 0 0 1px var(--color-primary);
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}
#methodology .ml-2 {
    color: var(--color-text-medium);
    vertical-align: middle;
}

/* External Resources Section */
#external-resources .box.resource-list {
    background-color: var(--color-background-card);
    border-radius: var(--radius-large);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-medium);
}
#external-resources .media + .media {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-divider-light);
}
#external-resources .media .content p {
    margin-bottom: 0;
}
#external-resources .media .content strong a {
    color: var(--color-text-dark);
    font-size: 1.1em;
}
#external-resources .media .content strong a:hover {
    color: var(--color-primary);
}
hr.resource-divider { /* Custom styled hr */
    background-color: var(--color-divider-light);
    height: 1px;
    margin: var(--spacing-md) 0;
    border: none;
}


/* 10. Responsive Adjustments (Additional to Bulma)
-------------------------------------------------- */
@media screen and (max-width: 768px) {
    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    h1.title.is-1 { font-size: 2.5rem; }
    h2.title.is-2, .section-title { font-size: 2rem; }
    h3.title.is-3 { font-size: 1.75rem; }
    h4.title.is-4 { font-size: 1.25rem; }

    .columns.is-multiline .column {
        margin-bottom: var(--spacing-md); /* Ensure spacing between stacked columns */
    }
    .columns.is-multiline .column:last-child {
        margin-bottom: 0;
    }
}

/* Fix for Bulma columns not having bottom margin when stacked */
.columns:not(.is-desktop) + .columns:not(.is-desktop) {
    margin-top: 1.5rem; /* Default Bulma gap, ensure it exists */
}