:root {
    --brand: #1fa36a;
    --brand-dark: #147a4f;
    --text: #0f172a;
    --muted: #64748b;
    --card: rgba(255, 255, 255, .92);
    --border: rgba(15, 23, 42, .10);
    --shadow: 0 12px 30px rgba(15, 23, 42, .12);
    --max: 1180px;
    --hero-h: 800px;
    /* fixed height for background band */
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    color: var(--text);
    background: #f6f7fb;
}

/* =========================
       HERO BACKGROUND BAND
       - fixed height
       - grows on sides on resize
       - maintains aspect ratio (cover)
       ========================= */
.hero {
    min-height: var(--hero-h);
    position: relative;
    overflow: clip;
    background-image: url("/img/image_01.jpg");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    /* aspect ratio preserved; wider screens reveal more sides */
    background-attachment: fixed;
    /* optional "fixed" feel */
}

/* Mobile browsers often ignore background-attachment: fixed */
@media (max-width: 900px) {
    .hero {
        background-attachment: scroll;
    }
}

/* Dark overlay for readability */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, .55) 0%,
            rgba(15, 23, 42, .25) 55%,
            rgba(15, 23, 42, .40) 100%);
    pointer-events: none;
}

.wrap {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* =========================
TOP NAV
========================= */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
}

.brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .25);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
}

.nav a:hover {
    background: rgba(255, 255, 255, .14);
}

/* =========================
/* SLIDER (pure CSS)
/* ========================= */

.slider {
    display: grid;
    grid-template-columns: 2fr;
    gap: 18px;
    padding-bottom: 40px;
}

.slides {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .18);
    height: 600px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
}

/* Hide radios */
.slides input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform .55s ease;
}

.slide {
    width: 100%;
    flex: 0 0 100%;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    min-height: 320px;
    color: white;
    position: relative;
}


.slide h2 {
    margin: 0;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.15;
}

.slide p {
    margin: 0;
    max-width: 80ch;
    color: rgba(255, 255, 255, .92);
    line-height: 1.4;
    font-size: 15px;
}



/* Controls */
.controls {
    position: absolute;
    inset: auto 14px 14px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    pointer-events: none;
}

.dots {
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .22);
    cursor: pointer;
}

/* Shift track based on checked radio */
#s1:checked~.track {
    transform: translateX(0%);
}

#s2:checked~.track {
    transform: translateX(-33.333%);
}

#s3:checked~.track {
    transform: translateX(-66.666%);
}

/* Active dot */
#s1:checked~.controls label[for="s1"],
#s2:checked~.controls label[for="s2"],
#s3:checked~.controls label[for="s3"] {
    background: rgba(255, 255, 255, .95);
    border-color: rgba(255, 255, 255, .95);
}

/* A compact “featured card” beside slider */
.featured {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .90);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .35);
    overflow: hidden;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.featured .tag {
    background: var(--brand);
    color: white;
    font-weight: 700;
    padding: 10px 14px;
    font-size: 13px;
    letter-spacing: .2px;
}

.featured .content {
    padding: 16px 16px 18px;
}

.featured h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.2;
}

.featured p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
}

.featured .cta {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--brand);
    color: white;
    text-decoration: none;
    font-weight: 700;
    width: fit-content;
}

.featured .cta:hover {
    background: var(--brand-dark);
}



/* =========================
/* MAIN CONTENT + NEWS GRID
/* ========================= */
main {
    margin-top: -46px;
    /* pull content slightly over hero bottom */
    padding-bottom: 60px;
}

.panel {
    background: rgba(255, 255, 255, .70);
    border: 1px solid rgba(15, 23, 42, .10);
    backdrop-filter: blur(8px);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 60px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 6px 14px;
}

.section-head h2 {
    margin: 0;
    font-size: 22px;
}

.section-head a {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 700;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 6px;
}

@media (max-width: 1020px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    text-decoration: none;
    color: inherit;
    transition: transform .14s ease, box-shadow .14s ease;
    min-height: 320px;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.thumb {
    height: 150px;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
}

.news-desc {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.news-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    color: rgba(15, 23, 42, .70);
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(31, 163, 106, .35);
    color: var(--brand-dark);
    background: rgba(31, 163, 106, .10);
    font-weight: 800;
    letter-spacing: .2px;
}

footer {
    background-color: rgba(0, 0, 0, 1);
    padding: 26px 0 40px;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    font-size: 13px;
}

.footer-logo {
    margin-bottom: 20px;
}




/* =========================
   NAVBAR (Bootstrap-based)
   ========================= */

.navbar {
    background: rgba(255, 255, 255, 0) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 0rem;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 300;
    padding: 1.0rem 1.2rem 1.0rem 1.2rem !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
}

.navbar-toggler {
    border-color: #ffffff;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0rem;
    }

    .navbar-brand img {
        height: 50px;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}