/* style.css */

:root {
    --primary-color: #A7D8DE; /* Pastel Blue/Teal */
    --primary-color-darker: #8BBBC1; /* Darker shade for hovers */
    --primary-color-text: #222222; /* Dark text for pastel primary */

    --secondary-color: #FBC7B4; /* Pastel Peach */
    --secondary-color-text: #222222;

    --accent-color: #D8BFD8; /* Pastel Lavender */
    --accent-color-text: #222222;

    --background-color: #FEFBF6; /* Very Light Off-white/Beige */
    --surface-color: #FFFFFF; /* For cards, etc. */

    --text-color-dark: #333333;
    --text-color-headings: #222222; /* Even darker for section titles */
    --text-color-light: #FFFFFF;
    --text-color-grey: #5f5f5f; /* Slightly darker than Bulma's default grey for better contrast */
    --text-color-grey-darker: #4a4a4a; /* Bulma's default */
    
    --border-color: #E0E0E0;
    --shadow-color: rgba(120, 120, 150, 0.1);
    --shadow-color-strong: rgba(100, 100, 130, 0.15);

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

    --border-radius-small: 6px;
    --border-radius-medium: 12px; /* Biomorphic touch */
    --border-radius-large: 24px; /* More biomorphic */
    --border-radius-rounded: 50px;

    --header-height: 70px; /* Approximate */
    --section-padding-vertical: 4.5rem;
    --section-padding-vertical-small: 3rem;

    --transition-speed: 0.3s;
    --transition-easing: ease-in-out;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    background-color: var(--background-color); /* Particles will be on top of this */
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color-dark);
    background-color: transparent; /* Allow particle background to show */
    line-height: 1.65;
    font-size: 1rem; /* Bulma default is 1rem */
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

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

.title {
    font-weight: 800;
}
.subtitle {
    font-weight: 400;
    color: var(--text-color-grey);
}

p {
    color: var(--text-color-dark);
    margin-bottom: 1rem;
}

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

strong {
    color: inherit; /* Inherit color from parent, can be overridden */
    font-weight: 600; /* Open Sans bold */
}

/* Particle Animation Container */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind all content */
    /* JS will handle particles, this is just the container */
}

/* Global Button Styles */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 700;
    border-radius: var(--border-radius-rounded); /* Default rounded */
    transition: transform var(--transition-speed) var(--transition-easing), 
                box-shadow var(--transition-speed) var(--transition-easing),
                background-color var(--transition-speed) var(--transition-easing);
    padding-left: 1.5em;
    padding-right: 1.5em;
    letter-spacing: 0.5px;
}
.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}
.button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(0px);
    box-shadow: 0 2px 6px var(--shadow-color);
}

/* Override Bulma's primary button for pastel theme */
.button.is-primary {
    background-color: var(--primary-color);
    border-color: transparent;
    color: var(--primary-color-text); /* Dark text on light pastel */
}
.button.is-primary:hover {
    background-color: var(--primary-color-darker);
    color: var(--primary-color-text);
}
.button.is-primary strong {
    color: inherit;
}

.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);
    color: var(--primary-color-text);
    border-color: var(--primary-color);
}

.button.is-light {
    background-color: var(--surface-color);
    color: var(--text-color-dark);
    border: 1px solid var(--border-color);
}
.button.is-light:hover {
    background-color: #f5f5f5; /* Slightly darker white */
}

/* Biomorphic Button Specifics (can add more unique shape/effect) */
.biomorphic-button {
    border-radius: var(--border-radius-rounded); /* Softer, very round */
    box-shadow: 0 5px 15px var(--shadow-color);
}
.biomorphic-button-outlined {
    border-width: 2px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(254, 251, 246, 0.85); /* Semi-transparent background-color */
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color);
    height: var(--header-height);
}
.navbar {
    min-height: var(--header-height);
}
.navbar-item {
    font-family: var(--font-family-headings);
    font-weight: 600;
    color: var(--text-color-dark);
    padding: 0.75rem 1.25rem;
}
.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent;
    color: var(--primary-color-darker);
}
.site-title-oleo {
    font-family: var(--font-family-headings);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary-color-darker);
    letter-spacing: -1px;
}
.navbar-burger {
    color: var(--text-color-dark);
    height: var(--header-height); /* Ensure burger aligns with header height */
    width: var(--header-height);
}
.navbar-burger span {
    background-color: var(--text-color-dark);
    height: 2px;
}

