/* =========================================
   1. VARIABLES & BASE
========================================= */
:root {
  --bamusi-red: #cc0000;
  --bamusi-dark: #8b0000;
  --bamusi-black: #111111;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  margin: 0;
  padding: 0;
}

/* =========================================
   2. NAVBAR UMUM (Transparan -> Solid)
========================================= */
.navbar-custom {
  background-color: transparent;
  padding-top: 15px;
  padding-bottom: 15px;
  transition: all 0.4s ease-in-out;
}
.navbar-custom.scrolled {
  background-color: var(--bamusi-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding-top: 8px;
  padding-bottom: 8px;
}

/* =========================================
   3. LOGO & TEKS
========================================= */
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  color: white !important;
  text-decoration: none !important;
  padding: 0 !important;
}
.brand-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  color: white;
}
.brand-line {
  height: 0.8px;
  width: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.9) 30%,
    var(--bamusi-red) 30%
  );
  margin: 4px 0;
}
.brand-subtitle {
  font-size: 0.6rem;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: white;
}

/* =========================================
   4. NAVBAR MENU & BUTTONS
========================================= */
.navbar-custom .nav-link {
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem !important;
  letter-spacing: 0.5px;
}
.navbar-custom .nav-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  color: white;
}
.lang-switch {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
}
.lang-switch .active {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lang-switch span:not(.active) {
  opacity: 0.7;
  cursor: pointer;
}
.menu-trigger {
  background: transparent;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0;
  transition: opacity 0.3s ease;
}
.menu-trigger:hover {
  opacity: 0.7;
}
.menu-trigger svg {
  fill: white;
}

/* =========================================
   5. HERO SECTION (Kubah Lapis Emas)
========================================= */
.hero-split-wrapper {
  position: relative;
  background: radial-gradient(
    circle at 30% 50%,
    #9e0000 0%,
    var(--bamusi-dark) 70%,
    #570000 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
}
.hero-split-wrapper::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(0, 0, 0, 0.1) 41%,
    rgba(0, 0, 0, 0) 100%
  );
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 1;
}
.hero-split-bg-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, var(--bamusi-red) 0%, #a60000 100%);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 1;
}
.hero-carousel {
  width: 100%;
  z-index: 2;
}
.hero-text-col {
  padding-right: 5%;
  position: relative;
}
.hero-image-col {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: calc(100vh - 90px);
}
.arched-frame {
  width: 100%;
  max-width: 500px;
  height: 90%;
  border-top-left-radius: 250px;
  border-top-right-radius: 250px;
  position: relative;
  border: 6px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.1);
  background-image: radial-gradient(
    rgba(212, 175, 55, 0.3) 1px,
    transparent 1px
  );
  background-size: 8px 8px;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
}
.arched-frame-inner {
  width: 100%;
  height: 100%;
  border-top-left-radius: 240px;
  border-top-right-radius: 240px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(212, 175, 55, 0.9);
  border-bottom: none;
  background-color: #f8f9fa;
}
.arched-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.arched-frame-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.4);
  border-top-left-radius: 240px;
  border-top-right-radius: 240px;
  pointer-events: none;
}
.hero-carousel .carousel-indicators {
  bottom: 20px;
  justify-content: flex-start;
  margin-left: 5%;
  margin-bottom: 0;
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 35px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  margin-right: 8px;
  transition: all 0.4s ease;
}
.hero-carousel .carousel-indicators .active {
  background-color: white;
  width: 50px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* =========================================
   6. STRUKTUR PENGURUS (Sesuai Kartu Awal)
========================================= */
.board-slider-container {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  padding-bottom: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.board-slider-container::-webkit-scrollbar {
  display: none;
}
.board-card {
  flex: 0 0 auto;
  width: 260px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  background-color: white;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.board-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.board-photo-wrapper {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bamusi-black);
  font-size: 3rem;
  font-weight: bold;
  border: 3px solid var(--bamusi-red);
}
.board-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.board-name {
  color: var(--bamusi-red);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  line-height: 1.3;
}
.board-role {
  color: #666;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =========================================
   7. FOOTER
========================================= */
.footer-custom {
  background-color: var(--bamusi-black);
  color: white;
}

/* =========================================
   8. GAYA GRID HALAMAN BERANDA (Merapikan 13 Section)
========================================= */
.eyebrow-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}
.border-thick-dark {
  border: 2px solid var(--bamusi-black) !important;
}
.border-thick-top {
  border-top: 2px solid var(--bamusi-black) !important;
}

/* Menata kotak Ruang Khidmah & Nilai Utama */
.grid-5-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
@media (max-width: 991px) {
  .grid-5-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .grid-5-cols {
    grid-template-columns: 1fr;
  }
}
.value-card-box {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem 1.5rem;
  height: 100%;
}
.khidmah-card-box {
  border-right: 2px solid var(--bamusi-black);
  border-bottom: 2px solid var(--bamusi-black);
  padding: 2rem;
  position: relative;
}

/* Teks Transparan Sejarah */
.history-bg-text {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  color: var(--bamusi-red);
  opacity: 0.08;
  line-height: 0.8;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  letter-spacing: -2px;
}

/* Form Gabung */
.join-input {
  border: none;
  border-bottom: 2px solid var(--bamusi-black);
  border-radius: 0;
  padding: 8px 0;
  background: transparent;
  width: 100%;
}
.join-input:focus {
  outline: none;
  border-bottom-color: var(--bamusi-red);
}
