/* =============================================
   FONT FACE - POLTAB (profil page)
   ============================================= */
@font-face {
  font-family: 'Poltab';
  src: url('Poltab-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Poltab';
  src: url('Poltab-SemiBold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Poltab';
  src: url('Poltab-Bold.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'PoltabBlack';
  src: url('Poltab-Black.ttf') format('truetype');
  font-weight: 900;
}
@font-face {
  font-family: 'RahilaArabic';
  src: url('Rahila Arabic.ttf') format('truetype');
  font-weight: normal;
}

/* =============================================
   HERO
   ============================================= */
.profil-hero {
  width: 100%;
  height: 56vw;
  min-height: 400px;
  max-height: 700px;
  overflow: visible;          /* agar gambar jam bisa keluar ke bawah */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.profil-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Overlay gelap gradient kiri */
.profil-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.60) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 2;
}

/* Teks overlay kiri */
.profil-hero-text {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  max-width: 48%;
  animation: slideInLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profil-hero-text 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.45);
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.profil-hero-text p {
  font-family: 'Poltab', sans-serif;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  color: #f0f0f0;
  line-height: 1.7;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* Watermark Rihla kiri & kanan */
.profil-hero-watermark {
  position: absolute;
  top: 20px;
  font-family: 'RahilaArabic', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: rgba(255,255,255,0.45);
  z-index: 3;
  pointer-events: none;
}

.profil-hero-watermark.left  { left: 5%; }
.profil-hero-watermark.right { right: 5%; }

/* =============================================
   SEJARAH SECTION — 2 kolom: teks kiri, gambar kanan
   ============================================= */
.sejarah-section {
  background-color: #4caf50;
  padding: 48px 0 48px 48px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  align-items: center;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.sejarah-left {
  padding-right: 20px;
}

.sejarah-left h2 {
  font-family: 'PoltabBlack', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fde488;
  margin-bottom: 20px;
}

.sejarah-left p {
  font-family: 'Poltab', sans-serif;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #f5fad1;
  margin-bottom: 16px;
}

.sejarah-left p:last-child {
  margin-bottom: 0;
}

.sejarah-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
}

.sejarah-img {
  display: block;
  width: 100%;             /* lebih lebar dari kolom agar gambar besar */
  height: auto;
  object-fit: contain;
  margin-top: -130px;
  margin-bottom: -48px;       /* turun sedikit dari posisi sebelumnya */
}

/* =============================================
   GALERI SECTION — 4 foto kapsul bawah terpotong
   ============================================= */
.galeri-section {
  background-color: #fde488;
  padding: 40px 48px;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  justify-items: center;
}

.galeri-card {
  width: 100%;
  max-width: 160px;
  height: 220px;
  border-radius: 999px 999px 0 0;   /* kapsul atas bulat, bawah rata/terpotong */
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  position: relative;
  background: #ccc;
}

.galeri-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =============================================
   FOUNDER SECTION
   ============================================= */
.founder-section {
  background-color: #fde488;
  padding: 0 40px 56px;
}

.founder-card {
  background: #8bc34a;
  border-radius: 20px;
  padding: 40px 48px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.founder-photo {
  flex-shrink: 0;
  width: 150px;
  height: 185px;
}

.founder-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  display: block;
}

.founder-info h2 {
  font-family: 'PoltabBlack', sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  color: #fde488;
  margin-bottom: 16px;
  line-height: 1.25;
  white-space: nowrap;
}

.founder-info p {
  font-family: 'Poltab', sans-serif;
  font-size: 0.86rem;
  line-height: 1.8;
  color: #f5fad1;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .sejarah-section {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .sejarah-right {
    justify-content: flex-start;
  }

  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .profil-hero {
    min-height: 260px;
    max-height: 380px;
  }

  .profil-hero-text {
    max-width: 80%;
  }

  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .founder-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
  }

  .founder-info h2 {
    text-align: center;
  }
}
