/* style.css */

/* -------------------------------------------------------------------------- */
/*                               CSS Variables                                */
/* -------------------------------------------------------------------------- */
:root {
    /* Monochromatic Color Scheme (Blue-based with Neutrals) */
    --primary-color: #4A90E2; /* Modern Blue - Main interactive elements */
    --primary-color-dark: #3A7BC8; /* Darker shade for hover/active states */
    --primary-color-darker: #2A60A2; /* Even darker for specific accents */
    --primary-color-light: #A0CFFE; /* Lighter shade, use sparingly */
    --primary-color-lightest: #EAF3FE; /* Very light for subtle backgrounds or highlights */

    /* Neutral & Text Colors */
    --text-color: #363636; /* Bulma's default dark grey - for main body text */
    --text-color-light: #FFFFFF; /* White for dark backgrounds */
    --text-color-medium: #7a7a7a; /* Medium grey for subtitles, less important text */
    --text-color-dark-heading: #222222; /* Darker grey/black for main section titles */

    /* Background Colors */
    --background-color: #FFFFFF; /* Main site background */
    --background-color-light-custom: #F8F9FA; /* Slightly off-white for alternating sections */
    --card-background-color: #FFFFFF; /* Card backgrounds */
    --footer-background-color: #2c3e50; /* Dark slate blue/grey for footer */
    --modal-background-color-rgba: rgba(10, 10, 10, 0.86); /* Bulma's modal background */

    /* Fonts */
    --font-family-headings: 'Raleway', sans-serif;
    --font-family-body: 'Open Sans', sans-serif;

    /* Borders & Shadows */
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px; /* For "curved grid" feel on containers/cards */
    --box-shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-strong: 0 6px 15px rgba(0, 0, 0, 0.15);
    --text-shadow-subtle: 1px 1px 3px rgba(0,0,0,0.3);
    --text-shadow-hero: 2px 2px 4px rgba(0,0,0,0.7);

    /* Transitions & Animations */
    --transition-speed: 0.3s;
    --transition-easing: ease-in-out;

    /* Layout */
    --header-height: 3.25rem; /* Default Bulma navbar height */
    --fixed-header-padding: 100px; /* For content overlap on fixed header pages */
}

/* -------------------------------------------------------------------------- */
/*                                Base Styles                                 */
/* -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-color);
    font-size: 16px; /* Base font size */
}

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

/* Ensure Bulma container has some max-width on very large screens for readability */
.container {
    max-width: 1200px; /* Adjust as needed */
}

/* Section base padding */
.section {
    padding: 3rem 1.5rem; /* Default Bulma padding, can be adjusted */
}

@media screen and (min-width: 769px) {
    .section {
        padding: 4.5rem 1.5rem;
    }
}

/* Background image utility */
.has-background-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Dark overlay for text on background images */
.has-dark-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero.has-dark-overlay .hero-body { /* Ensure hero content is above overlay */
    position: relative;
    z-index: 2;
}


/* -------------------------------------------------------------------------- */
/*                                 Typography                                 */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--text-color-dark-heading); /* Default heading color */
}

.title {
    font-weight: 800; /* Raleway bold */
    line-height: 1.2;
}
.subtitle {
    font-family: var(--font-family-body); /* Open Sans for subtitles for softer look */
    font-weight: 400; /* Open Sans regular */
    color: var(--text-color-medium);
    line-height: 1.4;
}

.Raleway { font-family: var(--font-family-headings); }
.OpenSans { font-family: var(--font-family-body); }

p {
    margin-bottom: 1rem;
    font-family: var(--font-family-body);
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    transition: color var(--transition-speed) var(--transition-easing);
}
a:hover {
    color: var(--primary-color-dark);
}

.section-title-dark {
    color: var(--text-color-dark-heading) !important;
    margin-bottom: 2.5rem !important; /* More space for section titles */
    text-shadow: none; /* Ensure no default shadow */
}

/* -------------------------------------------------------------------------- */
/*                            Global UI Components                            */
/* -------------------------------------------------------------------------- */

/* Buttons - Enhancing Bulma's .button and providing global styles */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 700;
    border-radius: var(--border-radius-small);
    transition: background-color var(--transition-speed) var(--transition-easing),
                border-color var(--transition-speed) var(--transition-easing),
                color var(--transition-speed) var(--transition-easing),
                transform var(--transition-speed) var(--transition-easing),
                box-shadow var(--transition-speed) var(--transition-easing);
    padding: 0.75em 1.5em; /* Slightly larger padding for modern feel */
    letter-spacing: 0.5px;
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-light);
}
.button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(0px);
    box-shadow: none;
}

/* Primary Button Style (Using Bulma's .is-primary) */
.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}
.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: var(--text-color-light);
}
.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.button.is-primary.is-outlined:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}

