/* ============================================================
   HOME PAGE CSS — css/home.css
   ============================================================ */

/* ---- HERO ---- */
.hero { position: relative; height: 100vh; min-height: 600px; max-height: 900px; overflow: hidden; }
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(13,35,87,0.88) 0%, rgba(13,35,87,0.5) 60%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
  animation: heroIn 1s ease both;
}
@keyframes heroIn {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero-badge {
  display: inline-block;
  background: rgba(200,146,42,0.25);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-title em { color: var(--gold-light); font-style: normal; }
.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(255,255,255,0.15);
  border: none; color: white; width: 50px; height: 50px;
  border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  transition: all 0.3s; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--gold); color: var(--navy); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 8px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent; cursor: pointer; transition: all 0.3s;
}
.hero-dot.active { background: var(--gold); border-color: var(--gold); width: 28px; border-radius: 5px; }

/* ---- TICKER ---- */
.ticker-wrap {
  background: var(--navy);
  padding: 10px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex; align-items: center; gap: 1rem;
}
.ticker-label {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex; align-items: center; gap: 0.4rem;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-content {
  display: inline-flex; white-space: nowrap;
  color: rgba(255,255,255,0.85); font-size: 0.88rem;
  animation: tickerScroll 30s linear infinite;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Duplicate content for seamless loop */
.ticker-content::after {
  content: attr(data-dup);
}

/* ---- STATS ---- */
.stats-section { background: var(--off-white); padding: 50px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.stat-card .stat-icon {
  width: 52px; height: 52px;
  background: var(--grey-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.3rem;
  color: var(--gold);
  transition: all 0.3s;
}
.stat-card:hover .stat-icon { background: var(--gold); color: var(--navy); }

/* ---- ABOUT PREVIEW ---- */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  padding-bottom: 2rem;
  padding-right: 2rem;
}
.about-img-main {
  border-radius: 16px;
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-img-sm {
  position: absolute;
  bottom: 0; right: 0;
  width: 45%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}
.about-img-badge {
  position: absolute;
  top: 24px; left: -20px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.badge-num { font-family: 'Cinzel', serif; font-size: 2.5rem; font-weight: 700; display: block; line-height: 1; }
.badge-txt { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.about-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.af-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--text);
}
.af-item i { color: var(--gold); font-size: 1rem; }

/* ---- USP ---- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.usp-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px solid var(--grey-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.usp-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,35,87,0.03), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.usp-card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.usp-card:hover::before { opacity: 1; }
.usp-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.4rem;
  color: var(--gold);
  transition: var(--transition);
}
.usp-card:hover .usp-icon { background: var(--gold); color: var(--navy); }
.usp-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.usp-card p { font-size: 0.85rem; color: var(--grey); line-height: 1.6; }

/* ---- ACADEMICS PREVIEW ---- */
.ap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.ap-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.ap-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ap-state { border-top: 5px solid var(--navy); }
.ap-cbse  { border-top: 5px solid var(--gold); }
.ap-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.ap-state .ap-icon { color: var(--navy); }
.ap-cbse  .ap-icon { color: var(--gold); }
.ap-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.ap-badge-gold { background: var(--gold); color: var(--navy); }
.ap-card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.ap-card p  { color: var(--grey); margin-bottom: 1.25rem; }
.ap-list { margin-bottom: 1.5rem; }
.ap-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; padding: 0.4rem 0; border-bottom: 1px solid var(--grey-light); }
.ap-list li:last-child { border: none; }
.ap-list i { color: var(--gold); }

/* ---- ADMISSION CTA ---- */
.admission-cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.admission-cta-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.admission-cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(13,35,87,0.93) 0%, rgba(13,35,87,0.75) 100%);
}
.admission-cta-content {
  position: relative;
}

/* ---- NEWS ---- */
.news-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.news-img-wrap { position: relative; }
.news-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
}
.news-date { font-size: 0.8rem; color: var(--grey); margin-bottom: 0.5rem; }
.news-date i { color: var(--gold); }
.news-title { font-size: 1rem; margin-bottom: 0.6rem; line-height: 1.4; }
.news-desc { font-size: 0.85rem; color: var(--grey); margin-bottom: 1rem; }
.news-link { font-size: 0.85rem; font-weight: 700; color: var(--gold); }
.news-link:hover { color: var(--navy); }
.news-link i { transition: transform 0.2s; }
.news-link:hover i { transform: translateX(4px); }

/* ---- TESTIMONIALS ---- */
.testimonial-slider {
  position: relative;
  max-width: 700px;
  margin: 3rem auto 0;
  text-align: center;
}
.testimonial-card {
  display: none;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold);
}
.testimonial-card.active { display: block; }
.t-quote { font-size: 2.5rem; color: var(--gold); opacity: 0.5; margin-bottom: 1rem; }
.t-text { font-size: 1.05rem; color: var(--text); font-style: italic; line-height: 1.8; margin-bottom: 1.5rem; }
.t-author { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1rem; }
.t-avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-weight: 700; font-size: 1.1rem;
}
.t-author strong { display: block; color: var(--navy); }
.t-author span { font-size: 0.82rem; color: var(--grey); }
.t-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; }
.t-controls { display: flex; justify-content: center; gap: 8px; margin-top: 1.5rem; }
.t-dot {
  width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid var(--grey);
  background: transparent; cursor: pointer; transition: all 0.3s;
}
.t-dot.active { background: var(--gold); border-color: var(--gold); }

/* ---- INQUIRY STRIP ---- */
.inquiry-strip {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 50px 0;
}
.inquiry-inner {
  display: flex; align-items: center;
  gap: 3rem; flex-wrap: wrap;
}
.inquiry-text { flex: 1; min-width: 240px; }
.inquiry-text h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.4rem; }
.inquiry-text p  { color: rgba(255,255,255,0.75); }
.inquiry-form {
  flex: 2; min-width: 300px;
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
}
.inquiry-form .form-control {
  flex: 1; min-width: 160px;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.inquiry-form .form-control::placeholder { color: rgba(255,255,255,0.6); }
.inquiry-form .form-control:focus { border-color: var(--gold); background: rgba(255,255,255,0.15); }
.inquiry-form select.form-control option { background: var(--navy); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px) {
  .stats-grid { grid-template-columns: repeat(3,1fr); }
  .usp-grid   { grid-template-columns: repeat(2,1fr); }
  .news-grid  { grid-template-columns: repeat(2,1fr); }
  .about-preview-grid { grid-template-columns: 1fr; }
  .about-img-wrap { padding: 0; }
  .about-img-badge { top: 16px; left: 16px; }
}
@media(max-width:768px) {
  .hero { height: 85vh; }
  .hero-title { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .usp-grid   { grid-template-columns: 1fr; }
  .ap-grid    { grid-template-columns: 1fr; }
  .news-grid  { grid-template-columns: 1fr; }
  .inquiry-inner { flex-direction: column; gap: 1.5rem; }
  .about-img-sm { display: none; }
  .hero-arrow { display: none; }
}
@media(max-width:480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-features { grid-template-columns: 1fr; }
}
