/* 1. VARIABLES & GLOBAL RESETS
-------------------------------------------------- */
:root {
    /* Tetradic Color Scheme - Adapted for modern, clean look */
    --color-primary-dark: #0D1B2A; /* Deep, almost black blue - For dark backgrounds, strong text */
    --color-accent-yellow: #F7B801; /* Vibrant Yellow/Gold - Main accent, CTAs */
    --color-accent-blue: #4A90E2; /* Bright Blue - Secondary accent, links, info */
    --color-accent-red: #D94E4E; /* Soft Red - Warnings, attention (use sparingly) */

    /* Text Colors */
    --text-light: #FFFFFF;
    --text-dark: #212121; /* Very dark grey for primary text */
    --text-dark-secondary: #424242; /* Slightly lighter dark grey */
    --text-muted: #6c757d;
    --hero-text-color: var(--text-light);
    --section-title-color: #1a1a1a; /* Very dark for titles */
    --section-subtitle-color: #555555;
    --link-color: var(--color-accent-blue);
    --link-hover-color: #2a70c0; /* Darker blue for hover */

    /* Background Colors */
    --bg-light: #FDFDFD; /* Off-white for main content areas */
    --bg-medium: #F0F2F5; /* Light grey for alternate sections */
    --bg-dark: var(--color-primary-dark);
    --bg-footer: #070E16; /* Even darker for footer */
    --card-bg: #FFFFFF;
    --overlay-dark: rgba(0, 0, 0, 0.55); /* For text on images */
    --overlay-darker: rgba(0, 0, 0, 0.7);

    /* Borders and Shadows */
    --border-color: #E0E0E0;
    --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    --card-shadow-hover: 0 10px 22px rgba(0, 0, 0, 0.1);
    --text-shadow-light: 1px 1px 3px rgba(0,0,0,0.4); /* For light text on complex backgrounds */

    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing & Sizing */
    --header-height: 70px;
    --section-padding-y: 4rem;
    --section-padding-x: 1.5rem;
    --card-border-radius: 8px;
    --button-border-radius: 5px;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
}

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

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

