/* ==========================================================================
   1. CSS Variables & Global Styles
   ========================================================================== */

:root {
    /* Split-Complementary Color Scheme */
    --primary-color: #0077B6;  /* Deep Cerulean Blue */
    --secondary-color: #FF6B6B; /* Lively Coral */
    --accent-color: #FFD166;   /* Sunglow Yellow */

    /* Neutrals */
    --text-dark: #363636;
    --text-headings: #1a1a1a;
    --text-light: #FFFFFF;
    --background-light: #F8F9FA;
    --background-dark: #222831;
    --border-color: #dbdbdb;
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);

    /* Fonts */
    --font-headings: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing */
    --navbar-height: 5rem;
}

html {
    scroll-behavior: smooth;
    background-color: var(--background-light);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--text-headings);
    font-weight: 700;
}

.section {
    padding: 6rem 1.5rem;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
.header.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--navbar-height);
}

.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-item:hover, .navbar-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    background-color: transparent !important;
}

.navbar-dropdown .navbar-item {
    font-size: 0.9rem;
}

.navbar-brand .logo-text {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-burger {
    height: var(--navbar-height);
    width: var(--navbar-height);
}

/* ==========================================================================
   3. Global Component Styles (Buttons, Forms, Cards)
   ========================================================================== */

/* Buttons */
.button {
    font-family: var(--font-body);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-width: 2px;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.button.is-primary:hover {
    background-color: color-mix(in srgb, var(--primary-color) 90%, black);
    border-color: color-mix(in srgb, var(--primary-color) 90%, black);
}

.button.is-primary.is-outlined {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button.is-primary.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

/* Forms */
.input, .textarea {
    font-family: var(--font-body);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
}

.label {
    font-weight: 600;
}

/* Cards */
.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.card .card-image img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.card .card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card .content {
    margin-top: auto;
}

/* ==========================================================================
   4. Section Specific Styles
   ========================================================================== */

/* Hero Section */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

#hero .title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    color: var(--text-light);
}
#hero .subtitle {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    color: var(--text-light);
}

/* Mission Section */
#mission p {
    color: var(--text-dark);
}

/* Workshops Section */
#workshops .progress {
    height: 0.75rem;
    border-radius: 1rem;
}
#workshops .progress::-webkit-progress-value {
    background-color: var(--accent-color);
    border-radius: 1rem;
    transition: width 0.5s ease;
}
#workshops .progress::-moz-progress-bar {
    background-color: var(--accent-color);
    border-radius: 1rem;
}
#workshops .progress.is-primary {
     background-color: #e9ecef;
}

/* Events Section */
#events .box {
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}
#events .box:hover {
    transform: translateX(5px);
    box-shadow: var(--card-shadow);
    border-left-color: var(--secondary-color);
}
#events .image img {
    border-radius: 50%;
}

/* External Resources Section */
.resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.resource-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}
.resource-list li:last-child {
    border-bottom: none;
}
.resource-list li:hover {
    background-color: #fff;
}
.resource-list a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}
.resource-list a::after {
    content: ' →';
    transition: transform 0.3s ease;
    display: inline-block;
}
.resource-list a:hover::after {
    transform: translateX(5px);
}

/* ==========================================================================
   5. Footer
   ========================================================================== */

.footer {
    padding: 4rem 1.5rem;
    background-color: var(--background-dark);
}

.footer .title {
    color: var(--text-light);
}

.footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--text-light);
}

.footer .content p {
    color: #adb5bd;
}

/* ==========================================================================
   6. Modal & Animations
   ========================================================================== */
.modal-card {
    border-radius: 10px;
    overflow: hidden;
}

.modal-card-head, .modal-card-foot {
    background-color: var(--background-light);
}

/* Scroll Animations */
[data-animate-on-scroll] {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-animate-on-scroll].is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   7. Specific Page Styles (Success, Privacy, Terms)
   ========================================================================== */

/* Centering for Success Page */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-light);
}

.success-container {
    margin: auto;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
}

.success-container .icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Padding for Static Content Pages */
body.static-page main {
    padding-top: var(--navbar-height);
    padding-bottom: 4rem;
}

.static-content {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.static-content h1 {
    margin-bottom: 2rem;
}

.static-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   8. Responsiveness
   ========================================================================== */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
    }
    
    .navbar-menu .navbar-item {
        text-align: center;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .hero.is-fullheight {
        min-height: 80vh;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .title.is-1 {
        font-size: 2.5rem;
    }

    .title.is-2 {
        font-size: 2rem;
    }

    .subtitle.is-3 {
        font-size: 1.25rem;
    }
    
    .footer .columns {
        text-align: center;
    }

    .footer .column {
        margin-bottom: 2rem;
    }
}