/* =====================================================
   DASAR WEBSITE
   ===================================================== */

body {
    background: #f7f9f7;
    color: #23352d;
    font-family: system-ui, sans-serif;
}


/* =====================================================
   NAVBAR
   ===================================================== */

.navbar {
    background: #075b3b;
}

.navbar-brand {
    font-size: 1rem;
}


/* =====================================================
   HERO
   ===================================================== */

/* =====================================================
   HERO
   ===================================================== */

.hero {
    min-height: 470px;

    display: flex;
    align-items: center;

    position: relative;
    overflow: hidden;

    color: #fff;

    background:
        url('assets/img/gedung-kemenag.jpg')
        center / cover;
}


/* Lapisan gelap agar tulisan lebih terbaca */

.hero::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 55, 35, 0.90),
            rgba(0, 55, 35, 0.35)
        );
}


/* Isi Hero berada di atas lapisan */

.hero .container {
    position: relative;
    z-index: 1;
}


/* Tulisan Selamat Datang */

.hero .container > span {
    display: inline-block;

    font-size: 1rem;
    font-weight: 600;

    letter-spacing: 0.5px;

    margin-bottom: 0.8rem;

    padding: 0.45rem 0.9rem;

    border-radius: 6px;

    background: rgba(255, 255, 255, 0.15);
}


/* Judul utama */

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);

    font-weight: 800;

    line-height: 1.1;

    max-width: 760px;

    margin-bottom: 1rem;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35);
}


/* Tagline */

.hero p {
    font-size: 1.2rem;

    line-height: 1.6;

    max-width: 650px;

    margin-bottom: 1.5rem;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.3);
}


/* =====================================================
   JUDUL SECTION
   ===================================================== */

.title {
    font-weight: 800;
    margin-bottom: 1.5rem;
}


/* =====================================================
   KARTU LAYANAN
   ===================================================== */

.service-card,
.sub-card {
    background: #fff;
    border: 0;
    border-radius: 18px;
    padding: 1.4rem;
    height: 100%;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);
}

.service-card {
    transition: 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
}

.icon {
    font-size: 2rem;
}


/* =====================================================
   SUB CARD
   ===================================================== */

.sub-card {
    border: 1px solid #e4e9e5;
    border-radius: 12px;
}


/* =====================================================
   LINK
   ===================================================== */

a {
    color: #075b3b;
    text-decoration: none;
}


/* =====================================================
   BAGIAN BERITA
   ===================================================== */

.news-placeholder {
    background: #edf3ef;
}


/* =====================================================
   FOOTER
   ===================================================== */

footer {
    background: #073d2a;
    color: #fff;
    margin-top: 2rem;
}

/* =====================================================
   CAHAYA LOGO KEMENTERIAN AGAMA
   ===================================================== */

.navbar-brand img {
    filter:
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.5))
        drop-shadow(0 0 7px rgba(255, 255, 255, 0.2));

    transition: filter 0.3s ease;
}


/* Cahaya sedikit lebih kuat saat mouse diarahkan */

.navbar-brand:hover img {
    filter:
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.6))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* =====================================================
   FOOTER - TAMPILAN PROFESIONAL
   ===================================================== */

footer {
    background: #073d2a;
    color: #fff;
    margin-top: 3rem;
}

footer h5,
footer h6 {
    color: #fff;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fff;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}

footer small {
    color: rgba(255, 255, 255, 0.65);
}

/* =====================================================
   PERBAIKAN FOOTER
   ===================================================== */

footer {
    display: block !important;
    width: 100%;
    background: #073d2a !important;
    color: #ffffff !important;
    margin-top: 3rem;
    min-height: 250px;
}

footer .container {
    display: block;
}

footer .row {
    display: flex;
    flex-wrap: wrap;
}

footer h5,
footer h6 {
    color: #ffffff !important;
}

footer p,
footer li,
footer small {
    color: rgba(255, 255, 255, 0.85) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff !important;
}

footer hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    opacity: 1;
}

/* =====================================================
   FOOTER - PENYEMPURNAAN
   ===================================================== */

footer {
    background: #073d2a !important;
    color: #ffffff !important;
    margin-top: 3rem;
}

footer h5 {
    font-size: 1.15rem;
    letter-spacing: 0.2px;
}

footer h6 {
    font-size: 1rem;
    letter-spacing: 0.2px;
}

footer p {
    color: rgba(255, 255, 255, 0.82) !important;
    line-height: 1.7;
}

