/* ==============================================
   GLOBAL & UTILITIES (homepage.css)
   ============================================== */

.homepage-container *,
.homepage-container *::before,
.homepage-container *::after {
  box-sizing: border-box;
  font-family: var(--hp-font);
  margin: 0;
  padding: 0;
}

.homepage-container {
  width: 100%;
  overflow-x: hidden;
  color: var(--hp-text-dark);
}

.hp-section {
  padding: 60px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Utility Class untuk Judul Section */
.hp-section-title-card {
  background-color: var(--hp-primary);
  color: var(--hp-white);
  padding: 20px 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(13, 36, 76, 0.1);
}

.hp-section-title-card h2 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--hp-white);
}

/* Utility Class untuk Judul Section V2 (untuk Testimoni/Alumni) */
.hp-section-title-card_v2 {
  background-color: var(--hp-primary); 
  color: var(--hp-white);
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 0;
  margin-bottom: 40px; 
  box-shadow: 0 4px 15px rgba(24, 47, 92, 0.2);
  
  max-width: 100%; 
  margin-left: auto;
  margin-right: auto;
  width: 90%; 
}

.hp-section-title_v2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center; 
  color: white;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .hp-section-title-card_v2 {
    padding: 20px 30px;
  }
  .hp-section-title_v2 {
    font-size: 2.2rem;
  }
}

/* ==============================================
   SECTION HERO (homepage.css)
   ============================================== */
#hp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--hp-white);
  padding-top: 100px; 
  padding-bottom: 60px;
}

.hp-hero-grid {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hp-hero-content {
  text-align: center; 
}

.hp-hero-content h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 800;
  color: var(--hp-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hp-hero-content h2 {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--hp-text-dark);
}

.hp-hero-content h2 a {
  color: var(--hp-primary);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(
    to top,
    var(--hp-btn-color1-hover) 50%,
    transparent 50%
  );
  background-size: 100% 200%;
  background-position: 0 0;
  transition: background-position 0.3s ease-out;
}

.hp-hero-content h2 a:hover {
  background-position: 0 100%;
}

.hp-hero-cta-group {
  display: flex;
  flex-direction: column; 
  gap: 1rem;
  align-items: center;
}

.hp-btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid var(--hp-primary);
  transition: all 0.3s ease-out;
  cursor: pointer;
  width: 100%;
  max-width: 250px; 
}

.hp-btn-primary {
  background-color: var(--hp-btn-color1);
  color: var(--hp-white);
}

.hp-btn-primary:hover {
  background-color: var(--hp-btn-color1-hover);
  border-color: var(--hp-btn-color1-hover);
  color: var(--hp-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 15px rgba(13, 36, 76, 0.2);
}

.hp-btn-secondary {
  background-color: transparent;
  color: var(--hp-btn-color1);
}

.hp-btn-secondary:hover {
  background-color: var(--hp-btn-color2-hover-bg);
  color: var(--hp-btn-color2-hover-text);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 15px rgba(13, 36, 76, 0.2);
}

.hp-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hp-hero-image img {
  width: 80%;
  max-width: 450px;
  height: auto;
  border-radius: 12px;
}

/* Hero - Tablet & Desktop */
@media (min-width: 768px) {
  #hp-hero {
    padding-top: 60px;
  }

  .hp-hero-grid {
    grid-template-columns: 1fr 0.8fr; 
  }

  .hp-hero-content {
    text-align: left; 
  }

  .hp-hero-cta-group {
    flex-direction: row; 
    justify-content: flex-start;
  }

  .hp-btn {
    width: auto; 
  }

  .hp-hero-image img {
    width: 100%;
  }
}

/* ==============================================
   SECTION TENTANG (homepage.css)
   ============================================== */
#hp-tentang {
  background-color: var(--hp-white);
}

.hp-tentang-grid {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 40px;
  align-items: center;
}

.hp-tentang-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hp-tentang-image img {
  width: 80%;
  max-width: 450px;
  height: auto;
  border-radius: 12px;
}

.hp-tentang-content p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hp-tentang-content p:last-child {
  margin-bottom: 0;
}

.hp-tentang-content b {
  color: var(--hp-primary);
  font-weight: 700;
}

/* Tentang - Tablet & Desktop */
@media (min-width: 768px) {
  .hp-tentang-grid {
    grid-template-columns: 0.8fr 1fr; 
  }
  .hp-tentang-image img {
    width: 100%;
  }
}

/* ==============================================
   REVISI: SECTION ALUMNI (homepage.css)
   ============================================== */
.hp-container_v2 { 
  padding: 0 5%; 
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
#hp-alumni-section_v2 {
  background-color: var(--hp-white);
  overflow: hidden; 
}
#hp-alumni-section_v2.hp-alumni-intro_v2 { 
  font-size: 1.1rem; 
  line-height: 1.6; 
  color: var(--testi-primary);
  max-width: 700px; 
  margin: 0 auto 40px auto; 
  text-align: center !important;
}

