.hero-container {
    position: relative;
    width: 100%;
    height: 90vh;
    /* Memenuhi layar penuh */
    background-color: #111;
    /* Fallback */
    overflow: hidden;
}

/* Gambar Background dengan Zoom Halus */
.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 15s ease-out;
}

.hero-container:hover .hero-bg {
    transform: scale(1.05);
}

/* Gradient Overlay: Gelap di atas (untuk navbar) dan di bawah (untuk teks) */
.hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradien background tetap sama */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Konten tetap merapat ke bawah */
    padding: 16vw; /* Jarak kiri-kanan */
    padding-bottom: 10vh; /* KUNCI: Besarkan angka ini (misal 20vh atau 25vh) untuk mendorong konten ke atas */
}
/* Status Label Atas */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-family: "Roboto", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    /* Hijau natural yang profesional */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

/* Judul Utama */
.hero-title {
    color: #ffffff;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    /* Ukuran dinamis */
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Deskripsi */
.hero-desc {
    color: rgba(255, 255, 255, 0.85);
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 650px;
    margin-bottom: 40px;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    padding-left: 20px;
    line-height: 1.6;
}

/* Widget Cuaca Minimalis */
.modern-weather-widget {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    background: rgba(25, 25, 25, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 30px;
    color: #fff;
    transition: background 0.3s ease;
}

.modern-weather-widget:hover {
    background: rgba(25, 25, 25, 0.6);
}

.mw-icon-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 25px;
}

.mw-icon {
    width: 45px;
    height: 45px;
}

.mw-temp {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
}

.mw-unit {
    font-size: 1.2rem;
    font-weight: 400;
    vertical-align: top;
    opacity: 0.7;
}

.mw-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mw-desc {
    font-size: 1rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.mw-metrics {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    opacity: 0.8;
    font-family: "Roboto", sans-serif;
}

.mw-metrics i {
    margin-right: 4px;
    color: #a8dadc;
    /* Warna aksen biru muda/putih */
}

/* Responsif Mobile untuk Hero */
@media (max-width: 768px) {
    .hero-overlay {
        padding: 92px 20px 36px;
        justify-content: flex-end;
    }

    .hero-container {
        height: auto;
        min-height: 100svh;
    }

    .status-badge {
        margin-bottom: 14px;
        font-size: 0.72rem;
        letter-spacing: 1.4px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        max-width: 100%;
        margin-bottom: 12px;
        word-break: break-word;
    }

    .hero-desc {
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.7;
        margin-bottom: 24px;
        padding-left: 14px;
    }

    .modern-weather-widget {
        width: min(100%, 420px);
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 14px 18px;
        max-width: 100%;
    }

    .mw-icon-wrap {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-right: 0;
        padding-bottom: 15px;
        width: 100%;
    }

    .mw-temp {
        font-size: 2rem;
    }

    .mw-details,
    .mw-metrics {
        width: 100%;
    }

    .mw-metrics {
        flex-wrap: wrap;
        gap: 8px 14px;
    }
}

@media (max-width: 575.98px) {
    .hero-container {
        min-height: 88svh;
    }

    .hero-overlay {
        padding: 96px 16px 28px;
        justify-content: flex-end;
    }

    .status-badge {
        font-size: 0.68rem;
        letter-spacing: 1.2px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
        line-height: 1.15;
    }

    .hero-desc {
        font-size: 0.92rem;
        line-height: 1.6;
        border-left-width: 1px;
        padding-left: 12px;
        margin-bottom: 18px;
    }

    .modern-weather-widget {
        padding: 14px 16px;
        width: 100%;
        gap: 12px;
        border-radius: 14px;
    }

    .mw-icon {
        width: 38px;
        height: 38px;
    }

    .mw-desc {
        font-size: 0.95rem;
    }

    .mw-metrics {
        font-size: 0.8rem;
        gap: 8px 12px;
    }
    .mw-temp {
        font-size: 1.75rem;
    }

    .mw-desc {
        font-size: 0.92rem;
    }

    .mw-metrics {
        font-size: 0.78rem;
    }
}

/* ====================================
   EVENT SLIDER SECTION
   ==================================== */
.event-slide-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 60, 35, 0.08);
    transition:
        transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s ease;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.event-slide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 60, 35, 0.14);
}

.event-swiper-container .swiper-wrapper {
    align-items: stretch;
}

.event-swiper-container .swiper-slide {
    height: auto;
    display: flex;
}

.event-slide-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-slide-card:hover .event-slide-img img {
    transform: scale(1.06);
}

.event-slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    font-size: 3rem;
    color: rgba(8, 71, 52, 0.3);
}