/* Modern Input Fields */
.input.modern-input, .textarea.modern-textarea {
    border-radius: var(--border-radius-small);
    border: 1px solid #dbdbdb; /* Bulma's default border */
    box-shadow: inset 0 1px 2px rgba(10,10,10,.1);
    transition: border-color var(--transition-speed) var(--transition-easing),
                box-shadow var(--transition-speed) var(--transition-easing);
    font-family: var(--font-family-body);
}
.input.modern-input:focus, .input.modern-input:active,
.textarea.modern-textarea:focus, .textarea.modern-textarea:active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em var(--primary-color-lightest);
}

/* Cards - Global Styles */
.card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-light);
    transition: transform var(--transition-speed) var(--transition-easing),
                box-shadow var(--transition-speed) var(--transition-easing);
    overflow: hidden; /* Important for images inside */
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a row same height if using Bulma columns */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-strong);
}

.card .card-image { /* Bulma's card-image */
    overflow: hidden; /* Ensure image respects card border radius */
    display: flex; /* Centering content in card-image */
    justify-content: center;
    align-items: center;
    width: 100%;
}
.card .card-image figure.image {
    margin: 0; /* Remove default figure margin if any */
    width: 100%;
}

.card .card-image img {
    width: 100%;
    height: auto; /* Default, will be overridden by fixed height if needed */
    object-fit: cover;
    display: block; /* Remove extra space below image */
}
/* For cards where image height needs to be fixed (e.g., team cards, event cards) */
.card .card-image.fixed-height-image-container,
.card-image .image.is-1by1, .card-image .image.is-16by9 { /* or any aspect ratio class from Bulma */
    /* Let Bulma's aspect ratio handle height, or define a fixed height if needed */
}
.card .card-image.fixed-height-image-container img,
.card-image .image.is-1by1 img, .card-image .image.is-16by9 img {
    height: 100%; /* Make image fill the figure container */
}


.card .card-content {
    padding: 1.5rem;
    text-align: center; /* Center text content in cards */
    flex-grow: 1; /* Allows content to expand and push footer down */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* If card has a button at the bottom */
}
.card .card-content .title, .card .card-content .subtitle {
    margin-bottom: 0.75rem;
}
.card .card-content .content p:last-child {
    margin-bottom: 0; /* Remove margin from last paragraph if it's before a button */
}
.card .card-content .button {
    margin-top: auto; /* Pushes button to bottom if card content is short */
    align-self: center; /* Center button within the card content */
}


/* Accordion Styles */
.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #dbdbdb;
    border-radius: var(--border-radius-small);
    overflow: hidden;
}
.accordion-header {
    background-color: var(--background-color-light-custom);
    color: var(--text-color-dark-heading);
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}
.accordion-header:hover {
    background-color: var(--primary-color-lightest);
}
.accordion-icon {
    font-size: 1.5rem;
    transition: transform var(--transition-speed) var(--transition-easing);
}
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) var(--transition-easing),
                padding var(--transition-speed) var(--transition-easing);
}
.accordion-content p {
    margin: 1rem 0;
}
.accordion-item.active .accordion-content {
    padding: 1.5rem;
    max-height: 500px; /* Adjust as needed for content */
}

/* Modal styles (Bulma's are good, ensure custom content fits) */
.modal-card-head, .modal-card-foot {
    background-color: var(--background-color-light-custom);
}
.modal-card-title {
    font-family: var(--font-family-headings);
    color: var(--text-color-dark-heading);
}

/* -------------------------------------------------------------------------- */
/*                            Header & Navigation                             */
/* -------------------------------------------------------------------------- */
.header.sticky-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background-color var(--transition-speed) var(--transition-easing),
                box-shadow var(--transition-speed) var(--transition-easing);
}
.header.sticky-header.is-scrolled { /* Class to be added by JS */
    background-color: rgba(255, 255, 255, 0.95); /* Slight transparency for glassmorphism */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.navbar {
    min-height: var(--header-height);
}
.navbar-brand .navbar-item .site-title {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}
.navbar-item {
    font-family: var(--font-family-body);
    font-weight: 600;
    color: var(--text-color);
    transition: color var(--transition-speed) var(--transition-easing);
}
.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important; /* Override Bulma */
    color: var(--primary-color) !important;
}
.navbar-burger span {
    background-color: var(--text-color-dark-heading); /* Burger lines color */
}
/* Ensure dropdown menu in mobile has good background */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--background-color);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
    }
    .navbar-menu .navbar-item {
        padding: 0.75rem 1rem;
    }
}


/* -------------------------------------------------------------------------- */
/*                            Section Specific Styles                         */
/* -------------------------------------------------------------------------- */

