/* ===== VARIABEL ===== */
:root {
  --primary: #0077b6;
  --accent: #00b4d8;
  --yellow: #ffdd00;
  --dark: #1d1d1d;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --font-main: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--light);
  color: var(--dark);
  scroll-behavior: smooth;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary);
  gap: 0.5rem;
}

.logo span {
  color: var(--accent);
}

/* Logo image in navbar */
.navbar-logo {
  max-width: 80px;
  height: auto;
  margin-right: 5px;
  margin-left: -40px;
  display: inline-block;
  vertical-align: middle;
}

/* Tombol hamburger (hidden by default) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--dark);
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ===== HERO ===== */
.hero-edubia {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  color: white;
  padding: 120px 20px 100px;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1 1 500px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero-text h1 span {
  color: var(--yellow);
}

.hero-text p {
  font-size: 1.2rem;
  color: #f1f1f1;
  line-height: 1.8;
  max-width: 520px;
  text-align: justify; /* ✅ Tambahan untuk rata kanan-kiri */
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-buttons .btn {
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 40px;
}

/* Visual */
.hero-visual {
  flex: 1 1 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

/* Mobile only image */
.hero-inline-image {
  max-width: 280px;
  margin: 1.5rem auto;
  display: none;
  animation: float 6s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Decorative background elements */
.hero-edubia::before,
.hero-edubia::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.hero-edubia::before {
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-edubia::after {
  bottom: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.06);
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

.btn-filled {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-filled:hover {
  background: #ffe600;
}

/* ===== CARD / STAT / PROGRAM ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card, .stat-box {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 1.8rem;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover, .stat-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}

.card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.6;
}

.stat-box h3 {
  font-size: 3rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-box p {
  font-size: 1.1rem;
  color: var(--gray);
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  padding-inline: 1rem;
}

.program-card {
  padding: 3rem 2rem;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff, #f0f6ff);
  box-shadow: 0 20px 56px rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  border: 1px solid #dee7f8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}

.program-card::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: rgba(0, 140, 255, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.program-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 28px 72px rgba(0,0,0,0.12);
}

.program-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.program-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
  position: relative;
  z-index: 1;
}

.program-card ul li {
  margin-bottom: 1rem;
  padding-left: 1.8rem;
  position: relative;
  color: var(--dark);
  font-size: 1.05rem;
}

.program-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: bold;
}

.program-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.beginner .program-badge { background: #00cec9; }
.intermediate .program-badge { background: #0984e3; }
.advanced .program-badge { background: #d63031; }

/* Profil Pelatih Section */
.profil-pelatih {
  background-color: #f8f8f8;
  padding: 60px 20px;
}

.profil-cards {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.profil-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  transition: transform 0.3s ease;
}

.profil-card:hover {
  transform: translateY(-10px);
}

.profil-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.profil-info {
  padding: 20px;
  text-align: center;
}

.profil-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.profil-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.profil-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.profil-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ddd;
  color: #333;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  background-color: var(--accent);
  color: #fff;
}

/* ===== Jadwal & Harga Paket (Premium Style) ===== */
.jadwal-section {
  background-color: #f8f9fa;
  padding: 100px 0;
  text-align: center;
}

.paket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

/* Paket Card */
.paket-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border-top: 6px solid var(--accent);
  overflow: hidden;
}

.paket-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Badge Label */
.paket-card::before {
  content: attr(data-badge);
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Header Harga */
.paket-header h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.paket-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.paket-note {
  font-size: 0.85rem;
  color: #888;
}

/* Info List */
.paket-info {
  list-style: none;
  margin: 1.6rem 0 1.8rem;
  padding: 0;
  font-size: 1rem;
  text-align: left;
  line-height: 1.7;
  color: var(--dark);
}

.paket-info li {
  margin-bottom: 0.7rem;
  padding-left: 1.8rem;
  position: relative;
}

.paket-info li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: bold;
}

/* Button */
.paket-card .btn {
  padding: 1rem 2.2rem;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(to right, var(--yellow), #fff685);
  color: var(--dark);
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.paket-card .btn:hover {
  background: #ffe600;
  transform: translateY(-2px);
}

/* ===== Testimoni Section ===== */
.testimoni-section {
  background-color: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
}

.testimoni-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 2rem;
}

.testimoni-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimoni-text {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimoni-author {
  font-weight: bold;
  color: #444;
}

.testimoni-button {
  margin-top: 2rem;
}

.testimoni-button .btn {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

/* ===== Testimoni Auto Slider ===== */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 2rem;
}

.testimonial-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  animation: scrollTestimonials 35s linear infinite;
}

.testimonial-slider:hover .testimonial-track {
  animation-play-state: paused;
}

.testimonial-slide {
  flex: 0 0 340px;
  max-width: 340px;
}

.testimonial-slide .testimoni-card {
  height: 100%;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@keyframes scrollTestimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

  .testimonial-slide {
    flex: 0 0 280px;
    max-width: 280px;
  }

  .testimonial-track {
    gap: 1rem;
    animation-duration: 25s;
  }

  .testimonial-slide .testimoni-card {
    min-height: 240px;
  }

/* ===== Modal for Adding Testimoni ===== */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
}

.modal input,
.modal textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.modal button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal button:hover {
  background-color: #0056b3;
}

/* Rating stars styling */
.rating {
  display: flex;
  gap: 5px;
}

.rating .star {
  font-size: 1.5rem;
  color: #ccc; /* default color */
  cursor: pointer;
}

.rating .star.active {
  color: #ffcc00; /* color for active stars */
}

/* ===== FAQ ===== */
.faq-box {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f5faff);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.05);
}

.faq-item {
  border-radius: 16px;
  background: #ffffff;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.4s ease;
  border-left: 4px solid transparent;
}

.faq-item.open {
  border-left-color: var(--primary);
  background: #fdfdff;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1.5rem 2rem;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #f0f6ff;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--accent);
  font-size: 1rem;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 2rem 1.5rem;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  background: #fbfbfc;
  border-top: 1px solid #eaeaea;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CTA ===== */
.cta-block {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  text-align: center;
  color: white;
  padding: 100px 30px 80px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.05);
}

.cta-block::before {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.cta-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  display: inline-block;
  animation: float 6s ease-in-out infinite;
}

.cta-block h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 auto 0.8rem;
  max-width: 640px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.cta-block p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: #f0f0f0;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  z-index: 1;
  position: relative;
}

.cta-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.cta-buttons .btn {
  padding: 1rem 2.4rem;
  font-size: 1.1rem;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.cta-buttons .btn-filled {
  background: var(--yellow);
  color: var(--dark);
}

.cta-buttons .btn-filled:hover {
  background: #ffe600;
  transform: translateY(-3px);
}

/* Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: white;
  padding: 80px 20px 40px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
  padding: 0 2rem;
}

/* === Footer Columns === */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* === Brand === */
.footer-logo {
  width: 65px;
  margin-bottom: 0.6rem;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(1.1);
}

.footer-logo:hover {
  transform: scale(1.08);
  filter: brightness(1.3);
}

.footer-brand {
  text-align: left;
}

.footer-brand h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.footer-brand p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.7;
  max-width: 460px;
}

/* === Sosial Media === */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent);
  color: var(--dark);
}