/* 2. TYPOGRAPHY
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-heading);
    color: var(--section-title-color);
    font-weight: 700;
}

.title.is-1 { font-size: 3rem; margin-bottom: 1rem; }
.title.is-2 { font-size: 2.5rem; margin-bottom: 0.75rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.1); }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }
.title.is-5 { font-size: 1.25rem; }

.subtitle {
    color: var(--section-subtitle-color);
    font-weight: 400;
    line-height: 1.5;
}
.subtitle.is-3 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.subtitle.is-5 { font-size: 1.1rem; margin-bottom: 2rem; }

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

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.section-title {
    margin-bottom: 1rem !important; /* Bulma override */
    padding-top: 1rem; /* Space from top for animation */
    text-align: center;
}
.section-subtitle {
    margin-bottom: 3rem !important; /* Bulma override */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.inverted-title, .inverted-subtitle, .inverted-text {
    color: var(--text-light) !important;
    text-shadow: var(--text-shadow-light);
}
.inverted-text a {
    color: var(--color-accent-yellow);
}
.inverted-text a:hover {
    color: var(--text-light);
}


/* 3. LAYOUT & HELPERS
-------------------------------------------------- */
.section {
    padding: var(--section-padding-y) var(--section-padding-x);
    position: relative; /* For overlays and absolute positioning */
}

.container {
    max-width: 1140px; /* Standard container width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


/* 4. NAVIGATION (HEADER & FOOTER)
-------------------------------------------------- */
/* Header (Navbar) */
.navbar {
    min-height: var(--header-height);
    border-bottom: 1px solid transparent; /* Initially transparent */
}
.navbar.is-transparent {
    background-color: transparent !important;
}
.navbar-brand img {
    max-height: 40px !important; /* Bulma override for logo height */
    width: auto;
}
.navbar-item, .navbar-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    transition: color var(--transition-fast);
}
.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active {
    background-color: transparent !important; /* Bulma override */
    color: var(--color-accent-yellow) !important;
}
.navbar-dropdown {
    border-top-color: var(--color-accent-yellow);
    border-top-width: 2px;
    box-shadow: var(--card-shadow);
}
.navbar-dropdown .navbar-item:hover {
    background-color: var(--bg-medium) !important;
}
.navbar-burger {
    color: var(--text-dark);
    height: var(--header-height);
    width: var(--header-height);
}
.navbar-burger span {
    background-color: var(--text-dark);
    height: 2px;
}
.navbar-burger:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Footer */
.footer {
    background-color: var(--bg-footer);
    color: var(--text-muted);
    padding: 3rem 1.5rem 2rem;
}
.footer .title, .footer .footer-title {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.footer a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer a:hover {
    color: var(--color-accent-yellow);
    text-decoration: none;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer .social-text-links a {
    display: inline-block;
    margin-right: 15px; /* For horizontal layout if needed, currently vertical */
    font-weight: bold; /* Make social links stand out a bit */
}
.footer .social-text-links a:last-child {
    margin-right: 0;
}

/* 5. BUTTONS (GLOBAL)
-------------------------------------------------- */
/* Using Bulma's .button as base, but providing custom enhancements */
.button {
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--button-border-radius);
    transition: all var(--transition-medium);
    padding: 0.75em 1.5em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button.is-primary.custom-button, /* For specific HTML usage */
.button.custom-button { /* General custom button style */
    background-color: var(--color-accent-yellow);
    border-color: transparent;
    color: var(--color-primary-dark) !important; /* Ensure contrast */
}
.button.is-primary.custom-button:hover,
.button.custom-button:hover {
    background-color: #e0a800; /* Darker yellow */
    border-color: transparent;
    color: var(--color-primary-dark) !important;
}

.button.is-link { /* Bulma's .is-link */
    background-color: var(--color-accent-blue);
    color: var(--text-light) !important;
}
.button.is-link:hover {
    background-color: var(--link-hover-color);
}

/* Read more link style */
.read-more {
    font-weight: bold;
    color: var(--color-accent-blue);
    display: inline-block;
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.read-more:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* 6. CARDS (GLOBAL/BASE)
-------------------------------------------------- */
.card {
    background-color: var(--card-bg);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-medium);
    overflow: hidden; /* Ensures child elements adhere to border-radius */
    height: 100%; /* For equal height cards in columns */
    display: flex;
    flex-direction: column;
}
.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}

.card .card-image { /* Bulma structure */
    position: relative;
    overflow: hidden; /* To make object-fit work well */
}
.card .card-image .image-container { /* Custom wrapper for image styling */
    display: block; /* Or flex if needed */
    overflow: hidden;
}
.card .card-image .image-container img,
.card .card-image > figure > img { /* Handles both structures */
    width: 100%;
    height: 100%; /* Make it fill the figure/container */
    object-fit: cover; /* Crucial for consistent image display */
    display: block;
    border-top-left-radius: var(--card-border-radius); /* If image is flush with top */
    border-top-right-radius: var(--card-border-radius);
}
/* Specific height for card images for consistency if needed, can be adapted per section */
.service-card .card-image figure,
.blog-post-card .card-image figure {
    height: 200px; /* Example fixed height */
}
.webinar-card .card-image figure {
    height: 220px; /* Example fixed height */
}


.card .card-content {
    padding: 1.5rem;
    text-align: left; /* Default for card content */
    flex-grow: 1; /* Allows content to take up space, pushing buttons down */
    display: flex;
    flex-direction: column;
}
.card .card-content .title.card-title { /* Custom class for card titles */
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}
.card .card-content .subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.card .card-content .content {
    font-size: 0.95rem;
    color: var(--text-dark-secondary);
    margin-bottom: 1rem; /* Ensure space before button */
    flex-grow: 1;
}
.card .card-button {
    margin-top: auto; /* Pushes button to the bottom of card-content */
    align-self: flex-start; /* Aligns button to the left */
}

/* For cards that should have centered content */
.card.has-text-centered-content .card-content {
    text-align: center;
}
.card.has-text-centered-content .card-button {
    align-self: center;
}


/* 7. SECTION STYLES
-------------------------------------------------- */
/* Hero Section */
.hero.hero-background {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.hero-background-overlay {
    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)); /* Darker gradient for better text contrast */
    z-index: 1;
}
.hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero .hero-body .container {
    max-width: 800px;
}
.hero .title.hero-title {
    color: var(--hero-text-color);
    font-size: 3.5rem; /* Larger for hero */
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
.hero .subtitle.hero-subtitle {
    color: var(--hero-text-color);
    font-size: 1.5rem; /* Adjusted for hero */
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}
.hero .hero-text {
    color: var(--hero-text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}
.hero .hero-button {
    margin-top: 1rem;
    padding: 1em 2.5em;
    font-size: 1.1rem;
}

/* Services Section */
.services-section .service-card .card-image figure { height: 220px; }

/* Media Section */
.media-section {
    background-color: var(--bg-dark); /* Fallback if parallax image fails */
}
.media-gallery-item {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}
.media-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--card-shadow-hover);
}
.media-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-gallery-item .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: var(--text-light);
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    opacity: 0;
    transition: opacity var(--transition-medium);
}
.media-gallery-item:hover .image-overlay {
    opacity: 1;
}