/* Hero Section */
#hero.hero {
    background-color: #333; /* Fallback */
    position: relative; /* For overlay */
}
#hero .hero-body .title.is-1 {
    font-size: 3rem; /* Adjust as needed */
    color: var(--text-color-light) !important; /* Explicitly white */
    margin-bottom: 1rem;
    text-shadow: var(--text-shadow-hero);
}
#hero .hero-body .subtitle.is-4 {
    font-size: 1.25rem; /* Adjust as needed */
    color: var(--text-color-light) !important; /* Explicitly white */
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: var(--text-shadow-subtle);
}
@media screen and (min-width: 769px) {
    #hero .hero-body .title.is-1 {
        font-size: 4rem;
    }
    #hero .hero-body .subtitle.is-4 {
        font-size: 1.5rem;
    }
}

/* Vision Section */
.vision-section .content p {
    font-size: 1.1rem;
    line-height: 1.7;
}
.vision-section .image-container-curved img {
    border-radius: var(--border-radius-large); /* Curved effect */
    box-shadow: var(--box-shadow-strong);
}

/* Innovation Section */
.innovation-section {
    background-color: var(--background-color-light-custom);
}
.has-background-light-custom {
    background-color: var(--background-color-light-custom) !important;
}


/* Team Section */
.team-card .card-image figure.image.is-1by1 { /* Ensure team images are square */
    border-radius: 50%; /* Circular images */
    overflow: hidden;
    width: 150px; /* Fixed size for team member images */
    height: 150px;
    margin: 0 auto 1rem auto; /* Center the image container */
    border: 3px solid var(--primary-color-lightest);
}
.team-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card .card-content .title.is-5 {
    margin-bottom: 0.25rem;
}
.team-card .card-content .subtitle.is-6 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* Events Section */
.event-card .card-image figure.image.is-16by9 img {
    border-top-left-radius: var(--border-radius-medium);
    border-top-right-radius: var(--border-radius-medium);
}
.event-card .card-content .title.is-5 {
    margin-bottom: 0.25rem;
}
.event-card .card-content .subtitle.is-6 {
    color: var(--text-color-medium);
    margin-bottom: 0.75rem;
}
.event-card .content {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: left; /* Event description text-align */
}

/* External Resources Section */
.external-resources-section {
    /* Potentially add a subtle background pattern or texture */
}
.resource-card {
    background-color: var(--primary-color-lightest); /* Different background for resource cards */
}
.resource-card .card-content .title.is-5 a {
    color: var(--primary-color-darker);
    text-decoration: none;
}
.resource-card .card-content .title.is-5 a:hover {
    text-decoration: underline;
}
.resource-card .content {
    font-size: 0.85rem;
    color: var(--text-color-medium);
}


/* Contact Section (on Home Page) & Contact Page */
.contact-section-home .button, .contact-page .button {
    margin-top: 1rem;
}
.contact-form {
    margin-top: 2rem;
    max-width: 700px; /* Limit form width */
    margin-left: auto;
    margin-right: auto;
}
.contact-form .label {
    font-weight: 600;
    color: var(--text-color-dark-heading);
}
.contact-details p {
    margin-bottom: 0.75rem;
}
.contact-details strong {
    color: var(--primary-color-dark);
}
.social-links-contact a {
    margin: 0 0.5rem;
    font-weight: 600;
}
.map-placeholder img {
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-light);
}

/* -------------------------------------------------------------------------- */
/*                               Footer Styles                                */
/* -------------------------------------------------------------------------- */
.footer.footer-custom {
    background-color: var(--footer-background-color);
    color: var(--text-color-light);
    padding: 3rem 1.5rem 2rem; /* Reduced bottom padding */
}
.footer.footer-custom .title, .footer.footer-custom .footer-title {
    color: var(--text-color-light);
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer.footer-custom p, .footer.footer-custom ul li {
    color: var(--primary-color-lightest); /* Lighter text for footer paragraphs */
    font-size: 0.95rem;
}
.footer.footer-custom a.footer-link {
    color: var(--primary-color-light);
    transition: color var(--transition-speed) var(--transition-easing);
}
.footer.footer-custom a.footer-link:hover {
    color: var(--text-color-light);
    text-decoration: underline;
}
.footer.footer-custom ul {
    list-style: none;
    margin-left: 0;
}
.footer.footer-custom ul li {
    margin-bottom: 0.5rem;
}
.footer.footer-custom .content p {
    color: var(--primary-color-lightest);
}

/* -------------------------------------------------------------------------- */
/*                            Page Specific Styles                            */
/* -------------------------------------------------------------------------- */
.page-title-section {
    background-color: var(--primary-color-lightest);
    padding-top: calc(var(--header-height) + 2rem); /* Ensure content below sticky header */
    padding-bottom: 2rem;
}
.page-title-section .title.is-1 {
    color: var(--primary-color-darker);
}

/* Privacy & Terms pages */
.privacy-page-content, .terms-page-content {
    padding-top: var(--fixed-header-padding); /* Space for fixed header */
}
.privacy-page-content .content h2, .terms-page-content .content h2,
.privacy-page-content .content .title.is-4, .terms-page-content .content .title.is-4 { /* For h2s from HTML */
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color-darker);
}
.privacy-page-content .content ul, .terms-page-content .content ul {
    margin-left: 1.5em;
    margin-bottom: 1rem;
}

