/* ═══════════════════════════════════════════════════════════════════
   HOME.CSS — Rajhans Public School | Homepage-specific styles
   Premium, modern, editorial design language
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. HERO ──────────────────────────────────────────────────────── */
.hp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 80px;
}

.hp-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  transition: transform 20s ease;
}

.hp-hero-bg.parallax-active {
  transform: scale(1.08) translateY(var(--parallax-y, 0px));
}

.hp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20,27,77,0.95) 0%,
    rgba(31,42,120,0.88) 40%,
    rgba(31,42,120,0.65) 70%,
    rgba(0,0,0,0.4) 100%
  );
}

/* Diagonal bottom wave */
.hp-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 60% 100%, 0 40%);
}

.hp-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

/* Animated entrance — staggered */
.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(92,107,192,0.18);
  border: 1px solid rgba(92,107,192,0.45);
  color: #9FA8DA;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.hp-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.hp-hero-title .accent-word {
  color: #9FA8DA;
  position: relative;
  display: inline-block;
}

.hp-hero-title .accent-word::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 3px;
  background: #5C6BC0;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 0.6s ease 1.1s forwards;
}

.hp-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}

.hp-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.8s forwards;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #5C6BC0, #7986CB);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 15px 32px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 28px rgba(92,107,192,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(92,107,192,0.55);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

/* Hero Stats row */
.hp-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 1.0s forwards;
}

.hp-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 3px solid rgba(159,168,218,0.6);
  padding-left: 14px;
}

.hp-hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hp-hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Hero right: Notice card */
.hp-hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  padding: 28px;
  opacity: 0;
  animation: fadeLeft 0.8s ease 0.9s forwards;
}

.hp-hero-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9FA8DA;
  margin-bottom: 18px;
}

.hp-hero-card-title i { font-size: 0.95rem; }

.hp-hero-notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hp-hero-notice-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.hp-hero-notice-list li:last-child { border: none; }

.hp-hero-notice-list i {
  color: #5C6BC0;
  font-size: 0.6rem;
  margin-top: 5px;
  flex-shrink: 0;
}

.hp-hero-card-cta {
  display: block;
  margin-top: 18px;
  background: var(--primary-light, #3F51B5);
  color: #141B4D;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s;
}

.hp-hero-card-cta:hover { background: var(--accent, #5C6BC0); }

/* ── 2. TICKER / ANNOUNCEMENT BAR ───────────────────────────────── */
.hp-ticker {
  background: linear-gradient(90deg, #141B4D, #1F2A78);
  padding: 0;
  overflow: hidden;
}

.hp-ticker-inner {
  display: flex;
  align-items: center;
  height: 46px;
}

.hp-ticker-label {
  background: #5C6BC0;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hp-ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.hp-ticker-track {
  display: flex;
  animation: tickerScroll 35s linear infinite;
  white-space: nowrap;
}

.hp-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 36px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.hp-ticker-item i { color: #5C6BC0; font-size: 0.55rem; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── 3. QUICK HIGHLIGHTS ─────────────────────────────────────────── */
.hp-highlights {
  padding: 90px 0 80px;
}

.hp-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hp-highlight-card {
  background: #fff;
  border-radius: 18px;
  padding: 36px 28px 30px;
  border-top: 4px solid var(--border-color, #3B82F6);
  box-shadow: 0 4px 20px rgba(31,42,120,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.hp-highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--border-color, #3B82F6);
}

.hp-highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(31,42,120,0.14);
}

.hp-highlight-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  background: var(--icon-bg, #EFF6FF);
  color: var(--border-color, #3B82F6);
  transition: transform 0.3s;
}

.hp-highlight-card:hover .hp-highlight-icon {
  transform: rotate(-8deg) scale(1.1);
}

.hp-highlight-card h3 {
  font-size: 1rem;
  color: #141B4D;
  margin-bottom: 8px;
}

.hp-highlight-card p {
  font-size: 0.84rem;
  color: #6B7194;
  line-height: 1.7;
  margin: 0;
}

.hp-highlight-stat {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--border-color, #3F51B5);
  line-height: 1;
  margin-bottom: 4px;
}

/* ── 4. ABOUT SECTION ────────────────────────────────────────────── */
.hp-about {
  padding: 90px 0;
  background: #F5F7FA;
}

.hp-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.hp-about-images {
  position: relative;
  height: 520px;
}

.hp-about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 82%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(31,42,120,0.18);
}

.hp-about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hp-about-img-main:hover img { transform: scale(1.05); }

.hp-about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52%;
  height: 54%;
  border-radius: 16px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 12px 40px rgba(31,42,120,0.15);
}

.hp-about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-about-badge {
  position: absolute;
  top: -16px;
  right: 24px;
  background: linear-gradient(135deg, #1F2A78, #141B4D);
  color: #fff;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(92,107,192,0.45);
  z-index: 2;
}

.hp-about-badge-num  { font-size: 1.5rem; font-family: 'Playfair Display', serif; line-height: 1; }
.hp-about-badge-text { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; }

.hp-about-content {}

.hp-about-content .section-badge { margin-bottom: 12px; }

.hp-about-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: #141B4D;
  margin-bottom: 16px;
  line-height: 1.25;
}

.hp-about-title span { color: var(--primary-light); }

.hp-about-text {
  font-size: 0.93rem;
  color: #6B7194;
  line-height: 1.9;
  margin-bottom: 28px;
}

.hp-about-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.hp-about-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #4A5278;
  font-weight: 600;
}

.hp-about-bullets li i {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(31,42,120,0.08);
  color: #1F2A78;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.hp-about-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── 5. ACADEMICS ────────────────────────────────────────────────── */
.hp-academics {
  padding: 90px 0;
}

.hp-academics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.hp-academic-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 340px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(31,42,120,0.12);
}

.hp-academic-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hp-academic-card:hover img { transform: scale(1.1); }

.hp-academic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,27,77,0.95) 0%,
    rgba(20,27,77,0.6) 50%,
    rgba(20,27,77,0.2) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background 0.4s;
}

.hp-academic-card:hover .hp-academic-overlay {
  background: linear-gradient(
    to top,
    rgba(31,42,120,0.97) 0%,
    rgba(31,42,120,0.8) 60%,
    rgba(31,42,120,0.4) 100%
  );
}

.hp-academic-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5C6BC0;
  margin-bottom: 6px;
}

.hp-academic-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 8px;
}

