:root {
    /* --red-700: #CC0000;
    --red-600: #FF0000;
    --red-500: #FF3333; */
    --red-700: #CC0000;
        --red-600: #FF0000;
        --red-500: #FF0000;
    --red-50: #fdf1f1;
    --ink: #26272b;
    --muted: #6c727a;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background: #f7f5f3;
    height: 100%;
}

a {
    text-decoration: none;
}

.text-brand {
    color: var(--red-600) !important;
}

.btn-brand {
    background: var(--red-600);
    border-color: var(--red-600);
    color: #fff;
}

.btn-brand:hover {
    background: var(--red-700);
    border-color: var(--red-700);
    color: #fff;
}

.btn-outline-brand {
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline-brand:hover {
    background: #fff;
    color: var(--red-600);
}

.logo-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--red-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-600);
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;

    /*background-image: url('../images/hero-desa.jpg');*/
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Gradient agar teks tetap terbaca */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.45) 35%,
            rgba(0, 0, 0, 0.12) 65%,
            rgba(0, 0, 0, 0.00) 100%
        );
}

/* =========================
   HERO CONTENT
========================= */

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #ffffff;
    padding: 90px 0 130px;
}

.hero-content .container {
    position: relative;
}

/* =========================
   BADGE / EYEBROW
========================= */

.hero-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px !important;
    padding: 8px 18px;

    background: #FF0000;
    color: #ffffff;

    border-radius: 6px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: none;

    box-shadow: 0 6px 20px rgba(220, 53, 69, .25);
}

/* =========================
   TITLE
========================= */

.hero-title {
    max-width: 720px;

    margin-bottom: 22px !important;

    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;

    color: #ffffff;

    text-shadow: 0 3px 15px rgba(0, 0, 0, .20);
}

/* =========================
   DESCRIPTION
========================= */

.hero-content > .container > .row > .col-lg-7 > p:not(.hero-eyebrow) {
    max-width: 610px;

    margin-bottom: 30px !important;

    font-size: 19px;
    font-weight: 400;
    line-height: 1.7;

    color: rgba(255, 255, 255, .95);

    text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

/* =========================
   BUTTON
========================= */

.btn-outline-brand {
    display: inline-flex;
    align-items: center;

    padding: 13px 24px;

    background: #FF0000;
    border: 2px solid #FF0000;

    color: #ffffff !important;

    border-radius: 8px;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.btn-outline-brand:hover {
    background: #ffffff;
    border-color: #ffffff;

    color: #CC0000 !important;

    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(220, 53, 69, .35);
}

.btn-outline-brand i {
     color: #ffffff;
    transition: transform .25s ease;
}

.btn-outline-brand:hover i {
     color: #CC0000;
    transform: translateX(4px);
}

/* =========================
   HERO BOTTOM FADE
========================= */

.hero::after {
    content: "";
    position: absolute;
    z-index: 2;

    left: 0;
    right: 0;
    bottom: 0;

    height: 90px;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,.12)
    );

    pointer-events: none;
}


/* =========================
   TABLET
========================= */

@media (max-width: 992px) {

    .hero {
        min-height: 570px;
    }

    .hero-content {
        padding: 80px 0 100px;
    }

    .hero-title {
        max-width: 600px;
        font-size: 48px;
    }

    .hero-content > .container > .row > .col-lg-7 > p:not(.hero-eyebrow) {
        font-size: 17px;
        max-width: 520px;
    }

    .hero-bg {
        background-position: 60% center;
    }

    .hero-bg::after {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, .62) 0%,
                rgba(0, 0, 0, .40) 55%,
                rgba(0, 0, 0, .15) 100%
            );
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

    .hero {
        min-height: 620px;
        align-items: flex-end;
    }

    .hero-content {
        padding: 70px 0 80px;
        text-align: left;
    }

    .hero-eyebrow {
        font-size: 12px;
        padding: 7px 14px;
        margin-bottom: 15px !important;
    }

    .hero-title {
        max-width: 100%;

        font-size: 38px;
        line-height: 1.1;
        letter-spacing: -0.8px;

        margin-bottom: 18px !important;
    }

    .hero-content > .container > .row > .col-lg-7 > p:not(.hero-eyebrow) {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 25px !important;
    }

    .btn-outline-brand {
        padding: 12px 20px;
        font-size: 15px;
    }

    .hero-bg {
        background-position: 65% center;
    }

    .hero-bg::after {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, .05) 0%,
                rgba(0, 0, 0, .15) 25%,
                rgba(0, 0, 0, .70) 70%,
                rgba(0, 0, 0, .82) 100%
            );
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .hero {
        min-height: 590px;
    }

    .hero-content {
        padding: 50px 0 65px;
    }

    .hero-title {
        font-size: 33px;
    }

    .hero-content > .container > .row > .col-lg-7 > p:not(.hero-eyebrow) {
        font-size: 15px;
    }

    .btn-outline-brand {
        width: fit-content;
    }
}
/*==================================================
                STATISTIK APDESI
==================================================*/

.stats-section {

    margin-top: -60px;
    position: relative;
    z-index: 10;

}

.stats-card {

    background: #fff;
    border-radius: 24px;
    overflow: hidden;

    box-shadow: 0 12px 35px rgba(0, 0, 0, .08);

}

/*=========================
GRID
=========================*/

.stats-grid {

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #ececec;

}