.footer-menu {
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.55rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.82) !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-menu a:hover {
    color: #ffffff !important;
    padding-left: 4px;
}

footer hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    opacity: 1;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    padding-bottom: 0.3rem;
}

.footer-bottom small {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* =====================================================
   GALERI PUBLIK
   ===================================================== */

.gallery-card {
    background: #fff;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-card:hover img {
    transform: scale(1.04);
}

.gallery-card-body {
    padding: 1.2rem;
}

.gallery-card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-card-description {
    color: #6c757d;
    line-height: 1.6;
}

.gallery-card-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.gallery-image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
}

.gallery-image-button img {
    transition: transform 0.35s ease;
}

.gallery-image-button:hover img {
    transform: scale(1.05);
}

/* =====================================================
   LIGHTBOX GALERI
   ===================================================== */

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);

    align-items: center;
    justify-content: center;

    padding: 2rem;
}

.gallery-lightbox-content {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.gallery-lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;

    width: 45px;
    height: 45px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);
    color: #fff;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* =====================================================
   PAGINATION BERITA
   ===================================================== */

.pagination {
    margin-bottom: 0;
    gap: 6px;
}

.pagination .page-item .page-link {
    border: 0;
    border-radius: 10px;
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #198754;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.pagination .page-item .page-link:hover {
    background: #198754;
    color: #ffffff;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: #198754;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.25);
}

.pagination .page-item.disabled .page-link {
    background: #f1f3f5;
    color: #adb5bd;
    box-shadow: none;
    cursor: not-allowed;
}

/* =====================================================
   KARTU BERITA
   ===================================================== */

.news-card {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

.news-card-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.news-card-placeholder {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #6c757d;
}

.news-card .card-body {
    padding: 1.25rem;
    flex: 1;
}

.news-card-title {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-summary {
    color: #6c757d;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .card-footer {
    padding: 0 1.25rem 1.25rem;
}

/* =====================================================
   DETAIL BERITA
   ===================================================== */

.news-detail {
    border-radius: 18px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
}

/* =====================================================
   FOTO DETAIL BERITA
   ===================================================== */

.news-detail-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 10px;
}

.news-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =====================================================
   JUDUL DETAIL BERITA
   ===================================================== */

.news-detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* =====================================================
   RESPONSIVE MOBILE
   ===================================================== */

@media (max-width: 767.98px) {

    /* -------------------------------------------------
       NAVBAR
       ------------------------------------------------- */

    .navbar-brand {
        font-size: 0.9rem;
    }


    /* -------------------------------------------------
       HERO
       ------------------------------------------------- */

    .hero {
        min-height: 400px;
        padding: 4rem 0;
        background-position: center;
    }

    .hero .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero .container > span {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
        margin-bottom: 0.7rem;
    }

    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.15;
        margin-bottom: 0.9rem;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }


    /* -------------------------------------------------
       JUDUL SECTION
       ------------------------------------------------- */

    .title {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }


    /* -------------------------------------------------
       KARTU LAYANAN
       ------------------------------------------------- */

    .service-card {
        padding: 1.25rem;
        border-radius: 16px;
    }


    /* -------------------------------------------------
       BERITA
       ------------------------------------------------- */

    .news-placeholder .d-flex {
        align-items: flex-start !important;
        gap: 1rem;
    }

    .news-placeholder .d-flex .title {
        flex: 1;
    }

    .news-placeholder .d-flex .btn {
        white-space: nowrap;
    }


    /* -------------------------------------------------
       KARTU BERITA
       ------------------------------------------------- */

    .news-card-image,
    .news-card-placeholder {
        height: 200px;
    }


    /* -------------------------------------------------
       DETAIL BERITA
       ------------------------------------------------- */

    .news-detail-title {
        font-size: 1.7rem;
        line-height: 1.3;
    }

    .news-detail-photo {
        border-radius: 10px;
    }


    /* -------------------------------------------------
       GALERI
       ------------------------------------------------- */

    .gallery-card img {
        height: 210px;
    }


    /* -------------------------------------------------
       LIGHTBOX
       ------------------------------------------------- */

    .gallery-lightbox {
        padding: 1rem;
    }

    .gallery-lightbox-content img {
        max-height: 70vh;
    }

    .gallery-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.7rem;
    }


    /* -------------------------------------------------
       FOOTER
       ------------------------------------------------- */

    footer {
        margin-top: 2rem;
    }

}

.news-placeholder .d-flex {
    align-items: flex-start !important;
    gap: 1rem;
}