/* style.css */

:root {
    /* Color Palette: Tetrad (Corporate & Modern) */
    --primary-color: #0D3B66;       /* Deep Corporate Blue */
    --primary-color-darker: #092a4a;
    --accent-color: #F9A03F;        /* Vibrant Orange */
    --accent-color-darker: #e08e30;
    --secondary-color-a: #37AFA9;   /* Teal/Green for trust/tech */
    --secondary-color-a-darker: #2c8f8a;
    --secondary-color-b: #C52E71;   /* Magenta for highlight (use sparingly) */

    /* Neutral Colors */
    --text-color-dark: #222222;     /* For main text on light backgrounds */
    --text-color-medium: #555555;   /* For subtitles, less important text */
    --text-color-light: #FFFFFF;    /* For text on dark backgrounds */
    --background-color-light: #F8F9FA; /* Very light grey for sections */
    --background-color-medium: #E9ECEF; /* Slightly darker grey */
    --background-color-dark: #1D1E2C;  /* For dark sections like footer, hero base */
    --border-color: #DEE2E6;
    --card-background: #FFFFFF;
    --form-input-background: #FFFFFF;
    --form-input-border: #CED4DA;

    /* Fonts */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Transitions & Shadows */
    --transition-speed: 0.3s;
    --transition-speed-fast: 0.2s;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);

    /* Spacing & Sizing */
    --section-padding-y: 5rem;
    --navbar-height: 3.25rem; /* Default Bulma navbar height */
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color-dark);
    background-color: var(--background-color-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: var(--navbar-height); /* Account for fixed navbar */
}

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

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

.section-title {
    color: var(--primary-color) !important; /* Make section titles stand out */
    margin-bottom: 1rem !important;
    font-weight: 800;
}
.section-subtitle {
    color: var(--text-color-medium) !important;
    margin-bottom: 3rem !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


a {
    color: var(--accent-color);
    transition: color var(--transition-speed-fast) ease;
}
a:hover {
    color: var(--accent-color-darker);
}

/* Main Container for consistent padding */
.main-container {
    /* Bulma .container will handle content width within sections */
}

/* Utility Classes */
.has-text-shadow {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.has-text-shadow-strong {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7), 0 0 5px rgba(0,0,0,0.5);
}
.has-text-shadow-subtle {
    text-shadow: 0px 1px 2px rgba(0,0,0,0.15);
}

.has-background-light-texture {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.has-parallax { /* Basic setup for JS-driven parallax */
    background-attachment: fixed; /* Simple parallax, can be enhanced */
}

/* General Section Styling */
.section {
    padding: var(--section-padding-y) 1.5rem;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Above most elements */
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white for modern feel */
    backdrop-filter: blur(10px); /* Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar.is-transparent {
    background-color: transparent !important;
}

.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color) !important;
    transition: color var(--transition-speed) ease;
}
.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active { /* Assuming is-active for current page */
    background-color: transparent !important;
    color: var(--accent-color) !important;
}
.navbar-burger {
    color: var(--primary-color) !important;
}
.navbar-menu {
    background-color: rgba(255, 255, 255, 0.85); /* For mobile menu */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}
@media screen and (max-width: 1023px) {
    .navbar-menu {
        padding-bottom: 0.5rem; /* Some padding for mobile menu */
    }
    .navbar-item {
        padding: 0.75rem 1rem;
    }
}


/* Global Button Styles (Enhancing Bulma's .button) */
.button, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75em 1.5em;
    border-width: 1px; /* Ensure border is part of size calculation */
    border-style: solid;
    border-color: transparent; /* Default to transparent */
}

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

.button.is-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--background-color-dark); /* Dark text on orange */
}
.button.is-primary:hover {
    background-color: var(--accent-color-darker);
    border-color: var(--accent-color-darker);
    color: var(--background-color-dark);
}
.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.button.is-primary.is-outlined:hover {
    background-color: var(--accent-color);
    color: var(--background-color-dark);
}

.button.is-link { /* Example for another type if used */
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}
.button.is-link:hover {
    background-color: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
}