/*=========================
ITEM
=========================*/

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 30px 22px;

    background: #fff;
    position: relative;

    transition: .3s;
}

.stat-item:hover {

    background: #fafafa;

}

.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 70%;
    background: #e9ecef;
}

/*=========================
ICON
=========================*/

.stat-icon {

    width: 72px;
    height: 72px;

    border-radius: 50%;

    background: #f5f5ff;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #FF0000;
    font-size: 28px;

    flex-shrink: 0;

    transition: .3s;
}

.stat-item:hover .stat-icon {

    background: #FF0000;
    color: #fff;

}

/*=========================
TEXT
=========================*/

.stat-content h3 {

    margin: 0;

    font-size: clamp(26px, 2vw, 32px);

    font-weight: 800;

    color: #FF0000;

    line-height: 1.1;

    white-space: nowrap;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-content p {

    margin-top: 8px;

    font-size: 14px;

    color: #666;

    font-weight: 600;

    line-height: 1.4;
}

@media (max-width:1400px) {

    .stat-item {
        padding: 24px 18px;
    }

    .stat-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .stat-content h3 {
        font-size: 28px;
    }

}

/*==================================================
TABLET
==================================================*/

@media (max-width:991px) {

    .stats-section {

        margin-top: 30px;

    }

}

/*==================================================
TABLET & MOBILE
==================================================*/

@media (max-width:767px) {

    .stats-section {

        margin-top: 24px;

    }

    .stats-card {

        border-radius: 18px;

    }

    .stats-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

    .stat-item {

        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 12px;
        padding: 22px 14px;
        min-height: 150px;

    }

}

/*==================================================
MOBILE
==================================================*/

@media (max-width:576px) {

    .stat-item {

        min-height: 142px;

    }

    .stat-icon {

        width: 55px;
        height: 55px;

        font-size: 22px;

    }

    .stat-content h3 {

        font-size: 28px;

    }

    .stat-content p {

        font-size: 14px;

    }

}

@media (max-width:420px) {

    .stats-grid {

        grid-template-columns: 1fr;

    }

    .stat-item {

        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        min-height: auto;
        padding: 20px;

    }

}



footer {
    background: var(--red-700);
    color: #f3d9d9;
}

footer a {
    color: #f3d9d9;
}

footer a:hover {
    color: #fff;
}

footer h6 {
    color: #fff;
    font-weight: 700;
}

.footer-bottom {
    background: var(--red-700);
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: .8rem;
}

.social-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sambutan-photo-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 100%;
    min-height: 420px;
    background: #f5f5f5;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .08);
    transition: .35s ease;
}

.sambutan-photo-wrap:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .15);
}

.sambutan-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.sambutan-photo-wrap:hover img {
    transform: scale(1.05);
}

.sambutan-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px;
    color: #fff;
    background: linear-gradient(to top,
            rgba(168, 24, 31, .96),
            rgba(168, 24, 31, .65),
            transparent);
    /* Caption cuma dekorasi teks, jangan sampai menutupi tombol play
       video/iframe di baliknya — penting terutama di layar kecil
       (mobile) di mana tulisan caption bisa membungkus lebih tinggi. */
    pointer-events: none;
}

.sambutan-caption .fw-bold {
    font-size: 1.25rem;
}

.section-title {

    font-size: 2rem;
    font-weight: 800;
    color: #c82333;
    line-height: 1.2;
    margin-bottom: 25px;
    position: relative;

}

.section-title::after {

    content: "";

    width: 70px;
    height: 4px;

    background: #FF0000;

    border-radius: 20px;

    position: absolute;

    left: 0;
    bottom: -12px;

}

.video-card {

    overflow: hidden;

    border-radius: 22px;

    background: #fff;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .10);

    transition: .35s;

}

.video-card:hover {

    transform: translateY(-6px);

    box-shadow: 0 25px 50px rgba(0, 0, 0, .16);

}

.video-card iframe {

    width: 100%;

    height: 420px;

    display: block;

    border: none;

}

.video-card video {
    width: 100%;
    height: 420px;
    display: block;
    border: none;
    background: #000;
}

.video-box {
    min-height: 420px !important;
}

.video-box iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    border: none;
}

/* =========================================
   YOUTUBE CHANNEL CARD
========================================= */

.youtube-channel-card {
    position: relative;
    overflow: hidden;

    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 35px 25px;

    border-radius: 22px;

    color: #fff;

    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(255, 255, 255, .12),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #9d0000,
            #cc0000 55%,
            #dc3545
        );

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .12);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}


/* Dekorasi lingkaran */

.youtube-channel-card::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    top: -120px;
    right: -100px;

    border: 35px solid rgba(255, 255, 255, .06);

    pointer-events: none;
}

.youtube-channel-card::after {
    content: "";

    position: absolute;

    width: 140px;
    height: 140px;

    border-radius: 50%;

    bottom: -90px;
    left: -70px;

    background: rgba(255, 255, 255, .05);

    pointer-events: none;
}


/* Hover card */

.youtube-channel-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 22px 50px rgba(156, 0, 0, .22);
}


/* =========================================
   YOUTUBE ICON
========================================= */

.youtube-channel-card .youtube-icon {
    position: relative;
    z-index: 2;

    width: 70px;
    height: 70px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    font-size: 2rem;

    color: #fff;

    background: rgba(255, 255, 255, .14);

    border: 1px solid rgba(255, 255, 255, .25);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .12);

    backdrop-filter: blur(8px);

    transition:
        transform .35s ease,
        background .35s ease;
}


