/* =========================================
   AR-RIDWAN - MODERN PUBLIC WEBSITE
   Warna: Hijau tua, putih, emas
========================================= */

:root {
    --ar-green: #123d2b;
    --ar-green-dark: #0b2b1e;
    --ar-green-soft: #edf4ef;
    --ar-gold: #c6a45b;
    --ar-text: #26332c;
    --ar-muted: #6b756f;
    --ar-white: #ffffff;
}

body {
    color: var(--ar-text);
    background: #fff;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* NAVBAR */
.navbar.fixed-top {
    background: rgba(255,255,255,.97) !important;
    border-bottom: 1px solid rgba(18,61,43,.08);
    box-shadow: 0 4px 22px rgba(0,0,0,.06) !important;
    transition: all .3s ease;
}

.navbar .navbar-brand img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.navbar .nav-link {
    color: var(--ar-green) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 13px !important;
    border-radius: 8px;
    transition: .25s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--ar-gold) !important;
    background: var(--ar-green-soft);
}

.navbar .btn-primary {
    background: var(--ar-green);
    border-color: var(--ar-green);
    border-radius: 30px;
    font-weight: 600;
}

.navbar .btn-primary:hover {
    background: var(--ar-green-dark);
    border-color: var(--ar-green-dark);
}

/* HERO */
#hero {
    position: relative;
    margin-top: 70px;
    background: var(--ar-green-dark);
}

#hero .hero-slide {
    min-height: 590px;
    background-position: center;
    background-size: cover;
    position: relative;
}

#hero .hero-overlay {
    min-height: 590px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    background: linear-gradient(90deg, rgba(5,28,18,.78), rgba(5,28,18,.25));
}

#hero .hero-text {
    max-width: 900px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 3px 18px rgba(0,0,0,.25);
}

#hero .hero-subtitle {
    max-width: 760px;
    margin: auto;
    color: rgba(255,255,255,.92);
    font-size: clamp(15px, 2vw, 19px);
    line-height: 1.8;
}

/* PORTAL LEMBAGA */
#program {
    position: relative;
    z-index: 2;
}

#program .container > .row > div {
    margin-bottom: 22px;
}

#program .bg-white {
    border: 1px solid rgba(18,61,43,.08);
    border-radius: 18px !important;
    box-shadow: 0 12px 35px rgba(14,48,32,.09) !important;
    transition: transform .3s ease, box-shadow .3s ease;
}

#program .bg-white:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(14,48,32,.15) !important;
}

#program img {
    max-height: 76px;
    width: auto;
    object-fit: contain;
}

/* JUDUL DAN BAGIAN */
#program,
#berita,
#video_youtube,
#foto,
#fasilitas {
    scroll-margin-top: 90px;
}

#berita,
#video_youtube,
#fasilitas {
    padding-top: 76px !important;
    padding-bottom: 76px !important;
}

#berita,
#fasilitas {
    background: #f7f9f7;
}

#berita h2,
#video_youtube h2,
#foto h2,
#fasilitas h2 {
    color: var(--ar-green);
    font-weight: 700;
    letter-spacing: -.5px;
}

#berita h2::after,
#video_youtube h2::after,
#foto h2::after,
#fasilitas h2::after {
    content: "";
    display: block;
    width: 58px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 5px;
    background: var(--ar-gold);
}

/* KARTU BERITA */
#berita .card,
#berita .konten-berita,
#berita .card-border-0 {
    border-radius: 16px;
}

#berita .card-border-0 {
    height: 100%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 26px rgba(0,0,0,.07);
    transition: transform .3s ease;
}

#berita .card-border-0:hover {
    transform: translateY(-5px);
}

#berita img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

#berita .konten-berita {
    padding: 20px;
}

#berita h4 {
    color: var(--ar-green);
    font-size: 18px;
    line-height: 1.5;
}

#berita a {
    color: var(--ar-green);
    font-weight: 600;
    text-decoration: none;
}

#berita a:hover {
    color: var(--ar-gold);
}

/* VIDEO */
#video_youtube {
    background: #fff;
}

