/* =========================
   BASE
========================= */

body {
  background: #f4f7fb;
  font-family: system-ui;
  margin: 0;
}

a {
    text-decoration:none;
}

/* Custom Background Utilities */

/* Soft Grey - Paling rekomen buat background halaman agar card putih lebih 'pop' */
.bg-soft-light {
    background-color: #f8f9fa !important; /* Bawaan BS sebenarnya ini, tapi kadang kurang 'dalam' */
}

/* Soft Blue-Grey - Memberikan kesan profesional & dingin */
.bg-soft-pro {
    background-color: #f1f4f8 !important;
}

/* Soft Bone - Lebih hangat & elegan */
.bg-soft-bone {
    background-color: #fdfdfd !important;
}

/* Custom Shadow Soft (Biar nggak kaku) */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* =========================
   TOPBAR
========================= */

.topbar {
  background: #0d6efd;

  color: white;

  font-size: 13px;
}

.topbar-wrapper {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 6px 0;

  flex-wrap: wrap;
}

.topbar-left {
  display: flex;

  align-items: center;

  gap: 6px;
}

.topbar-right {
  display: flex;

  gap: 20px;
}

.topbar-right span {
  display: flex;

  align-items: center;

  gap: 4px;
}

/* ICON SIZE */

.topbar .material-icons {
  font-size: 16px;
}

/* MOBILE */

@media (max-width: 768px) {
  .topbar-wrapper {
    flex-direction: column;

    align-items: flex-start;

    gap: 4px;
  }

  .topbar-right {
    gap: 12px;

    flex-wrap: wrap;
  }
}

/* =========================
   NAVBAR
========================= */

.navbar {
  padding-top: 10px;
  padding-bottom: 10px;

  background: white;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* MENU */

.navbar-nav .nav-link {
  padding-left: 16px;
  padding-right: 16px;

  font-weight: 500;

  color: #333;
}

.navbar-nav .nav-link:hover {
  color: #0d6efd;
}

/* =========================
   SEARCH DESKTOP
========================= */

.search-box {
  display: flex;
  align-items: center;

  border: 1px solid #ddd;
  border-radius: 6px;

  overflow: hidden;
}

.search-box input {
  border: none;
  padding: 6px 10px;
  outline: none;
  width: 180px;
}

.search-box button {
  background: #0d6efd;
  border: none;
  color: white;
  padding: 6px 10px;
}

/* =========================
   SEARCH MOBILE
========================= */

.mobile-search {
  display: flex;
  margin-top: 20px;
}

.mobile-search input {
  flex: 1;
  border: 1px solid #ddd;
  padding: 8px;
}

.mobile-search button {
  background: #0d6efd;
  border: none;
  color: white;
  padding: 8px 12px;
}

/* =========================
   MOBILE MENU
========================= */

@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    background: white;

    padding: 40px;

    transform: translateX(-100%);

    transition: 0.3s;

    z-index: 9999;
  }

  .navbar-collapse.show {
    transform: translateX(0);
  }

  .navbar-nav {
    margin-top: 60px;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
  }

  /* CLOSE BUTTON */

  .menu-close {
    position: absolute;
    top: 20px;
    right: 25px;

    background: none;
    border: none;

    font-size: 30px;

    color: #0d6efd;

    cursor: pointer;
  }
}


/* MAIN CONTENT */

.main-content{

    width:100%;

}


/* HERO SLIDER */
.carousel-inner {
    border-radius: 20px; /* Membuat ujung melengkung/tumpul */
}

.custom-slider-ratio {
    aspect-ratio: 3 / 1;
    overflow: hidden;
    background-color: #f8f9fa; /* Warna background jika gambar loading */
}

.custom-slider-ratio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mempercantik titik indikator (dots) */
/* --- MODIFIKASI DOTS (INDIKATOR) --- */
.carousel-indicators [button] {
    width: 12px;
    height: 12px;
    border-radius: 50%; /* Bulat sempurna */
    background-color: #007bff; /* Ganti dengan warna brand Anda (contoh: biru) */
    border: 2px solid #fff; /* Garis tepi putih agar menonjol */
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    width: 30px; /* Membuat dot aktif lebih panjang (pill shape) */
    border-radius: 10px;
}