/* === Links === */
.footer-links {
  text-align: center;
  justify-self: center;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #ccc;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* === Contact === */
.footer-contact {
  text-align: right;
  justify-self: end;
}

.footer-contact ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-contact li {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-word;
}

.footer-contact i {
  color: var(--accent);
  font-size: 1rem;
}

.footer-contact a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: white;
}

/* === Copyright === */
.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fade-in Animation */
.fade-in {
  animation: fadeInUp 1s ease-in-out both;
}

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

/* ===== ANIMASI ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* WhatsApp Button Styling */
.btn-whatsapp {
  background-color: #25D366; /* WhatsApp green */
  color: white;
  border-radius: 50%;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px; /* Ensures the button is circular */
  height: 50px; /* Ensures the button is circular */
  z-index: 9999; /* Ensures the button stays on top of all content */
}

.btn-whatsapp i {
  font-size: 1.8rem; /* Icon size */
}

/* Hover effect for WhatsApp button */
.btn-whatsapp:hover {
  transform: scale(1.1); /* Slight zoom effect on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* ===== DAFTAR ===== */
.daftar-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 600px;
  margin: 3rem auto;
  padding: 2.5rem;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.daftar-form label {
  font-weight: 600;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  gap: 0.4rem;
}

.daftar-form input,
.daftar-form select,
.daftar-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: #fafafa;
  transition: all 0.25s ease;
}

.daftar-form input:focus,
.daftar-form select:focus,
.daftar-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
  background-color: #fff;
  outline: none;
}