/* Icon hover */

.youtube-channel-card:hover .youtube-icon {
    transform: scale(1.08) rotate(-3deg);

    background: rgba(255, 255, 255, .22);
}


/* =========================================
   LABEL
========================================= */

.youtube-channel-card small {
    position: relative;
    z-index: 2;

    display: block;

    margin-bottom: 3px;

    color: rgba(255, 255, 255, .78);

    font-size: .72rem;

    font-weight: 700;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


/* =========================================
   CHANNEL NAME
========================================= */

.youtube-channel-card h5 {
    position: relative;
    z-index: 2;

    margin-top: 5px !important;
    margin-bottom: 22px !important;

    max-width: 280px;

    color: #fff;

    font-size: 1.25rem;

    font-weight: 700;

    line-height: 1.4;
}


/* =========================================
   BUTTON
========================================= */

.youtube-channel-card .btn {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    background: #fff;

    color: #c00000;

    border: 2px solid #fff;

    font-size: .9rem;

    font-weight: 700;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .12);

    transition:
        all .3s ease;
}


/* Button hover */

.youtube-channel-card .btn:hover {
    background: transparent;

    color: #fff;

    border-color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .18);
}


/* Arrow */

.youtube-channel-card .btn i:last-child {
    transition: transform .3s ease;
}

.youtube-channel-card .btn:hover i:last-child {
    transform: translate(3px, -3px);
}


/* =========================================
   VIDEO THUMBNAIL
========================================= */

.video-thumbnail {
    position: relative;

    overflow: hidden;

    width: 100%;

    aspect-ratio: 16 / 9;

    border-radius: 22px;

    background: #111;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .10);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.video-thumbnail:hover {
    transform: translateY(-6px);

    box-shadow:
        0 22px 50px rgba(0, 0, 0, .18);
}


/* Image */

.video-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .6s ease,
        filter .4s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.06);

    filter: brightness(.78);
}


/* =========================================
   PLAY BUTTON
========================================= */

.play-overlay {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    color: #fff;

    font-size: 3.5rem;

    line-height: 1;

    text-shadow:
        0 4px 18px rgba(0, 0, 0, .5);

    transition:
        transform .35s ease,
        color .35s ease;
}

.video-thumbnail:hover .play-overlay {
    color: #ff0000;

    transform:
        translate(-50%, -50%)
        scale(1.12);
}


/* =========================================
   VIDEO CAPTION
========================================= */

.sambutan-caption {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 55px 25px 22px;

    color: #fff;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .85),
        rgba(0, 0, 0, 0)
    );

    text-shadow:
        0 2px 5px rgba(0, 0, 0, .35);
}

.sambutan-caption .fw-bold {
    font-size: 1.05rem;

    line-height: 1.4;
}

.sambutan-caption .small {
    margin-top: 4px;

    opacity: .85;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {

    .youtube-channel-card {
        min-height: 300px;
    }

    .video-thumbnail {
        margin-top: 5px;
    }

}


@media (max-width: 576px) {

    .youtube-channel-card {
        min-height: 280px;

        padding: 30px 20px;

        border-radius: 20px;
    }

    .youtube-channel-card .youtube-icon {
        width: 62px;
        height: 62px;

        font-size: 1.8rem;

        border-radius: 18px;
    }

    .youtube-channel-card h5 {
        font-size: 1.1rem;
    }

    .youtube-channel-card .btn {
        font-size: .85rem;

        padding: 10px 17px;
    }

    .video-thumbnail {
        border-radius: 20px;
    }

    .play-overlay {
        font-size: 3rem;
    }

    .sambutan-caption {
        padding: 45px 18px 16px;
    }

    .sambutan-caption .fw-bold {
        font-size: .95rem;
    }

}

/*==================================================
=            NAVBAR APDESI MERAH PUTIH
==================================================*/

.main-navbar {
    height: 85px;
    background: #fff;
    transition: .3s;
    z-index: 999;
}

.main-navbar .navbar-brand img {
    width: 58px;
}

.brand-text h5 {
    margin: 0;
    color: #d90429;
    font-size: 20px;
    font-weight: 700;
}

.brand-text small {
    color: #777;
    font-size: 13px;
}
/* =====================================================
   NAVBAR
===================================================== */

.navmenu {
    padding: 0;
}

.navmenu>ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navmenu>ul>li {
    position: relative;
    padding: 30px 18px;
}

.navmenu>ul>li>a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #444;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color .3s ease;
}

/* Icon */
.navmenu>ul>li>a i {
    font-size: 12px;
    transition: transform .3s ease;
}

/* =====================================================
   UNDERLINE
===================================================== */

.navmenu>ul>li>a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: #FF0000;
    border-radius: 50px;
    transition: width .3s ease;
}

/* Hover */
.navmenu>ul>li:hover>a {
    color: #FF0000;
}

.navmenu>ul>li:hover>a::before {
    width: 100%;
}

/* Active Menu */
.navmenu>ul>li>a.active {
    color: #FF0000 !important;
    font-weight: 700;
}

.navmenu>ul>li>a.active::before {
    width: 100%;
}

/* Active Dropdown */
.navmenu>ul>li.dropdown.active>a {
    color: #FF0000 !important;
    font-weight: 700;
}

.navmenu>ul>li.dropdown.active>a::before {
    width: 100%;
}