.event-slide-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.event-slide-badge .badge {
    font-size: 0.7rem;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.event-slide-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-grow: 1; /* Mendorong countdown ke bawah jika ada */
}

.event-slide-header {
    align-items: flex-start;
}

.event-slide-date {
    flex-shrink: 0;
    text-align: center;
    min-width: 65px;
    padding: 12px 10px;
    border-radius: 12px;
    background: linear-gradient(
        180deg,
        rgba(8, 71, 52, 0.05),
        rgba(8, 71, 52, 0.1)
    );
    border-left: 4px solid var(--accent-color, #084734);
}

.event-date-num {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--heading-color, #084734);
}

.event-date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-color, #084734);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

.event-slide-info {
    flex: 1;
    min-width: 0;
}

.event-slide-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
    color: var(--heading-color, #1a1a1a);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-slide-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.event-slide-title a:hover {
    color: var(--accent-color, #084734);
}

.event-slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 0.8rem;
    color: #7d857f;
}

.event-slide-meta i {
    color: var(--accent-color, #084734);
}

/* Perbaikan area deskripsi */
.event-slide-desc-wrapper {
    margin-top: 12px; /* Beri jarak statis normal dari bagian atasnya */
    padding-bottom: 10px; /* Sedikit ruang bernapas di bawah teks */
}

.event-slide-desc {
    font-size: 0.9rem;
    color: #5f6761;
    line-height: 1.6;
    margin: 0;
    text-align: justify; /* Membuat teks rata kanan kiri agar rapi */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Dibatasi 4 baris agar menampung deskripsi panjang */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Countdown mini bar */
.event-slide-countdown {
    padding: 12px 18px 16px;
    background: linear-gradient(
        90deg,
        rgba(8, 71, 52, 0.06) 0%,
        rgba(8, 71, 52, 0.02) 100%
    );
    border-top: 1px solid rgba(8, 71, 52, 0.08);
}

.countdown-mini {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.cd-item {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 52px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(8, 71, 52, 0.1);
}

.cd-item span {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-color, #084734);
    line-height: 1.2;
}

.cd-item small {
    display: block;
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Swiper nav overrides for event section */
.event-swiper-container .swiper-button-prev,
.event-swiper-container .swiper-button-next {
    color: var(--accent-color, #084734);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.3s;
}

.event-swiper-container .swiper-button-prev:hover,
.event-swiper-container .swiper-button-next:hover {
    background: var(--accent-color, #084734);
    color: #fff;
}

.event-swiper-container .swiper-button-prev::after,
.event-swiper-container .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

.event-swiper-container .swiper-pagination-bullet-active {
    background: var(--accent-color, #084734);
}

/* publication */
.publication-card {
    transition: transform 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-8px);
}

.publication-cover {
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.publication-card:hover .publication-cover {
    box-shadow: 0 15px 35px rgba(8, 71, 52, 0.2);
}

.cover-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--accent-color, #084734) 0%,
        #1a7a58 100%
    );
    position: relative;
}

.cover-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
}

.cover-icon {
    color: rgba(255, 255, 255, 0.9);
}

.publication-title a {
    transition: color 0.2s ease;
    line-height: 1.3;
    font-size: 1.15rem;
}

.publication-title a:hover {
    color: var(--accent-color, #198754) !important;
}

.publication-download-link {
    color: var(--accent-color, #084734);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(8, 71, 52, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.publication-card:hover .link-icon {
    background-color: var(--accent-color, #084734);
    color: white;
    transform: translateX(4px);
}

.publication-card:hover .link-text {
    text-decoration: underline;
}

/* Responsif Mobile untuk Event Slider */
@media (max-width: 768px) {
    .event-slide-img {
        height: 190px;
    }

    .event-slide-body {
        padding: 16px; /* Disesuaikan agar tetap nyaman di HP */
    }

    .event-slide-header {
        gap: 12px !important; /* Menimpa gap-3 dari bootstrap jika perlu */
    }

    .event-slide-date {
        min-width: 56px;
        padding: 9px 8px;
    }

    .event-date-num {
        font-size: 1.65rem;
    }

    .event-slide-title {
        font-size: 0.98rem;
    }

    .countdown-mini {
        gap: 8px;
    }

    .cd-item {
        min-width: 44px;
        padding: 5px 8px;
    }

    .event-swiper-container .swiper-button-prev,
    .event-swiper-container .swiper-button-next {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .publication-cover {
        height: 260px;
    }

    .publication-title a {
        font-size: 1rem;
    }

    .countdown-mini {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .cd-item {
        min-width: 0;
        flex: 1 1 calc(50% - 8px);
    }
}
