/* style.css */

:root {
    --primary-color: #00BCD4; /* Bright Cyan */
    --primary-color-dark: #008FA1;
    --primary-color-light: #A7EFFF;
    --accent-color: #FF9800; /* Bright Orange */
    --accent-color-dark: #E68900;
    --text-color: #222222; /* Darker for better contrast */
    --text-light-color: #FFFFFF;
    --text-muted-color: #555555;
    --background-color: #FFFFFF;
    --light-background-color: #F8F9FA; /* Slightly off-white */
    --card-background-color: #FFFFFF;
    --border-color: #DEE2E6;
    --shadow-color-light: rgba(0, 0, 0, 0.08);
    --shadow-color-medium: rgba(0, 0, 0, 0.15);
    --success-color: #28A745;
    --error-color: #DC3545;

    --font-family-headings: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-family-body: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --header-height-mobile: 3.25rem; /* Bulma's default */
    --header-height-desktop: 4rem;
    --section-padding-mobile: 2.5rem 1.5rem;
    --section-padding-desktop: 4rem 1.5rem;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* Global Resets and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Particle Animation Container */
#particle-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background-color: var(--light-background-color); /* Fallback or base */
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--text-color); /* Default dark color for headings */
    font-weight: 700;
    line-height: 1.2;
}
/* Ensure section titles are dark for contrast */
.section-title, .hero .title, .hero .subtitle { 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for definition */
}
.hero .title, .hero .subtitle {
    color: var(--text-light-color); /* Override for hero */
}


.title.is-1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.title.is-2 { font-size: clamp(2rem, 4vw, 3rem); }
.title.is-3 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.title.is-4 { font-size: clamp(1.4rem, 3vw, 2rem); }
.title.is-5 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p, .content {
    font-family: var(--font-family-body);
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content p:not(:last-child),
.content ul:not(:last-child),
.content ol:not(:last-child) {
    margin-bottom: 1.25em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

/* Buttons - Global Styling (Customizing Bulma's .button) */
.button {
    font-family: var(--font-family-headings);
    font-weight: 700;
    border-radius: var(--border-radius);
    padding: 0.75em 1.5em;
    transition: background-color var(--transition-speed) ease, 
                color var(--transition-speed) ease, 
                transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px var(--shadow-color-light);
    letter-spacing: 0.5px;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color-medium);
}
.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px var(--shadow-color-light);
}

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

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


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

.button.is-link.is-outlined {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.button.is-link.is-outlined:hover {
    background-color: var(--accent-color);
    color: var(--text-light-color);
}

/* Header & Navigation */
.header.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color-light);
    height: var(--header-height-mobile);
}
.navbar-item, .navbar-link {
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
}
.navbar-item:hover, .navbar-link:hover {
    background-color: transparent;
    color: var(--primary-color);
}
.navbar-burger {
    color: var(--text-color);
    height: var(--header-height-mobile);
    width: var(--header-height-mobile);
}
.navbar-burger span {
    background-color: var(--text-color);
    height: 2px;
}
.site-title {
    font-family: var(--font-family-headings);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
}

@media screen and (min-width: 1024px) {
    .header.is-fixed-top {
        height: var(--header-height-desktop);
    }
    .navbar-item, .navbar-link {
        padding: 0.5rem 1rem;
    }
     .navbar-burger {
        height: var(--header-height-desktop);
        width: var(--header-height-desktop);
    }
}

/* Main Content Area */
main {
    padding-top: var(--header-height-mobile); /* Space for fixed header */
}
@media screen and (min-width: 1024px) {
    main {
        padding-top: var(--header-height-desktop);
    }
}

/* Sections */
.section {
    padding: var(--section-padding-mobile);
}
@media screen and (min-width: 769px) {
    .section {
        padding: var(--section-padding-desktop);
    }
}
.section-title {
    margin-bottom: 1.5rem; /* Space below main section title */
    color: var(--text-color); /* Ensure dark color for contrast */
    text-shadow: none; /* remove if already applied to .title */
}
.section-subtitle {
    margin-bottom: 2.5rem; /* Space below section subtitle */
    color: var(--text-muted-color);
}
.has-background-light {
    background-color: var(--light-background-color) !important;
}
.has-background-primary-light {
    background-color: var(--primary-color-light) !important;
    color: var(--primary-color-dark); /* Ensure text on this bg is readable */
}
.has-background-primary-light .title,
.has-background-primary-light .subtitle,
.has-background-primary-light p {
    color: var(--primary-color-dark);
}