#video_youtube iframe {
    width: 100%;
    min-height: 230px;
    border: 0;
    border-radius: 14px;
}

/* GALERI */
#foto {
    position: relative;
    background-color: var(--ar-green-dark);
    background-blend-mode: multiply;
}

#foto::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7,37,24,.78);
}

#foto .container {
    position: relative;
    z-index: 1;
}

#foto h2,
#foto h3,
#foto p {
    color: #fff;
}

#foto .foto-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    transition: transform .3s ease;
}

#foto .foto-card:hover {
    transform: translateY(-5px);
}

#foto .foto-img {
    height: 210px !important;
    object-fit: cover !important;
}

/* FASILITAS */
#fasilitas .card,
#fasilitas .bg-white {
    height: 100%;
    border: 1px solid rgba(18,61,43,.08);
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
    transition: transform .3s ease;
}

#fasilitas .card:hover,
#fasilitas .bg-white:hover {
    transform: translateY(-5px);
}

#fasilitas img {
    max-width: 100%;
    object-fit: cover;
}

/* TOMBOL */
.btn-success,
.btn-danger {
    background: var(--ar-green);
    border-color: var(--ar-green);
}

.btn-success:hover,
.btn-danger:hover {
    background: var(--ar-green-dark);
    border-color: var(--ar-green-dark);
}

.btn-outline-success,
.btn-outline-danger {
    color: var(--ar-green);
    border-color: var(--ar-green);
}

.btn-outline-success:hover,
.btn-outline-danger:hover {
    color: #fff;
    background: var(--ar-green);
    border-color: var(--ar-green);
}

/* FOOTER */
#footer {
    background: var(--ar-green-dark) !important;
    color: rgba(255,255,255,.82);
    border-top: 4px solid var(--ar-gold);
}

#footer h5 {
    color: #fff;
    font-weight: 700;
}

#footer .nav-link,
#footer p {
    color: rgba(255,255,255,.75) !important;
    font-size: 14px;
}

#footer .nav-link:hover {
    color: var(--ar-gold) !important;
}

#footer + section {
    background: #082318 !important;
    color: rgba(255,255,255,.7);
}

#footer + section p,
#footer + section a {
    color: rgba(255,255,255,.7) !important;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .navbar .navbar-collapse {
        padding: 14px 0;
    }

    .navbar .navbar-nav {
        align-items: stretch !important;
        gap: 3px !important;
    }

    .navbar .nav-link {
        padding: 10px 12px !important;
    }

    #hero,
    #hero .hero-slide,
    #hero .hero-overlay {
        min-height: 470px;
    }

    #program {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    #hero,
    #hero .hero-slide,
    #hero .hero-overlay {
        min-height: 390px;
    }

    #hero .hero-overlay {
        padding: 50px 18px;
    }

    #berita,
    #video_youtube,
    #fasilitas {
        padding-top: 52px !important;
        padding-bottom: 52px !important;
    }

    #berita img {
        height: 200px;
    }

    #foto .foto-img {
        height: 170px !important;
    }

    #footer .container {
        padding-left: 22px;
        padding-right: 22px;
    }

    #footer + section .container > .d-flex {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================
   HALAMAN PROFIL
========================================= */
.section-profil {
    padding: 65px 0 80px;
    background: #f7f9f7;
}

.section-profil h2 {
    color: #123d2b;
    font-size: clamp(27px, 4vw, 38px);
}

.section-profil h4 {
    color: #123d2b;
}

.section-profil .card {
    border: 1px solid #e7ede8 !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 28px rgba(18, 61, 43, .07) !important;
    overflow: hidden;
}

.section-profil .card-body {
    padding: 30px !important;
}

.section-profil p {
    color: #5d6961;
    line-height: 1.9;
}

/* =========================================
   HALAMAN BERITA
========================================= */
#berita {
    padding: 65px 0 80px !important;
    background: #f7f9f7;
}

#berita .header-berita h2 {
    color: #123d2b;
    font-size: clamp(27px, 4vw, 36px);
}