.daftar-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Tombol aksi */
.daftar-form .btn {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: 40px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Tombol submit */
.daftar-form .btn-filled {
  background-color: var(--yellow);
  color: var(--dark);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.daftar-form .btn-filled:hover {
  background-color: #ffe600;
  transform: translateY(-2px);
}

/* Tombol kembali */
.daftar-form .btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
  margin-top: 1rem;
}

.daftar-form .btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Tata letak tombol */
.daftar-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.form-section {
  padding: 100px 0 80px;
  min-height: 70vh;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 20;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark);
    cursor: pointer;
    margin-left: auto;
  }

  nav {
    width: 100%;
    position: relative;
  }

  .nav-links {
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    animation: fadeSlideDown 0.3s ease forwards;
    z-index: 10;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 0.6rem 0;
    text-align: center;
  }

  .nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    transition: color 0.3s ease;
  }

  .nav-links a:hover {
    color: var(--accent);
  }

  @keyframes fadeSlideDown {
    0% {
      opacity: 0;
      transform: translateY(-10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Hero Section */
  .hero-edubia {
    padding: 80px 20px 100px;
    text-align: center;
  }

  .hero-container {
    flex-direction: column;
    gap: 2.5rem;
  }

  .hero-text {
    width: 100%;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.4;
  }

  .hero-text p {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
    padding: 0 1rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-inline-image {
    display: block;
    max-width: 100%;
    height: auto;
  }

  /* Grid sections */
  .card-grid,
  .footer-container,
  .program-grid {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* CTA */
  .cta-block {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 80px 20px 60px;
    text-align: center;
  }

  .cta-block h2 {
    font-size: 1.6rem;
    padding: 0 1rem;
    line-height: 1.4;
  }

  .cta-block p {
    font-size: 1rem;
    color: #f3f3f3;
    padding: 0 1rem;
    max-width: 480px;
    margin: 1rem auto 2rem;
    line-height: 1.6;
  }

  .cta-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    font-size: 1.05rem;
    padding: 1rem 1.8rem;
    text-align: center;
    border-radius: 40px;
  }

  /* FAQ & Program */
  .faq-box,
  .program-cards {
    padding: 0 1rem;
  }

  /* Footer (Final Structure) */
  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    padding: 2rem 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .footer-col {
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  /* Rata tengah brand dan konten lainnya */
  .footer-brand {
    text-align: center;
  }

  .footer-logo {
    max-width: 80px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
  }

  .footer-brand h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center; /* pastikan h3 juga rata tengah */
  }

  .footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin: 0 auto;
    max-width: 480px;
    text-align: center;
  }

  /* Heading Section */
  .footer-links h4,
  .footer-contact h4 {
    font-size: 1.05rem;
    color: var(--yellow);
    margin-bottom: 0.8rem;
    text-align: center; /* fix untuk pastikan <h4> rata tengah */
  }

  /* UL container */
  .footer-links ul,
  .footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
  }

  /* Items */
  .footer-links li,
  .footer-contact li {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    line-height: 1.6;
    text-align: center;
  }

  /* Alamat baris terakhir block */
  .footer-contact li:last-child {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
  }

  /* Anchor */
  .footer-links a,
  .footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-links a:hover,
  .footer-contact a:hover {
    color: white;
  }

  /* Icon di kontak */
  .footer-contact i {
    color: var(--accent);
    font-size: 1rem;
    margin-right: 0.3rem;
  }

  /* Social Media */
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
  }

  .social-icons a {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .social-icons a:hover {
    background-color: var(--accent);
    color: var(--dark);
  }

  /* Responsive Footer Logo */
  .footer-logo {
    max-width: 80px;
    height: auto;
    margin: 0 auto 0.8rem;
    display: block;
  }

  /* Responsive Navbar Logo */
  .navbar-logo {
    max-width: 60px;
    height: auto;
    margin-left: -10px;
    margin-right: 5px;
    transition: all 0.3s ease;
  }

  .logo {
    font-size: 1.3rem;
    gap: 0.4rem;
  }

  /* WhatsApp Floating Button */
  .btn-whatsapp {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background-color: #25d366;
    color: white;
    font-size: 1.6rem;
    padding: 12px;
    border-radius: 50%;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-whatsapp:hover {
    background-color: #1ebd5a;
    transform: scale(1.05);
  }
}

/* Responsive khusus WhatsApp < 767px */
@media (max-width: 767px) {
  .btn-whatsapp {
    width: 45px;
    height: 45px;
    padding: 8px;
  }

  .btn-whatsapp i {
    font-size: 1.5rem;
  }
}

/* =========================
   PREMIUM PUBLIC UI UPGRADE
========================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(0, 180, 216, 0.08), transparent 25%),
    linear-gradient(180deg, #f8fbff 0%, #f4f8fc 100%);
}

::selection {
  background: rgba(0, 180, 216, 0.25);
  color: #0f172a;
}

/* ===== Navbar Premium ===== */
.navbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.35s ease;
}

.navbar.scrolled {
  padding: 0.8rem 0;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.logo {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links a {
  position: relative;
  font-weight: 600;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== Hero Premium ===== */
.hero-edubia {
  padding: 140px 20px 110px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 18%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.08), transparent 18%),
    linear-gradient(135deg, #11b9dc 0%, #009cd0 45%, #0077b6 100%);
  box-shadow: inset 0 -18px 45px rgba(0, 0, 0, 0.04);
}

.hero-edubia::before {
  width: 260px;
  height: 260px;
  top: -70px;
  left: -70px;
  background: rgba(255, 255, 255, 0.08);
  animation: blobDrift 14s ease-in-out infinite;
}

.hero-edubia::after {
  width: 340px;
  height: 340px;
  bottom: -90px;
  right: -90px;
  background: rgba(255, 255, 255, 0.06);
  animation: blobDrift 16s ease-in-out infinite reverse;
}

@keyframes blobDrift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -14px) scale(1.05);
  }
}

