:root {
  --putih: #ffffff;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

.primary-color {
  background-color: var(--background-color) !important;
}
.sub-color {
  color: var(--sub-color) !important;
}
.btn-emas {
  background-color: var(--sub-color);
  color: white;
  border-radius: 25px;
}
.btn-emas:hover {
  background-color: #b8962d;
  color: white;
}
.navbar-nav .nav-link {
  color: white !important;
  text-transform: capitalize !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--sub-color) !important;
}

/* Styling tombol emas */
.btn-emas {
  background-color: var(--sub-color);
  color: white;
  border: none;
  transition: 0.3s;
}

.btn-emas:hover {
  background-color: #b8962d;
  color: white;
  transform: scale(1.05);
}
/* Hero Slider */
.carousel-item {
  height: 70vh;
  min-height: 400px;
  background: no-repeat center center scroll;
  background-size: cover;
}
.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 20px;
}

/* Section Title */
.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--background-color);
}
.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--sub-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Stats Counter */
.counter-box {
  padding: 30px;
  border-radius: 10px;
  background: var(--background-color);
  color: white;
  transition: 0.3s;
}
.counter-box:hover {
  transform: translateY(-10px);
  background: var(--sub-color);
}

/* Banser Section */
.banser-section {
  background: #1a1a1a;
  color: white;
  padding: 60px 0;
  border-left: 10px solid var(--sub-color);
}
/* Tambahkan CSS ini di bagian <style> Anda */
.instagram-hover .overlay-ig {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 142, 71, 0.7); /* Warna Hijau NU transparan */
  opacity: 0;
  transition: 0.3s;
  cursor: pointer;
}
.instagram-hover:hover .overlay-ig {
  opacity: 1;
}
.object-fit-cover {
  object-fit: cover;
}
/* Styling Dropdown agar tidak kaku */
.dropdown-menu {
  border-top: 3px solid var(--sub-color) !important;
  border-radius: 8px;
}
.dropdown-item {
  padding: 10px 20px;
  font-weight: 500;
  transition: 0.3s;
}
.dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--background-color);
  padding-left: 25px;
}
#beritaCarousel .row {
  margin-left: 0;
  margin-right: 0;
}

#beritaCarousel .carousel-item {
  padding-left: 0;
  padding-right: 0;
}

/* Fix col padding di mobile */
@media (max-width: 768px) {
  #beritaCarousel .col-md-4 {
    padding-left: 8px;
    padding-right: 8px;
  }

  .shutter-gallery {
    overflow: hidden;
  }

  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
}
#beritaCarousel .card {
  border-radius: 14px;
  overflow: hidden;
}

#beritaCarousel .carousel-control-prev-icon,
#beritaCarousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 15px;
}
#beritaCarousel .carousel-item {
  height: auto;
}

#beritaCarousel .carousel-inner {
  align-items: stretch;
}
#beritaCarousel .card {
  height: 100%;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.content-berita p {
  margin-bottom: 1rem;
}
/* Konten dari CKEditor */
.ckeditor-content {
  font-size: 18px;
  line-height: 1.9;
  color: #333;
}
.ckeditor-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* Opsional: batasi tinggi */
.ckeditor-content img {
  max-height: 600px;
  object-fit: contain;
}
/* ====== STRUKTUR ORGANISASI ====== */

.org-card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  background: #fff;
}

.org-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

.org-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.org-card-body {
  padding: 1rem 1.25rem;
  text-align: center;
}

.org-jabatan {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #198754; /* hijau Ansor */
  font-weight: 600;
}

.org-nama {
  font-weight: 700;
  font-size: 14px;
  margin-top: 0.25rem;
}

/* Bidang title */
.bidang-title {
  background: #f8f9fa;
  border-left: 6px solid #198754;
  padding: 0.75rem 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Responsive image height */
@media (max-width: 768px) {
  .org-card img {
    height: 220px;
  }
}
/* ===== SHUTTER GALLERY ===== */
.shutter-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shutter-item {
  flex: 1 1 auto;
  height: 220px; /* tinggi baris seragam */
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.shutter-item img {
  height: 100%;
  width: auto;
  min-width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shutter-item:hover img {
  transform: scale(1.05);
}

/* Mobile */
@media (max-width: 768px) {
  .shutter-item {
    height: 160px;
  }
}
/* ===== SECTION BANSER ===== */
.banser-section {
  /* background: linear-gradient(135deg, #0f3d2e, #1f6b4e); */
  color: #fff;
  position: relative;
}

.text-success {
  color: var(--background-color) !important;
}

/* Overlay tipis biar lebih elegan */
.banser-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}

.banser-section .container {
  position: relative;
  z-index: 1;
}

/* ===== JUDUL ===== */
.banser-title {
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.banser-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #ffc107; /* kuning Ansor */
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== GALERI ITEM ===== */
.banser-gallery-item img {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.banser-gallery-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* SECTION */
.ansor-highlight-section {
  background: #ffffff;
}

/* WELCOME TEXT */
.ansor-welcome {
  display: inline-block;
  background: #e6f8ef;
  color: var(--background-color);
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* TITLE */
.ansor-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.ansor-title span {
  color: #f4b400; /* emas */
}

/* DESCRIPTION */
.ansor-desc {
  font-size: 18px;
  color: #555;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 16px;
}

.ansor-desc.highlight {
  color: #0f6b3d;
  font-weight: 600;
}

/* IMAGE WRAPPER (DIKECILKAN!) */
.ansor-image-wrapper.small {
  max-width: 460px; /* JANGAN KEGEDEAN */
  padding: 26px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.18),
    0 0 0 12px rgba(15, 107, 61, 0.06);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ansor-title {
    font-size: 36px;
  }

  .ansor-welcome {
    font-size: 18px;
    padding: 12px 32px;
  }

  .ansor-image-wrapper.small {
    max-width: 320px;
    margin-top: 40px;
  }
}

.program-unggulan-section {
  background: #f8f9fa;
}

.section-line {
  width: 80px;
  height: 4px;
  background: #ffc107;
  margin: 12px auto 0;
  border-radius: 2px;
}

.program-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  height: 100%;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.program-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f3d2e, #1f6b4e);
  color: #ffc107;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
}

.btn-success {
  background-color: var(--background-color);
  border-color: var(--bs-btn-hover-border-color);
}