/* Rotate Icon */
.navmenu>ul>li.dropdown:hover>a i,
.navmenu>ul>li.dropdown.active>a i {
    transform: rotate(180deg);
}

/* =====================================================
   DROPDOWN
===================================================== */

.navmenu .dropdown {
    position: relative;
}

.navmenu .dropdown>ul {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 240px;

    margin: 0;
    padding: 10px 0;

    list-style: none;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    transition: .3s ease;

    z-index: 999;
}

.navmenu .dropdown:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navmenu .dropdown>ul>li {
    width: 100%;
}

.navmenu .dropdown>ul>li>a {
    display: block;
    width: 100%;
    padding: 12px 18px;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: .25s;
}

.navmenu .dropdown>ul>li>a:hover {
    background: #FF0000;
    color: #fff;
}

.navmenu .dropdown>ul>li>a.active {
    background: #FF0000;
    color: #fff;
}

/*=========================
BUTTON
=========================*/

.btn-login {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: .3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, .35);
}

/*=========================
RESPONSIVE
=========================*/

/* =====================================================
   RESPONSIVE NAVBAR
===================================================== */

@media (max-width: 1199px) {

    .main-navbar {
        min-height: 75px;
    }

    .main-navbar .navbar-brand img {
        width: 45px;
        height: auto;
    }

    .brand-text h5 {
        font-size: 16px;
    }

    .brand-text small {
        display: none;
    }


    /* ===============================
       MOBILE / TABLET MENU
    =============================== */

    .main-navbar .navbar-collapse {
        background: #fff;
        margin-top: 10px;
        padding: 10px 0 20px;
        border-top: 1px solid #eee;
    }

    .main-navbar .navmenu {
        width: 100%;
    }

    .navmenu>ul {
        display: block;
        width: 100%;
    }

    .navmenu>ul>li {
        width: 100%;
        padding: 0;
    }

    .navmenu>ul>li>a {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 13px 15px;
        font-size: 15px;
    }


    /* Hilangkan underline desktop */

    .navmenu>ul>li>a::before {
        display: none;
    }


    /* ===============================
       DROPDOWN MOBILE
    =============================== */

    .navmenu .dropdown>ul {
        position: static;

        width: 100%;
        min-width: 0;

        margin: 0;
        padding: 0;

        background: #f8f8f8;

        border-radius: 0;
        box-shadow: none;

        opacity: 1;
        visibility: visible;

        transform: none;

        display: block;
    }

    .navmenu .dropdown:hover>ul {
        display: block;
    }

    .navmenu .dropdown>ul>li>a {
        padding: 11px 30px;
        font-size: 14px;
    }


    /* ===============================
       BUTTON DESKTOP
    =============================== */

    .main-navbar .d-none.d-xl-flex {
        display: none !important;
    }


    /* ===============================
       HAMBURGER
    =============================== */

    .navbar-toggler {
        border: 1px solid #dc3545;
        padding: 6px 10px;
        border-radius: 7px;
        color: #dc3545;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler i {
        font-size: 24px;
        line-height: 1;
    }

}
/* =====================================================
   MOBILE DROPDOWN
===================================================== */

@media (max-width: 1199px) {

    .navmenu .dropdown>ul {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        border-radius: 0;
        background: #f8f8f8;
        padding: 0;
    }

    .navmenu .dropdown.mobile-open>ul {
        display: block;
    }

    .navmenu .dropdown>a {
        cursor: pointer;
    }

    .navmenu .dropdown>a i {
        transition: transform .3s ease;
    }

    .navmenu .dropdown.mobile-open>a i {
        transform: rotate(180deg);
    }

    .navmenu .dropdown>ul>li>a {
        padding: 12px 30px;
    }

}

/*====================================
TOPBAR APDESI
====================================*/