.hero-container {
  gap: 4rem;
}

.hero-text h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.4rem;
  max-width: 10ch;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.hero-text h1 span {
  color: var(--yellow);
}

.hero-text p {
  font-size: 1.15rem;
  max-width: 610px;
  color: rgba(255,255,255,0.92);
  text-align: left;
}

.hero-visual {
  transition: transform 0.25s linear;
  will-change: transform;
}

.hero-image {
  max-width: 92%;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.16));
}

/* ===== Buttons Premium ===== */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 100px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.7s ease;
}

.btn:hover::after {
  left: 140%;
}

.btn-filled {
  background: linear-gradient(135deg, #ffe100, #ffd000);
  box-shadow: 0 18px 30px rgba(255, 221, 0, 0.28);
}

.btn-filled:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border-radius: 16px;
}

/* ===== Section polish ===== */
.section {
  position: relative;
}

.section-title {
  position: relative;
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  margin: 14px auto 0;
}

.section-subtitle {
  font-size: 1.05rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Cards Premium ===== */
.card,
.stat-box,
.program-card,
.profil-card,
.paket-card,
.testimoni-card,
.faq-box,
.faq-item {
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.card,
.stat-box,
.profil-card,
.testimoni-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.card:hover,
.stat-box:hover,
.profil-card:hover,
.testimoni-card:hover,
.paket-card:hover,
.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.10);
}

/* ===== Stats ===== */
.stat-box {
  border-radius: 28px;
}

.stat-box h3 {
  font-size: clamp(2.8rem, 5vw, 4rem);
}

/* ===== Program ===== */
.program-card {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,248,255,0.98));
}

.program-card h3 {
  margin-top: 2rem;
}

/* ===== Profil Pelatih ===== */
.profil-card {
  border-radius: 24px;
  overflow: hidden;
}

.profil-image {
  overflow: hidden;
}

.profil-image img {
  transition: transform 0.55s ease;
}

.profil-card:hover .profil-image img {
  transform: scale(1.07);
}

.social-link {
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

/* ===== Paket ===== */
.paket-card {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,251,255,0.97));
}

/* ===== Testimoni ===== */
.testimoni-card {
  border-radius: 24px;
  padding: 1.7rem;
}

.testimoni-text {
  font-size: 1.05rem;
  line-height: 1.8;
}

.testimoni-author {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.testimoni-rating {
  color: #111827;
  font-weight: 600;
}

/* ===== FAQ ===== */
.faq-box {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,255,0.96));
}

.faq-item {
  border-radius: 18px;
}

.faq-question {
  font-size: 1.08rem;
}

/* ===== CTA Premium ===== */
.cta-block {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.1), transparent 18%),
    linear-gradient(135deg, #11b9dc 0%, #009cd0 45%, #0077b6 100%);
  box-shadow: 0 -10px 38px rgba(15, 23, 42, 0.05);
}

