/* ------------------- HERO ------------------------------ */
.hero {
  padding: 20px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  position: relative;
  /* background: #fff; */
  border-radius: 20px;
  overflow: hidden;
  max-width: 50rem;
  text-align: center;
}

/* IMAGE */
.hero-inner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* display: block; */

  transition: transform 0.6s ease;
}

.hero-inner:hover img {
  transform: scale(1.04);
}

/* TEXT OVER IMAGE */
.hero-content {
  position: absolute;
  top: 6%;
  left: 4%;
  max-width: 45%;
  color: #ffffff;
}

.hero-content h1 {
  font-family: "Neuton", serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;

  font-size: clamp(22px, 4vw, 38px);
  margin-bottom: 20px;
}

.hero-content span {
  font-weight: 700;
  display: block;
}

.hero-content p {
  font-size: clamp(14px, 2vw, 18px);
  margin-bottom: 26px;
}

/* BUTTON */
.hero-content .btn {
  font-size: 16px;
  padding: 10px 22px;

  border-radius: 10px;
  transition: all 0.3s ease;
}

.hero-content .btn:hover {
  background: #4a4ad8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(91, 91, 240, 0.45);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .hero-content {
    max-width: 60%;
    top: 10%;
  }
}

@media (max-width: 768px) {


  .community-images {
    width: 100% !important;
}


  .courses {
    margin-top: 10px !important;
  padding: 10px !important;
}

  .hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    position: absolute;
    /* top: 50%;
    left: 50%; */
    /* transform: translate(-50%, -50%); */
    max-width: 90%;
    text-align: start;
  }

  .hero-content h1 {
    font-size: 1.25rem;
    line-height: 1.15;
    margin-bottom: 0.6rem;
  }

  .hero-content p {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }

  .hero-content .btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    position: relative;
    min-height: 18rem; /* ✅ critical */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1rem;
  }

  .hero-inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .hero-content h1 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .hero-content p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
}

/* ------------------------ABOUT SECTION ------------------------------ */
.about {
  padding: 40px 20px;
}

.about-container {
  /* max-width: auto; */
  /* width: 100%; */
  margin: auto;
  color: #fff;
}

/* TEXT */
.about-text {
  font-size: 23px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 50px;
  /* max-width: 700px; */
  text-align: center;
}

