/* ============================================================
   index.css — Homepage Styles Only
   Requires: styles.css loaded before this file.
   ============================================================ */

/* ─────────────────────────────────────────
   1. HERO SECTION
───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding: 120px 5% 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Ambient background blobs */
.hero-bg-shape {
  position: absolute;
  top: -100px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg-shape2 {
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(26, 107, 114, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Title */
.hero-title {
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-title .accent {
  color: var(--gold-dark);
  position: relative;
  display: inline-block;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

/* Description */
.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fadeUp 0.6s 0.2s ease both;
}

/* CTA buttons row */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeUp 0.6s 0.4s ease both;
}

.stat-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.stat-num sup {
  font-size: 18px;
  color: var(--gold-dark);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* Right visual column */
.hero-visual {
  position: relative;
  animation: fadeIn 0.8s 0.3s ease both;
}

.hero-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 14, 12, 0.5) 100%);
}

/* Floating rating card */
.hero-card-float {
  position: absolute;
  bottom: -24px;
  left: -32px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  min-width: 220px;
}

.hero-card-float .card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero-card-float .card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: var(--gold);
  font-size: 16px;
}

.rating-num {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.rating-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Est. tag pill */
.hero-tag {
  position: absolute;
  top: 24px;
  right: -20px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


/* ─────────────────────────────────────────
   2. ABOUT / WHY US SECTION
───────────────────────────────────────── */
#about {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Feature list */
.about-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.feature-content h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 6px;
}

.feature-content p {
  font-size: 14px;
  color: rgba(250, 248, 243, 0.55);
  line-height: 1.6;
}

/* ✅ NEW: CTA button row — replaces the inline style div */
.about-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Visual side */
.about-visual {
  position: relative;
}

.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  /* ✅ FIXED: was 3.5/3.5 — same value, now readable */
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-counter-box {
  position: absolute;
  top: 40px;
  right: -32px;
  background: var(--gold);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-counter-box .num {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.about-counter-box .lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  opacity: 0.7;
}


/* ─────────────────────────────────────────
   3. COURSES SECTION
───────────────────────────────────────── */
#courses {
  background: var(--cream);
}

.courses-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

/* Filter chips */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.chip {
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.chip.active,
.chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Card */
.course-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition-delay: var(--delay, 0s);
}

.course-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.course-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.2);
  transform: translateY(-4px);
}

.course-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-img img {
  transform: scale(1.05);
}

.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

.course-body {
  padding: 20px;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
}

.course-rating svg {
  width: 13px;
  height: 13px;
  fill: var(--gold);
}

.course-cat {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.course-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.course-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.course-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-new {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}

.price-old {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.course-enroll {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 6px 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.course-enroll:hover {
  background: var(--teal);
  color: var(--paper);
}


/* ─────────────────────────────────────────
   4. TESTIMONIALS SECTION
───────────────────────────────────────── */
#reviews {
  background: var(--paper);
  overflow: hidden;
}

.reviews-header {
  text-align: center;
  margin-bottom: 64px;
}

/* Infinite scroll track */
.testimonials-track-wrap {
  overflow: hidden;
  position: relative;
}

.testimonials-track-wrap::before,
.testimonials-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.testimonials-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), transparent);
}

.testimonials-track-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--paper), transparent);
}

.testimonials-track {
  display: flex;
  gap: 24px;
  animation: scroll-x 30s linear infinite;
  width: max-content;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-x {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  width: 380px;
  flex-shrink: 0;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial-quote {
  font-size: 40px;
  line-height: 0.5;
  font-family: var(--serif);
  color: var(--gold);
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--border);
  flex-shrink: 0;
}

.author-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  background: var(--gold);
  color: var(--ink);
}

.author-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ✅ NEW: CTA row — replaces the inline style div */
.reviews-cta {
  text-align: center;
  margin-top: 48px;
}


/* ─────────────────────────────────────────
   5. CONTACT SECTION
───────────────────────────────────────── */
#contact {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

#contact::after {
  content: 'CONTACT';
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: var(--serif);
  font-size: 160px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  padding-top: 8px;
}

.contact-info-desc {
  font-size: 16px;
  color: rgba(250, 248, 243, 0.55);
  line-height: 1.75;
  margin: 20px 0 48px;
  max-width: 400px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-item-content .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-item-content a,
.contact-item-content p {
  color: rgba(250, 248, 243, 0.8);
  font-size: 15px;
  text-decoration: none;
  line-height: 1.5;
}

.contact-item-content a:hover {
  color: var(--gold);
}

/* Enquiry form card */
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 32px;
}

.contact-form-wrap .btn-full {
  margin-top: 8px;
}

.btn--success {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: var(--paper) !important;
  opacity: 0.7 !important;
  pointer-events: none;
}

/* ─────────────────────────────────────────
   6. HOMEPAGE RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {

  /* Hero */
  #hero {
    grid-template-columns: 1fr;
    padding: 100px 4% 60px;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-tag {
    display: none;
  }

  .hero-card-float {
    left: 0;
    right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions,
  .hero-badge {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
  }

  .about-counter-box {
    right: 0;
  }

  .about-actions {
    justify-content: center;
  }

  /* Courses */
  .courses-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
}