/* Hero Section */
.hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
.hero.is-fullheight-with-navbar {
    min-height: calc(100vh - var(--header-height-mobile));
}
@media screen and (min-width: 1024px) {
    .hero.is-fullheight-with-navbar {
        min-height: calc(100vh - var(--header-height-desktop));
    }
}
.hero-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.hero .hero-title {
    color: var(--text-light-color);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.hero .hero-subtitle {
    color: var(--text-light-color);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.hero .button {
    margin: 0.5rem;
}

/* Cards (General) */
.card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%; /* For equal height cards in columns */
    display: flex; /* Added for STROGO requirement */
    flex-direction: column; /* Added for STROGO requirement */
    /* align-items: center;  Let content handle its alignment for flexibility */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color-medium);
}
.card .card-image {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    overflow: hidden; /* Ensures image respects border radius */
    width: 100%; /* Ensure card-image block takes full width of flex parent */
}
.card .image-container { /* This is the custom div wrapping the img */
    display: block; /* Behaves like a standard block element */
    width: 100%;
    overflow: hidden; /* Critical for object-fit */
    position: relative; /* For aspect ratio if needed, or fixed height */
}
.service-card .image-container,
.gallery-card .image-container,
.media-item .card-image .image-container { /* Specific fixed heights */
    height: 200px; /* Example fixed height for images in cards */
}
.gallery-card .image-container { height: 230px; }
.media-item .card-image .image-container { height: 190px; }


.card .image-container img {
    display: block; /* Remove extra space below image */
    width: 100%;
    height: 100%; /* Fill the container */
    object-fit: cover; /* Cover the area, cropping if necessary */
    object-position: center; /* Center the image within its frame */
    border-top-left-radius: var(--border-radius); /* If image is direct child of card */
    border-top-right-radius: var(--border-radius); /* If image is direct child of card */
    transition: transform var(--transition-speed) ease-in-out;
}
.card:hover .image-container img {
    transform: scale(1.03);
}
.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to expand and push footer down in flex cards */
    width: 100%; /* Ensure card-content block takes full width */
    text-align: left; /* Default, can be overridden by utility classes */
}
.card .card-content .title,
.card .card-content .subtitle {
    margin-bottom: 0.75rem;
}
.card .card-content .content {
    font-size: 0.95rem;
    color: var(--text-muted-color);
}
/* Centering content within cards (specific cases) */
.card.has-text-centered-content,
.gallery-card { /* Example: gallery cards always centered */
    align-items: center; /* Center the .card-image and .card-content blocks */
}
.card.has-text-centered-content .card-content,
.gallery-card .card-content {
    text-align: center;
}


/* Statistics Section */
.stat-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted-color);
    margin-bottom: 0.75rem;
}
.stat-progress {
    height: 10px !important;
    border-radius: 5px;
    background-color: var(--primary-color-light) !important;
}
.stat-progress::-webkit-progress-bar {
    background-color: var(--primary-color-light);
    border-radius: 5px;
}
.stat-progress::-webkit-progress-value {
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}
.stat-progress::-moz-progress-bar { /* Firefox */
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* Partners Section */
#partners img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-speed) ease, opacity var(--transition-speed) ease;
}
#partners img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Events Section */
.event-card .card-content .title {
    color: var(--primary-color-dark);
}
.event-card .card-content .subtitle {
    color: var(--text-muted-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Media Section */
#media .level .select select {
    border-radius: var(--border-radius);
}
#media .media-item .card-content .title {
    font-size: 1.1rem;
}

/* External Resources Section */
.resource-box {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 3px 10px var(--shadow-color-light);
    height: 100%;
}
.resource-box p.title a {
    color: var(--primary-color-dark);
}
.resource-box p {
    font-size: 0.9rem;
    color: var(--text-muted-color);
}


/* FAQ Section (Accordion) */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}
.accordion-header {
    background-color: var(--light-background-color);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    border: none; /* Remove default button border */
    border-radius: 0; /* Override button's own radius */
    box-shadow: none; /* Remove button's own shadow */
}
.accordion-header:hover {
    background-color: var(--primary-color-light);
    color: var(--primary-color-dark);
}
.accordion-header .icon i {
    transition: transform var(--transition-speed) ease;
}
.accordion-item.active .accordion-header .icon i {
    transform: rotate(45deg);
}
.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed) ease-out;
    background-color: var(--card-background-color);
}
.accordion-item.active .accordion-content {
    padding: 1.5rem; /* Add padding when active */
    /* max-height will be set by JS */
}
.accordion-content .content {
    font-size: 0.95rem;
}