/* Cards */
.card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    /* align-items: center; /* Centers card's direct children like .card-image, .card-content */
    /* text-align: center; /* Centers text and inline content within the card */
    height: 100%; /* For equal height cards in a row */
    overflow: hidden; /* Ensure child elements don't break border-radius */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card .card-image { /* This is the div that wraps the figure */
    width: 100%; /* Make card-image div take full width of card */
    overflow: hidden; /* Clip image to this container's bounds (if needed for rounding) */
}
.card .card-image figure.image { /* Bulma class */
    margin: 0 !important; /* Reset Bulma's default margin on figure */
    height: 200px; /* Define height for the figure container */
}
.card .card-image img {
    display: block;
    width: 100%;
    height: 100%; /* Make image fill the figure container */
    object-fit: cover; /* Cover the area, cropping if necessary */
}
/* If .image-container is used as an extra wrapper inside .card-image */
.card .card-image .image-container {
    display: block; /* Or flex if alignment inside is needed */
    height: 200px; /* Match figure height */
}
.card .card-image .image-container img {
    height: 100%; /* Fill .image-container */
}


.card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left; /* Default text alignment for card content */
    width: 100%; /* Ensure it takes full width when card is align-items: center */
}
.card .card-content .content {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--text-color-medium);
}
.card .card-content .content p:last-child {
    margin-bottom: 0;
}
.card .card-title, .card .title.is-4 { /* Targeting Bulma .title or custom .card-title */
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem; /* Slightly smaller for cards */
    text-align: left; /* Ensure title is left-aligned */
}
.feature-card .card-title, .service-card .card-title {
    text-align: center; /* Center titles for these specific cards if design requires */
}
.feature-card .content, .service-card .content {
    text-align: center; /* Center content text for these specific cards if design requires */
}


/* Forms */
.input, .textarea, .select select {
    font-family: var(--font-body);
    border-radius: 6px;
    border: 1px solid var(--form-input-border);
    box-shadow: none;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    background-color: var(--form-input-background);
    color: var(--text-color-dark);
}
.input::placeholder, .textarea::placeholder {
    color: var(--text-color-medium);
    opacity: 0.7;
}

.input:focus, .textarea:focus, .select select:focus,
.input.is-focused, .textarea.is-focused, .select select.is-focused,
.input:active, .textarea:active, .select select:active,
.input.is-active, .textarea.is-active, .select select.is-active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.125em rgba(249, 160, 63, 0.25); /* Accent color focus */
}
.label {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-color-dark);
    margin-bottom: 0.5em;
}
.checkbox {
    font-family: var(--font-body);
    color: var(--text-color-medium);
}
.checkbox input[type="checkbox"] {
    margin-right: 0.5em;
}
.checkbox a {
    color: var(--primary-color);
    font-weight: 500;
}
.checkbox a:hover {
    color: var(--accent-color);
}


/* Hero Section */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text-color-light);
}
#hero .hero-body > .container { /* Ensure content is above overlay and particles */
    position: relative;
    z-index: 2;
}
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(13, 59, 102, 0.8), rgba(29, 30, 44, 0.9)); /* Primary and Dark BG color gradient */
    z-index: 1;
}
#particles-js-hero { /* For Anime.js particle animation */
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Behind overlay */
}
#hero .title.is-1 {
    font-size: 3rem; /* Adjust as needed */
    font-weight: 800;
    margin-bottom: 1rem;
}
#hero .subtitle.is-4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    max-width: 600px; /* Constrain subtitle width */
}
#hero p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 650px; /* Constrain paragraph width */
}
@media screen and (max-width: 768px) {
    #hero .title.is-1 { font-size: 2.25rem; }
    #hero .subtitle.is-4 { font-size: 1.1rem; }
    #hero .content-column { text-align: center; align-items: center; }
    #hero .content-column p, #hero .content-column .subtitle { margin-left: auto; margin-right: auto; }
}