.topbar {
    background: linear-gradient(90deg, #b30000, #d60000);
    color: #fff;
    height: 42px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 999;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker {
    display: inline-flex;
    align-items: center;
    animation: ticker 35s linear infinite;
}

.ticker span {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    padding-right: 80px;
}

.ticker i {
    color: #FFD700;
    font-size: 15px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause ketika diarahkan mouse */

.topbar:hover .ticker {
    animation-play-state: paused;
}

/* Tablet */
@media(max-width:991px) {
    .topbar {
        height: 38px;
    }

    .ticker span {
        font-size: 13px;
        padding-right: 60px;
    }
}

/* Mobile */

@media(max-width:576px) {
    .topbar {
        height: 36px;
    }

    .ticker span {
        font-size: 12px;
        padding-right: 40px;
    }
}

/*==================================
PARTNER SECTION
==================================*/

.partner-section {
    /* overflow: hidden; */
    background: #fafafa;
}


/* area slider */
.logo-slider {
    width: calc(100% - 70px);
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    /* padding: 20px 0; */
    border-radius: 25px;
}


.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
}


/* CARD */
.partner-card {

    min-width: 320px;
    width: 320px;

    height: 130px;
    /* naikkan sedikit */

    display: flex;
    align-items: center;

    padding: 15px 25px;

    gap: 20px;

    background: rgba(255, 255, 255, .55);

    border-radius: 25px;

    box-sizing: border-box;
}


/* LOGO */
.partner-logo {

    width: 75px;
    height: 75px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    border-radius: 20px;

}


.partner-logo img {

    max-width: 55px;
    max-height: 55px;

    object-fit: contain;

}



/* AREA TEXT */
.partner-info {

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;

    flex: 1;

}


/* JUDUL */
.partner-info h5 {

    margin: 0;

    line-height: 1.2;

    font-size: 20px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

}


/* DESKRIPSI */
.partner-info p {

    margin: 5px 0 0;

    line-height: 1.3;

    font-size: 16px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

}

.vm-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--red-600);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* CTA */

.cta-card {
    height: 100%;
    background: linear-gradient(135deg, #9d0000, #d50000);
    color: #fff;
    border-radius: 20px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    top: -100px;
    right: -100px;
}

.cta-card h3 {
    line-height: 1.4;
}

.cta-card p {
    opacity: .9;
    line-height: 30px;
}

.cta-card .btn {
    font-weight: 600;
    color: #fff;
    border-color: #fff;
    transition: all 0.3s ease;
}

.cta-card .btn:hover {
    background-color: #fff;
    color: #FF0000 !important;
    border-color: #fff;
}

.cta-card .btn:hover i {
    color: #FF0000 !important;
}

/* Responsive */

@media(max-width:991px) {
    .cta-card {
        margin-top: 20px;
    }
}

@media(max-width:576px) {
    .cta-card {
        padding: 30px;
    }
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 25px 0;
}

.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: logoScroll 25s linear infinite;
}

.logo-slider:hover .logo-track,
.logo-slider:focus-within .logo-track {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

.logo-track img {
    height: 80px;
    margin: 0 60px;
    flex-shrink: 0;
}


@keyframes logoScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.offcanvas .dropdown-menu {
    display: none;
}

.offcanvas .dropdown.show .dropdown-menu {
    display: block;
}

/*====================================
BERITA
=====================================*/

.news-section {
    background: #fff;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #FF0000;
    position: relative;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #FF0000;
    display: block;
    margin-top: 8px;
}

.lihat-semua {
    color: #FF0000;
    font-weight: 600;
    text-decoration: none;
}

.lihat-semua:hover {
    color: #a00000;
}

/* Featured */

.featured-news {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: .35s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.featured-news:hover {
    transform: translateY(-5px);
}

.featured-news img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.news-body {
    padding: 25px;
}

.badge-news {
    display: inline-block;
    background: #FF0000;
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.news-body h3 {
    font-size: 28px;
    font-weight: 700;
}

.news-date {
    color: #888;
    margin: 12px 0;
}

.news-body p {
    color: #666;
    line-height: 28px;
}

.read-more {
    text-decoration: none;
    color: #FF0000;
    font-weight: 700;
}

.read-more:hover {
    color: #b10000;
}

/* List */

.small-news {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    transition: .3s;
}

.small-news:hover {
    transform: translateX(6px);
}

.small-news img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
}

.small-news .category {
    color: #FF0000;
    font-size: 12px;
    font-weight: 700;
}

.small-news h6 {
    margin: 6px 0;
    font-weight: 700;
    line-height: 24px;
}

.small-news small {
    color: #777;
}

/* Responsive */
@media(max-width:991px) {
    .featured-news {
        margin-bottom: 30px;
    }

    .featured-news img {
        height: 250px;
    }

    .news-body h3 {
        font-size: 22px;
    }

    .small-news img {
        width: 100px;
        height: 75px;
    }
}

.card-clean {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
    height: 100%;
}

.ensiklopedia-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.ensiklopedia-item:last-child {
    border-bottom: none;
}

.ensiklopedia-item i {
    width: 55px;
    text-align: center;
}

/* tentang kami */
/*==================================================
ABOUT HERO
==================================================*/

.about-hero {

    background: linear-gradient(rgba(255, 0, 0, .90),
            rgba(255, 0, 0, .90)),
        url('../images/hero.jpg') center/cover;

    padding: 120px 0 90px;

    color: #fff;

}

.hero-badge {

    display: inline-block;

    background: rgba(255, 255, 255, .15);

    padding: 10px 20px;

    border-radius: 50px;

    margin-bottom: 25px;

    font-weight: 600;

}

.about-hero h1 {

    font-size: 52px;

    font-weight: 800;

    margin-bottom: 20px;

}

.about-hero h1 span {

    color: #ffe082;

}

.about-hero p {

    font-size: 18px;

    opacity: .95;

}

/*==================================================
SECTION TITLE
==================================================*/

.section-title span {

    color: #FF0000;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

}

.section-title h2 {

    font-size: 38px;

    font-weight: 800;

    margin-top: 8px;

}

/*==================================================
ABOUT
==================================================*/

/* .about-logo {

     background: #fff;

     border-radius: 25px;

     padding: 40px;

     box-shadow: 0 10px 35px rgba(0, 0, 0, .08);

     text-align: center;

 }

 .about-logo img {

     max-width: 280px;

 } */

.about-info {

    display: flex;

    gap: 15px;

    align-items: center;

    margin-bottom: 20px;

}

.about-info i {

    width: 55px;

    height: 55px;

    border-radius: 50%;

    background: #fdecec;

    color: #FF0000;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 22px;

}

.about-info strong {

    display: block;

}

/*==================================================
VISI MISI
==================================================*/

.vision-card,
.mission-card {

    background: #fff;

    border-radius: 20px;

    padding: 40px;

    height: 100%;

    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
    

}

.vision-icon {

    width: 80px;

    height: 80px;

    border-radius: 50%;

    background: #fdecec;

    color: #FF0000;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 34px;

    margin-bottom: 25px;

}

.mission-list {

    list-style: none;

    padding: 0;

    margin: 0;

}

.mission-list li {

    position: relative;

    padding-left: 35px;

    margin-bottom: 18px;

}

.mission-list li::before {

    content: "✓";

    position: absolute;

    left: 0;

    color: #FF0000;

    font-weight: bold;

}

.vm-icon {
    width: 40px;
    height: 40px;
    background: #FF0000;
    color: #fff;
    border-radius: 14px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 24px;

    flex-shrink: 0;
}

.vm-icon i {
    line-height: 1;
}
/*==================================================
LOGO BOX
==================================================*/

.logo-box {

    background: #fff;

    padding: 40px;

    border-radius: 24px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

}

/*==================================================
ACCORDION
==================================================*/

.custom-accordion .accordion-item {

    border: none;

    margin-bottom: 15px;

    border-radius: 15px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);

}

.custom-accordion .accordion-button {

    font-weight: 600;

    padding: 18px 25px;

}

.custom-accordion .accordion-button:not(.collapsed) {

    background: #FF0000;

    color: #fff;

}

.custom-accordion .accordion-button:focus {

    box-shadow: none;

}

/*==================================================
VALUE CARD
==================================================*/

.value-card {

    background: #fff;

    padding: 35px;

    text-align: center;

    border-radius: 20px;

    transition: .3s;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);

    height: 100%;

}

.value-card:hover {

    transform: translateY(-8px);

}

.value-card i {

    font-size: 42px;

    color: #FF0000;

    margin-bottom: 20px;

}

.value-card h4 {

    font-weight: 700;

    margin-bottom: 15px;

}

/*==================================================
GOAL
==================================================*/

.goal-item {

    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 18px 22px;

    border-radius: 15px;

    background: #fff;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);

    margin-bottom: 18px;

}

.goal-item i {

    color: #FF0000;

    font-size: 22px;

    margin-top: 2px;

}

/*==================================================
STRUKTUR
==================================================*/

.structure-wrapper {

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

}

.structure-item {

    text-align: center;
    flex: 1;
    min-width: 170px;

}

.structure-icon {

    width: 90px;
    height: 90px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: auto;

    color: #fff;

    font-size: 36px;

    box-shadow: 0 10px 25px rgba(255, 0, 0, .25);

}

.structure-content h4 {

    margin-top: 20px;
    font-weight: 700;

}

.structure-content p {

    color: #777;

}

.structure-line {

    width: 70px;
    height: 4px;

    background: #FF0000;

    border-radius: 10px;

}

/*==================================================
LEGALITAS
==================================================*/

/* =====================
   LEGALITAS
===================== */




.legal-card {

    background: white;

    border-radius: 18px;

    padding: 30px;

    height: 100%;

    border: 1px solid #eee;

    transition: .3s;

    text-align: center;

}



.legal-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);

}



