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

:root {
    /* Split-Complementary Color Scheme */
    --bg-color: #E0E5EC;
    --primary-color: #4A90E2; /* Soft Blue */
    --primary-color-dark: #3a7ac5;
    --accent-color-1: #F5A623; /* Orange-Yellow */
    --accent-color-2: #D0021B; /* Strong Red */
    
    /* Text Colors */
    --heading-color: #2c3e50;
    --text-color: #333745;
    --white-color: #FFFFFF;

    /* Neumorphism Shadows */
    --light-shadow: rgba(255, 255, 255, 0.9);
    --dark-shadow: rgba(163, 177, 198, 0.6);
    --shadow-distance: 8px;
    --shadow-blur: 16px;

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing & Borders */
    --border-radius: 15px;
}

/* ==========================================================================
   2. General & Base 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;
    overflow-x: hidden;
}

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

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

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--heading-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title {
    margin-bottom: 3rem;
    font-weight: 700;
}

/* ==========================================================================
   4. Layout & Structure
   ========================================================================== */
.section {
    padding: 5rem 1.5rem;
}

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

/* Specific page layouts */
.page-content {
    padding-top: 120px;
    padding-bottom: 60px;
}

body.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

/* ==========================================================================
   5. Neumorphism Styles
   ========================================================================== */

.neumorphic {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--dark-shadow),
                calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--light-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.neumorphic-inset {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: inset var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--dark-shadow),
                inset calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--light-shadow);
}

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

/* Buttons */
.button.neumorphic {
    border: none;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
}

.button.neumorphic:hover, .button.neumorphic:focus {
    box-shadow: inset 4px 4px 8px var(--dark-shadow),
                inset -4px -4px 8px var(--light-shadow);
    transform: translateY(2px);
    color: var(--white-color);
    background-color: var(--primary-color-dark);
}

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

/* Forms */
.input.neumorphic,
.textarea.neumorphic,
.select.neumorphic select {
    border: none;
    background: var(--bg-color);
    box-shadow: inset 4px 4px 8px var(--dark-shadow),
                inset -4px -4px 8px var(--light-shadow);
    transition: all 0.3s ease;
}

.input.neumorphic:focus,
.textarea.neumorphic:focus,
.select.neumorphic select:focus {
    outline: none;
    box-shadow: inset 6px 6px 10px var(--dark-shadow),
                inset -6px -6px 10px var(--light-shadow),
                0 0 0 2px var(--primary-color);
}

.label {
    color: var(--heading-color);
    font-weight: 700;
}

/* Cards */
.card.neumorphic {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card .card-image {
    padding: 1rem;
}

.card .card-image figure {
    margin: 0 auto;
}

.card .card-image img {
    border-radius: calc(var(--border-radius) - 5px);
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card .card-content .content {
    text-align: left;
}


/* ==========================================================================
   7. Header & Navigation
   ========================================================================== */
.navbar {
    background-color: var(--bg-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.navbar-item {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.navbar-burger {
    color: var(--heading-color);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--bg-color);
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
    }
}


/* ==========================================================================
   8. Section-Specific Styles
   ========================================================================== */

/* --- Hero Section --- */
#hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--white-color);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.7), rgba(74, 144, 226, 0.6));
    z-index: 1;
}

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

.hero-title {
    color: var(--white-color);
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: var(--white-color);
    opacity: 0.9;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* --- Statistics Section --- */
.stat-card {
    padding: 2rem;
}
.progress-indicator {
    position: relative;
    width: 100%;
    height: 30px;
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: inset 3px 3px 6px var(--dark-shadow),
                inset -3px -3px 6px var(--light-shadow);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-color-dark));
    border-radius: 15px;
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--heading-color);
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Pricing Section --- */
.pricing-card {
    padding: 2rem;
}

.pricing-card.is-featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--dark-shadow),
                calc(-1 * var(--shadow-distance)) calc(-1 * var(--shadow-distance)) var(--shadow-blur) var(--light-shadow),
                0 0 0 3px var(--accent-color-1);
}

.pricing-card .price {
    font-family: var(--font-heading);
    margin: 1.5rem 0;
    color: var(--primary-color);
}
.pricing-card ul {
    list-style: none;
    margin: 0 0 1.5rem 0;
    text-align: left;
    padding-left: 20px;
}
.pricing-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(163, 177, 198, 0.3);
}

.pricing-card li:before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

/* --- Team Section --- */
.team-member img.is-rounded {
    border: 5px solid var(--bg-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Events Section --- */
.event-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}
.event-date {
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    font-family: var(--font-heading);
    min-width: 80px;
}
.event-date .month {
    font-size: 0.9rem;
    font-weight: 500;
}
.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.event-details {
    flex-grow: 1;
}
.event-action {
    margin-left: auto;
}

/* --- External Resources Section --- */
.resource-card {
    padding: 2rem;
    text-align: left;
}
.resource-card a.title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: inline-block;
}
.resource-card a.title:hover {
    text-decoration: underline;
}

/* --- Contact Section --- */
.contact-form {
    padding: 2.5rem;
}
#contact img {
    border-radius: var(--border-radius);
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.footer.neumorphic-footer {
    background: linear-gradient(145deg, #caced4, #f0f5fa);
    padding: 3rem 1.5rem;
    color: var(--text-color);
}

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

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

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

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

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

/* ==========================================================================
   10. Media Queries for Responsiveness
   ========================================================================== */

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

    .section {
        padding: 3rem 1.5rem;
    }

    .columns.is-reversed-mobile {
        flex-direction: column-reverse;
        display: flex;
    }
    
    .event-item {
        flex-direction: column;
        text-align: center;
    }
    .event-action {
        margin-left: 0;
        width: 100%;
    }
    .button.is-fullwidth-mobile {
        width: 100%;
    }
}