/* style.css */

/* --- CSS Variables --- */
:root {
    --primary-color: #00796b; /* A deep, rich teal for a retro/eco feel */
    --primary-color-darker: #004d40;
    --secondary-color: #2c3e50; /* A contrasting deep blue */
    --accent-color: #fbc02d; /* A warm, retro gold */
    --text-color: #333333;
    --text-color-light: #ffffff;
    --background-light: #f7f8fa;
    --border-color: #e0e0e0;
    --gradient-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.15);
    --font-header: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --header-height: 80px;
}

/* --- Global & Base Styles --- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-light); /* Fallback for body */
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-header);
    color: var(--secondary-color);
    word-break: break-word;
}

.title {
    color: var(--secondary-color);
}

.subtitle {
    color: #555;
    font-family: var(--font-body);
    font-weight: 400;
}

p {
    margin-bottom: 1.25rem;
}

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

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

/* --- Layout & Section Styling --- */
.section {
    padding: 5rem 1.5rem;
}

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

.section-title {
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* --- Header & Navigation --- */
.header.is-fixed-top {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease-in-out;
}

.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.navbar-item.logo {
    font-family: var(--font-header);
    font-size: 1.8rem;
    color: var(--primary-color);
    padding: 0 1rem;
}

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

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

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
    .navbar-menu .navbar-item {
        padding: 1rem 1.5rem;
    }
}

/* --- Hero Section --- */
.hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.hero-text {
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- General UI Components --- */

/* Buttons */
.button {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    padding: 1.5em 1.5em;
    transition: all 0.3s ease;
    border-width: 2px;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

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

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

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

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

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

.card-image {
    width: 100%;
    overflow: hidden;
    text-align: center; /* Center figure */
}
.card-image .image img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to take up remaining space */
    text-align: left; /* Keep text readable */
}

/* Forms */
.input, .textarea, .select select {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: all 0.3s ease;
}

.input:focus, .textarea:focus, .select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 121, 107, 0.25);
}

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

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--primary-color);
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}

/* --- Section Specific Styles --- */

/* Statistics Section */
#statistics .stat-item {
    padding: 1rem;
}
#statistics .stat-number {
    font-family: var(--font-header);
    font-size: 3.5rem;
    color: var(--primary-color);
}
#statistics .stat-label {
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
}

/* Accolades Section */
#accolades .accolade-box {
    border-left: 4px solid var(--accent-color);
    height: 100%;
}

/* News Section */
#news .article-card .title {
    margin-bottom: 0.5rem;
}
#news .button.is-link.is-light {
    background-color: var(--background-light);
    color: var(--primary-color);
    font-weight: bold;
}
#news .button.is-link.is-light:hover {
    background-color: #e8e8e8;
}

/* External Resources Section */
#resources .resource-link {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
#resources .resource-link:hover {
    border-left: 4px solid var(--primary-color);
    transform: translateX(5px);
}
#resources .resource-link a .title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
#resources .resource-link a:hover .title {
    text-decoration: underline;
}

/* Contact Section */
#contact {
    position: relative;
}
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('image/contact-background-abstract.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}
#contact .container {
    position: relative;
    z-index: 1;
}
.contact-form-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow-hover);
}

/* --- Footer --- */
.footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1.5rem 2rem;
}
.footer .title {
    color: var(--text-color-light);
}
.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}
.footer a:hover {
    color: var(--text-color-light);
}
.footer .content p {
    color: rgba(255, 255, 255, 0.5);
}

/* --- Static Pages (Privacy, Terms, Success) --- */
.static-page-content,
.success-page-content {
    padding-top: calc(var(--header-height) + 3rem); /* Space below fixed header */
    padding-bottom: 3rem;
}
.success-page-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: var(--gradient-bg);
}
.success-card {
    padding: 3rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    max-width: 500px;
}
.success-card .title {
    color: var(--primary-color);
}
.success-card .button {
    margin-top: 1.5rem;
}

/* --- Responsive Styles --- */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    .section-title {
        margin-bottom: 2rem;
    }
    h1.title.is-1 {
        font-size: 2.5rem;
    }
    h2.title.is-2 {
        font-size: 2rem;
    }
    #statistics .column {
        margin-bottom: 2rem;
    }
}
.navbar-burger{
    display: none;
}