.legal-icon {

    width: 70px;

    height: 70px;

    margin: auto;

    border-radius: 50%;

    background: #FF0000;

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 35px;

    margin-bottom: 20px;

}



.legal-card h5 {

    font-weight: 700;

    color: #333;

    margin-bottom: 20px;

}



.legal-info {

    background: #f8f9fa;

    border-radius: 12px;

    padding: 15px;

    text-align: left;

}



.legal-info p {

    margin-bottom: 10px;

    font-size: 14px;

}



.legal-action {

    display: flex;

    gap: 10px;

    justify-content: center;

    margin-top: 20px;

}



.legal-action .btn {

    /* border-radius: 50px; */

    padding: 8px 18px;

    font-size: 14px;

}

/*==================================================
BENEFIT
==================================================*/

.benefit-card {

    background: #fff;

    padding: 35px;

    text-align: center;

    border-radius: 20px;

    height: 100%;

    transition: .3s;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);

}

.benefit-card:hover {

    transform: translateY(-8px);

}

.benefit-card i {

    width: 80px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: auto auto 25px;

    border-radius: 50%;

    background: #fdecec;

    color: #FF0000;

    font-size: 34px;

}

.benefit-card h5 {

    font-weight: 700;

    margin-bottom: 15px;

}

/*==================================================
PAGE HEADER
==================================================*/

.page-header {

    background: #f8f9fa;

    padding: 80px 0;

}

.page-header h1 {

    font-size: 42px;

    font-weight: 800;

    margin-top: 10px;

    color: #222;

}

.breadcrumb a {

    text-decoration: none;

    color: #FF0000;

}

/*==================================================
DETAIL BERITA
==================================================*/

.news-detail {

    background: #fff;

    padding: 40px;

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);

}

.news-detail h2 {

    font-weight: 800;

    margin-bottom: 20px;

}

.news-meta {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

    margin-bottom: 20px;

    color: #777;

    font-size: 14px;

}

.news-meta i {

    color: #FF0000;

    margin-right: 5px;

}
.news-detail {
    font-size: 17px;
    color: #444;
    line-height: 1.9;
}

.news-detail p {
    text-align: left;
    margin-bottom: 18px;
}

.news-detail ul,
.news-detail ol {
    padding-left: 22px;
    margin-bottom: 20px;
}

.news-detail li {
    margin-bottom: 8px;
    text-align: left;
}

.news-detail blockquote {
    border-left: 4px solid #FF0000;
    background: #f8f9fa;
    padding: 18px 20px;
    margin: 25px 0;
    font-style: italic;
    text-align: left;
}

