/********** Template CSS **********/
:root {
    /* --primary: #06A3DA; */
    --primary: #00b1a9;
    --secondary: #34ad54;
    --light: #eef9ff;
    --dark: #091e3e;
    --green: #007c85;
    --black: #1a1a1a;
    --orange: #f08e20;
    --kemenkes-green: #007c85;
    --kemenkes-green-light: #03b8a4;
    --kemenkes-yellow: #d6df21;
    --kemenkes-blue: #1abccb;
    --kemenkes-orange: #f08e20;
}

/* Grid 6 Kolom */
.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* Card Navigasi */
.nav-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    height: 150px;
}

/* Active State */
.nav-card.active {
    background: #007c85; /* Biru Bootstrap */
    color: white;
    border-color: #0a58ca;
    transform: translateY(-5px);
}

.nav-card.active p {
    /* Biru Bootstrap */
    color: white;
}

/* Hover */
.nav-card:hover {
    transform: translateY(-5px);
}

/* Gambar */
.nav-card img {
    width: 60px; /* Ukuran icon/gambar */
    height: 60px;
    object-fit: contain; /* Agar gambar tidak pecah */
    margin-bottom: 10px;
}

/* Label / Judul */
.nav-card p {
    font-size: 16px;
    font-weight: 600;
    color: black;
}

/* Responsif */
@media (max-width: 992px) {
    .grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Custom Styles for Social Media Cards */
/* Custom Styles for Social Media Cards */

/* General Styling for Cards */
.card-sosmed {
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* For smooth hover effect */
}

.center-list {
    list-style-position: inside; /* nomor ikut ke tengah */
    padding-left: 0;
    text-align: center;
}

.card-point {
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* For smooth hover effect */
}

/* Instagram Card Styling */
.instagram-card {
    /* Instagram gradient colors */
    background-image: linear-gradient(to right, #e4405f, #9b59b6);
    color: white;
}

/* Container for the YouTube video card */
.card-youtube-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    background-color: #000; /* Black background behind video */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Styling the iframe */
.card-youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* Hover effect for card */
.card-youtube-container:hover {
    transform: scale(1.05); /* Slightly scale the card on hover */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Ensures only 3 cards in a row on large screens */
.row-youtube {
    display: flex; /* Menggunakan Flexbox untuk mendistribusikan elemen */
    justify-content: left; /* Memberikan ruang antara kolom kiri dan kanan */
    align-items: center; /* Menyelaraskan elemen di tengah secara vertikal */
    margin-bottom: 20px; /* Memberikan jarak di bawah untuk elemen lain */
}

/* Ensure each column takes 1/3 of the width on large screens */
.col-lg-4 {
    flex: 0 0 32%; /* Each card will take up roughly 1/3 of the row */
}

/* Responsive design */
@media (max-width: 768px) {
    .card-overlay {
        font-size: 14px; /* Smaller text on smaller screens */
    }

    /* Stack cards on top of each other on smaller screens */
    .col-lg-4 {
        flex: 0 0 100%;
    }
}

/* Whatsapp Card Styling */
.youtube-card {
    background-color: #ff0000; /* WhatsApp's brand color */
    color: white;
}

/* Tiktok Card Styling */
.tiktok-card {
    background: linear-gradient(
        135deg,
        #000000,
        #272f30
    ); /* TikTok gradient colors */
    color: white;
}

/* Facebook Card Styling */
.facebook-card {
    background-color: #1877f2; /* Facebook's brand color */
    color: white;
}

/* Twitter Card Styling */
.twitter-card {
    background-color: #1da1f2; /* Twitter's brand color */
    color: white;
}

/* Font Awesome Icon Styling */
i {
    margin-bottom: 10px;
}

/* Hover Effect: Scale the card and add a shadow */
.card-sosmed:hover {
    transform: scale(1.05); /* Slightly enlarge the card */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}
.card-point:hover {
    transform: scale(1.05); /* Slightly enlarge the card */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}

/* Responsive: Adjust sizes on small screens */
@media (max-width: 576px) {
    .card {
        height: auto;
        padding: 15px;
    }

    .col-6 {
        margin-bottom: 10px;
    }
}



.news-box {
    text-align: left;
}

.thumbnail-container {
    margin-bottom: 15px;
}

.thumbnail-img {
    width: 500px; /* boleh tetap */
    height: 350px; /* boleh tetap */
    object-fit: cover; /* penting untuk mencegah gepeng */
    object-position: center;
    border-radius: 8px;
}

.news-content h5 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-content p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.news-content .row {
    justify-content: space-between;
    align-items: center;
}

.btn-link {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

/* ==============================
   BERITA CAROUSEL ONLY
================================ */
.berita-carousel {
    position: relative;
}


/* Card body tinggi stabil */
.berita-body {
    min-height: 360px;
}

/* Gambar berita */
.berita-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Text konten agar tidak mendorong tinggi */
.berita-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Indicators kecil */
.berita-indicators {
    bottom: -25px;
}

.berita-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
}

.berita-indicators .active {
    background-color: #0d6efd;
}

#header-carousel .carousel-item {
    height: 100vh;
}

#header-carousel .carousel-item img {
    height: 100vh;
    object-fit: cover;
}


/* KHUSUS BERITA */
#beritaCarousel .carousel-item {
    height: auto;
}

