/* ==========================================================
   PROJECT : PORTAL SATGAS HAMZANWADI
   VERSION : 3.0.0
   FILE    : style.css
========================================================== */

@font-face {
    font-family: "Great Vibes";
    src: url("../assets/fonts/GreatVibes-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "FREESCPT";
    src: url("../assets/fonts/FREESCPT.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
}

/* ==========================================================
   CONTAINER
========================================================== */

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================
   TOP HEADER
========================================================== */

.top-header {
    background: #075528;
    color: #ffffff;
    height: 20px;
}

.top-header .container {
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* ==========================================================
   HEADER
========================================================== */

header {
    background: #0B6B37;
    color: #ffffff;
}

.header-area {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 0 0 80px;
}

.logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.title {
    flex: 1;
    margin-left: 20px;
}

.logo-nwdi {
    flex: 0 0 72px;
    margin-left: 20px;
}

.logo-nwdi img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.search {
    flex: 0 0 400px;
    margin-left: 18px;
    display: flex;
    align-items: center;
}

/* ==========================================================
   TITLE
========================================================== */

.title h1 {
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 38px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.05;
    margin: 0;
}

/* ==========================================================
   SEARCH
========================================================== */

.search input {
    width: 320px;
    height: 42px;
    border: none;
    outline: none;
    padding-left: 15px;
    font-size: 15px;
    border-radius: 6px 0 0 6px;
}

.search button {
    width: 80px;
    height: 42px;
    border: none;
    background: #0B5E2E;
    color: #FFFFFF;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
}

.search button:hover {
    background: #08441F;
}

/* ==========================================================
   NAVBAR
========================================================== */

nav {
    background: #118848;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: bold;
    transition: .30s;
}

.menu li a:hover {
    background: #0B6B37;
}

/* ==========================================================
   PENGUMUMAN
========================================================== */

.pengumuman-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 1%;
    height: 1%;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.60);
    z-index: 20;
    pointer-events: auto;
}

#pengumuman {
    width: 100%;
    height: 100%;
}

.pengumuman-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pengumuman-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
}

.pengumuman-card {
    width: 40%;
    height: 100%;
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.60);
    overflow: hidden;
}

.pengumuman-media {
    flex: 0 0 50%;
}

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

.pengumuman-content {
    flex: 1;
    padding: 25px 30px;
}

.pengumuman-label {
    font-size: 14px;
    font-weight: 700;
    color: #0b6b37;
    margin-bottom: 10px;
}

.pengumuman-judul {
    margin: 0;
    color: #063b24;
    font-size: 28px;
    line-height: 1.25;
}

/* ==========================================================
   HERO
========================================================== */

.hero {
    width: 100%;
    height: 420px;
    overflow: visible;
    background: #025823;
    position: relative;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-top: 18px;
}

.quick-menu {
    background: #7af1b6;
    margin-top: -32px;
    position: relative;
    z-index: 10;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    overflow: hidden;
}

.quick-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
}

.quick-item {
    flex: 1;
    border-right: 1px solid #E5E5E5;
}

.quick-item:last-child {
    border-right: none;
}

.quick-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 105px;
    text-decoration: none;
    color: #0B5E2E;
    transition: all .25s ease;
}

.quick-item a:hover {
    background: #F3F9F4;
}

.quick-item i {
    font-size: 38px;
    margin-bottom: 12px;
}

.quick-item span {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 16px;
}

.quick-menu .container {
    width: 100%;
    margin-left: 0;
}