/* History Section */
.history-section .content p {
    font-size: 1.05rem;
    line-height: 1.7;
}
.history-section .image-container img {
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
}

/* Statistics Section */
.statistics-section { background-color: var(--bg-medium); }
.statistics-section .level-item .heading {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.statistics-section .level-item .title.stat-number {
    font-size: 2.8rem;
    color: var(--color-accent-yellow);
    margin-bottom: 0.25rem;
    line-height: 1;
}
.statistics-footnote {
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-muted);
}


/* Webinars Section */
.webinars-section .webinar-card .card-image figure { height: 240px; }
.webinars-section .view-all-webinars {
    margin-top: 2.5rem;
}
.webinars-section .view-all-webinars .button.is-link {
    background-color: transparent;
    color: var(--color-accent-blue);
    border: 2px solid var(--color-accent-blue);
}
.webinars-section .view-all-webinars .button.is-link:hover {
    background-color: var(--color-accent-blue);
    color: var(--text-light);
}


/* Blog Section */
.blog-section { background-color: var(--bg-medium); }
.blog-section .blog-post-card .card-image figure { height: 200px; }

/* External Resources Section */
.external-resources-section .resource-card {
    border-left: 4px solid var(--color-accent-blue);
}
.external-resources-section .resource-card .title a {
    color: var(--text-dark);
    font-size: 1.1rem;
}
.external-resources-section .resource-card .title a:hover {
    color: var(--color-accent-blue);
}
.external-resources-section .resource-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* FAQ Section */
.faq-section { background-color: var(--bg-light); }
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.25rem 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
}
.faq-question:hover, .faq-question.active {
    color: var(--color-accent-blue);
}
.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform var(--transition-medium);
}
.faq-question.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium) ease-in-out, padding var(--transition-medium) ease-in-out;
}
.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-dark-secondary);
    padding: 0 0.5rem; /* Padding applied when open via JS */
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-dark); /* Fallback */
}
.contact-section .form-label {
    color: var(--text-light) !important; /* Override Bulma */
    font-weight: bold;
}
.contact-section .input, .contact-section .textarea {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-light);
    border-radius: var(--button-border-radius);
}
.contact-section .input::placeholder, .contact-section .textarea::placeholder {
    color: rgba(255,255,255,0.6);
}
.contact-section .input:focus, .contact-section .textarea:focus {
    border-color: var(--color-accent-yellow);
    box-shadow: 0 0 0 0.125em rgba(247, 184, 1, 0.25); /* Yellow glow */
    background-color: rgba(255,255,255,0.15);
}
.contact-section .form-button { /* Specific styling for the submit button in this section */
    margin-top: 1rem;
}
.contact-details p {
    margin-bottom: 0.75rem;
}
.contact-details .contact-icon {
    margin-right: 0.5rem;
    color: var(--color-accent-yellow);
}

