/* ============================================================
   ROYAL ARK COLLEGE — Home Page Styles
   "Royalty in Excellence"
   ============================================================ */

/* ── HERO ── */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  text-align: center;
  background: var(--royal-dark);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 20% 30%, rgba(92,45,158,0.55), transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(200,90,0,0.35), transparent 60%),
    linear-gradient(145deg, var(--royal-dark) 30%, var(--royal) 100%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(255,255,255,0.012) 50px, rgba(255,255,255,0.012) 51px),
    repeating-linear-gradient(-45deg, transparent, transparent 50px, rgba(255,255,255,0.012) 50px, rgba(255,255,255,0.012) 51px);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-gold);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(244,194,64,0.2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  animation: fadeUp 0.7s var(--ease) both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber-gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.15s var(--ease) both;
}
.hero h1 em {
  font-style: italic;
  color: var(--amber-gold);
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(var(--text-md), 1.6vw, var(--text-xl));
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 28px;
  animation: fadeUp 0.7s 0.3s var(--ease) both;
}
.hero-motto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
  animation: fadeUp 0.7s 0.4s var(--ease) both;
}
.hero-motto::before,
.hero-motto::after {
  content: '';
  width: 30px; height: 1px;
  background: rgba(244,194,64,0.3);
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.5s var(--ease) both;
}
.hero-cta .btn-outline-white:hover {
  background: var(--white);
  color: var(--royal-dark);
  border-color: var(--white);
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: orbFloat 10s ease-in-out infinite alternate;
}
.hero-orb.orb-1 {
  width: 300px; height: 300px;
  background: var(--royal-mid);
  top: 15%; left: 10%;
  animation-duration: 14s;
}
.hero-orb.orb-2 {
  width: 220px; height: 220px;
  background: var(--amber);
  bottom: 20%; right: 15%;
  animation-duration: 12s;
  animation-delay: -3s;
}
.hero-orb.orb-3 {
  width: 160px; height: 160px;
  background: var(--royal-light);
  top: 40%; right: 25%;
  animation-duration: 16s;
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -30px) scale(1.08); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1s 1.2s both;
  cursor: pointer;
  z-index: 1;
}
.hero-scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(0.6); transform-origin: top; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── STATS BAR ── */
.stats-bar {
  position: relative;
  z-index: 2;
  margin-top: -48px;
  padding: 0 1rem;
}
.stats-bar-inner {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px 32px;
  max-width: var(--container);
  margin-inline: auto;
}
.stat-item-home {
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-item-home .stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--royal-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-item-home .stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.stat-item-home .stat-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.stat-item-home .stat-divider-v {
  width: 1px; height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── ABOUT SNIPPET ── */
.about-section {
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--royal-pale);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-img::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--amber-gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}
.about-float-badge {
  position: absolute;
  bottom: -14px; right: -14px;
  background: linear-gradient(135deg, var(--amber), var(--amber-mid));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-mid);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: border-color var(--duration-base) var(--ease),
              color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}
.about-pill:hover {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: var(--shadow-sm);
}

/* ── PROGRAMS ── */
.programs-section { background: var(--white); }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* ── ADMISSION STATUS ── */
.admission-section { background: var(--cream); }

/* ── WHY CHOOSE ── */
.why-section { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* ── GALLERY PREVIEW ── */
.gallery-section { background: var(--cream); }
.gallery-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 16px;
  margin-top: 40px;
}
.gallery-cell-home:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-cell-home:nth-child(4) {
  grid-column: span 2;
}

/* ── NEWS & EVENTS ── */
.news-section { background: var(--white); }
.news-grid-home {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
/* .news-card-featured {
  grid-column: span 2;
} */

.news-empty-state {
  background: var(--royal-pale);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  margin-top: 40px;
  border: 2px dashed rgba(61,26,110,0.1);
}
.news-empty-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  opacity: 0.6;
}
.news-empty-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--royal-dark);
  margin-bottom: 12px;
}
.news-empty-desc {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto;
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  background: var(--royal-pale);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(61,26,110,0.03) 50px, rgba(61,26,110,0.03) 51px),
    repeating-linear-gradient(-45deg, transparent, transparent 50px, rgba(61,26,110,0.03) 50px, rgba(61,26,110,0.03) 51px);
}
.testimonials-wrap {
  position: relative;
  z-index: 1;
}
.testimonial-slider {
  overflow: hidden;
  margin-top: 40px;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 8px;
}
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.testimonial-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease-spring);
  color: var(--text-mid);
}
.testimonial-arrow:hover {
  background: var(--royal);
  border-color: var(--royal);
  color: var(--white);
  transform: scale(1.08);
}
.testimonial-dots {
  display: flex;
  gap: 8px;
}
.testimonial-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-dark);
  border: none;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
  padding: 0;
}
.testimonial-dot.active {
  background: var(--royal);
  transform: scale(1.2);
}

/* ── CTA SECTION ── */
.cta-section-home {
  background: var(--royal-dark);
  position: relative;
  overflow: hidden;
}
.cta-section-home::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 20% 50%, rgba(92,45,158,0.4), transparent),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(200,90,0,0.25), transparent);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid       { grid-template-columns: repeat(2, 1fr); }
  .news-grid-home { grid-template-columns: 1fr 1fr; }
  .news-card-featured { grid-column: span 2; }
  .gallery-grid-home {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
  }
  .gallery-cell-home:nth-child(1) {
    grid-column: span 3;
    grid-row: span 1;
  }
  .gallery-cell-home:nth-child(4) {
    grid-column: span 1;
  }
  .news-empty-state { padding: 60px 30px; }
}

@media (max-width: 768px) {
  .hero { padding-bottom: 60px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .stats-bar-inner { padding: 20px 24px; border-radius: var(--radius-lg); }
  .stat-item-home .stat-divider-v { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .programs-grid { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr; }
  .news-grid-home { grid-template-columns: 1fr; }
  .news-card-featured { grid-column: span 1; }
  .gallery-grid-home {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 180px);
  }
  .gallery-cell-home:nth-child(1),
  .gallery-cell-home:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
  .stats-bar-inner { gap: 16px; }
  .stat-item-home { gap: 10px; }
  .stat-item-home .stat-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .about-img::before { display: none; }
  .about-float-badge { right: 8px; bottom: -10px; font-size: 0.75rem; padding: 8px 12px; }
}