.hp-academic-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  margin-bottom: 0;
}

.hp-academic-card:hover .hp-academic-desc {
  max-height: 120px;
  opacity: 1;
  margin-bottom: 14px;
}

.hp-academic-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5C6BC0;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.hp-academic-card:hover .hp-academic-link {
  opacity: 1;
  transform: translateY(0);
}

.hp-academic-link:hover { color: #9FA8DA; }

/* ── 6. FACILITIES ───────────────────────────────────────────────── */
.hp-facilities {
  padding: 90px 0;
  background: #F5F7FA;
}

.hp-facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 20px;
  margin-top: 52px;
}

.hp-facility-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.hp-facility-card:first-child {
  grid-row: span 2;
}

.hp-facility-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hp-facility-card:hover img { transform: scale(1.08); }

.hp-facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,27,77,0.92) 0%, rgba(20,27,77,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.3s;
}

.hp-facility-card:hover .hp-facility-overlay {
  background: linear-gradient(to top, rgba(20,27,77,0.96) 0%, rgba(20,27,77,0.55) 70%, rgba(20,27,77,0.2) 100%);
}

.hp-facility-icon {
  width: 44px;
  height: 44px;
  background: rgba(92,107,192,0.2);
  border: 1px solid rgba(92,107,192,0.5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5C6BC0;
  font-size: 1rem;
  margin-bottom: 10px;
}

.hp-facility-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.hp-facility-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.hp-facility-card:hover .hp-facility-desc {
  max-height: 60px;
  opacity: 1;
}

/* Large card first child */
.hp-facility-card:first-child .hp-facility-title { font-size: 1.35rem; }

/* ── 7. GALLERY PREVIEW ──────────────────────────────────────────── */
.hp-gallery {
  padding: 90px 0;
}

.hp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 230px 200px;
  gap: 14px;
  margin-top: 52px;
}

.hp-gallery-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

/* Row 1: item 1 takes 2 cols, item 2 takes 1 col */
.hp-gallery-item:nth-child(1) { grid-column: span 2; }

/* Row 2: items 3, 4, 5 — all equal 1 col each (3 columns) */
/* No span overrides — they naturally fill 3 columns */

/* Row 3: item 6 spans full width */
.hp-gallery-item:nth-child(6) { grid-column: span 3; height: 200px; }

.hp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.hp-gallery-item:hover img { transform: scale(1.08); }

.hp-gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31,42,120,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s;
}

.hp-gallery-item:hover .hp-gallery-item-overlay { background: rgba(31,42,120,0.65); }

.hp-gallery-item-overlay i {
  font-size: 2rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s;
}

.hp-gallery-item:hover .hp-gallery-item-overlay i {
  opacity: 1;
  transform: scale(1);
}

.hp-gallery-cta {
  text-align: center;
  margin-top: 36px;
}

/* ── 8. NEWS / ANNOUNCEMENTS ─────────────────────────────────────── */
.hp-news {
  padding: 90px 0;
  background: #F5F7FA;
}

.hp-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.hp-news-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(31,42,120,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.hp-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(31,42,120,0.14);
}

.hp-news-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.hp-news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.hp-news-card:hover .hp-news-img-wrap img { transform: scale(1.07); }