/* --- MODIFIKASI TOMBOL NEXT/PREV --- */
.carousel-control-prev,
.carousel-control-next {
    width: 5%; /* Mengecilkan area klik agar tidak ganggu teks */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 123, 255, 0.8); /* Background biru transparan */
    background-size: 50% 50%;
    border-radius: 50%; /* Membuat tombol panah bulat */
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Efek saat tombol panah di hover */
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #007bff;
    transform: scale(1.1);
}

/* Efek transisi halus antar slide */
.carousel-fade .carousel-item {
    transition-duration: 0.8s;
}

@media (max-width: 991px) {
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
      width: 30px;
      height: 30px;
  }
}
@media (max-width: 576px) {
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
      width: 20px;
      height: 20px;
  }
}

@media (max-width: 375px) {
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
      width: 15px;
      height: 15px;
  }
}


/* NEWS */

.news-thumbnail {
    height: 240px;
    object-fit: cover;
    width: 100%;
}
.news-list-thumb {
    width: 100px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}
.card-equal {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-equal:hover{
    transform:translateY(-3px);
    transition:0.2s;
}

.card-title{
    color:#212529;
}

.card-title:hover{
    color:#0d6efd;
}
.title-2-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.title-1-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.news-meta-wrap {
    white-space: normal;
    word-wrap: break-word;
    display: block;
}
.news-text-wrapper {
    min-width: 0; /* prevents text overflow in flex layout */
    flex: 1;
}


/* Styling Kartu Profil - Khusus Eselon */
.profile-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%; /* Memastikan semua kartu sama tinggi */
    display: flex;
    flex-direction: column;
}


/* Hover effect hanya untuk desktop */
@media (min-width: 768px) {
    .profile-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    }
}

/* Foto Profil */
.profile-img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    background-color: #f8f9fa;
}

/* Card Body Spesifik (Tidak ganggu card lain) */
.profile-card .card-body {
    padding: 12px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Nama tetap di atas */
}

/* Nama: Boleh turun ke bawah (Wrap) */
.profile-card h6 {
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #212529;
    /* Font size adaptif: sedikit mengecil di mobile */
    font-size: clamp(0.85rem, 2.8vw, 0.95rem);
}

/* Jabatan */
.profile-card p {
    line-height: 1.3;
    color: #6c757d;
    margin-bottom: 0;
    /* Ukuran teks jabatan lebih kecil sedikit */
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
}

/* Perbaikan jarak antar kolom di mobile */
@media (max-width: 576px) {
    .g-mobile-2 {
        --bs-gutter-x: 0.75rem; /* Jarak horizontal lebih rapat di HP */
    }
}




/* =========================
   FOOTER STYLE
========================= */
.main-footer {
  background-color: #0d6efd;
  color: #ffffff;
  padding: 60px 0 0 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  border-top: 4px solid #0a58ca; /* Aksen biru lebih gelap di atas */
}

/* Tipografi */
.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8f9fa;
}

.footer-heading .material-icons {
  font-size: 20px;
  opacity: 0.9;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* Map Styling */
.map-box {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 4px solid rgba(255, 255, 255, 0.1);
}

/* Statistik Style (Modern Look) */
.stat-main .stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
  opacity: 0.8;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: white;
  color: #0d6efd;
  display: inline-block;
  padding: 0 15px;
  border-radius: 8px;
}

.stat-item-small {
  display: flex;
  justify-content: flex-end; /* Rata kanan di desktop */
  align-items: center;
  gap: 12px;
}

.stat-item-small .label {
  font-size: 0.9rem;
}

.badge-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  min-width: 45px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.online-dot {
  background: #2ecc71; /* Hijau indikator online */
  color: white;
  border: none;
}

/* Copyright Bar */
.footer-copyright {
  margin-top: 40px; /* Jarak dari konten di atasnya */
  padding: 12px 0;  /* Kecilkan angka ini (misal dari 20px ke 12px) agar tidak lebar */
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.8rem; /* Sedikit lebih kecil agar proporsional */
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Garis halus pemisah */
}

