/* ==========================================================================
   1. Root Variables & Basic Setup
   ========================================================================== */

:root {
    /* Triad Color Scheme */
    --primary-color: #4A90E2; /* Bright Blue */
    --accent-color-1: #E24A90; /* Bright Pink/Magenta */
    --accent-color-2: #90E24A; /* Bright Green */
    
    --primary-color-dark: #3a73b5;
    
    /* Neumorphism Base */
    --bg-color: #E0E5EC;
    --text-color: #333745;
    --text-color-light: #FFFFFF;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    
    /* Typography */
    --font-header: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Sizing & Radius */
    --border-radius: 12px;
    --section-padding: 4rem 1.5rem;
    --header-height: 80px;

    /* Shadows */
    --neumorphic-shadow-outset: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    --neumorphic-shadow-inset: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   2. Base & Typography Styles
   ========================================================================== */

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #222222;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   3. Layout & Container Styles
   ========================================================================== */

.main-container {
    overflow-x: hidden;
}

.section {
    padding: var(--section-padding);
}

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

.columns {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.column {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    padding: 0.75rem;
}

.is-centered {
    justify-content: center;
}

.is-multiline {
    flex-wrap: wrap;
}

.is-one-third { flex: none; width: 33.3333%; }
.is-one-quarter { flex: none; width: 25%; }
.is-two-thirds { flex: none; width: 66.6667%; }

.has-text-centered {
    text-align: center;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(163, 177, 198, 0.6);
    height: var(--header-height);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-item {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-item:hover {
    color: var(--primary-color);
}

.navbar-burger {
    display: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    position: relative;
}

.navbar-burger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-burger span:nth-child(1) { top: 4px; }
.navbar-burger span:nth-child(2) { top: 11px; }
.navbar-burger span:nth-child(3) { top: 18px; }

/* ==========================================================================
   5. Hero Section
   ========================================================================== */

.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.hero-body {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero .title, .hero .subtitle {
    color: var(--text-color-light);
    text-shadow: var(--text-shadow);
}

.hero .title {
    font-size: 3.5rem;
    font-weight: 800;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* ==========================================================================
   6. Global Components (Buttons, Cards, Inputs)
   ========================================================================== */

/* --- General Button Styles --- */
.button, button {
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-family: var(--font-header);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

/* --- Neumorphic Button --- */
.neumorphic-button {
    background: var(--bg-color);
    color: var(--primary-color);
    box-shadow: var(--neumorphic-shadow-outset);
}

.neumorphic-button:hover {
    color: var(--primary-color-dark);
    box-shadow: var(--neumorphic-shadow-inset);
}

.neumorphic-button:active {
    box-shadow: var(--neumorphic-shadow-inset);
    transform: translateY(1px);
}

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

.button.is-large {
    padding: 16px 32px;
    font-size: 1.2rem;
}

/* --- Neumorphic Card --- */
.neumorphic-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-outset);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.neumorphic-card:hover {
    transform: translateY(-5px);
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.card-image {
    width: 100%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card.is-horizontal {
    flex-direction: row;
    align-items: center;
    text-align: left;
}
.card.is-horizontal .card-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    margin-right: 1.5rem;
    margin-bottom: 0;
}


/* --- Neumorphic Inputs --- */
.neumorphic-input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-inset);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.neumorphic-input:focus {
    outline: none;
    box-shadow: var(--neumorphic-shadow-inset), 0 0 0 2px var(--primary-color);
}

/* --- Section Variations --- */
.neumorphic-section {
    background: linear-gradient(145deg, #f0f5fa, #caced4);
}

/* ==========================================================================
   7. Specific Section Styles
   ========================================================================== */

/* --- History (Timeline) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #d1d9e6;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-content {
    padding: 20px;
    background-color: var(--bg-color);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-outset);
}
.timeline-marker {
    position: absolute;
    top: 24px;
    width: 50px;
    height: 50px;
    z-index: 10;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
.timeline-item:nth-child(odd) .timeline-marker { right: -25px; }
.timeline-item:nth-child(even) .timeline-marker { left: -25px; }

/* --- Workshops (Accordion) --- */
.accordion-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    background: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-outset);
}
.accordion-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    list-style: none; /* Hide default marker */
}
.accordion-header::-webkit-details-marker { display: none; }
.accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* --- Awards (Stats) --- */
.stat-widget .title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-widget .heading {
    font-weight: 600;
}

/* --- External Resources --- */
.neumorphic-button-outset {
    background: var(--bg-color);
    color: var(--text-color);
    box-shadow: var(--neumorphic-shadow-outset);
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}
.neumorphic-button-outset:hover {
    color: var(--primary-color);
    box-shadow: var(--neumorphic-shadow-inset);
}


/* --- Contact Form --- */
.contact-form .label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form .field {
    margin-bottom: 1.5rem;
}

/* Custom Checkbox (Toggle) */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.neumorphic-toggle {
    opacity: 0;
    width: 0;
    height: 0;
}
.neumorphic-toggle + .label-text::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 20px;
    border-radius: 10px;
    background: var(--bg-color);
    box-shadow: var(--neumorphic-shadow-inset);
    margin-right: 10px;
    position: relative;
    transition: background-color 0.3s ease;
}
.neumorphic-toggle + .label-text::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d1d9e6;
    top: 2px;
    left: 2px;
    box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
    transition: transform 0.3s ease;
}
.checkbox-container .label-text {
    position: relative;
    padding-left: 50px;
}
.neumorphic-toggle:checked + .label-text::before {
    background-color: var(--accent-color-2);
}
.neumorphic-toggle:checked + .label-text::after {
    transform: translateX(20px);
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

.footer {
    background-color: #d1d9e6;
    padding: 3rem 1.5rem;
    color: var(--text-color);
}

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

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--text-color);
    text-decoration: none;
}

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

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--shadow-dark);
}

/* ==========================================================================
   9. Modal
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.modal.is-active {
    display: flex;
}
.modal-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    padding: 2rem;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}
.modal .buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


/* ==========================================================================
   10. Animation & Utility Classes
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ==========================================================================
   11. Page-Specific Styles
   ========================================================================== */
   
/* Styles for success.html body */
.success-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.success-container {
    max-width: 600px;
}

/* Styles for terms.html and privacy.html */
.static-page-content {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
}
.static-page-content h1, .static-page-content h2 {
    margin-bottom: 1.5rem;
}
.static-page-content p, .static-page-content ul {
    margin-bottom: 1rem;
}


/* ==========================================================================
   12. Responsive Styles
   ========================================================================== */

@media screen and (max-width: 768px) {
    .title { font-size: 2rem; }
    .subtitle { font-size: 1.1rem; }

    .navbar-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-color);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem 0;
    }
    .navbar-menu.is-active {
        display: flex;
    }
    .navbar-item {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .navbar-burger {
        display: block;
    }
    
    .navbar-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .navbar-burger.is-active span:nth-child(2) { opacity: 0; }
    .navbar-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .columns {
        flex-direction: column;
        margin: 0;
    }
    .column {
        width: 100% !important;
        padding: 0.75rem 0;
    }

    .hero .title { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.2rem; }

    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item:nth-child(odd) .timeline-marker, .timeline-item:nth-child(even) .timeline-marker {
        left: 6px;
    }
    
    .card.is-horizontal {
        flex-direction: column;
        text-align: center;
    }
    .card.is-horizontal .card-image {
        margin: 0 0 1.5rem 0;
    }

}