.cta-block h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

/* ===== Footer Premium ===== */
.footer {
  background:
    linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.footer-logo {
  background: rgba(255,255,255,0.08);
  padding: 10px;
  border-radius: 18px;
}

/* ===== Scroll reveal upgrade ===== */
.fade-in {
  opacity: 0;
  transform: translateY(38px) scale(0.98);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    filter 0.9s ease;
  filter: blur(6px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ===== Floating whatsapp ===== */
.btn-whatsapp {
  box-shadow: 0 16px 28px rgba(37, 211, 102, 0.28);
}

/* ===== Premium responsive ===== */
@media (max-width: 768px) {
  .hero-edubia {
    padding: 105px 20px 90px;
  }

  .hero-text h1 {
    max-width: 100%;
    text-align: center;
  }

  .hero-text p {
    text-align: center;
    padding: 0;
  }

  .section-title::after {
    width: 56px;
  }

  .card,
  .stat-box,
  .program-card,
  .profil-card,
  .paket-card,
  .testimoni-card {
    border-radius: 22px;
  }
}

/* ===== Reduce motion accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ===== Premium Testimonial Slider ===== */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.testimonial-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  animation: scrollTestimonials 34s linear infinite;
}

.testimonial-slider:hover .testimonial-track {
  animation-play-state: paused;
}

.testimonial-slide {
  flex: 0 0 340px;
  max-width: 340px;
}

.testimonial-slide .testimoni-card {
  height: 100%;
  min-height: 270px;
}

@keyframes scrollTestimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .testimonial-slide {
    flex: 0 0 280px;
    max-width: 280px;
  }

  .testimonial-track {
    gap: 1rem;
    animation-duration: 24s;
  }

  .testimonial-slide .testimoni-card {
    min-height: 240px;
  }
}

/* =========================
   PELATIH & FAQ PREMIUM
========================= */

.section-heading-premium {
  text-align: center;
  margin-bottom: 3rem;
}

.section-kicker {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(0, 180, 216, 0.10);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

/* ===== Pelatih Premium ===== */
.coach-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
}

.coach-card-premium {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.coach-card-premium:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.13);
}

.coach-image-wrap {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.coach-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.coach-card-premium:hover .coach-image-wrap img {
  transform: scale(1.08);
}

.coach-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.02));
}

.coach-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.coach-content {
  padding: 1.5rem 1.4rem 1.4rem;
}

.coach-name-area {
  margin-bottom: 0.9rem;
}

.coach-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.coach-role {
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

.coach-description {
  color: #52606d;
  line-height: 1.75;
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

.coach-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.coach-socials-premium {
  display: flex;
  gap: 0.7rem;
}

.coach-social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f8fc;
  color: var(--primary);
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  transition: all 0.25s ease;
}

.coach-social-link:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  transform: translateY(-2px);
}

.coach-status-chip {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.8rem;
  font-weight: 700;
}

.coach-empty-state {
  text-align: center;
  padding: 2rem;
  border-radius: 22px;
  background: #fff;
  color: var(--gray);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

/* ===== FAQ Premium ===== */
.faq-premium-section {
  position: relative;
}

.faq-premium-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}

.faq-item-premium {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.faq-item-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

.faq-item-premium.open {
  border-color: rgba(0, 180, 216, 0.20);
  box-shadow: 0 22px 44px rgba(0, 180, 216, 0.10);
}

.faq-question-premium {
  padding: 1.25rem 1.4rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.faq-number {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,180,216,0.12), rgba(0,119,182,0.12));
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
}

.faq-question-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
}

.faq-icon-wrap {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f9fc;
  color: var(--accent);
  transition: all 0.25s ease;
}

.faq-question.active .faq-icon-wrap {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
}

.faq-answer-premium {
  padding: 0 1.4rem 1.35rem 5.45rem;
  color: #5f6c78;
  line-height: 1.8;
  font-size: 0.98rem;
  background: transparent;
  border-top: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .coach-grid-premium {
    gap: 1.4rem;
  }

  .coach-image-wrap {
    height: 260px;
  }

  .coach-content {
    padding: 1.2rem;
  }

  .faq-question-left {
    align-items: flex-start;
  }

  .faq-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.85rem;
  }

  .faq-question-text {
    font-size: 0.98rem;
  }

  .faq-answer-premium {
    padding: 0 1.2rem 1.2rem 1.2rem;
  }
}