/* Hero Registration Form */
.registration-form .box {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly more opaque for readability */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}
.registration-form .form-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.registration-form .form-subtitle {
    color: var(--text-color-medium);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.registration-form .form-footer-note,
.registration-form .form-footer-note a {
    color: var(--text-color-medium);
    font-size: 0.8rem;
}
.registration-form .form-footer-note a:hover {
    color: var(--accent-color);
}

/* Accordion */
.accordion-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.accordion-item {
    background-color: var(--card-background);
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.accordion-header { /* This is a button */
    background-color: transparent;
    color: var(--primary-color);
    border: none; /* Reset button border */
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed-fast);
}
.accordion-header:hover {
    background-color: var(--background-color-medium);
}
.accordion-header .icon { /* For Bulma icon */
    transition: transform var(--transition-speed) ease;
    color: var(--primary-color);
}
.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 1.5rem; /* Initial padding for transition */
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, padding-bottom var(--transition-speed) ease-out;
}
.accordion-item.active .accordion-content {
    max-height: 600px; /* Adjust as needed, should be larger than expected content */
    padding-bottom: 1.5rem; /* Add bottom padding when active */
}
.accordion-content .content {
    color: var(--text-color-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Resources Section */
.resource-list .box {
    background-color: var(--card-background);
    padding: 1rem;
}
.resource-item {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.resource-item:last-child {
    border-bottom: none;
}
.resource-item strong a {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}
.resource-item strong a:hover {
    color: var(--accent-color);
}
.resource-item small {
    display: block;
    color: var(--text-color-medium);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Behind the Scenes Section */
#behind-the-scenes .content-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
#behind-the-scenes p {
    color: var(--text-color-medium);
    margin-bottom: 1rem;
}

/* Contact CTA Section */
#contact-cta {
    background-color: var(--background-color-medium);
}
#contact-cta .section-title { color: var(--primary-color) !important; }
#contact-cta .button.is-primary {
    padding: 1em 2.5em;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: var(--background-color-dark);
    color: var(--text-color-light);
    padding: 3rem 1.5rem 2rem;
}
.site-footer .footer-title {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}
.site-footer p, .site-footer li {
    font-size: 0.9rem;
    color: var(--text-color-light);
    opacity: 0.85;
}
.site-footer ul {
    list-style: none;
    margin-left: 0;
}
.site-footer ul li {
    margin-bottom: 0.5rem;
}
.site-footer a {
    color: var(--text-color-light);
    transition: color var(--transition-speed-fast);
}
.site-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.site-footer .social-links p {
    margin-bottom: 0;
    color: var(--text-color-light);
    opacity: 0.85;
}
.site-footer .social-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 0.3rem;
    font-weight: 500;
}
.site-footer .social-links a:hover {
    color: var(--text-color-light);
    text-decoration: underline;
}
.site-footer .content.has-text-centered p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 2rem;
}

/* Success Page Specific Styles */
.success-page-container { /* Apply to a wrapper div on success.html */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--navbar-height)); /* Full viewport height minus navbar */
    text-align: center;
    padding: 2rem;
    background-color: var(--background-color-light);
}
.success-page-container .box {
    max-width: 500px;
    padding: 2.5rem;
    background-color: var(--card-background);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
}
.success-page-container .icon.is-large .fa-check-circle { /* Example FontAwesome icon */
    font-size: 4rem;
    color: var(--secondary-color-a);
}
.success-page-container .title {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.success-page-container .subtitle {
    color: var(--text-color-medium);
    margin-bottom: 1.5rem;
}

/* Privacy & Terms Pages Specific Styles */
.legal-page-content, .static-page-container { /* Apply to main content wrapper on these pages */
    padding-top: 2rem; /* Navbar already has body padding-top */
    padding-bottom: 3rem;
}
.static-page-container .section {
    padding-top: 1rem; /* Reduce top padding for sections within these pages */
    padding-bottom: 1rem;
}
.static-page-container .content h1,
.static-page-container .content h2,
.static-page-container .content h3 {
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.static-page-container .content p,
.static-page-container .content li {
    color: var(--text-color-dark);
    line-height: 1.7;
}

/* Contact Page Specific Styles */
#contact-form-section {
    background-color: var(--background-color-light);
}
#contact-form-section .contact-form-container .box {
    background-color: var(--card-background);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 2.5rem;
}
#contact-form-section .form-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.contact-details {
    margin-top: 2rem;
}
.contact-details .icon-text { /* Bulma class */
    margin-bottom: 1rem;
    align-items: flex-start;
}
.contact-details .icon {
    color: var(--accent-color);
    margin-right: 0.75rem;
    margin-top: 0.25rem; /* Align icon better with text */
}
.contact-details .icon-text span:last-child { /* The text part */
    font-family: var(--font-body);
    color: var(--text-color-medium);
}
.contact-details strong {
    color: var(--text-color-dark);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .section {
        padding: calc(var(--section-padding-y) * 0.7) 1rem;
    }
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    .subtitle.is-4, .subtitle.is-5 { font-size: 1rem; }
    .section-subtitle { margin-bottom: 2rem; }

    .columns.is-vcentered .column:not(:last-child) { /* Ensure vertical spacing on mobile */
        margin-bottom: 1.5rem;
    }
    #hero .columns { /* Specific for hero on mobile to stack form below */
        flex-direction: column-reverse; /* Put form below text on mobile if desired */
    }
     #hero .form-column {
        margin-top: 2rem;
    }
}

/* AOS Animation Overrides (optional) */
[data-aos] {
    /* transition-timing-function: ease-in-out-cubic; */
}

#contact-page-title {
  position: relative;
}

#heroRegistrationForm .button {
  display: flex;
  line-height: 1.1;
}

.title:not(.is-spaced)+.subtitle {
  margin-top: 0;
}