/* =============================================
   FONT FACE - POLTAB
   ============================================= */
@font-face {
  font-family: 'Poltab';
  src: url('Poltab-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Poltab';
  src: url('Poltab-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Poltab';
  src: url('Poltab-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Poltab';
  src: url('Poltab-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Poltab';
  src: url('Poltab-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'PoltabBlack';
  src: url('Poltab-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

/* =============================================
   FONT FACE - RAHILA ARABIC
   ============================================= */
@font-face {
  font-family: 'RahilaArabic';
  src: url('Rahila-Arabic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* =============================================
   GLOBAL RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poltab', sans-serif;
  background-color: #fde488;
  color: #222;
  overflow-x: hidden;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 76px;
  background-color: #fde488;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  height: 100%;
}

.logo-img {
  height: 64px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
  max-height: 64px;
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

.navbar nav ul li a {
  text-decoration: none;
  color: #2e7d32;
  font-family: 'PoltabBlack', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  transition: opacity 0.2s;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active {
  opacity: 0.75;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 2px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 420px;
  background: linear-gradient(180deg, #87ceeb 0%, #b0e0ff 40%, #d4f1c0 70%, #c8b560 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* --- Sky & Ground --- */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(180deg, #c8b560 0%, #a08030 100%);
  border-radius: 60% 60% 0 0 / 30% 30% 0 0;
}

/* ---- Hero BG container ---- */
.hero-bg {
  position: absolute;
  inset: 0;
}

/* ---- PYRAMID ---- */
.landmark.pyramid {
  position: absolute;
  bottom: 70px;
  left: 8%;
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 120px solid #c8a040;
  filter: drop-shadow(4px 4px 6px rgba(0,0,0,0.3));
}

.landmark.pyramid::after {
  content: '';
  position: absolute;
  top: 60px;
  left: -30px;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 50px solid #b8902a;
}

/* ---- MOSQUE (Blue Mosque style) ---- */
.landmark.mosque {
  position: absolute;
  bottom: 70px;
  right: 6%;
  width: 160px;
  height: 130px;
}

.landmark.mosque::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  width: 120px;
  height: 80px;
  background: #5b8cba;
  border-radius: 4px;
}

.landmark.mosque::after {
  content: '';
  position: absolute;
  bottom: 76px;
  left: 50px;
  width: 60px;
  height: 60px;
  background: #4a7aaa;
  border-radius: 50% 50% 0 0;
}

/* ---- PAGODA ---- */
.landmark.pagoda {
  position: absolute;
  bottom: 72px;
  left: 22%;
  width: 60px;
  height: 120px;
}

.landmark.pagoda::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 40px;
  height: 90px;
  background: #c0392b;
}

.landmark.pagoda::after {
  content: '';
  position: absolute;
  bottom: 88px;
  left: 0;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 40px solid #922b21;
}

/* ---- Sphere / calligraphy globe ---- */
.landmark.sphere {
  position: absolute;
  bottom: 80px;
  left: 38%;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 35% 35%, #e0d0a0, #a08030);
  border-radius: 50%;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
}

.landmark.sphere::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 10px;
  width: 50px;
  height: 40px;
  border: 3px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  transform: rotate(-20deg);
}

/* ---- Hot Air Balloons ---- */
.balloon {
  position: absolute;
  width: 32px;
  height: 38px;
  border-radius: 50% 50% 40% 40%;
  top: 30px;
}

.balloon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 10px;
  background: #8B6914;
  border-radius: 0 0 4px 4px;
}

.balloon.b1 { left: 18%; background: linear-gradient(180deg, #e74c3c, #f39c12); top: 20px; }
.balloon.b2 { left: 30%; background: linear-gradient(180deg, #9b59b6, #3498db); top: 50px; width: 24px; height: 28px; }
.balloon.b3 { left: 40%; background: linear-gradient(180deg, #27ae60, #f1c40f); top: 15px; width: 28px; height: 34px; }

/* ---- Clouds ---- */
.cloud {
  position: absolute;
  background: rgba(255,255,255,0.85);
  border-radius: 50px;
  top: 35px;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
}

.cloud.c1 {
  width: 100px;
  height: 30px;
  right: 25%;
  top: 28px;
}

.cloud.c1::before {
  width: 50px;
  height: 50px;
  top: -20px;
  left: 15px;
}

.cloud.c1::after {
  width: 38px;
  height: 38px;
  top: -14px;
  left: 42px;
}

.cloud.c2 {
  width: 70px;
  height: 22px;
  right: 40%;
  top: 60px;
}

.cloud.c2::before {
  width: 36px;
  height: 36px;
  top: -16px;
  left: 10px;
}

/* ---- Hero People ---- */
.hero-people {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.person {
  position: relative;
  border-radius: 50% 50% 0 0;
}

/* Person 1 - female in ihram/hijab */
.person.p1 {
  width: 70px;
  height: 130px;
  background: linear-gradient(180deg, #f0e8d8 0% 25%, #ffffff 25% 100%);
  border-radius: 35px 35px 8px 8px;
}

.person.p1::before {
  /* head */
  content: '';
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: #f0e0c0;
  border-radius: 50%;
}

.person.p1::after {
  /* hijab */
  content: '';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 42px;
  background: #ffffff;
  border-radius: 50% 50% 0 0;
}

/* Person 2 - male in ihram */
.person.p2 {
  width: 75px;
  height: 145px;
  background: linear-gradient(180deg, #f0e8d8 0% 20%, #ffffff 20% 100%);
  border-radius: 38px 38px 8px 8px;
}

.person.p2::before {
  /* head */
  content: '';
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  background: #e8cfa0;
  border-radius: 50%;
}

.person.p2::after {
  /* ihram head wrap */
  content: '';
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 20px;
  background: #fffde7;
  border-radius: 50% 50% 0 0;
}

/* luggage */
.hero-people::after {
  content: '';
  display: block;
  position: absolute;
  right: -30px;
  bottom: 0;
  width: 28px;
  height: 38px;
  background: #e74c3c;
  border-radius: 4px;
  border: 3px solid #c0392b;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  background-color: #fde488;
  padding: 32px 0 0;
}

/* ---- Gallery cards — single wide card ---- */
.about-gallery {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

/* Judul section galeri */
.about-gallery-title {
  font-family: 'PoltabBlack', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  color: #2e7d32;
  margin-bottom: 10px;
  text-align: left;
  padding: 0 48px;
}

.about-gallery-sub {
  font-family: 'Poltab', sans-serif;
  font-size: 1rem;
  color: #2e7d32;
  margin-bottom: 16px;
  padding: 0 48px;
}

.gallery-card {
  width: 100%;
  height: 70vw;
  min-height: 500px;
  max-height: 900px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  position: relative;
  background: transparent;
}

.gallery-slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
  z-index: 2;
}

/* ---- Visi Misi ---- */
.visi-misi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 32px 48px 48px;
}

.visi-box h2 {
  font-family: 'PoltabBlack', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: #2e7d32;
  margin-bottom: 16px;
  text-align: left;
}

.misi-box h2 {
  font-family: 'PoltabBlack', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: #2e7d32;
  margin-bottom: 16px;
  text-align: left;
}

.visi-box p {
  font-family: 'Poltab', sans-serif;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #2e7d32;
  text-align: left;
}

.misi-box p {
  font-family: 'Poltab', sans-serif;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #2e7d32;
  text-align: justify;
}

/* =============================================
   KELEBIHAN KAMI SECTION
   ============================================= */
.kelebihan-section {
  background-color: #fde488;
  padding: 56px 48px;
}

.kelebihan-header {
  text-align: center;
  margin-bottom: 48px;
}

.kelebihan-header h2 {
  font-family: 'PoltabBlack', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #2e7d32;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.kelebihan-header p {
  font-family: 'Poltab', sans-serif;
  font-size: 1rem;
  color: #2e7d32;
}

.kelebihan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 72px;
  max-width: 1100px;
  margin: 0 auto;
}

.kelebihan-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.kelebihan-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-top: 2px;
}

.kelebihan-icon svg {
  width: 100%;
  height: 100%;
}

.kelebihan-text h3 {
  font-family: 'PoltabBlack', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: #2e7d32;
  margin-bottom: 8px;
}

.kelebihan-text p {
  font-family: 'Poltab', sans-serif;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #2e7d32;
}

/* =============================================
   KEUNGGULAN SECTION (lama — dipertahankan untuk kompatibilitas)
   ============================================= */
.keunggulan {
  background-color: #fde488;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 10%;
}

.keunggulan-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 560px;
}

.keunggulan-img {
  width: 100%;
  height: auto;
  display: block;
}

.keunggulan-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 125%;
  margin-top: 12px;
}

.keunggulan-labels span {
  font-family: 'PoltabBlack', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: #2e7d32;
  text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: #76c352;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 20px 60px;
}

.footer-content p {
  font-family: 'Poltab', sans-serif;
  font-size: 1.1rem;
  color: #f5fad1;
  line-height: 1.9;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    height: auto;
    min-height: 70px;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo-img {
    height: 56px !important;
    max-height: 56px;
  }

  .navbar nav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-slot {
    min-height: 240px;
    max-height: 340px;
  }

  .about {
    padding: 32px 20px 0;
  }

  .about-gallery {
    flex-direction: column;
    align-items: center;
  }

  .visi-misi {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .keunggulan {
    flex-direction: column;
    padding: 32px 20px;
    gap: 32px;
  }

  .k-divider {
    width: 100px;
    height: 1px;
  }

  .footer {
    padding: 20px;
  }
}

/* =============================================
   HERO SLOT (image placeholder - index)
   ============================================= */
.hero-slot {
  position: relative;
  width: 100%;
  height: 56vw;
  min-height: 400px;
  max-height: 700px;
  background: #c8e6c9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 2;
}

/* Overlay gelap semi-transparan di atas gambar hero */
.hero-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* =============================================
   HERO TEXT SLIDE-IN ANIMATION
   ============================================= */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px) translateY(-50%);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px) translateY(-50%);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
  }
}

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

/* Beranda hero teks — container slide, anak fade */
.hero-text-overlay {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  max-width: 45%;
  animation: slideInLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-text-overlay h1 {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-text-overlay p {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.hero-text-overlay h1 {
  font-family: 'RahilaArabic', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero-text-overlay p {
  font-family: 'Poltab', sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  color: #f0f0f0;
  line-height: 1.65;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-slot-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #2e7d32;
  text-align: center;
  padding: 20px;
  font-family: 'Poltab', sans-serif;
}

.hero-slot-placeholder span {
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-slot-placeholder small {
  font-size: 0.78rem;
  opacity: 0.7;
}

.hero-slot-placeholder code {
  background: rgba(0,0,0,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* =============================================
   GALLERY SLOT (image placeholder - index)
   ============================================= */
/* Removed duplicate .gallery-card rule that was overriding the correct size above */



/* =============================================
   REAL IMAGE OVERRIDES (index.html)
   ============================================= */
.hero-real {
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.hero-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
