/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}
/* ================= BASE ================= */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #111;
}

/* ================= HEADER ================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  width: 100%;
  /* ================= STICKY NAV ================= */
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;


/* Shadow when scrolling */
.header.scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

}

.logo {
  font-family: monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgb(248, 171, 27);
  text-decoration: none;
}

.logo span {
  opacity: 0.8;
}

.navbar {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: rgb(248, 171, 27);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.nav-link:hover {
  background-color: rgba(248, 171, 27, 0.12);
}

.nav-cta {
  background-color: rgb(248, 171, 27);
  color: white;
}

/* ================= HERO ================= */
.hero {
  background-color: rgb(248, 171, 27);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 3rem 2rem;
  gap: 2rem;
}

.hero-left h1 {
  color: white;
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
}

.hero-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lottie-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 360px;
}

#hero-lottie {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.lottie-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  transition: opacity 0.35s ease;
}

.hero-right {
  color: white;
  font-size: 1.2rem;
  line-height: 1.8;
}

.hero-buttons {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================= BUTTONS ================= */
.btn {
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: white;
  color: rgb(248, 171, 27);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ================= COURSES ================= */
.courses {
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.section-title span {
  color: #a855f7;
}

.courses-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Tabs */
.course-tabs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tab {
  background: transparent;
  border: 2px solid #c084fc;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab:hover {
  background-color: rgba(192, 132, 252, 0.12);
}

.tab.active {
  background-color: #c084fc;
  color: white;
}

/* Course Card */
.course-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
}

.course-content {
  padding: 2rem;
}

.course-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.course-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.course-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.course-link {
  color: #a855f7;
  font-weight: 600;
  text-decoration: none;
}

/* Course Lottie */
.course-lottie {
  width: 100%;
  height: 100%;
  min-height: 260px;
  transition: opacity 0.3s ease;
}

/* ================= OUTCOMES ================= */
#outcomes .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1rem;
}

.outcome-card {
  position: relative;
  height: 390px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.outcome-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.outcome-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95) 5%,
    rgba(15, 23, 42, 0.4) 50%,
    transparent 100%
  );
  z-index: 2;
}

.outcome-text {
  position: relative;
  z-index: 3;
  padding: 30px;
}

.outcome-text h3 {
  color: #facc15;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.outcome-text p {
  color: #fefce8;
  line-height: 1.5;
}

/* Hover */
@media (hover: hover) {
  .outcome-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  }
}

/* ================= INSTRUCTORS ================= */
#instructors .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: flex-start;
}

.instructor-card {
  text-align: center;
  background: #e0f24376;
  padding: 32px;
  border-radius: 14px;
  max-width: 500px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.instructor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
  background: #ffb31ca1;
}

.instructor-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.extra-text {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.instructor-card:hover .extra-text {
  max-height: 500px;
  opacity: 1;
  margin-top: 15px;
}

/* ================= CONTACT (IMPROVED) ================= */
.contact {
  display: flex;
  justify-content: center;
  padding: 100px 20px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fff7ed 100%
  );
}

.contact-card {
  max-width: 760px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  border: 1px solid rgba(248, 171, 27, 0.25);
}

/* Heading */
.contact-card h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  font-weight: 800;
  color: rgb(248, 171, 27);
}

/* Body text */
.contact-card p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Highlight inside paragraph */
.contact-card p strong {
  color: rgb(248, 171, 27);
  font-weight: 700;
}

/* CTA */
.contact-actions {
  display: flex;
  justify-content: center;
}

.contact-actions .btn {
  background: linear-gradient(
    135deg,
    rgb(248, 171, 27),
    #fb923c
  );
  color: #ffffff;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(248, 171, 27, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(248, 171, 27, 0.5);
}

/* Responsive */
@media (max-width: 600px) {
  .contact-card {
    padding: 48px 28px;
  }
.hero-buttons {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;   /* ✅ CENTER ALWAYS */
}

  .contact-card h2 {
    font-size: 2rem;
  }

  .contact-card p {
    font-size: 1.05rem;
  }
}

/* ================= FOOTER ================= */
/* ================= FOOTER ================= */
.footer {
  background: linear-gradient(
    180deg,
    #fff7ed 0%,
    #ffffff 100%
  );
  border-top: 1px solid rgba(248, 171, 27, 0.25);
  padding: 60px 20px 40px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Brand */
.footer-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: rgb(248, 171, 27);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

/* Tagline (optional) */
.footer-tagline {
  font-size: 0.95rem;
  color: #a16207;
  margin-bottom: 20px;
}

/* Copyright */
.footer-copy {
  font-size: 0.9rem;
  color: #92400e;
  opacity: 0.9;
}
.footer {
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 120px;
  height: 2px;
  background: rgb(248, 171, 27);
  transform: translateX(-50%);
  opacity: 0.4;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  #outcomes .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-center {
    margin: 2rem 0;
  }

  #hero-lottie {
    width: 240px;
    height: 240px;
  }

  .courses-layout {
    grid-template-columns: 1fr;
  }

  .course-tabs {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .course-card {
    grid-template-columns: 1fr;
  }

  .course-lottie {
    min-height: 220px;
  }
  .hero-buttons {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;   /* ✅ CENTER ALWAYS */
}

}

@media (max-width: 600px) {
  #outcomes .cards {
    grid-template-columns: 1fr;
  }

  .outcome-card {
    height: 340px;
  }

  .outcome-text {
    padding: 20px;
  }

  .outcome-text h3 {
    font-size: 1.25rem;
  }

  .outcome-text p {
    font-size: 0.95rem;
  }
  .hero-buttons {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;   /* ✅ CENTER ALWAYS */
}

}
/* ================= SCROLL REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal {
  transition-delay: 0.1s;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ================= INSTRUCTORS: MOBILE FIX ================= */
@media (max-width: 900px) {
  .extra-text {
    max-height: none;
    opacity: 1;
    overflow: visible;
    margin-top: 15px;
  }

  /* Disable hover-only behavior on touch screens */
  .instructor-card:hover .extra-text {
    max-height: none;
    opacity: 1;
  }
}
/* ================= PROGRAM LOTTIES: MOBILE SIZE FIX ================= */

/* Tablet */
@media (max-width: 900px) {
  .course-lottie {
    min-height: 180px;
    height: 180px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .course-lottie {
    min-height: 150px;
    height: 150px;
  }
}
/* ================= NAV CONTAINER ================= */
.nav-container {
  display: flex;
  align-items: center;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background-color: rgb(248, 171, 27);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* ================= MOBILE NAV ================= */
@media (max-width: 900px) {
  .navbar {
    position: absolute;
    top: 100%;
    right: 2rem;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }
}
.nav-cta {
  background-color: rgb(248, 171, 27);
  color: #ffffff;
  font-weight: 600;

  padding: 0.55rem 1.1rem;
  border-radius: 12px;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.nav-cta:hover {
  background-color: #f59e0b; /* slightly darker orange */
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
@media (max-width: 900px) {
  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}