.hp-alumni-grid_v2 {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 30px;
  max-width: 300px; 
  margin: 40px auto;
  perspective: 2000px;
}

.hp-alumni-card {
  width: 100%;
  aspect-ratio: 1 / 1.4; 
  position: relative;
}

/* Animated Border */
.hp-alumni-card::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  z-index: 1; 
  border-radius: 16px; 

  background: conic-gradient(
    from var(--hp-gradient-angle),
    #ffc107,
    #ffde7a,
    #fff3cd,
    transparent 80%
  );

  animation: hp-rotate-border-property 2s linear infinite;
}

.hp-alumni-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1); 
  z-index: 1; 
}
.hp-alumni-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.hp-alumni-card-front,
.hp-alumni-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  z-index: 2; 
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--hp-white);
}

/* Sisi Depan Kartu (Konten Info) */
.hp-alumni-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #fff 40%, #fffbe6 100%);
}
.hp-alumni-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%; 
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid var(--hp-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
.hp-alumni-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hp-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.hp-alumni-quote {
  font-size: 0.9rem;
  color: var(--hp-text-dark);
  line-height: 1.5;
  margin-bottom: 10px;
  flex-grow: 1;
  min-height: 40px;
}
.hp-alumni-read-more {
  background: none;
  border: none;
  color: var(--hp-primary);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 5px;
  flex-shrink: 0;
}

/* Sisi Belakang Kartu (Logo Baru) */
.hp-alumni-card-back {
  transform: rotateY(180deg);
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hp-alumni-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dots Indicator */
.hp-alumni-dots_v2 {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hp-alumni-dots_v2 span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hp-alumni-dots_v2 span.active {
  background-color: var(--hp-primary);
  transform: scale(1.2);
}

/* Media Queries */
@media (min-width: 600px) {
  .hp-alumni-grid_v2 {
    grid-template-columns: 1fr 1fr;
    max-width: 630px;
  }
}
@media (min-width: 992px) {
  .hp-alumni-grid_v2 {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 100%;
  }
}

/* ==============================================
   SECTION PROGRAM (homepage.css - Swiper Carousel)
   ============================================== */
#hp-program {
  background-color: var(--hp-white);
  padding-bottom: 80px;
}

/* Container utama Swiper */
.hp-program-swiper {
  width: 100%;
  overflow: hidden; 
  padding: 20px 0; 
}

/* Masing-masing slide */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out; 
  opacity: 0.7;
  transform: scale(0.85);
}

/* Style untuk kartu program (tetap sama) */
.hp-program-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  width: 100%; 
  min-height: 350px;
  background-size: cover;
  background-position: center;
  transition: box-shadow 0.4s ease-out; 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hapus hover transform dari kartu, karena dikontrol Swiper */
.hp-program-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.hp-program-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.8) 100%
  );
  transition: background 0.4s ease;
}
.hp-program-card:hover::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 0.9) 100%
  );
}
.hp-program-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  color: var(--hp-white);
  z-index: 1;
}
.hp-program-content h2 {
  font-size: clamp(1.4rem, 4vw, 1.6rem);
  font-weight: 600; 
  line-height: 1.3;
  color: var(--hp-white);
  margin-bottom: 0.5rem;
}
.hp-program-content span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 25px; 

  font-size: 1rem;
  font-weight: 600;
  color: var(--hp-btn-color1-hover); 
  background-color: var(--hp-primary); 

  transition: letter-spacing 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.hp-program-card:hover .hp-program-content span {
  letter-spacing: 0.5px;
  
  color: var(--hp-primary); 
  background-color: var(--hp-btn-color1-hover); 
}

/* Styling Tombol Navigasi Swiper */
.hp-swiper-button-prev,
.hp-swiper-button-next {
  color: var(--hp-primary); 
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.hp-swiper-button-prev::after {
    /* Karakter Unicode untuk panah kiri */
    content: '\2190'; 
    font-size: 20px; 
    font-weight: bold;
}
.hp-swiper-button-next::after {
    /* Karakter Unicode untuk panah kanan */
    content: '\2192'; 
    font-size: 20px; 
    font-weight: bold;
}
.hp-swiper-button-prev:hover,
.hp-swiper-button-next:hover {
  background-color: var(--hp-white);
  transform: scale(1.1);
}

/* --- RESPONSIVE CAROUSEL --- */

/* Mobile (Default): 1 slide, tanpa zoom */
.swiper-slide {
   opacity: 1; 
   transform: scale(1); 
}

/* Tablet ( >= 768px): 3 slides, centered, active zoom */
@media (min-width: 768px) {
  .swiper-slide {
     opacity: 0.7; 
     transform: scale(0.85); 
  }
  /* Slide yang aktif di tengah */
  .swiper-slide.swiper-slide-active {
    opacity: 1;
    transform: scale(1); 
    z-index: 1; 
  }
  .hp-program-swiper {
     padding: 20px 40px; 
  }
}

/* Desktop ( >= 1024px) */
@media (min-width: 1024px) {
     .hp-program-swiper {
       padding: 20px 60px;
    }
}

/* ==============================================
   REVISI: SECTION KENAPA (homepage.css - Menggunakan Inline SVG)
   ============================================== */
#hp-kenapa {
  background-color: var(--hp-white);
  text-align: center;
}