.hero-wrapper {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.hero-left {
    width: 80%;
    flex: 0 0 80%;
    position: relative;
}

.hero-left img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.hero-right {
    width: 20%;
    flex: 0 0 20%;
    background: #0B5E2E;
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    margin-top: 18px;
}

.hero-right h3 {
    font-family: "Great Vibes", cursive;
    font-size: 28px;
    font-weight: normal;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.hero-right .quote-title {
    text-align: center;
    font-size: 13px;
    color: #d9d9d9;
    margin: -3px 0 15px 0;
    padding: 0;
    line-height: 1;
    font-style: italic;
}

.hero-right p {
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    margin: 0;
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

#judul-mutiara {
    font-family: "Great Vibes", cursive;
    font-size: 28px;
    font-weight: normal;
    line-height: 1.05;
    text-align: center;
    margin: 0;
    position: relative;
    top: 5px;
    color: #ffff00;
}

/* Subjudul renungan tetap sederhana dan lebih kecil */
#judul-mutiara .quote-subtitle,
#judul-mutiara .renungan-subtitle,
#judul-mutiara small {
    display: block;
    margin-top: 7px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.1;
}

.hero-right .quote-subtitle {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.1;
    text-align: center;
    margin: 7px 0 0;
}

.hero-right p.quote-subtitle {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.1;
    text-align: center;
    margin: 8px 0 0;
}

.hero-right a {
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    width: fit-content;
    text-align: center;
    padding: 10px 18px;
    background: #ffffff;
    color: #0B5E2E;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(3px);
}

.hero-right a:hover {
     background: rgba(255, 255, 255, 0.96);
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* =======================================================
   RUNNING TEXT
======================================================= */

.running-text {
    background: #001f0f;
    color: #e2f104;
    overflow: hidden;
    height: 25px;
    display: flex;
    align-items: center;
}

.running-text .container {
    width: 100%;
    overflow: hidden;
}

#tulisan-harian {
    color: #fbff06;
    font-weight: bold;
    font-size: 15px;
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: tulisanBerjalan 45s linear infinite;
}

@keyframes tulisanBerjalan {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}


/* TOMBOL PEDOMAN & AMALAN */

.pedoman-item a {
    background: transparent;
    color: #025c15;
    border-radius: 12px;
}

/* =========================
   PERUT
   ========================= */

.perut {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    display: grid !important;
    grid-template-columns: 3fr 1fr !important;
    gap: 20px;
    align-items: start;
}

.perut-kiri,
.perut-tengah,
.perut-kanan {
    min-height: 0;
}

.perut-kiri {
    display: block;
}

.perut-tengah {
    display: block;
}

.perut-kanan {
    display: block;
    min-height: 0;
    align-self: start;
}

.perut-berita,
.perut-video {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
}

.perut-tokoh {
    display: block;
    width: 90%;
    height: auto !important;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    background: transparent;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* KAKI */

.banner-kaki {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
}

.banner-kaki img {
    width: 100%;
    height: auto;
    display: block;
}

/* =======================================================
   RESPONSIVE HEADER - HP
======================================================= */

/* =======================================================
   RESPONSIVE MOBILE
   TAHAP 2
======================================================= */

@media (max-width: 768px) {

    /* =========================
       HEADER
    ========================= */

    .header-area {
        height: auto;
        min-height: 70px;
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 8px;
        text-align: center;
    }

    .logo {
        flex: 0 0 auto;
        width: 55px;
        height: auto;
    }

    .logo img {
        width: 55px;
        height: 55px;
    }

    .title {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .title h1 {
        font-size: 30px;
        line-height: 1.1;
        text-align: center;
    }

    .logo-nwdi {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .logo-nwdi img {
        width: 50px;
        height: 50px;
    }

    .search {
        width: 100%;
        flex: 0 0 auto;
        margin-left: 0;
        display: flex;
    }

    .search input {
        width: calc(100% - 80px);
        height: 42px;
        font-size: 14px;
    }

    .search button {
        width: 80px;
        height: 42px;
    }

    /* =========================
       NAVIGASI
    ========================= */

    nav {
        width: 100%;
        overflow: hidden;
    }

    .menu {
        width: 100%;
        flex-wrap: wrap;
    }

    .menu li {
        flex: 1 1 50%;
    }

    .menu li a {
        padding: 12px 8px;
        text-align: center;
        font-size: 14px;
    }

    /* =========================
       HERO
    ========================= */

    .hero {
        height: auto;
        width: 100%;
        overflow: hidden;
        padding: 10px;
    }

    .hero-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .hero-left {
        width: 100%;
        flex: 0 0 100%;
        height: auto;
    }

    .hero-left img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 10px;
    }

    .hero-images {
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    .hero-images picture {
        display: block;
        width: 100%;
        height: auto;
    }

    .hero-right {
        width: 100%;
        flex: 0 0 100%;
        min-height: 250px;
        padding: 20px;
        border-radius: 10px;
    }

    .hero-right h3 {
        font-size: 28px;
    }

    .hero-right p {
        font-size: 12px;
        color: #fff;
        font-weight: bold;
        line-height: 1.2;
    }

    #judul-mutiara {
        font-family: "Great Vibes", cursive;
        font-size: 48px;
        font-weight: normal;
        line-height: 1.05;
    }

    #judul-mutiara .quote-subtitle,
    #judul-mutiara .renungan-subtitle,
    #judul-mutiara small,
    .hero-right .quote-subtitle {
        font-family: Arial, sans-serif;
        font-size: 12px;
        font-weight: bold;
        line-height: 1.1;
        margin-top: 7px;
    }

    .hero-right p.quote-subtitle {
        font-family: Arial, sans-serif;
        font-size: 12px;
        line-height: 1.1;
        text-align: center;
        margin: 8px 0 0;
    }

    .hero-right a {
        margin: 20px auto 0 auto;
    }

    .hero-about {
        left: 15px;
        right: 15px;
        bottom: 15px;
        text-align: center;
    }

    /* =========================
       QUICK MENU
       4 KOLOM × 2 BARIS
    ========================= */

    .quick-menu {
        width: 100%;
        margin-top: 10px;
        border-radius: 12px;
        overflow: hidden;
    }

    .quick-menu .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .quick-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .quick-item {
        width: 100%;
        min-width: 0;
        border-right: 1px solid #E5E5E5;
        border-bottom: 1px solid #E5E5E5;
    }

    .quick-item:nth-child(4n) {
        border-right: none;
    }

    .quick-item:nth-last-child(-n + 4) {
        border-bottom: none;
    }

    .quick-item a {
        width: 100%;
        height: 95px;
        padding: 8px 4px;
        justify-content: center;
    }

    .quick-item i {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .quick-item span {
        margin-top: 2px;
        font-size: 11px;
        line-height: 14px;
        text-align: center;
        word-break: normal;
    }

    /* =========================
       RUNNING TEXT
    ========================= */

    .running-text {
        width: 100%;
        height: 25px;
    }

    #tulisan-harian {
        font-size: 13px;
    }

    /* =========================
       BAGIAN PERUT
    ========================= */

    .perut {
        width: 100%;
        margin: 20px auto;
        padding: 0 10px;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .perut-kiri,
    .perut-tengah,
    .perut-kanan {
        width: 100%;
        min-height: 300px;
    }

    .perut-kanan {
        display: grid;
        grid-template-rows: auto;
        gap: 15px;
    }

    .perut-berita,
    .perut-video {
        width: 100%;
        min-height: 300px;
        padding: 18px;
    }

    .perut-tokoh {
        width: 100%;
        min-height: 0;
        aspect-ratio: 4 / 5;
        padding: 18px;
    }


    /* =========================
       BANNER KAKI
    ========================= */

    .banner-kaki {
        width: 100%;
        max-width: 100%;
    }

    .banner-kaki img {
        width: 100%;
        height: auto;
    }
}

    .logo {
        flex: 0 0 auto;
        width: 55px;
        height: auto;
    }

    .header-area h1 {
        font-size: 32px;
        line-height: 1.1;
        margin: 0;
        text-align: center;
    }

    .header-area input {
        width: 100%;
        box-sizing: border-box;
    }

/* =======================================================
   HEADER - PERBAIKAN POSISI LOGO
======================================================= */

.header-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 18px;
    padding: 10px 15px;
    box-sizing: border-box;
}

.logo-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.logo-group .logo-nwdi,
.logo-group .logo {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.logo-group .logo-nwdi img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    display: block;
}

.logo-group .logo img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    display: block;
}

.header-area .title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.header-area .title h1 {
    margin: 0;
    padding: 0;
    line-height: 1.1;
    white-space: nowrap;
}

.header-area .search {
    flex: 0 0 auto;
    margin: 0;
}

/* =======================================================
   HEADER - HP
======================================================= */

@media (max-width: 768px) {

    .header-area {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        align-items: center;
        column-gap: 7px;
        row-gap: 7px;
        min-height: 0;
        padding: 6px 10px 8px;
    }

    .logo-group {
        grid-column: 1;
        grid-row: 1;

        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;

        align-items: center;
        justify-content: flex-start;

        gap: 2px;
        width: 76px;
        min-width: 76px;
    }

    .logo-group .logo-nwdi img {
        width: 31px;
        height: 31px;
        object-fit: contain;
        display: block;
    }

    .logo-group .logo img {
        width: 38px;
        height: 38px;
        object-fit: contain;
        display: block;
    }

    .header-area .title {
        grid-column: 2;
        grid-row: 1;

        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .header-area .title h1 {
        margin: 0;
        padding: 0;

        font-size: 19px;
        line-height: 1.08;
        font-weight: 500;

        white-space: normal;
        overflow: visible;
        text-align: left;
    }

    .header-area .search {
        grid-column: 1 / -1;
        grid-row: 2;

        width: 100%;
        margin: 0;
    }

}

/* =======================================================
   HERO IMAGES - DESKTOP 1 GAMBAR / HP 1 GAMBAR
   Desktop : hero-1.jpg
   HP      : hero-1a.jpg
   ======================================================= */

.hero-images {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-images picture {
    display: block;
    width: 100%;
    height: 100%;
}

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

/* =======================================================
   KAKI - PASANGAN 1A + 1B
   ======================================================= */

.kaki-images {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    gap: 0;
}

.kaki-images img {
    display: block;
    width: 50%;
    height: auto;
    flex: 0 0 50%;
    object-fit: cover;
}

/* =======================================================
   KAKI - TAMPILAN HP
   ======================================================= */

@media (max-width: 768px) {

    .kaki-images {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .kaki-images img {
        width: 100%;
        height: auto;
        flex: 0 0 auto;
    }

}

/* =====================================================
   PERPUSTAKAAN BUKU - HALAMAN UTAMA
   ===================================================== */

.perpustakaan-home {
    width: 100%;
    padding: 25px 15px 30px;
}

.perpustakaan-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(6, 1fr);

    gap: 15px;
}

.perpustakaan-card {
    background: #ffffff;

    border-radius: 12px;

    padding: 12px;

    min-height: 250px;

    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12);
}

.perpustakaan-category {
    width: 100%;

    min-height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #006633;

    font-size: 14px;
    font-weight: bold;

    text-transform: uppercase;
}

.perpustakaan-cover {
    width: 100%;
    height: 300px;

    object-fit: contain;

    margin: 5px 0 8px;

    border-radius: 6px;

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.perpustakaan-cover:hover {
    transform: translateY(-6px) scale(1.02);

    box-shadow:
        0 12px 22px rgba(0, 0, 0, 0.25);
}

.perpustakaan-icon {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;
}

.perpustakaan-card h2 {
    margin: 8px 0 12px;

    font-size: 16px;

    color: #006633;
}

.perpustakaan-button {
    width: 100%;

    padding: 11px 8px;

    background: #006633;

    color: #ffffff;

    border-radius: 7px;

    text-decoration: none;

    font-size: 14px;
    font-weight: bold;

    border: none;

    cursor: pointer;
}

.perpustakaan-services {
    justify-content: center;

    gap: 20px;
}

.perpustakaan-service {
    flex: 1;

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;
}

.perpustakaan-service-icon {
    font-size: 38px;
}

.perpustakaan-service-title {
    color: #006633;

    font-size: 16px;

    font-weight: bold;
}

.perpustakaan-divider {
    width: 80%;

    height: 1px;

    background: #dddddd;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 1000px) {

    .perpustakaan-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* =========================
   HP
   ========================= */

@media (max-width: 600px) {

    .perpustakaan-home {
        padding: 15px 8px 25px;
    }

    .perpustakaan-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 10px;
    }

    .perpustakaan-card {
        min-height: 360px;

        padding: 8px;
    }

    .perpustakaan-cover {
        height: 250px;
    }

    .perpustakaan-category {
        font-size: 12px;
    }

    .perpustakaan-card h2 {
        font-size: 14px;
    }

    .perpustakaan-button {
        font-size: 12px;
    }

}

/* ==========================================================
   PENGUMUMAN LAYOUT V3
   - gambar proporsi asli, tidak dicrop
   - gambar utama dapat diklik
   - navigasi kiri/kanan di samping gambar
   - download berada di samping judul
========================================================== */

.pengumuman-card {
    width: min(92vw, 650px);
    max-height: 92vh;
    height: auto;
    display: block;
    position: relative;
    background: rgba(1, 87, 15, 0.75);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.pengumuman-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.pengumuman-card.ada-sub .pengumuman-layout {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.58fr);
}

.pengumuman-main-column,
.pengumuman-sub-column {
    min-width: 0;
}

.pengumuman-main-stage {
    width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 10px 8px;
    box-sizing: border-box;
    background: transparent;
}

.pengumuman-main-media,
.pengumuman-sub-media {
    width: 220px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.pengumuman-gambar,
.pengumuman-gambar-utama,
.pengumuman-gambar-sub {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pengumuman-tanpa-gambar {
    width: 40%;
    min-height: 220px;
    padding: 35px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.pengumuman-bawah {
    padding: 8px 14px 12px;
    background: #ffffff;
}

.pengumuman-judul-download {
    display: flex;
    align-items: center;
    justify-content: Left;
    gap: 10px;
    flex-wrap: wrap;
}

.pengumuman-judul-bawah {
    color: #063b24;
    font-size: clamp(13px, 1.15vw, 17px);
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.pengumuman-navigasi {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pengumuman-nav,
.pengumuman-btn {
    border: 0;
    border-radius: 9px;
    min-width: 42px;
    min-height: 38px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
    background: #e7f2eb;
    color: #086536;
}

.pengumuman-nav {
    font-size: 28px;
    line-height: 1;
}

.pengumuman-nav-samping {
    width: 40px;
    min-width: 40px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    justify-self: center;
    align-self: center;
    z-index: 2;
}

.pengumuman-btn.pengumuman-download {
    background: #086536;
    color: #ffffff;
    font-size: 11px;
    min-height: 32px;
    padding: 6px 11px;
}

.pengumuman-nav:hover,
.pengumuman-btn:hover {
    transform: translateY(-1px);
}

.pengumuman-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #164b31;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.pengumuman-label,
.pengumuman-content,
.pengumuman-sub-info,
.pengumuman-kembali {
    display: none !important;
}

.pengumuman-overlay {
    background: rgba(0, 0, 0, 0,28);
}

@media (max-width: 760px) {

    .pengumuman-card.ada-sub .pengumuman-layout {
        grid-template-columns: 1fr;
    }

    .pengumuman-sub-column {
        border-top: 4px solid #075c31;
    }

    .pengumuman-main-stage {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 4px;
        padding: 12px 6px 6px;
    }

    .pengumuman-nav-samping {
        width: 34px;
        min-width: 34px;
        height: 44px;
        min-height: 44px;
    }

    .pengumuman-main-media,
    .pengumuman-sub-media,
    .pengumuman-gambar,
    .pengumuman-gambar-utama,
    .pengumuman-gambar-sub {
        max-height: 42vh;
        max-width: 82%;
    }

    .pengumuman-sub-media {
        padding: 12px;
    }
}

/* ==========================================================
   KITAB TERJEMAHAN — 10 IMG SLIDESHOW INDEX UTAMA
   ========================================================== */

.kitab-terjemahan-img-slider {
    width: 100%;
    height: 270px;
    margin: 5px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kitab-terjemahan-img-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 1;
    transition: opacity 0.25s ease;
}

@media (max-width: 600px) {
    .kitab-terjemahan-img-slider {
        height: 250px;
    }

    .kitab-terjemahan-img-slider img {
        height: 250px;
    }
}