#beritaCarousel .carousel-inner {
    min-height: 450px; /* sesuaikan */
}

#beritaCarousel .card-body {
    padding: 1rem;
}


/* Tombol prev / next custom */
.berita-prev,
.berita-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.121); /* lebih transparan */
    color: #fff;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}

.berita-prev {
    left: 8px;
}

.berita-next {
    right: 8px;
}

.berita-prev:hover,
.berita-next:hover {
    background: #0d6efd;
}



/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    border-radius: 50%;
}

/* Style untuk ikon media sosial */
.social-media-icons {
    position: fixed; /* Posisi tetap di sebelah kanan layar */
    right: 45px; /* Mengatur jarak dari sisi kanan */
    top: 20%; /* Posisi vertikal di tengah */
    transform: translateY(-50%); /* Menjaga ikon tetap di tengah */
    display: flex; /* Menyusun ikon secara vertikal */
    flex-direction: column; /* Ikon disusun secara vertikal */
    gap: 15px; /* Memberikan jarak antar ikon */
    opacity: 0; /* Mulai dengan opacity 0, ikon tersembunyi */
    animation: flyInRight 1s ease-out forwards; /* Animasi terbang masuk dari kanan */
    right: 20px;
    z-index: 99; /* Pastikan ikon berada di atas konten lainnya */
}

/* Gaya untuk masing-masing ikon */
.social-icon {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 12px;
    border-radius: 50%;
    text-align: center;
    opacity: 0;
    transition: transform 0.3s ease;
}

/* Efek hover pada ikon */
.social-icon:hover {
    transform: scale(2);
    background-color: #3333333b; /* Efek memperbesar ikon saat hover */
    color: rgb(184, 184, 184);
}

/* Efek animasi terbang dari kanan */
@keyframes flyInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.social-icon.facebook {
    background-color: #3b5998; /* Warna Facebook */
}

/* Ikon Twitter (Biru Muda) */
.social-icon.twitter {
    background-color: #1da1f2; /* Warna Twitter */
}

.social-icon.tiktok {
    background: linear-gradient(
        135deg,
        #000000,
        #272f30
    ); /* TikTok gradient colors */
    /* Warna Twitter */
}

/* Ikon Instagram (Ungu) */
.social-icon.instagram {
    background-image: linear-gradient(
        to right,
        #e4405f,
        #9b59b6
    ); /* Warna Gradien Instagram */
}

.social-icon.youtube {
    background-color: #ff002f; /* Warna Instagram */
}

.social-icon.whatsapp {
    background-color: #14af00; /* Warna Instagram */
}

/* Efek untuk setiap ikon agar muncul dengan delay */
.social-icon:nth-child(1) {
    animation: flyIcon 0.6s ease-out forwards;
}

.social-icon:nth-child(2) {
    animation: flyIcon 0.7s ease-out forwards;
}

.social-icon:nth-child(3) {
    animation: flyIcon 0.8s ease-out forwards;
}

.social-icon:nth-child(4) {
    animation: flyIcon 0.9s ease-out forwards;
}
.social-icon:nth-child(5) {
    animation: flyIcon 0.1s ease-out forwards;
}
.social-icon:nth-child(6) {
    animation: flyIcon 0.2s ease-out forwards;
}

/* Animasi ikon saat pertama kali muncul */
@keyframes flyIcon {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px);
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg);
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg);
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg)
            rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}

/*** Button ***/
.btn {
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    transition: 0.5s;
}

.btn-primary,
.btn-secondary {
    color: #ffffff;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: "Nunito", sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: 0.5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--green);
}