/* IMAGE WRAPPER */
.about-images {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.about-images img {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.about-images img:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* LANDSCAPE IMAGE */
.img-landscape {
  width: 420px;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

/* PORTRAIT IMAGE */
.img-portrait {
  width: 260px;
  height: 360px;
  object-fit: cover;
  border-radius: 18px;

  position: relative;
  margin-left: -40px; /* overlap */
  margin-bottom: -20px;
  margin-top: 65px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .about-text {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .about-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .about-images {
    flex-direction: column;
    align-items: center;
  }

  .img-landscape,
  .img-portrait {
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: 0;
  }

  .img-portrait {
    margin-top: 20px;
    box-shadow: none;
  }
}

/* --------------------------------- COMMUNITY SECTION --------------------------------- */
.community {
  padding: 20px;
  /* background: #05052d; */
  /* color: #fff; */
}

.community-container {
  /* max-width: 1200px; */
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  position: relative;
}

/* ---------- IMAGES ---------- */
.community-images {
  position: relative;
  width: 420px;
  height: 480px;

  /* width: 420px;
  height: 520px; */

  display: flex;
  justify-content: center;
  align-items: center;
}

.community-images img {
  transition: transform 0.5s ease;
}

.community-images:hover .img-first {
  transform: translateY(-6px);
}

.community-images:hover .img-second {
  transform: translate(-50%, -10px);
}

/* FIRST IMAGE */
.img-first {
  width: 260px;
  /* width: 100%; */
  height: auto;
  position: relative;
  z-index: 1;
}

/* SECOND IMAGE */
.img-second {
  width: 220px;
  /* width: 60%; */
  height: auto;
  position: absolute;
  bottom: 0;
  left: 83%;
  top: 65%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ---------- TEXT ---------- */
.community-content {
  position: relative;
  top: -40px;
  left: -50px;
  max-width: 420px;
}

.community-content h2 {
  font-family: "Neuton", serif;
  font-size: clamp(22px, 3vw, 36px);
  margin-bottom: 20px;
  line-height: 1.25;
}

.community-content ul {
  list-style: none;
  padding: 0;
}

.community-content li {
  font-size: 18px;
  margin-bottom: 14px;
  position: relative;
  padding-left: 26px;
  line-height: 1.4;
}

.community-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #5eead4;
  font-weight: bold;
}

/* ---------- RESPONSIVE ---------- */

/* Tablets */
@media (max-width: 992px) {
  .community-images {
    height: 420px;
  }

  .img-first {
    width: 220px;
  }

  .img-second {
    width: 190px;
    left: 70%;
    top: 68%;
  }

  .community-content {
    top: -25px;
    max-width: 360px;
  }

  .community-content li {
    font-size: 16px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .community-container {
    flex-direction: column;
    gap: 2.5rem;
  }

  .community-images {
    height: 22rem;
  }

  .img-first {
    width: 11rem;
  }

  .img-second {
    width: 8.5rem;
    left: 60%;
    top: 65%;
  }

  .community-content {
    position: static;
    text-align: center;
    max-width: 100%;
  }

  .community-content ul {
    display: inline-block;
    text-align: left;
  }

  .community-content li {
    font-size: 0.9rem;
  }
}

/* -------------------- COURSE SECTION -------------------- */
.courses {
  margin-top: 80px;
  padding: 60px 20px;
  text-align: center;
  background: #05052d;
  color: #fff;
}

/* HEADING */
.courses h2 {
  font-family: "Neuton", serif;
  font-size: clamp(24px, 3vw, 38px);
  margin-bottom: 30px;
}

/* COURSE TAGS */
.course-tags {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.course-tags span {
  background: #e5e7eb;
  color: #000;
  padding: 10px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;

  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.course-tags span:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 255, 255, 0.2);
}

.course-tags span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-tags span:hover::after {
  opacity: 1;
}

/* STATS CONTAINER */
.course-stats {
  background: linear-gradient(90deg, #1e3a8a, #312e81);
  border-radius: 16px;
  padding: 30px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* EACH STAT */
.stat {
  flex: 1 1 160px;
  text-align: center;

  transition: transform 0.3s ease;
}

.course-stats .stat:hover {
  transform: translateY(-6px) scale(1.05);
}

.stat h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 6px;
}

.stat p {
  font-size: 14px;
  opacity: 0.9;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 768px) {
  .course-stats {
    justify-content: center;
  }

  .stat {
    flex: 1 1 45%;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .course-stats {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .stat h3 {
    font-size: 1.4rem;
  }

  .stat p {
    font-size: 0.8rem;
  }
}

/* ------------------ WHY CHOOSE US SECTION ------------------ */
.why-choose {
  padding: 60px 20px;
  background: #05052d;
  color: #fff;
}

/* TOP LAYOUT */
.why-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
}

/* IMAGE */
.why-image {
  flex: 1;
  max-width: 480px;
}

.why-image img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

/* CONTENT */
.why-content {
  flex: 1;
  max-width: 460px;
  text-align: center;
}

.why-content h2 {
  font-family: "Neuton", serif;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 18px;
}

.why-content p {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.95;
}

/* CARDS BELOW */
.why-cards {
  margin-top: 50px;
  display: flex;
  gap: 30px;
  justify-content: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.info-card {
  background: #f5e9e6;
  color: #000;
  padding: 20px;
  border-radius: 16px;
  max-width: 380px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.info-card h4 {
  font-family: "Neuton", serif;
  font-size: 20px;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .why-container {
    flex-direction: column;
    text-align: center;
  }

  .why-cards {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .why-image img {
    max-height: 20rem;
    object-fit: contain;
  }
}