.news-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}



/*==================================================
TAG
==================================================*/

.tag-box {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

}

.tag-box a {

    background: #f2f2f2;

    padding: 8px 16px;

    border-radius: 30px;

    text-decoration: none;

    color: #555;

    transition: .3s;

}

.tag-box a:hover {

    background: #FF0000;

    color: #fff;

}

/*==================================================
SHARE
==================================================*/

.share-box {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

}

.share-box a {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #f5f5f5;

    color: #FF0000;

    font-size: 18px;

    transition: .3s;

    text-decoration: none;

}

.share-box a:hover {

    background: #FF0000;

    color: #fff;

}

/*==================================================
SIDEBAR
==================================================*/

.sidebar-card {

    background: #fff;

    padding: 30px;

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);

    position: sticky;

    top: 110px;

}

.related-news {

    display: flex;

    gap: 15px;

    margin-bottom: 20px;

}

.related-news img {

    width: 95px;

    height: 75px;

    object-fit: cover;

    border-radius: 10px;

}

.related-news h6 {

    margin: 6px 0;

    font-size: 15px;

    line-height: 1.4;

}

.related-news h6 a {

    color: #333;

    text-decoration: none;

}

.related-news h6 a:hover {

    color: #FF0000;

}

/*==================================================
GALERI
==================================================*/

.gallery-section {

    background: #fff;

}

/* Heading */

.section-heading {

    margin-bottom: 35px;

}

.section-subtitle {

    color: #FF0000;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    font-size: 14px;

}

/* .section-title {

     font-size: 38px;

     font-weight: 800;

     margin: 8px 0 10px;

     color: #222;

 } */

.section-description {

    color: #666;

    margin: 0;

}

/* Card */

.gallery-card {
    margin-top: 10px;

    border-radius: 18px;

    overflow: hidden;

    transition: .35s;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);

}

.gallery-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 0 0 2px rgba(255, 0, 0, .15),
            0 10px 30px rgba(255, 0, 0, .20),
            0 20px 40px rgba(0, 0, 0, .08) !important;

}

/* Gambar */

.gallery-image {

    position: relative;

    overflow: hidden;

}

.gallery-image img {

    width: 100%;

    height: 220px;

    object-fit: cover;

    transition: .6s;

}

.gallery-card:hover img {

    transform: scale(1.08);

}

/* Badge */

.gallery-count {

    position: absolute;

    top: 15px;

    right: 15px;

    background: rgba(0, 0, 0, .65);

    color: #fff;

    padding: 8px 12px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 600;

}

/* Body */

/* .gallery-card .card-body {

    padding: 20px;

} */

.gallery-card .card-title {

    font-size: 18px;

    font-weight: 700;

    line-height: 1.5;
/* 
    margin-bottom: 18px;

    min-height: 55px; */

}

/* Link */

.gallery-link {

    color: #FF0000;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition: .3s;

}

.gallery-link:hover {

    color: #d60000;

}

.gallery-link i {

    transition: .3s;

}

.gallery-link:hover i {

    transform: translateX(5px);

}

/* Responsive */

@media(max-width:991px) {

    .section-title {

        font-size: 30px;

    }

    .gallery-image img {

        height: 210px;

    }

}

@media(max-width:576px) {

    .gallery-image img {

        height: 190px;

    }

    .gallery-card .card-title {

        min-height: auto;

        font-size: 17px;

    }

}

/*==================================
DETAIL GALERI
==================================*/

.photo-card {

    overflow: hidden;

    border-radius: 18px;

    cursor: pointer;

    background: #fff;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);

    transition: .35s;

}

.photo-card img {

    width: 100%;

    height: 240px;

    object-fit: cover;

    transition: .5s;

}

.photo-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 18px 35px rgba(0, 0, 0, .15);

}

.photo-card:hover img {

    transform: scale(1.08);

}

@media(max-width:991px) {

    .photo-card img {

        height: 200px;

    }

}

@media(max-width:576px) {

    .photo-card img {

        height: 160px;

    }

}

.about-video {
    width: 100%;
    height: auto;
}

.about-logo {
    display: flex;
    justify-content: center;

}

.about-video {
    width: 400px;
    /* Ubah menjadi 250px, 280px, atau 320px sesuai selera */
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, .15),
        0 10px 30px rgba(255, 0, 0, .20),
        0 20px 40px rgba(0, 0, 0, .08) !important;
}

.photo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
}

.photo-card img:hover {
    transform: scale(1.04);
}

#galleryModal .modal-content {
    background: transparent;
    box-shadow: none;
}

#previewImage {
    max-height: 85vh;
    border-radius: 15px;
}

/* Floating WhatsApp Channel */
.wa-channel {
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 60px;
    height: 60px;

    background: #25D366;
    color: #fff;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 32px;

    text-decoration: none;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);

    z-index: 9999;

    transition: .3s;

    animation: pulse 2s infinite;
}

.wa-channel:hover {
    color: #fff;
    transform: scale(1.1);
}

@keyframes pulse {

    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .7);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }

}

.org-card {

    background: #fff;

    border-radius: 18px;

    padding: 25px;

    text-align: center;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);

    height: 100%;

    transition: .3s;

}

.org-card:hover {

    transform: translateY(-5px);

}

.org-card img {

    width: 90px;

    height: 90px;

    border-radius: 50%;

    object-fit: cover;

    margin-bottom: 15px;

    border: 4px solid #FF0000;

}