/* =========================
   DAFTAR PAGE PREMIUM
========================= */

.daftar-premium-section {
  padding: 130px 0 90px;
  background:
    radial-gradient(circle at top left, rgba(0, 180, 216, 0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(0, 119, 182, 0.06), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
}

.daftar-premium-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.daftar-premium-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 800;
}

.daftar-premium-subtitle {
  font-size: 1.08rem;
  color: var(--gray);
  line-height: 1.8;
  margin: 0 auto;
  max-width: 700px;
}

.daftar-alert {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.daftar-alert i {
  font-size: 1.2rem;
  margin-top: 2px;
}

.daftar-alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.daftar-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.daftar-premium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.daftar-form-card,
.daftar-info-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.daftar-form-card {
  padding: 2rem;
}

.daftar-form-card-head {
  margin-bottom: 1.5rem;
}

.daftar-form-card-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 800;
}

.daftar-form-card-head p {
  margin: 0;
  color: var(--gray);
  line-height: 1.7;
}

.daftar-premium-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.daftar-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.daftar-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.daftar-field span {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.daftar-field input,
.daftar-field select,
.daftar-field textarea {
  width: 100%;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #fbfdff;
  color: #0f172a;
  transition: all 0.25s ease;
}

.daftar-field input:focus,
.daftar-field select:focus,
.daftar-field textarea:focus {
  outline: none;
  border-color: rgba(0, 180, 216, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.12);
  background: #fff;
}

.daftar-field textarea {
  min-height: 140px;
  resize: vertical;
}

.daftar-form-actions-premium {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.6rem;
}

.daftar-submit-btn,
.daftar-back-btn {
  padding: 1rem 1.4rem;
  border-radius: 16px;
}

.daftar-info-card {
  padding: 1.8rem;
  position: sticky;
  top: 110px;
}

.daftar-info-top {
  margin-bottom: 1.6rem;
}

.daftar-info-badge {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 180, 216, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.daftar-info-top h3 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
  line-height: 1.3;
  color: #0f172a;
}

.daftar-info-top p {
  margin: 0;
  color: var(--gray);
  line-height: 1.8;
}

.daftar-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.7rem;
}

.daftar-feature-item {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.daftar-feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,180,216,0.15), rgba(0,119,182,0.15));
  color: var(--primary);
  font-size: 1.1rem;
}

.daftar-feature-item h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #0f172a;
}

.daftar-feature-item p {
  margin: 0;
  color: var(--gray);
  line-height: 1.7;
  font-size: 0.94rem;
}

.daftar-contact-box {
  padding: 1.2rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.22);
}

.daftar-contact-box h4 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.daftar-contact-box p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}

.daftar-contact-box .btn {
  width: 100%;
  justify-content: center;
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

.daftar-contact-box .btn:hover {
  background: #f8fafc;
}

@media (max-width: 992px) {
  .daftar-premium-grid {
    grid-template-columns: 1fr;
  }

  .daftar-info-card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .daftar-premium-section {
    padding: 110px 0 70px;
  }

  .daftar-form-card,
  .daftar-info-card {
    border-radius: 24px;
  }

  .daftar-form-card {
    padding: 1.4rem;
  }

  .daftar-info-card {
    padding: 1.4rem;
  }

  .daftar-field-grid {
    grid-template-columns: 1fr;
  }

  .daftar-form-actions-premium {
    flex-direction: column;
  }

  .daftar-submit-btn,
  .daftar-back-btn {
    width: 100%;
  }
}

/* =========================
   COACH SLIDER PREMIUM
========================= */

.coach-slider-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.coach-slider-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.2rem 1rem;
}

.coach-slider-viewport::-webkit-scrollbar {
  display: none;
}

.coach-slider-track {
  display: flex;
  gap: 1.5rem;
}

.coach-slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: calc((100% - 3rem) / 3);
  scroll-snap-align: start;
}

.coach-slider-btn {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.coach-slider-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
}

.coach-slider-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.coach-slider-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
}

@media (max-width: 1024px) {
  .coach-slide {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    min-width: calc((100% - 1.5rem) / 2);
  }
}

/* =========================
   COACH SLIDER FIX - MOBILE STACK
========================= */