#berita .card-border-0 {
    height: 100%;
    margin-bottom: 25px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8eee9;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(18, 61, 43, .07);
    transition: transform .25s ease, box-shadow .25s ease;
}

#berita .card-border-0:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(18, 61, 43, .13);
}

#berita .card-border-0 img {
    width: 100%;
    height: 225px;
    object-fit: cover;
}

#berita .konten-berita {
    padding: 22px;
}

#berita .konten-berita h4 {
    color: #123d2b;
    font-size: 19px;
    line-height: 1.5;
}

#berita .konten-berita a {
    color: #98752e !important;
    font-weight: 700;
}

/* =========================================
   HALAMAN PRESTASI & PENGHARGAAN
========================================= */
section:has(.table) {
    padding: 65px 0 85px;
    background: #f7f9f7;
}

section:has(.table) h3 {
    color: #123d2b;
    font-size: clamp(27px, 4vw, 36px);
}

section:has(.table) .table {
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    vertical-align: middle;
}

section:has(.table) .table thead th {
    padding: 17px;
    background: #123d2b;
    color: #fff;
    border: none;
}

section:has(.table) .table tbody td {
    padding: 16px;
    color: #39483e;
}

section:has(.table) .table tbody tr:hover {
    background: #edf4ef;
}

/* =========================================
   HALAMAN GALERI
========================================= */
.section-foto {
    padding: 65px 0 80px;
}

.section-foto h5 {
    color: #fff;
    font-size: 28px;
}

.section-foto .card {
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
    transition: transform .25s ease;
}

.section-foto .card:hover {
    transform: translateY(-5px);
}

.section-foto .card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.section-foto .card-body {
    padding: 17px;
}

.section-foto .card-body h6 {
    margin: 0;
    color: #123d2b;
    font-weight: 700;
}

/* =========================================
   HALAMAN KONTAK
========================================= */
.section-kontak {
    padding: 65px 0 85px;
    background: #f7f9f7;
}

.section-kontak h3 {
    color: #123d2b;
    font-size: clamp(27px, 4vw, 36px);
}

.section-kontak .kontak-box {
    height: 100%;
    padding: 30px;
    background: #fff;
    border: 1px solid #e7ede8;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(18, 61, 43, .07);
}

.section-kontak .kontak-box h5 {
    color: #123d2b;
}

.section-kontak .kontak-box p {
    margin-bottom: 24px;
    color: #59675e;
    line-height: 1.8;
}

.section-kontak .kontak-box a {
    color: #98752e;
    text-decoration: none;
    font-weight: 600;
}

.section-kontak .form-control {
    min-height: 48px;
    border: 1px solid #dce5de;
    border-radius: 10px;
}

.section-kontak textarea.form-control {
    min-height: 130px;
}

.section-kontak .form-control:focus {
    border-color: #98752e;
    box-shadow: 0 0 0 3px rgba(198, 164, 91, .15);
}

.section-kontak button {
    background: #123d2b;
    border: 0;
    border-radius: 10px;
    padding: 12px 28px;
}

.section-kontak button:hover {
    background: #0b2b1e;
}

.section-kontak .map-box {
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(18, 61, 43, .09);
}

@media (max-width: 767px) {
    .section-profil .card-body,
    .section-kontak .kontak-box {
        padding: 22px !important;
    }

    #berita .card-border-0 img,
    .section-foto .card-img-top {
        height: 210px;
    }

    section:has(.table) .table {
        font-size: 13px;
    }
}


/* Penyempurnaan ketebalan huruf */
#berita .header-berita h2,
.section-profil h2,
.section-kontak h3,
section:has(.table) h3 {
    font-weight: 600 !important;
}

#berita .konten-berita h4,
.section-foto .card-body h6,
.section-profil h4,
.section-kontak .kontak-box h5 {
    font-weight: 600 !important;
}

#berita .konten-berita a,
.section-kontak .kontak-box a {
    font-weight: 500 !important;
}

.section-foto h5 {
    font-weight: 600 !important;
}

.navbar .nav-link {
    font-weight: 500 !important;
}