/* Hero Section */
.hero#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh; /* Full viewport height */
    position: relative; /* For potential pseudo-elements or overlays */
}
.hero-title {
    font-size: 3.5rem; /* Adjust as needed */
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color-light) !important; /* Ensure white text from HTML is maintained */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-subtitle {
    font-size: 1.5rem; /* Adjust as needed */
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-color-light) !important;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero .button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* General Section Styling */
.section {
    padding: var(--section-padding-vertical) 1.5rem;
    background-color: transparent; /* Let body background/particles show */
}
.section:nth-child(even):not(.hero):not(.footer) { /* Alternate subtle bg for sections if desired */
   /* background-color: var(--surface-color); Slightly different background for visual separation */
}
.section-title {
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    font-weight: 800;
    margin-bottom: 1rem; /* Default Bulma is 1.5rem, adjust if needed */
}
.section .subtitle { /* Subtitle directly under section title */
    margin-bottom: 3rem; /* Increased spacing */
    color: var(--text-color-grey);
}

/* Card Styles */
.card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-medium);
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: transform var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
    overflow: hidden; /* Ensure content respects border radius */
    height: 100%; /* For equal height cards in columns */
    display: flex; /* Added for consistent structure */
    flex-direction: column; /* Added for consistent structure */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-color-strong);
}

.card .card-image { /* This is the Bulma .card-image wrapper */
    border-top-left-radius: var(--border-radius-medium);
    border-top-right-radius: var(--border-radius-medium);
    overflow: hidden; /* Important for image inside figure */
}
.card .card-image .image-container { /* Custom class from HTML */
    /* The actual image container, if needed for further styling */
}
.card .card-image figure.image { /* Bulma's figure */
    margin: 0; /* Ensure no extra margins */
}
.card .card-image figure.image img {
    display: block;
    width: 100%;
    height: 100%; /* For aspect ratio figures this should be 100% of figure */
    object-fit: cover; /* Crucial for aspect ratio and filling */
    transition: transform 0.4s ease-out;
}
.card:hover .card-image figure.image img {
    transform: scale(1.05);
}

.card .card-content {
    padding: 1.75rem;
    flex-grow: 1; /* Ensure content area expands */
    display: flex;
    flex-direction: column;
}
.card .card-content .title { /* Title inside card */
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-color-headings);
}
.card .card-content .content { /* Bulma's .content class wrapper */
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color-grey-darker);
    flex-grow: 1; /* Content text area expands */
}
.card .card-content .content p:last-child {
    margin-bottom: 0;
}

/* Centering content for specific cards if needed */
.service-card .card-content,
.testimonial-card .card-content,
.event-card .card-content {
    /* text-align: center; -- If all text needs to be centered. Be cautious. */
}
.service-card .card-content .title {
    text-align: center;
}

/* Biomorphic Card */
.biomorphic-card {
    border-radius: var(--border-radius-large); /* More pronounced curves */
}
.biomorphic-card .card-image {
    border-top-left-radius: var(--border-radius-large);
    border-top-right-radius: var(--border-radius-large);
}


/* Testimonial Card Specifics */
.testimonial-card .media-left figure.image img {
    border: 3px solid var(--surface-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}
.testimonial-card .media-content .title {
    margin-bottom: 0.25rem;
}
.testimonial-card .media-content .subtitle {
    color: var(--primary-color-darker);
    font-weight: 600;
}
.testimonial-card .content {
    font-style: italic;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
}
.testimonial-card .content time {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    color: var(--text-color-grey);
    margin-top: 0.5rem;
    text-align: right;
}

/* Timeline (Bulma Timeline Extension Styles) */
.timeline {
    margin-top: 2rem;
    position: relative;
}
.timeline .timeline-item {
    position: relative;
    padding-bottom: 2rem;
}
.timeline .timeline-item::before { /* The vertical line */
    content: '';
    position: absolute;
    left: calc(1.5rem - 1px); /* (Marker width / 2) - (line width / 2) */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}
.timeline .timeline-header {
    width: auto;
    text-align: center;
    margin: 0 auto 2rem auto;
    position: relative; /* To sit above the line */
    background-color: var(--background-color); /* To hide the line behind the tag */
    padding: 0 0.5rem;
}
.timeline .timeline-header .tag {
    font-weight: bold;
}
.timeline .timeline-item:last-child::before {
    height: 2rem; /* Stop line before the end tag */
}
.timeline .timeline-marker {
    position: absolute;
    left: 0;
    top: 0.25rem; /* Align with text better */
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--primary-color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border: 3px solid var(--background-color); /* Create a cutout effect */
}
.timeline .timeline-marker.is-icon i {
    font-size: 1.25rem;
}
.timeline .timeline-content {
    margin-left: 4.5rem; /* Space for marker + some padding */
    padding-top: 0.25rem;
}
.timeline .timeline-content .heading { /* Month/Year */
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color-grey);
    margin-bottom: 0.5rem;
}
.timeline .timeline-content .card {
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Webinars Section - Tabs (Bulma Tabs) */
.webinars-section .tabs.is-toggle li a {
    border-color: var(--border-color);
    color: var(--text-color-grey);
    border-radius: var(--border-radius-rounded); /* Fully rounded toggle items */
    margin: 0 0.25rem;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}
.webinars-section .tabs.is-toggle li.is-active a {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--primary-color-text);
    font-weight: 600;
}
.webinars-section .tabs.is-toggle li a:hover {
    border-color: var(--primary-color-darker);
    color: var(--primary-color-darker);
    background-color: rgba(167, 216, 222, 0.1); /* Light primary on hover */
}
.webinar-list {
    margin-top: 2.5rem;
}
.event-card .subtitle.is-6 { /* Date for webinar */
    font-weight: 600;
    color: var(--primary-color-darker);
}
.event-card.is-archived .title, .event-card.is-archived .subtitle {
    color: var(--text-color-grey) !important;
}
.event-card.is-archived p {
    color: var(--text-color-grey);
}