.navbar-dark .navbar-brand h3 {
    color: #ffffff;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #ffffff;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h3 {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, 0.1);
        z-index: 999;
    }

    .sticky-top.navbar-dark {
        position: fixed;
        background: #ffffff;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--green);
        transition: 0.5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h3 {
        color: var(--black);
    }
}

/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, 0.7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #ffffff;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {
        left: 0;
    }
    50% {
        left: 145px;
    }
    100% {
        left: 0;
    }
}

@-webkit-keyframes section-title-run-center {
    0% {
        left: 50%;
        margin-left: -75px;
    }
    50% {
        left: 50%;
        margin-left: 45px;
    }
    100% {
        left: 50%;
        margin-left: -75px;
    }
}

@-webkit-keyframes section-title-run-sm {
    0% {
        left: 0;
    }
    50% {
        left: 85px;
    }
    100% {
        left: 0;
    }
}

/* Styling untuk Floating Button */
.floating-button {
    position: fixed;
    bottom: 20px; /* Tempatkan di bagian bawah layar */
    right: 20px; /* Tempatkan di sisi kanan */
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    cursor: pointer;
    z-index: 9999; /* Pastikan tombol tetap di atas elemen lainnya */
}

/* Mengatur style dasar untuk tabel */
.table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Arial", sans-serif;
    color: black;
    font-weight: bold;
}

/* Mengatur tampilan header tabel */
.table thead {
    background-color: #f08e20; /* Warna latar belakang biru */
    color: white; /* Warna teks putih */
}

.table thead th {
    padding: 12px 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Mengatur tampilan body tabel */
.table tbody tr {
    background-color: #f9f9f9; /* Warna latar belakang abu-abu terang */
}

.table tbody tr:hover {
    background-color: #f1f1f1; /* Warna latar belakang saat hover */
}

.table tbody td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
}

/* Menambahkan efek border dan sudut yang lebih halus */
.table-bordered {
    border: 1px solid #ddd;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid #ddd; /* Border halus pada cell */
}

/* Style tombol action dalam kolom Action */
.table .action-btns {
    text-align: center;
}

.table .action-btns button {
    background-color: #28a745; /* Warna tombol hijau */
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.table .action-btns button:hover {
    background-color: #218838; /* Warna tombol saat hover */
}

.table .action-btns button:focus {
    outline: none;
}

/* Styling untuk cell yang tidak memiliki konten action */
.table tbody td:last-child {
    text-align: center;
}

/* Menambahkan efek pada tabel secara keseluruhan */
.table {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Efek bayangan pada tabel */
    border-radius: 10px;
}

/* Responsif - membuat tabel lebih ramah perangkat mobile */
@media (max-width: 768px) {
    .table thead {
        font-size: 14px;
    }

    .table tbody td {
        font-size: 12px;
        padding: 8px;
    }

    .table .action-btns button {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Tinggi gambar stabil */
.haji-card-img {
    width: 100%;
    height: 180px; /* kamu bisa ubah sesuai kebutuhan */
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.haji-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* gambar selalu memenuhi area secara rapi */
}

/* Tinggi teks distandarkan */
.haji-card-body {
    padding: 20px;
    min-height: 140px; /* supaya teks pendek & panjang tetap sejajar */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tinggi card konsisten */
.haji-card {
    height: 100%;
    border-radius: 12px;
}

.service-card2 {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    height: 260px; /* boleh kamu sesuaikan */
    display: flex;
    flex-direction: column;
}

.service-img2 {
    height: 40%; /* 40% untuk gambar */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f9f9;
}

.service-img2 img {
    max-width: 45%; /* ukuran gambar */
    height: auto;
}

.service-text2 {
    height: 60%; /* 60% untuk teks */
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card-custom {
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    padding: 15px;
}

.service-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-img {
    width: 40%; /* Bagian gambar 40% */
    display: flex;
    justify-content: center;
}

.service-card-img img {
    width: 80%; /* sesuaikan agar tidak terlalu besar */
    height: auto;
}

.service-card-text {
    width: 60%; /* Bagian teks 60% */
    padding-left: 10px;
}

.service-card-text h6 {
    font-size: 0.85rem;
    font-weight: 600;
}

/*** Service ***/
.service-item {
    transition: 0.5s;
}

.service-item p {
    font-size: 1rem;
    text-align: center;
}

.service-item h4 {
    /* color: #00b1a9; */
    font-size: 1.5rem;
    text-align: center;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.35s;
    border-top: 5px solid var(--kemenkes-green);
    position: relative;
    overflow: hidden;
}

/* Hover Effects */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
    border-top-color: var(--kemenkes-blue);
}

.service-icon {
    font-size: 48px;
    color: var(--kemenkes-green);
    margin-bottom: 15px;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    color: var(--kemenkes-blue);
}

.service-card:hover h5 {
    color: var(--kemenkes-blue);
}

/* Gambar ilustrasi */
.service-img {
    width: 80px;
    margin-bottom: 15px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.service-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--kemenkes-green);
    min-height: 60px;
}

.btn-kemenkes {
    background: var(--kemenkes-green);
    border: none;
    padding: 5px 18px;
}

.btn-white {
    background: white;
    border: none;
    padding: 5px 18px;
}

.btn-white img {
    max-width: 50%; /* Agar gambar tidak meluap */
    height: auto; /* Menjaga proporsi gambar */
}

.btn-white:hover {
    transform: translateY(-5px);
}

.btn-kemenkes.active {
    background: var(--kemenkes-blue);
}

.btn-kemenkes:hover {
    background: var(--kemenkes-blue);
}

.modal-body img {
    max-width: 100%; /* Agar gambar tidak meluap */
    height: auto; /* Menjaga proporsi gambar */
    padding: 20;
}

/* Kontainer gambar */
.image-container {
    width: 100%;
    overflow: hidden; /* Agar gambar yang diperbesar tidak meluap dari kontainer */
    position: relative;
}

/* Efek zoom saat gambar di-hover */
#zoomImage {
    transition: transform 0.5s ease; /* Membuat efek zoom lebih halus */
    cursor: pointer; /* Mengganti kursor menjadi pointer saat mengarah ke gambar */
}

/* Saat gambar di-hover, perbesar gambar */
#zoomImage:hover {
    transform: scale(1.5); /* Mengubah ukuran gambar menjadi 1.5x */
}

/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #dddddd;
    border-radius: 2px;
    transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #ffffff !important;
    box-shadow: 0 0 30px #dddddd;
}