.footer-copyright p {
  margin-bottom: 0; /* Pastikan tidak ada margin bawaan dari tag <p> */
}

/* Responsive Fix */
@media (max-width: 991px) {
  .stat-item-small {
    justify-content: flex-start; /* Rata kiri di mobile agar rapi */
  }
  .text-lg-end {
    text-align: left !important;
  }
}


.scroll-top{
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s ease;
    z-index: 999;
}

.scroll-top.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover{
    background:#0b5ed7;
}

.scroll-top span{
    font-size:26px;
    position:relative;
    z-index:2;
}

.scroll-progress{
    position:absolute;
    top:0;
    left:0;
    transform: rotate(-90deg);
}

.scroll-progress circle{
    fill:none;
    stroke:#ffffff;
    stroke-width:3;
    stroke-dasharray:283;
    stroke-dashoffset:283;
    opacity:0.6;
}


/* Content */


 /* Sinkronisasi Material Icons */
    .material-icons {
        font-size: 1.2rem;
        vertical-align: middle;
        line-height: 1;
    }
    /* 1. Warna Background Custom */
    .bg-soft-pro {
        background-color: #f1f4f8 !important; /* Warna soft yang profesional */
    }

    /* 2. Styling Tipografi & Konten CKEditor */
    .gambar-isi-ck-editor {
        font-size: 1.05rem;
        line-height: 1.8;
        color: #334155;
    }
    .gambar-isi-ck-editor img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 12px;
        margin: 1.5rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    /* Limit teks jadi 2 baris (biar kartu rekomendasi tingginya sama) */
    .title-2-line {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 2.8em;
    }

    /* 3. Tombol Share & Hover Effect */
    .share-container {
        position: relative;
    }

    /* Tombol Utama */
    .share-trigger {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        z-index: 100;
        transition: all 0.3s ease;
    }

    .share-trigger:hover {
        background: #007bff;
        color: white;
    }

    /* Menu Sosmed yang muncul */
    .share-menu {
        position: absolute;
        top: 70px;
        right: 15px;
        background: white;
        border-radius: 15px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 99;
    }

    /* Class Aktif pas di-klik */
    .share-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .share-item {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: 0.2s;
        color: #555;
    }

    .share-item:hover {
        background: #f1f4f8;
        color: #007bff;
    }

    /* Tooltip sederhana buat copy link */
    .copy-success {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: white;
        padding: 8px 20px;
        border-radius: 50px;
        display: none;
        z-index: 999;
    }

    /* 4. Utility Lainnya */
    .reaction-pill {
        display: inline-flex;
        align-items: center;
        padding: 6px 14px;
        background: #f8f9fa;
        border-radius: 50px;
        font-size: 0.85rem;
        color: #64748b;
        font-weight: 600;
    }

    .comment-scroll-area::-webkit-scrollbar {
        width: 5px;
    }
    .comment-scroll-area::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

    /* Container Hover Efek */
    .rekomendasi-card {
        border: none !important;
        border-radius: 20px !important;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        background: #fff;
    }

    /* Memaksa gambar punya rasio yang sama (16:9) */
    .img-wrapper-rekomendasi {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* Ratio 16:9 */
        overflow: hidden;
        border-radius: 20px 20px 0 0;
    }

    .img-wrapper-rekomendasi img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    /* Rekomendasi */

    .rekomendasi-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    }

    .rekomendasi-card:hover img {
        transform: scale(1.1);
    }

    /* Badge kategori atau tanggal yang melayang di atas gambar */
    .date-badge {
        position: absolute;
        bottom: 15px;
        left: 15px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        padding: 5px 12px;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 600;
        color: #007bff;
        z-index: 2;
    }

    /* Judul dengan line-clamp 2 baris */
    .news-title-link {
        color: #2d3436;
        text-decoration: none;
        font-weight: 700;
        line-height: 1.4;
        font-size: 1.05rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
        transition: color 0.2s;
    }

    .news-title-link:hover {
        color: #007bff;
    }