/* Partners Section */
.partners-section .image-container img {
    filter: grayscale(80%);
    opacity: 0.7;
    transition: filter var(--transition-speed), opacity var(--transition-speed);
    max-height: 80px; /* Control logo size */
    width: auto;
}
.partners-section .image-container:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Awards Section */
.award-item figure.image img {
    /* No specific style, badges are usually colorful */
}
.award-item p {
    font-weight: 600;
    color: var(--text-color-grey-darker);
}

/* External Resources Section */
.external-links-list {
    list-style: none;
    margin-left: 0;
}
.external-links-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}
.external-links-list li:last-child {
    border-bottom: none;
}
.external-link.biomorphic-link {
    font-weight: 600;
    color: var(--text-color-headings);
    text-decoration: none;
    position: relative;
    padding-right: 20px; /* Space for an icon if added */
}
.external-link.biomorphic-link::after {
    content: "\f35d"; /* FontAwesome external link icon example */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    opacity: 0;
    transition: opacity var(--transition-speed);
}
.external-links-list li:hover .external-link.biomorphic-link::after {
    opacity: 1;
}
.external-links-list li .external-link.biomorphic-link:hover {
    color: var(--primary-color-darker);
}

/* FAQ Section */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    background-color: var(--surface-color);
}
.faq-toggle {
    display: none; /* Hide checkbox */
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    cursor: pointer;
    transition: background-color var(--transition-speed);
}
.faq-question:hover {
    background-color: #f9f9f9;
}
.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition-speed) var(--transition-easing);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    font-size: 0.95rem;
    color: var(--text-color-grey-darker);
}
.faq-answer p {
    padding: 1rem 0;
}
.faq-toggle:checked + .faq-question + .faq-answer {
    max-height: 500px; /* Adjust if answers are very long */
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}
.faq-toggle:checked + .faq-question .faq-icon {
    transform: rotate(45deg);
}

