:root {
    --merah-brida: #E53935;
    --merah-hover: #b71c1c;
    --abu-bg: #f5f6f8;
    --abu-teks: #757575;
    --abu-tua: #585756;
    --putih: #ffffff;
}

/* ===============================
   BANNER SECTION
=================================*/
/* .banner-final-fix {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.banner-final-fix img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top;
    display: block;
} */

body {
    padding-top: 0;
    background-color: #fcfcfc;
}
.carousel-item img {
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

/* ===============================
   SECTION FASILITAS (MAIN)
=================================*/
.fasilitas {
    position: relative; 
    overflow: hidden; /* Biar hiasan gak bocor keluar */
    padding: 80px 0;
    background-color: var(--abu-bg);
    z-index: 1;
}

.judul-fasilitas {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2; /* Biar di atas hiasan */
}

.judul-fasilitas h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--abu-tua);
}

/* --- HIASAN BACKGROUND (PINGGIR SAJA) --- */
.hiasan-background i {
    position: absolute;
    z-index: 0;
    color: rgba(229, 57, 53, 0.12) !important; /* Merah transparan */
    pointer-events: none;
    animation: floatingGerak 10s infinite ease-in-out;
}

/* Posisi diatur di pojok-pojok agar tidak menabrak teks tengah */
.hias-1 { font-size: 110px; top: 40px; left: 120px; transform: rotate(-15deg); } /* Pojok Kiri Atas */
.hias-2 { font-size: 110px; bottom: 40%; left: 10%; animation-delay: 2s; }         /* Kiri Tengah */
.hias-3 { font-size: 140px; bottom: -10px; left: 15%; animation-delay: 1s; }      /* Kiri Bawah */
.hias-4 { font-size: 100px; top: 10%; right: 15%; animation-delay: 4s; }           /* Kanan Atas */
.hias-5 { font-size: 150px; bottom: 70px; right: 40px; transform: rotate(20deg); } /* Pojok Kanan Bawah */
.hias-6 { font-size: 90px; top: 30%; right: 50px; animation-delay: 3s; }        /* Kanan Tengah */

@keyframes floatingGerak {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* ===============================
   TAB MENU & CARDS
=================================*/
.tab-menu {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.tab-card {
    width: 230px;
    padding: 30px 20px;
    border-radius: 20px;
    background: var(--putih);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tab-card h4 {
    font-weight: 700 !important;
    line-height: 1.4;
    margin-top: 15px;
    font-size: 1.1rem;
}

.tab-card.active {
    background: var(--merah-brida);
    color: var(--putih);
    transform: translateY(-5px);
}

.tab-card.active::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--merah-brida);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 22px;
}

.tab-card.active .icon-circle {
    background: rgba(255,255,255,0.2);
}

/* ===============================
   CONTENT AREA (FLEXBOX)
=================================*/
.content-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.content-left {
    flex: 1.2;
    padding-left: 120px; /* Geser ke kanan biar sejajar tab pertama */
    padding-right: 20px;
}

#content-title {
    font-size: 2.3rem;
    font-weight: 850 !important;
    color: var(--abu-tua);
    margin-bottom: 15px;
}

#content-desc {
    font-size: 1.15rem;
    font-weight: 600 !important;
    color: var(--abu-teks);
    line-height: 1.7;
    text-align: justify;
}

.content-right {
    flex: 1;
    position: relative;
}

.main-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.overlay-image {
    position: absolute;
    bottom: -25px;
    left: -30px; /* Diatur biar estetik sedikit keluar gambar utama */
    background: var(--putih);
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.overlay-image img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
}

/* ===============================
   BERITA TERKINI
=================================*/
.section-berita {
    padding: 100px 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.card-brida {
    background: var(--putih);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    height: 100%;
    display: flex; /* Tambahkan ini */
    flex-direction: column; /* Biar konten susun ke bawah */
    border: 1px solid #f0f0f0;
}

.card-brida:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(229, 57, 53, 0.15);
}

.card-img-holder {
    width: 100%;
    height: 230px;
    overflow: hidden; 
    background-color: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
}

.card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Penting! Biar gambar gak penyok/gepeng */
    object-position: center;
    transition: 0.5s ease;
}

.card-konten {
    padding: 25px;
    flex-grow: 1; /* Biar area konten ngisi sisa ruang */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tgl-berita {
    font-size: 0.85rem;
    color: var(--abu-teks);
    font-weight: 600;
}

.judul-berita {
    font-size: 1.25rem;
    font-weight: 700 !important;
    color: var(--abu-tua);
    line-height: 1.4;
    /* Efek potong teks kalau kepanjangan (maks 2 baris) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ringkasan-berita {
    font-size: 0.95rem;
    color: var(--abu-teks);
    line-height: 1.6;
    margin-bottom: 10px;
}

.btn-brida {
    margin-top: auto; /* Tombol akan selalu di paling bawah kartu */
    padding: 10px 20px;
    background-color: var(--merah-brida);
    color: var(--putih) !important;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: 0.3s;
}

.btn-brida, .btn-lihat-semua {
    display: inline-block;
    background: var(--merah-brida);
    color: #ffffff !important; /* Pakai hex code biar aman */
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important; /* Buang garis bawah */
    transition: 0.3s;
    border: none;
    text-align: center;
}

/* Pastikan saat sudah diklik (visited) dan saat di-hover tetap putih */
.btn-brida:visited, .btn-lihat-semua:visited,
.btn-brida:hover, .btn-lihat-semua:hover,
.btn-brida:active, .btn-lihat-semua:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-brida:hover, .btn-lihat-semua:hover {
    background: var(--merah-hover);
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.2);
    transform: translateY(-2px); /* Tambahan biar lebih dapet feel kliknya */
}

#bannerSlider {
    margin-top: 85px;
}

.carousel,
.carousel-inner,
.carousel-item {
    margin: 0;
    padding: 0;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}