/* Contact Preview Section */
#contact-preview .contact-info-preview {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}
#contact-preview .contact-info-preview strong {
    color: var(--primary-color-dark);
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--light-background-color);
    padding: 3rem 1.5rem 2rem;
}
.footer .title.is-5.footer-title {
    color: var(--text-light-color);
    margin-bottom: 1rem;
    font-weight: 700;
}
.footer p, .footer ul li {
    font-size: 0.95rem;
    color: #BDBDBD; /* Lighter grey for footer text */
}
.footer a {
    color: var(--primary-color-light);
    transition: color var(--transition-speed) ease;
}
.footer a:hover {
    color: var(--text-light-color);
    text-decoration: underline;
}
.footer hr {
    background-color: #444;
    height: 1px;
    margin: 2rem 0;
}
.footer .content.has-text-centered p {
    font-size: 0.9rem;
    color: #9E9E9E;
}
/* Footer social media links are text-based as requested */
.footer .column ul {
    list-style: none;
    margin-left: 0;
}
.footer .column ul li {
    margin-bottom: 0.5rem;
}

/* Privacy & Terms Pages, Success Page Specific Styles */
.content-page { /* For privacy.html, terms.html */
    padding-top: calc(var(--header-height-mobile) + 2rem) !important; /* Ensure content below fixed header */
    padding-bottom: 2rem;
    min-height: calc(100vh - var(--header-height-mobile) - var(--footer-height, 150px)); /* Adjust footer height estimate */
}
.content-page .container {
    max-width: 800px; /* Readable line length */
    margin-left: auto;
    margin-right: auto;
}
.content-page h1.title {
    margin-bottom: 2rem;
}

@media screen and (min-width: 1024px) {
    .content-page {
        padding-top: calc(var(--header-height-desktop) + 3rem) !important;
        min-height: calc(100vh - var(--header-height-desktop) - var(--footer-height, 150px));
    }
}


.success-page-container { /* For success.html body or a main wrapper */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--light-background-color);
}
.success-page-content {
    background-color: var(--card-background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-color-medium);
    max-width: 500px;
}
.success-page-content .icon.is-large .fa-check-circle {
    font-size: 4rem;
    color: var(--success-color);
}
.success-page-content .title {
    color: var(--success-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.success-page-content .subtitle {
    color: var(--text-muted-color);
    margin-bottom: 1.5rem;
}

/* Animations (GSAP will target these classes) */
.anim-scroll-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Fallback if JS fails */
}
.anim-scroll-fade-up.is-visible { /* Class added by ScrollTrigger */
    opacity: 1;
    transform: translateY(0);
}

.animated-text, .animated-button {
    opacity: 0;
    /* GSAP will handle animations */
}


/* Cookie Popup (inline styles are provided in HTML, but can be enhanced here if needed) */
#cookiePopup {
    /* Styles are mostly inline as requested, but ensure it overlays */
    z-index: 9999 !important; 
}
#cookiePopup p {
    font-family: var(--font-family-body);
    font-size: 0.95em !important;
    color: var(--text-light-color) !important;
}
#cookiePopup #acceptCookie {
    background-color: var(--primary-color) !important;
    color: var(--text-light-color) !important;
    border: none !important;
}
#cookiePopup #acceptCookie:hover {
    background-color: var(--primary-color-dark) !important;
}
#cookiePopup a {
    color: var(--primary-color-light) !important;
}
#cookiePopup a:hover {
    color: var(--text-light-color) !important;
}

/* Form elements (for contact.html, can be enhanced) */
.input, .textarea, .select select {
    border-radius: var(--border-radius);
    border-color: var(--border-color);
    box-shadow: none; /* Remove Bulma's default */
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.input:focus, .textarea:focus, .select select:focus,
.input:active, .textarea:active, .select select:active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em var(--primary-color-light);
}
.label {
    font-family: var(--font-family-headings);
    color: var(--text-color);
    font-weight: 600;
}
.contact-form .field {
    margin-bottom: 1.5rem;
}
.contact-form .button.is-primary {
    width: 100%;
    padding-top: 1em;
    padding-bottom: 1em;
    font-size: 1.1rem;
}
@media screen and (min-width: 769px) {
    .contact-form .button.is-primary {
        width: auto;
        min-width: 200px;
    }
}

/* Responsive adjustments for columns */
.columns.is-multiline .column {
    margin-bottom: 1.5rem; /* Add some space between stacked columns on mobile */
}
@media screen and (min-width: 769px) { /* Bulma's tablet breakpoint */
    .columns.is-multiline .column {
        margin-bottom: 0; /* Reset when they are side-by-side */
    }
}
.navbar-burger{
    display: none;
}