/*** Team ***/
.team-item {
    transition: 0.5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #dddddd;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, 0.7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: 0.3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: 0.3s 0.05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: 0.3s 0.1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: 0.3s 0.15s;
}

.team-item .team-img img,
.blog-item .blog-img img {
    transition: 0.5s;
}

.blog-img img {
    width: 100%;
    height: 250px; /* Sesuaikan dengan kebutuhan */
    object-fit: cover;
    border-radius: 5px;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}

/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 20px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, 0.7), rgba(9, 30, 62, 0.7)),
        url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: 0.5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/* =============================
   KEMENKES ACCORDION STYLE
============================= */

.accordion-button i {
    width: 20px; /* agar ikon sejajar dengan teks */
    text-align: center;
    color: var(--kemenkes-green-dark);
    transition: 0.3s;
}

.accordion-button:hover i,
.accordion-button:not(.collapsed) i {
    color: white; /* Ikon ikut berubah saat dibuka */
}

/* Border & shadow accordion */
.accordion-item {
    border: 1px solid #d9e9e7 !important;
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Header */
.accordion-button {
    background: var(--kemenkes-light);
    color: var(--kemenkes-green-dark);
    font-weight: 600;
    padding: 14px 20px;
    font-size: 1rem;
    transition: 0.3s ease-in-out;
}

/* Hover efek */
.accordion-button:hover {
    background-color: var(--kemenkes-green);
    color: white;
}

/* Ketika accordion terbuka */
.accordion-button:not(.collapsed) {
    background-color: var(--kemenkes-green);
    color: white;
    box-shadow: none;
}

/* Icon arrow */
.accordion-button::after {
    filter: invert(41%) sepia(92%) saturate(714%) hue-rotate(134deg)
        brightness(92%) contrast(93%);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Body */
.accordion-body {
    background: #ffffff;
    padding: 20px 20px;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* List styling */
.accordion-body ul {
    padding-left: 20px;
}

.accordion-body ul li {
    margin-bottom: 6px;
}

/* Hyperlink */
.accordion-body a {
    color: var(--kemenkes-green-dark);
    font-weight: 600;
}

.accordion-body a:hover {
    color: var(--kemenkes-green);
}

/* Animasi fade-in tiap accordion */
.accordion-item {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