/* 8. PAGE-SPECIFIC STYLES
-------------------------------------------------- */
/* Success Page */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - 78px); /* 78px approx footer height */
    text-align: center;
    padding: 2rem;
}
.success-page-container .icon {
    font-size: 4rem;
    color: var(--color-accent-blue); /* Green for success */
    margin-bottom: 1rem;
}
.success-page-container .title {
    margin-bottom: 0.5rem;
}
.success-page-container .subtitle {
    margin-bottom: 1.5rem;
}

/* Privacy & Terms Pages */
.privacy-policy-page, .terms-service-page {
    padding-top: calc(var(--header-height) + 2rem); /* Account for fixed header + extra space */
    padding-bottom: 3rem;
}
.privacy-policy-page .container, .terms-service-page .container {
    max-width: 800px; /* Narrower content for readability */
}
.privacy-policy-page h2, .terms-service-page h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.privacy-policy-page h3, .terms-service-page h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.3rem;
}


/* 9. ANIMATIONS & EFFECTS
-------------------------------------------------- */
/* Scroll Animations (basic fade-in-up) */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Background */
.parallax-background {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.parallax-overlay { /* Shared overlay for parallax sections */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-darker); /* Slightly darker for better contrast on parallax */
    z-index: 0; /* Behind content */
}
.parallax-background > .container {
    position: relative; /* To ensure content is above overlay */
    z-index: 1;
}

/* Glassmorphism (Subtle) - Example, can be applied to modals or specific cards */
.glassmorphic {
    background: rgba(255, 255, 255, 0.1); /* Very transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--card-border-radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07); /* Subtle shadow */
}


/* 10. RESPONSIVE DESIGN (MEDIA QUERIES)
-------------------------------------------------- */
@media screen and (max-width: 1023px) { /* Bulma's tablet breakpoint */
    .navbar-menu {
        background-color: var(--card-bg);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        padding: 0.5rem 0;
        position: absolute;
        width: 100%;
        left:0;
        border-top: 1px solid var(--border-color);
    }
    .navbar-menu.is-active {
        display: block;
    }
    .navbar-item, .navbar-link {
        padding: 0.75rem 1rem;
    }
    .history-section .columns {
        flex-direction: column-reverse; /* Image above text on mobile */
    }
    .history-section .column.is-one-third {
        margin-bottom: 2rem;
    }
    .contact-section .columns {
        flex-direction: column;
    }
    .contact-section .column.is-one-third {
        margin-top: 2rem;
        text-align: center; /* Center contact details on mobile */
    }
}

@media screen and (max-width: 768px) { /* Bulma's mobile breakpoint */
    .title.is-1, .hero .title.hero-title { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    .subtitle.is-3, .hero .subtitle.hero-subtitle { font-size: 1.25rem; }
    .hero .hero-text { font-size: 1rem; }

    .section {
        padding: calc(var(--section-padding-y) * 0.75) var(--section-padding-x);
    }
    .section-subtitle {
        margin-bottom: 2rem !important;
    }

    .statistics-section .level {
        flex-direction: column;
    }
    .statistics-section .level-item {
        margin-bottom: 2rem;
    }
    .statistics-section .level-item:last-child {
        margin-bottom: 0;
    }
    .columns.is-multiline .column.is-one-third,
    .columns.is-multiline .column.is-half {
        width: 100% !important; /* Stack cards on mobile */
    }
    .footer .columns {
        text-align: center;
    }
    .footer .column {
        margin-bottom: 1.5rem;
    }
}

/* 11. Cookie Consent Popup (from HTML)
-------------------------------------------------- */
/* Basic styling provided in HTML, can be enhanced here if needed.
#cookieConsentPopup { }
#acceptCookieButton { }
*/