.hp-news-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-light, #3F51B5);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
}

.hp-news-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hp-news-date {
  font-size: 0.76rem;
  color: #A0A4B8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.hp-news-date i { color: var(--primary-light); }

.hp-news-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #141B4D;
  line-height: 1.45;
  margin-bottom: 10px;
}

.hp-news-excerpt {
  font-size: 0.83rem;
  color: #6B7194;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.hp-news-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1F2A78;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
  align-self: flex-start;
}

.hp-news-link:hover { gap: 10px; color: var(--primary-light); }

/* ── 9. ADMISSIONS CTA BANNER ────────────────────────────────────── */
.hp-cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.hp-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hp-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,27,77,0.94) 0%, rgba(31,42,120,0.88) 50%, rgba(0,0,0,0.7) 100%);
}

.hp-cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hp-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(92,107,192,0.2);
  border: 1px solid rgba(92,107,192,0.4);
  color: #9FA8DA;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 22px;
}

.hp-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hp-cta-title span { color: #9FA8DA; }

.hp-cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hp-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Decorative dots */
.hp-cta::before,
.hp-cta::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 60px solid rgba(92,107,192,0.06);
  z-index: 1;
}

.hp-cta::before { top: -100px; left: -100px; }
.hp-cta::after  { bottom: -100px; right: -100px; }

/* ── 10. TESTIMONIALS ────────────────────────────────────────────── */
.hp-testimonials {
  padding: 90px 0;
}

.hp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.hp-testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(31,42,120,0.08);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  border-bottom: 4px solid transparent;
}

.hp-testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(31,42,120,0.13);
  border-bottom-color: var(--primary-light, #3F51B5);
}

.hp-testimonial-quote-icon {
  font-size: 2.5rem;
  color: rgba(31,42,120,0.08);
  margin-bottom: 16px;
  display: block;
}

.hp-testimonial-text {
  font-size: 0.9rem;
  color: #4A5278;
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 24px;
}

.hp-testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
}

.hp-testimonial-stars i { color: #7986CB; font-size: 0.75rem; }

.hp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hp-testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.hp-testimonial-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #141B4D;
}

.hp-testimonial-role {
  font-size: 0.76rem;
  color: #A0A4B8;
  margin-top: 2px;
}

/* ── ANIMATIONS ──────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* AOS-style reveal */
[data-aos] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-32px);
}

[data-aos="fade-right"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(32px);
}

[data-aos="fade-left"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="zoom-in"] {
  transform: scale(0.92);
}

[data-aos="zoom-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hp-highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-about-grid { gap: 48px; }
}

@media (max-width: 900px) {
  .hp-hero-inner { grid-template-columns: 1fr; }
  .hp-hero-card  { display: none; }
  .hp-hero-stats { gap: 20px; }
  .hp-about-grid { grid-template-columns: 1fr; }
  .hp-about-images { height: 340px; }
  .hp-academics-grid { grid-template-columns: 1fr; gap: 18px; }
  .hp-academic-card { height: 260px; }
  .hp-academic-desc { max-height: 80px !important; opacity: 1 !important; }
  .hp-academic-link { opacity: 1 !important; transform: none !important; }
  .hp-facilities-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hp-facility-card:first-child { grid-row: span 1; height: 280px; }
  .hp-facility-card { height: 240px; }
  .hp-facilities-grid .hp-facility-card:not(:first-child) { display: none; }
  .hp-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px 200px; }
  .hp-gallery-item:nth-child(1) { grid-column: span 2; }
  .hp-gallery-item:nth-child(6) { grid-column: span 2; height: 200px; }
  .hp-news-grid { grid-template-columns: 1fr; }
  .hp-testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hp-hero { min-height: auto; padding: 120px 0 100px; }
  .hp-hero::after { height: 40px; }
  .hp-hero-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hp-highlights-grid { grid-template-columns: 1fr; }
  .hp-about-images { display: none; }
  .hp-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hp-gallery-item:nth-child(1) { grid-column: span 2; }
  .hp-gallery-item:nth-child(5) { grid-column: span 1; }
  .hp-gallery-item:nth-child(6) { grid-column: span 2; height: 180px; }
  .hp-news-grid { grid-template-columns: 1fr; }
  .hp-cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 520px) {
  .hp-hero-stats { gap: 16px; }
  .hp-hero-stat-num { font-size: 1.3rem; }
  .hp-hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; justify-content: center; }
  .hp-gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hp-gallery-item,
  .hp-gallery-item:nth-child(1),
  .hp-gallery-item:nth-child(5),
  .hp-gallery-item:nth-child(6) {
    grid-column: span 1 !important;
    height: 200px !important;
  }
  .hp-testimonials-grid { grid-template-columns: 1fr; }
}