/* Contact Section & Form */
.contact-form-styled .label {
    font-weight: 600;
    color: var(--text-color-grey-darker);
}
.biomorphic-input,
.input.biomorphic-input,
.textarea.biomorphic-input {
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 3px var(--shadow-color);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    padding-top: 0.8em; /* Adjust padding for better text alignment */
    padding-bottom: 0.8em;
}
.biomorphic-input:focus,
.input.biomorphic-input:focus,
.textarea.biomorphic-input:focus,
.biomorphic-input:active,
.input.biomorphic-input:active,
.textarea.biomorphic-input:active {
    border-color: var(--primary-color);
    box-shadow: inset 0 1px 3px var(--shadow-color), 0 0 0 0.125em rgba(167, 216, 222, 0.25); /* Primary color focus ring */
}
.contact-form-styled .control.has-icons-left .icon {
    color: var(--text-color-grey);
}
.contact-form-styled .checkbox input[type="checkbox"] {
    margin-right: 0.5em;
}
.contact-form-styled .checkbox a {
    font-weight: 600;
}
.contact-details p a {
    text-decoration: none;
}
.contact-details p a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #f0f2f5; /* Slightly darker than page bg, or a contrasting pastel */
    padding: 3rem 1.5rem 2rem;
    color: var(--text-color-grey-darker);
}
.footer .title {
    color: var(--text-color-headings);
    margin-bottom: 1rem;
}
.footer ul {
    list-style: none;
    margin-left: 0;
}
.footer ul li {
    margin-bottom: 0.5rem;
}
.footer .footer-link {
    color: var(--text-color-grey);
    font-weight: 500;
    transition: color var(--transition-speed);
}
.footer .footer-link:hover {
    color: var(--primary-color-darker);
    text-decoration: none;
}
.footer .social-links {
    margin-top: 1rem;
}
.footer .social-links p {
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.footer .social-text-link {
    margin: 0 0.5rem;
    display: inline-block;
}
.footer .content.has-text-centered p { /* Copyright */
    font-size: 0.9rem;
    color: var(--text-color-grey);
}

/* Page Specific Styles */
/* For success.html */
.success-page-container { /* Add this class to the main container on success.html */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Assuming header/footer might be present, adjust if not */
    text-align: center;
    padding: 2rem;
}
.success-page-container .title {
    color: var(--primary-color-darker);
}
.success-page-container .icon.is-large .fa-check-circle {
    font-size: 4rem;
    color: var(--primary-color);
}


/* For privacy.html and terms.html to prevent overlap with fixed header */
/* Use these body classes on the respective pages */
body.privacy-page main > .container:first-child,
body.terms-page main > .container:first-child,
body.about-page main > .container:first-child, /* Assuming about page also needs this */
body.contacts-page main > .container:first-child { /* Assuming contacts page also needs this */
    padding-top: calc(var(--header-height) + var(--section-padding-vertical-small));
    padding-bottom: var(--section-padding-vertical);
}
/* If the content isn't in a .container directly under main, adjust selector */
.legal-content-section, .about-content-section, .contacts-content-section {
    padding-top: calc(var(--header-height) + var(--section-padding-vertical-small)) !important;
    padding-bottom: var(--section-padding-vertical) !important;
}

/* Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-easing), transform 0.6s var(--transition-easing);
}
.scroll-animate.is-visible { /* Class to be added by JS */
    opacity: 1;
    transform: translateY(0);
}

/* Animated text reveal for Hero */
.animated-text-reveal {
    opacity: 0;
    transform: translateY(20px);
    /* JS will handle staggered animation */
}
.animated-button-pop {
    opacity: 0;
    transform: scale(0.8);
     /* JS will handle staggered animation */
}

/* Microinteractions - already included in button hover/active */

/* "Read More" link style example */
a.read-more-link {
    display: inline-block;
    font-weight: 700;
    color: var(--primary-color-darker);
    text-decoration: none;
    position: relative;
    padding-right: 1.2em; /* Space for arrow */
}
a.read-more-link::after {
    content: '\2192'; /* Right arrow */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-speed) var(--transition-easing);
}
a.read-more-link:hover::after {
    transform: translateY(-50%) translateX(3px);
}

/* Barba.js Page Transitions */
.barba-leave-active,
.barba-enter-active {
  transition: opacity .5s ease-in-out, transform .5s ease-in-out;
}

.barba-leave-to {
  opacity: 0;
  transform: translateX(-20px);
}

.barba-enter-from {
  opacity: 0;
  transform: translateX(20px);
}


/* Responsive adjustments if needed beyond Bulma */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .section {
        padding: var(--section-padding-vertical-small) 1rem;
    }
    .navbar-menu {
        background-color: rgba(254, 251, 246, 0.98); /* Solid for mobile menu */
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding-bottom: 1rem;
    }
    .navbar-item {
        padding: 0.75rem 1.5rem;
    }
     .timeline .timeline-item::before {
        left: calc(1rem - 1px); /* Adjust for smaller marker */
    }
    .timeline .timeline-marker {
        width: 2rem;
        height: 2rem;
    }
    .timeline .timeline-marker.is-icon i {
        font-size: 0.8rem;
    }
    .timeline .timeline-content {
        margin-left: 3rem; /* Space for smaller marker */
    }
}
@media screen and (max-width: 1023px) { /* Bulma's tablet breakpoint */
    .navbar-menu.is-active {
        position: absolute;
        width: 100%;
        left: 0;
        top: var(--header-height); /* Position below the fixed header */
    }
}

/* Cookie Consent Popup - Mostly inline, but if refinement needed: */
#cookieConsentPopup {
    /* The HTML has fixed styles, usually sufficient */
    /* Ensure button has good contrast and is easily clickable */
}
#cookieConsentPopup p a:hover {
    text-decoration: underline;
}

/* Final check on contrast and readability */
/* Ensure text colors on pastel backgrounds are sufficiently dark */