@media (max-width: 768px) {
  .coach-slider-shell {
    display: block !important;
  }

  .coach-slider-btn,
  .coach-slider-btn-prev,
  .coach-slider-btn-next {
    display: none !important;
  }

  .coach-slider-viewport {
    overflow: visible !important;
    width: 100% !important;
    scroll-snap-type: none !important;
    padding: 0 !important;
  }

  .coach-slider-track {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
    transform: none !important;
  }

  .coach-slide {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin-bottom: 1.4rem !important;
  }

  .coach-card-premium {
    width: 100% !important;
    height: auto !important;
  }

  .coach-image-wrap {
    height: 260px !important;
  }

  .coach-content {
    display: block !important;
    padding: 1.2rem !important;
  }

  .coach-description {
    flex-grow: unset !important;
  }

  .coach-footer {
    margin-top: 1rem !important;
  }
}

/* Samakan tinggi card slider pelatih */
.coach-slider-track {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.coach-slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: calc((100% - 3rem) / 3);
  scroll-snap-align: start;
  display: flex;
}

.coach-card-premium {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.coach-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.coach-description {
  flex-grow: 1;
}

.coach-footer {
  margin-top: auto;
}

/* Samakan tinggi card slider pelatih */
.coach-slider-track {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.coach-slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: calc((100% - 3rem) / 3);
  scroll-snap-align: start;
  display: flex;
}

.coach-card-premium {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.coach-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.coach-description {
  flex-grow: 1;
}

.coach-footer {
  margin-top: auto;
}

.testimoni-button {
  margin-top: 2rem;
  text-align: center;
}

.testimoni-button .btn {
  min-width: 220px;
  justify-content: center;
}

/* Rating radio stars */
.rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
  margin: 10px 0 18px;
}

.rating-input input {
  display: none;
}

.rating-input label {
  font-size: 2rem;
  line-height: 1;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #facc15;
  transform: scale(1.05);
}

.rating-input input:checked ~ label {
  color: #facc15;
}

/* =========================
   PREMIUM MOTION PACK
========================= */

/* Reveal lebih halus */
.fade-in {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    filter 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Hero image float */
.hero-image,
.hero-inline-image,
.cta-icon {
  animation: premiumFloat 5.5s ease-in-out infinite;
}

@keyframes premiumFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Background orb hero */
.hero-edubia::before,
.hero-edubia::after {
  animation: heroOrbMove 12s ease-in-out infinite;
}

@keyframes heroOrbMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10px, -16px) scale(1.05);
  }
}

/* Card hover premium */
.card,
.stat-box,
.program-card,
.profil-card,
.paket-card,
.testimoni-card,
.coach-card-premium {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.card:hover,
.stat-box:hover,
.program-card:hover,
.profil-card:hover,
.paket-card:hover,
.testimoni-card:hover,
.coach-card-premium:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

/* Tombol premium shine */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 90px;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.btn:hover::after {
  left: 160%;
}

/* Tombol utama glow */
.btn-filled {
  box-shadow: 0 12px 28px rgba(255, 221, 0, 0.22);
}

.btn-filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 221, 0, 0.28);
}

/* FAQ animasi lebih smooth */
.faq-answer {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 2rem;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    padding 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 220px;
  opacity: 1;
  padding: 0 2rem 1.5rem;
}

/* Testimoni sedikit glow */
.testimoni-card {
  position: relative;
}

.testimoni-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(0,180,216,0.06),
    transparent 35%,
    rgba(0,119,182,0.04)
  );
  pointer-events: none;
}

/* Judul section lebih hidup */
.section-title {
  position: relative;
}

.section-title::after {
  transition: width 0.35s ease;
}

.section:hover .section-title::after {
  width: 92px;
}

/* WhatsApp floating */
.btn-whatsapp {
  animation: waPulse 2.8s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 16px 30px rgba(37, 211, 102, 0.34);
  }
}

/* Rating bintang modal */
.rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
  margin: 10px 0 18px;
}

.rating-input input {
  display: none;
}

.rating-input label {
  font-size: 2rem;
  line-height: 1;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #facc15;
  transform: scale(1.08);
}

.rating-input input:checked ~ label {
  color: #facc15;
}

/* Kurangi motion untuk user tertentu */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.card,
.stat-box,
.program-card,
.paket-card,
.testimoni-card,
.coach-card-premium,
.faq-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.visible,
.stat-box.visible,
.program-card.visible,
.paket-card.visible,
.testimoni-card.visible,
.coach-card-premium.visible,
.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}