.level-1 {

    max-width: 320px;

    margin: auto;

}

.level-2 {

    max-width: 300px;

    margin: auto;

}

.department-card {

    background: #fff;

    border-radius: 18px;

    padding: 25px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);

    border-top: 5px solid #FF0000;

    height: 100%;

}

.department-card ul {

    padding-left: 18px;

    margin: 0;

}

.department-card li {

    margin-bottom: 10px;

}

/* =========================
CARD BERITA
========================= */

.gallery-card {
    /* height: 100%;
    display: flex; */
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    transition: .3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

/* Gambar */

.gallery-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Body */

.gallery-card .card-body {
    /* display: flex; */
    flex-direction: column;
    flex: 1;
    /* padding: 18px; */
}

/* Kategori */

.gallery-card .card-body>small:first-child {
    display: block;
    margin-bottom: 8px;
}

/* Judul maksimal 2 baris */

/* Judul */
.gallery-card .card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 6px 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Ringkasan */
.ringkasan-2baris {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tanggal selalu di bawah */

.gallery-card .card-body .tanggal {
    margin-top: auto;
    margin-top: 12px;
}

/* Isi berita */

.isi-berita {
    font-size: 17px;
    line-height: 1.9;
    color: #444;
}

.isi-berita p {
    margin-bottom: 18px;
}

.isi-berita h1,
.isi-berita h2,
.isi-berita h3,
.isi-berita h4,
.isi-berita h5,
.isi-berita h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #222;
}

.isi-berita ul,
.isi-berita ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.isi-berita ul li,
.isi-berita ol li {
    margin-bottom: 8px;
}

.isi-berita blockquote {
    margin: 25px 0;
    padding: 18px 25px;
    border-left: 5px solid #FF0000;
    background: #f8f9fa;
    font-style: italic;
}

.isi-berita img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 15px;
}

.isi-berita table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.isi-berita table th,
.isi-berita table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.isi-berita a {
    color: #FF0000;
    text-decoration: none;
}

.isi-berita a:hover {
    text-decoration: underline;
}

.struktur-img {
    max-width: 1000px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.desa-page {
    background: #f7f5f3;
    padding: 60px 0 80px;
}

/* Tombol kembali */
.desa-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--red-600);
    color: #FF0000;
    background: #fff;
    border-radius: 50px;
    padding: 9px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: .3s;
}

.desa-back:hover {
    background: var(--red-600);
    color: #fff;
}

/* Hero identitas desa */
.desa-hero {
    background: linear-gradient(135deg, var(--red-600), var(--red-700));
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    box-shadow: 0 15px 40px rgba(168, 24, 31, .22);
    margin-bottom: 24px;
}

.desa-hero .logo-frame {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.desa-hero .logo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.desa-hero h1 {
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 6px;
}

.desa-hero .lokasi {
    color: #ffe1e1;
    font-weight: 500;
    font-size: 15px;
    margin: 0;
}

/* Kartu tentang desa & seksi konten (pola news-detail) */
.desa-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    margin-bottom: 24px;
    overflow: hidden;
}

.desa-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 30px;
    border-bottom: 1px solid #f0eeec;
}

.desa-card-header .num-badge {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: var(--red-50);
    color: #FF0000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

.desa-card-header i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--red-50);
    color: #FF0000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.desa-card-header h5 {
    margin: 0;
    font-weight: 700;
    color: #222;
    font-size: 18px;
}

.desa-card-body {
    padding: 28px 30px;
    font-size: 15.5px;
    line-height: 1.9;
    color: #444;
}

.desa-card-body h6 {
    color: var(--red-600);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .04em;
    margin-bottom: 12px;
}

.desa-card-body hr {
    border-top: 1px dashed #e5e0da;
    margin: 22px 0;
}

.desa-card-body table {
    font-size: 14.5px;
}

.desa-card-body table th {
    background: var(--red-50);
    color: var(--red-700);
    font-weight: 600;
    vertical-align: middle;
}

/* Chip komoditas (pola tag-box) */
.desa-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.desa-tags li {
    background: #f2f2f2;
    color: #555;
    border-radius: 30px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 14px;
    transition: .3s;
}

.desa-tags li:hover {
    background: var(--red-600);
    color: #fff;
}

/* Sidebar */
.desa-side-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    margin-bottom: 24px;
    overflow: hidden;
}

.desa-side-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--red-600);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.desa-side-card table {
    margin: 0;
    font-size: 14px;
}

.desa-side-card table th {
    font-weight: 500;
    color: var(--muted);
    border-color: #f0eeec;
}

.desa-side-card table td {
    font-weight: 600;
    color: var(--ink);
    border-color: #f0eeec;
}

.desa-stat {
    padding: 24px;
    text-align: center;
}

.desa-stat .value {
    font-weight: 800;
    font-size: 30px;
    color: var(--red-600);
    line-height: 1.1;
    margin-bottom: 4px;
}

.desa-stat .label {
    color: var(--muted);
    font-size: 13.5px;
}

@media (max-width: 991px) {
    .desa-hero {
        text-align: center;
    }

    .desa-hero .logo-frame {
        margin: 0 auto 18px;
    }
}
#pdf-viewer {
    background: #f1f1f1;
    overflow: hidden;
}

.pdf-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#pdf-container {
    height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 10px;
}

.pdf-page {
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

#pdf-loading {
    min-height: 300px;
}