#hp-kenapa h2 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--hp-primary);
  margin-bottom: 40px;
}

.hp-kenapa-grid {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 20px;
}

.hp-kenapa-card {
  background-color: var(--hp-secondary-card);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.hp-kenapa-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.hp-kenapa-card .hp-kenapa-icon {
  color: var(--hp-primary);
  margin-bottom: 1rem;
  stroke: var(--hp-primary); 
  fill: none; 
}

.hp-kenapa-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hp-primary);
  margin-bottom: 0.5rem;
}

.hp-kenapa-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.hp-kenapa-bingung {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 1rem;
  color: var(--hp-primary);
}

.hp-kenapa-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--hp-green-wa);
  color: var(--hp-white);
  padding: 14px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.hp-kenapa-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.hp-kenapa-cta .hp-whatsapp-icon {
  vertical-align: middle; 
}

/* Kenapa - Tablet */
@media (min-width: 600px) {
  .hp-kenapa-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
}

/* Kenapa - Desktop */
@media (min-width: 992px) {
  .hp-kenapa-grid {
    grid-template-columns: repeat(5, 1fr); 
  }
}

/* --- Revisi Animasi Card 'Kenapa' (Mobile Marquee CSS) --- */

/* Terapkan HANYA di mobile (di bawah 600px) */
@media (max-width: 599px) {
  
  #hp-kenapa .hp-kenapa-grid {
    display: block; 
    overflow: hidden; 
    padding-bottom: 20px; 
    max-width: 90%; 
    margin-left: auto;
    margin-right: auto;
  }

  /* Ini adalah 'track' yang akan kita animasikan. */
  #hp-kenapa .hp-kenapa-grid.hp-kenapa-track-active {
    display: flex; 
    width: calc(100% * 10); 

    /* Jalankan animasi (Keyframe ada di style.css global) */
    animation: hp-kenapa-scroll 20s linear infinite;
    will-change: transform;
    
    max-width: none;
    margin: 0;
  }

  /* Atur setiap card di dalam track */
  #hp-kenapa .hp-kenapa-grid.hp-kenapa-track-active .hp-kenapa-card {
    width: 100%; 
    flex-shrink: 0; 
    padding: 0 10px; 
    
    transform: none;
    opacity: 1;
    animation: none;
  }
}

/* ==============================================
   SECTION TUTOR (STYLE FLIP 3D)
   ============================================== */

#hp-tutor {
  background-color: var(--hp-white);
  overflow: hidden;
}

.hp-tutor-grid-container {
  position: relative;
}

.hp-tutor-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 kolom */
  gap: 30px;
  max-width: 300px; /* Batasi lebar di mobile */
  margin: 0 auto;
  perspective: 2000px;
}

.hp-tutor-card {
  width: 100%;
  aspect-ratio: 1 / 1.4; /* Samakan rasio dengan alumni */
  position: relative;
}

/* Menggunakan style border gradien dari alumni */
.hp-tutor-card::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  z-index: 1;
  border-radius: 16px;
  background: conic-gradient(
    from var(--hp-gradient-angle),
    #ffc107,
    #ffde7a,
    #fff3cd,
    transparent 80%
  );
  animation: hp-rotate-border-property 2s linear infinite;
}

/* Kontainer 3D flip */
.hp-tutor-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.hp-tutor-card-inner.is-flipped {
  transform: rotateY(180deg);
}

/* Sisi Depan dan Belakang Card */
.hp-tutor-card-front,
.hp-tutor-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  z-index: 2;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--hp-white);
}

.hp-tutor-card-back {
  transform: rotateY(180deg);
}

/* Styling untuk gambar di dalam card */
.hp-tutor-card-front img,
.hp-tutor-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dots Indicator */
.hp-tutor-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hp-tutor-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hp-tutor-dots span.active {
  background-color: var(--hp-primary);
  transform: scale(1.2);
}

/* Media Queries untuk 3 card */
@media (min-width: 600px) {
  .hp-tutor-grid {
    grid-template-columns: 1fr 1fr 1fr; 
    max-width: 100%; 
  }
}