/* Success Page */
.success-page-section {
    min-height: calc(100vh - var(--header-height) - 5.5rem); /* Full viewport height minus header and approx footer */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.success-page-section .image.is-128x128 {
    margin-bottom: 2rem;
}
.success-page-section .title.is-1 {
    color: var(--primary-color-dark);
}

/* About Us page specific styles */
.value-card {
    background-color: var(--primary-color-lightest);
    text-align: left;
}
.value-card .card-content h4 {
    color: var(--primary-color-darker);
}

/* -------------------------------------------------------------------------- */
/*                         Animation & Transition Styles                      */
/* -------------------------------------------------------------------------- */
.animate-on-scroll {
    /*opacity: 0;*/
    transition: opacity var(--transition-speed) var(--transition-easing),
                transform var(--transition-speed) var(--transition-easing);
}

.animate-on-scroll.fade-in {
    /*opacity: 0;*/
}
.animate-on-scroll.fade-in.is-visible {
    opacity: 1;
}

.animate-on-scroll.fade-in-up {
    /*opacity: 0;*/
    transform: translateY(30px);
}
.animate-on-scroll.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.fade-in-left {
    /*opacity: 0;*/
    transform: translateX(-30px);
}
.animate-on-scroll.fade-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll.fade-in-right {
    /*opacity: 0;*/
    transform: translateX(30px);
}
.animate-on-scroll.fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Delay classes for staggered animations */
.delay-1.is-visible { transition-delay: 0.1s !important; }
.delay-2.is-visible { transition-delay: 0.2s !important; }
.delay-3.is-visible { transition-delay: 0.3s !important; }
.delay-4.is-visible { transition-delay: 0.4s !important; }


/* Parallax effect base (JS will manipulate background-position or transform) */
.section-parallax {
    background-attachment: fixed; /* Simple parallax, might need JS for more complex */
}

/* -------------------------------------------------------------------------- */
/*                            Utility Classes                                 */
/* -------------------------------------------------------------------------- */
.has-text-primary {
    color: var(--primary-color) !important;
}
.has-text-primary-dark {
    color: var(--primary-color-dark) !important;
}
.image-container-curved img {
    border-radius: var(--border-radius-large);
}

/* "Read More" link style */
.read-more-link {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.3em 0;
    position: relative;
    transition: color var(--transition-speed) var(--transition-easing);
}
.read-more-link::after {
    content: '→';
    margin-left: 0.5em;
    transition: transform var(--transition-speed) var(--transition-easing);
    display: inline-block;
}
.read-more-link:hover {
    color: var(--primary-color-dark);
}
.read-more-link:hover::after {
    transform: translateX(5px);
}

/* Glassmorphism utility */
.glassmorphism-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-medium);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Cookie Consent Popup */
#cookie-consent-popup {
    font-family: var(--font-family-body);
    /* Basic styles already in HTML, ensure they use variables if needed */
}
#cookie-consent-popup p {
    color: var(--text-color-light); /* Or a specific light color from variables */
    margin-bottom: 15px;
    font-size: 0.95rem;
}
#cookie-consent-popup button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}
#cookie-consent-popup button:hover {
    background-color: var(--primary-color-dark);
}

/* -------------------------------------------------------------------------- */
/*                               Media Queries                                */
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .section {
        padding: 2.5rem 1rem;
    }
    #hero .hero-body .title.is-1 {
        font-size: 2.5rem;
    }
    #hero .hero-body .subtitle.is-4 {
        font-size: 1.1rem;
    }
    .columns.is-vcentered .column.is-one-third,
    .columns.is-vcentered .column.is-two-thirds {
        text-align: center; /* Center content in columns on mobile */
    }
    .vision-section .image-container-curved img {
        margin: 1.5rem auto 0 auto;
        max-width: 80%;
    }
    .page-title-section {
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: 1.5rem;
    }
    .privacy-page-content, .terms-page-content {
      padding-top: calc(var(--header-height) + var(--header-height) + 20px); /* Adjust based on actual header height if it changes on mobile */
    }
    .success-page-section {
      min-height: calc(100vh - var(--header-height) - 4rem); /* Adjust footer height if different on mobile */
    }
}