/* ===== HERO SECTION (FINAL UPDATE) ===== */
.evening-hero{
  position: relative;
  width: 100%;

  /* ✅ NAVBAR AUR SECTION KA GAP */
  margin-top: 80px;                         /* ← as you asked */

  /* HEIGHT (balanced hero like screenshot) */
  min-height: 420px;
  max-height: 520px;

  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 60px;

  display: flex;
  align-items: center;

  /* ✅ EDUCATION-FOCUSED BACKGROUND IMAGE */
  background-image: url("images/E.classes.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  overflow: hidden;
}

/* DARK OVERLAY (text readable rahe) */
.evening-hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

/* CONTENT WRAPPER */
.evening-hero__inner{
  position: relative;
  width: min(1100px, 100% - 40px);
  margin: 0 auto;
  text-align: left;
}

/* HEADING */
.evening-hero__title{
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

/* PARAGRAPH */
.evening-hero__text{
  margin: 0;
  max-width: 78ch;
  font-size: clamp(14.5px, 1.2vw, 18px);
  line-height: 1.75;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

/* MOBILE */
@media (max-width: 768px){
  .evening-hero{
    min-height: 360px;
    margin-top: 60px;                      /* mobile pe thora kam */
    padding-top: calc(var(--header-h) + 30px);
    padding-bottom: 40px;
  }

  .evening-hero__inner{
    width: min(1100px, 100% - 24px);
  }
}

/* ===== HERO ANIMATIONS (REUSED / SAME AS BEFORE) ===== */

/* Heading: left → right */
.evening-hero__title{
  opacity: 0;
  transform: translateX(-40px);
  animation: heroSlideLR .9s ease-out forwards;
}

/* Paragraph: fade + move up */
.evening-hero__text{
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1.1s ease-out forwards;
  animation-delay: .2s;
}

/* Animations */
@keyframes heroSlideLR{
  to{
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroFadeUp{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
.evening-page{
  padding: 50px 0;
  background:#fff;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.evening-page .wrap{
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Intro header */
.evening-head h2{
  margin: 0 0 10px;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 900;
  color:#0b1220;
}
.evening-head h3{
  margin: 18px 0 8px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 900;
  color:#0b1220;
}
.evening-head p{
  margin: 0 0 10px;
  color:#5b6473;
  line-height: 1.75;
}

/* Card row */
/* =========================
   CARDS SECTION (UPDATED ONLY)
   Keep hero/faq untouched
========================= */

/* Card row */
.school-row{
  display: grid;
  grid-template-columns: 210px 1fr 280px; /* screenshot closer */
  gap: 18px;
  padding: 18px;
  border: 1px solid #e9e9ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
  margin-top: 16px;
  align-items: stretch;
}

/* Left thumbnail (supports real image OR placeholder) */
.school-left{
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
  min-height: 190px;
  position: relative;
}

/* ✅ If you use <img class="school-img" ...> */
.school-left .school-img{
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
}

/* Placeholder (if you still use .ph) */
.ph{
  width: 100%;
  height: 100%;
  min-height: 190px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 30px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #22c55e);
}

/* Mid details */
.school-mid{ padding: 2px 2px; }

.mid-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
}

.school-name{
  margin:0;
  font-size: 22px;  /* a bit stronger like screenshot */
  font-weight: 950;
  color:#0b1220;
}

.rating{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
}
.rating .score{ font-weight: 950; color:#0b1220; }
.rating .stars{ color:#f4b400; letter-spacing: 1px; }
.rating .count{ color:#667085; }

.meta-line{
  display:flex;
  flex-wrap:wrap;
  gap: 8px 10px;
  margin: 10px 0 10px;
  align-items:center;
}

.pill{
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f6ff;
  border: 1px solid #d8e6ff;
  color:#1f3b73;
}

.pill-outline{
  background:#fff;
  border: 1px solid #e5e7eb;
  color:#111827;
}

.mini{
  font-size: 13px;
  color:#667085;
}

.like-title{
  font-weight: 950;
  color:#0b1220;
  margin: 12px 0 8px;
  font-size: 13px;
}

.likes{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.likes li{
  position: relative;
  padding-left: 30px;
  color:#374151;
  font-size: 14px;
  line-height: 1.5;
}

.likes li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #eafaf0;
  color: #16a34a;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  transform: translateY(2px);
}

.desc{
  margin: 12px 0 0;
  color:#5b6473;
  line-height: 1.7;
  font-size: 14px;
}

/* =========================
   RIGHT PANEL (Screenshot style)
========================= */

.school-right{
  border-left: 1px solid #eef0f6;
  padding-left: 14px;
  display:flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

/* ✅ make box like screenshot (soft blue bg + green outline tag) */
.price-box{
  border-radius: 14px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  box-shadow: none; /* screenshot looks flatter */
}

/* green tag top */
.price-box .note{
  font-size: 12px;
  font-weight: 950;
  color:#16a34a;
  padding: 10px 10px;
  border: 1px solid rgba(22,163,74,.35);
  border-radius: 10px;
  margin-bottom: 10px;
  background:#fff;
}

/* “Private lessons” line */
.price-box .old{
  font-size: 12px;
  color:#667085;
  margin-bottom: 6px;
  font-weight: 700;
}

/* Online + Hourly line */
.price-box .new{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* orange badge */
.price-box .offer{
  font-size: 11px;
  font-weight: 950;
  background:#fb923c;
  color:#fff;
  padding: 5px 10px;
  border-radius: 999px;
}

/* big red word */
.price-box strong{
  font-size: 28px;
  font-weight: 1000;
  color:#ef4444;
  letter-spacing: -0.02em;
}

/* green bottom text */
.price-box .free{
  margin-top: 10px;
  font-size: 13px;
  font-weight: 950;
  color:#16a34a;
}

/* Button like screenshot */
.btn-view{
  height: 46px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  text-decoration: none;
  background:#16a34a;
  color:#fff;
  border: 1px solid #16a34a;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  gap: 10px;
}

.btn-view:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(22,163,74,.18);
  background:#12863d;
}


/* FAQ */
.faq{
  margin-top: 26px;
  padding-top: 10px;
}
.faq h3{
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
  color:#0b1220;
}

.qa{
  padding: 14px 16px;
  border: 1px solid #e9e9ee;
  border-radius: 14px;
  background:#fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
  margin-bottom: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

/* clickable question */
.qa h4{
  margin:0;
  font-size: 15px;
  font-weight: 900;
  color:#0b1220;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* small arrow */
.qa h4::after{
  content:"›";
  font-size: 20px;
  line-height: 1;
  color:#0b1220;
  transform: rotate(90deg);
  transition: transform .2s ease;
}

/* answer (collapsed by default) */
.qa p{
  margin: 8px 0 0;
  color:#5b6473;
  line-height: 1.7;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease;
}

/* open state */
.qa.open{
  border-color:#dbe7ff;
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
}

.qa.open h4::after{
  transform: rotate(-90deg);
}

.qa.open p{
  max-height: 220px; /* enough for 2-4 lines */
  opacity: 1;
}


/* =========================
   Responsive (only cards)
========================= */

@media (max-width: 980px){
  .school-row{
    grid-template-columns: 190px 1fr;
    grid-template-areas:
      "left mid"
      "right right";
  }
  .school-left{ grid-area:left; min-height: 180px; }
  .school-left .school-img{ min-height: 180px; }
  .ph{ min-height: 180px; }

  .school-mid{ grid-area:mid; }

  .school-right{
    grid-area:right;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #eef0f6;
    padding-top: 12px;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .price-box{ flex: 1; min-width: 280px; }
  .btn-view{ flex: 1; min-width: 200px; }
}

@media (max-width: 640px){
  .school-row{
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "mid"
      "right";
  }
  .school-left{ min-height: 210px; }
  .school-left .school-img{ min-height: 210px; }
  .ph{ min-height: 210px; }

  .mid-top{
    flex-direction: column;
    align-items:flex-start;
    gap: 6px;
  }

  .school-right{
    flex-direction: column;
    align-items: stretch;
  }

  .btn-view{ width: 100%; }
}



