/* ============================================
   Home Page — Premium Luxurious Redesign
   Emeralds International School
   ============================================ */

/* ══════════════════════════════
   KEYFRAME ANIMATIONS
   ══════════════════════════════ */

/* Hero background subtle zoom/pan */
@keyframes heroZoom {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.18) translate(-1.5%, -1%); }
}

/* Floating card levitation */
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-22px); }
}

/* Background grain noise overlay — subtle texture */
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-2%, -3%); }
  20%  { transform: translate(3%, 1%); }
  30%  { transform: translate(-1%, 4%); }
  40%  { transform: translate(4%, -2%); }
  50%  { transform: translate(-3%, 3%); }
  60%  { transform: translate(2%, -4%); }
  70%  { transform: translate(-4%, 1%); }
  80%  { transform: translate(1%, -3%); }
  90%  { transform: translate(3%, 2%); }
  100% { transform: translate(0, 0); }
}

/* Gold shimmer sweep for buttons/cards */
@keyframes goldSweep {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(250%) skewX(-15deg); }
}

/* Pulsing gold glow */
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,67,.35); }
  50%      { box-shadow: 0 0 0 14px rgba(212,168,67,0); }
}

/* CTA section twinkling stars */
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50%      { opacity: 1; transform: scale(1); }
}

/* Gold border grow on hover */
@keyframes borderGrow {
  from { width: 0; }
  to   { width: 100%; }
}

/* Timeline dot pulse */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,67,.4); }
  50%      { box-shadow: 0 0 0 10px rgba(212,168,67,0); }
}

/* Gentle glow for headings */
@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(212,168,67,.3), 0 0 60px rgba(212,168,67,.1); }
  50%      { text-shadow: 0 0 40px rgba(212,168,67,.5), 0 0 80px rgba(212,168,67,.2); }
}


/* ══════════════════════════════
   1. HERO SECTION
   ══════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #000;
  overflow: hidden;
  padding-top: 80px;
}

/* Background image with slow ken-burns */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.82;
  transform: scale(1.05);
  animation: heroZoom 28s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated film grain overlay — subtle texture */
.hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.5;
  animation: grainShift 8s steps(10) infinite;
  pointer-events: none;
  z-index: 1;
}

/* Gradient overlay — dark left for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6,15,30,0.97) 0%,
    rgba(10,25,47,0.85) 30%,
    rgba(10,25,47,0.45) 55%,
    transparent 100%
  );
  z-index: 2;
}

/* Additional bottom vignette for depth */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(6,15,30,0.6), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

/* Large background typography for depth */
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: -5%;
  transform: translateY(-50%);
  font-size: 15vw;
  font-family: var(--font-display);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(212,168,67,0.06);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  letter-spacing: 12px;
  white-space: nowrap;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  padding-left: 20px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 4.2vw, 4.2rem);
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.hero-content h1 span {
  color: var(--gold-500);
  display: inline-block;
  font-style: italic;
  font-weight: 800;
  position: relative;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  opacity: 0.2;
  border-radius: 5px;
  z-index: -1;
}

.hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  margin-bottom: 44px;
  line-height: 1.85;
  border-left: 3px solid var(--gold-500);
  padding-left: 22px;
  position: relative;
}

/* Gold glow on the border */
.hero-content p::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-500);
  filter: blur(6px);
  opacity: 0.5;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 36px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.4s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.hero-buttons .btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border: none;
  font-weight: 700;
  box-shadow: 0 6px 25px rgba(212,168,67,0.35);
}

.hero-buttons .btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%) skewX(-15deg);
}

.hero-buttons .btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(212,168,67,0.45);
}

.hero-buttons .btn-primary:hover::after {
  animation: goldSweep 0.8s ease forwards;
}

.hero-buttons .btn-outline {
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.05);
}

.hero-buttons .btn-outline:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255,255,255,0.15);
}

/* ── Floating Visual Cards ── */
.hero-visuals {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 26px 34px;
  border-radius: var(--r-xl);
  box-shadow:
    0 25px 50px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.1);
  color: var(--white);
  z-index: 3;
  animation: floatCard 8s infinite ease-in-out;
  transition: all 0.5s var(--ease-out);
}

/* Animated gradient border on hover */
.floating-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,168,67,0.3), transparent 40%, rgba(212,168,67,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.floating-card:hover::before {
  opacity: 1;
}

.floating-card:hover {
  border-color: rgba(212,168,67,0.3);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.4),
    0 0 30px rgba(212,168,67,0.08),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.floating-card .fc-title {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-400);
  margin-bottom: 8px;
  font-weight: 600;
}

.floating-card .fc-val {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.floating-card .fc-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.floating-card.c1 {
  top: 8%;
  right: 0;
  animation-delay: 0s;
}

.floating-card.c2 {
  bottom: 12%;
  left: 0;
  animation-delay: 2.5s;
}

.floating-card.c3 {
  top: 42%;
  right: 18%;
  animation-delay: 5s;
  padding: 22px;
  border-radius: 50%;
  width: 125px;
  height: 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(212,168,67,0.08);
  border-color: rgba(212,168,67,0.2);
}

.floating-card.c3::before {
  border-radius: 50%;
}


/* ══════════════════════════════
   3. ABOUT SECTION
   ══════════════════════════════ */

.about-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle dot pattern background */
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(212,168,67,0.04) 1px, transparent 0);
  background-size: 44px 44px;
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: var(--s-md);
  color: var(--gray-600);
  border-left: 3px solid var(--gold-500);
  padding-left: 22px;
  position: relative;
  transition: all 0.5s var(--ease-out);
}

.about-text p:hover {
  border-left-color: var(--gold-400);
  padding-left: 28px;
}

/* Gold glow on border */
.about-text p::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 10%;
  width: 3px;
  height: 80%;
  background: var(--gold-500);
  filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-text p:hover::before {
  opacity: 0.6;
}

.about-text .btn {
  margin-top: var(--s-sm);
}

/* ── About Image — offset gold frame effect ── */
.about-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: visible;
}

/* Offset gold border frame */
.about-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 3px solid var(--gold-500);
  border-radius: var(--r-lg);
  z-index: -1;
  transition: all 0.6s var(--ease-out);
  opacity: 0.5;
}

.about-image:hover::before {
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  opacity: 0.8;
  border-color: var(--gold-400);
  box-shadow: 0 0 30px rgba(212,168,67,0.15);
}

/* Decorative gold corner accent */
.about-image::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  border-top: 4px solid var(--gold-500);
  border-right: 4px solid var(--gold-500);
  border-radius: 0 var(--r-sm) 0 0;
  z-index: 5;
  opacity: 0.7;
  transition: all 0.5s var(--ease-out);
}

.about-image:hover::after {
  width: 80px;
  height: 80px;
  opacity: 1;
}

.image-wrapper {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.6s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10,25,47,0.3), rgba(212,168,67,0.15));
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
}

.about-image:hover .image-wrapper img {
  transform: scale(1.08);
}

.about-image:hover .image-overlay {
  opacity: 1;
}


/* ══════════════════════════════
   4. ACADEMIC LEVELS
   ══════════════════════════════ */

.academic-levels {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow in background */
.academic-levels::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.academic-levels::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,122,189,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Override section header for dark section */
.academic-levels .section-tag {
  background: rgba(212,168,67,0.12);
  border-color: rgba(212,168,67,0.3);
  color: var(--gold-400);
}

.academic-levels .section-title {
  color: var(--white);
}

.academic-levels .section-title::after {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
}

.academic-levels .section-description {
  color: rgba(255,255,255,0.6);
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-md);
  position: relative;
  z-index: 1;
}

.level-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: var(--s-lg) var(--s-md);
  border-radius: var(--r-lg);
  text-align: center;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Background gold number watermark (01, 02, 03, 04) */
.level-card:nth-child(1)::after { content: '01'; }
.level-card:nth-child(2)::after { content: '02'; }
.level-card:nth-child(3)::after { content: '03'; }
.level-card:nth-child(4)::after { content: '04'; }

.level-card::after {
  position: absolute;
  top: -10px;
  right: -5px;
  font-size: 8rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: rgba(212,168,67,0.05);
  line-height: 1;
  pointer-events: none;
  transition: all 0.5s var(--ease-out);
}

.level-card:hover::after {
  color: rgba(212,168,67,0.1);
  transform: scale(1.1);
}

/* Animated gold bottom border on hover */
.level-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-300));
  transition: all 0.5s var(--ease-out);
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
}

.level-card:hover::before {
  width: 100%;
}

.level-card:hover {
  transform: translateY(-12px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(212,168,67,0.25);
  box-shadow:
    0 25px 50px rgba(0,0,0,0.3),
    0 0 30px rgba(212,168,67,0.08);
}

.level-icon {
  width: 85px;
  height: 85px;
  margin: 0 auto var(--s-md);
  background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(212,168,67,0.05));
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold-400);
  transition: all 0.5s var(--ease-out);
}

.level-card:hover .level-icon {
  background: linear-gradient(135deg, rgba(212,168,67,0.25), rgba(212,168,67,0.1));
  border-color: var(--gold-500);
  box-shadow: 0 0 35px rgba(212,168,67,0.2);
  transform: scale(1.08);
}

.level-card h3 {
  margin-bottom: var(--s-xs);
  color: var(--white);
  font-size: 1.35rem;
}

.level-card p {
  margin-bottom: var(--s-md);
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.7;
}

.level-link {
  color: var(--gold-400);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.35s var(--ease-out);
  position: relative;
}

.level-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-400);
  transition: width 0.35s var(--ease-out);
}

.level-link:hover {
  gap: 1rem;
  color: var(--gold-300);
}

.level-link:hover::after {
  width: 100%;
}


/* ══════════════════════════════
   5. CAMPUS FACILITIES
   ══════════════════════════════ */

.campus-section {
  background: var(--white);
  position: relative;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 340px;
  gap: var(--s-md);
}

/* Bento: first card spans 2 columns */
.facility-card:first-child {
  grid-column: span 2;
}

.facility-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.5s var(--ease-out);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* Gold gradient border on hover */
.facility-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300), var(--gold-500));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 3;
}

.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover), 0 0 25px rgba(212,168,67,0.08);
}

.facility-card:hover::after {
  opacity: 1;
}

.facility-image {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.facility-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

/* Permanent subtle gradient overlay at bottom showing title area */
.facility-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(6,15,30,0.7) 0%,
    rgba(6,15,30,0.2) 40%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  transition: all 0.5s var(--ease-out);
  z-index: 1;
}

.facility-overlay i {
  font-size: 2.5rem;
  color: var(--gold-400);
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s var(--ease-out);
  filter: drop-shadow(0 2px 8px rgba(212,168,67,0.3));
}

.facility-card:hover .facility-image img {
  transform: scale(1.12);
}

.facility-card:hover .facility-overlay i {
  opacity: 1;
  transform: translateY(0);
}

/* Facility card text */
.facility-card h3 {
  padding: var(--s-sm) var(--s-md) 4px;
  margin-bottom: 0;
  font-size: 1.15rem;
  color: var(--navy-900);
  position: relative;
  z-index: 2;
}

.facility-card p {
  padding: 0 var(--s-md) var(--s-sm);
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* No-image cards: icon on gradient background */
.facility-no-img {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700)) !important;
}

.facility-no-img .facility-overlay {
  background: linear-gradient(135deg, rgba(10,25,47,0.6), rgba(27,58,92,0.6));
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
}

.facility-no-img .facility-overlay i {
  opacity: 1;
  transform: none;
  font-size: 3.5rem;
  color: var(--gold-400);
}


/* ══════════════════════════════
   6. NEWS SECTION
   ══════════════════════════════ */

.news-section {
  background: var(--bg-alt);
  position: relative;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
}

/* Magazine style: first card is larger */
.news-grid .news-card:first-child {
  grid-column: span 2;
  grid-row: span 1;
}

.news-grid .news-card:first-child .news-image {
  padding-top: 55%;
}

.news-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.5s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 25px 55px rgba(10,25,47,0.12),
    0 0 20px rgba(212,168,67,0.08);
}

.news-image {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
}

.news-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.news-card:hover .news-image img {
  transform: scale(1.08);
}

/* Calendar-style date badge */
.news-date {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--white);
  color: var(--navy-900);
  padding: 0;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 56px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  line-height: 1;
  z-index: 2;
}

/* Day part (top) */
.news-date .date-day,
.news-date strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 8px 12px 4px;
  color: var(--navy-900);
}

/* Month part (bottom) */
.news-date .date-month,
.news-date small {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px 7px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 700;
}

/* Fallback: when date is rendered as plain text */
.news-date:not(:has(.date-day)):not(:has(strong)) {
  padding: 8px 14px;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.78rem;
}

.news-content {
  padding: var(--s-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Category badges with distinct colors */
.news-category {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: var(--s-xs);
  width: fit-content;
  background: rgba(212,168,67,0.1);
  color: var(--gold-500);
  border: 1px solid rgba(212,168,67,0.2);
}

/* Category color variations — using nth-child for variety */
.news-card:nth-child(1) .news-category {
  background: rgba(59,122,189,0.1);
  color: var(--navy-600);
  border-color: rgba(59,122,189,0.2);
}

.news-card:nth-child(2) .news-category {
  background: rgba(212,168,67,0.1);
  color: var(--gold-500);
  border-color: rgba(212,168,67,0.2);
}

.news-card:nth-child(3) .news-category {
  background: rgba(16,185,129,0.1);
  color: #10B981;
  border-color: rgba(16,185,129,0.2);
}

.news-content h3 {
  margin-bottom: var(--s-xs);
  font-size: 1.2rem;
  color: var(--navy-900);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-card:hover .news-content h3 {
  color: var(--gold-500);
}

.news-content p {
  margin-bottom: var(--s-md);
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
}

.news-link {
  color: var(--navy-700);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.35s var(--ease-out);
}

.news-link:hover {
  gap: 1rem;
  color: var(--gold-500);
}


/* ══════════════════════════════
   7. EVENTS TIMELINE
   ══════════════════════════════ */

.events-section {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

/* Background glow */
.events-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212,168,67,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Dark section header overrides */
.events-section .section-tag {
  background: rgba(212,168,67,0.12);
  border-color: rgba(212,168,67,0.3);
  color: var(--gold-400);
}

.events-section .section-title {
  color: var(--white);
}

.events-section .section-title::after {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
}

.events-section .section-description {
  color: rgba(255,255,255,0.6);
}

.events-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: var(--s-lg) 0;
}

/* Vertical gold line */
.events-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--gold-500) 10%,
    var(--gold-500) 90%,
    transparent
  );
  z-index: 0;
}

.event-item {
  display: flex;
  gap: var(--s-md);
  margin-bottom: var(--s-lg);
  position: relative;
  z-index: 1;
  width: 45%;
  transition: all 0.5s var(--ease-out);
}

/* Alternate left/right positioning */
.event-item:nth-child(odd) {
  margin-left: 0;
  margin-right: auto;
  flex-direction: row;
  padding-right: var(--s-lg);
}

.event-item:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
  flex-direction: row-reverse;
  padding-left: var(--s-lg);
}

/* Gold dots on timeline */
.event-item::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--gold-500);
  border: 3px solid var(--navy-900);
  border-radius: 50%;
  z-index: 3;
  animation: dotPulse 3s infinite;
}

.event-item:nth-child(odd)::before {
  right: -8px;
  transform: translateX(50%);
}

.event-item:nth-child(even)::before {
  left: -8px;
  transform: translateX(-50%);
}

/* Connector lines from dot to card */
.event-item::after {
  content: '';
  position: absolute;
  top: 37px;
  width: 30px;
  height: 2px;
  background: rgba(212,168,67,0.3);
}

.event-item:nth-child(odd)::after {
  right: 0;
}

.event-item:nth-child(even)::after {
  left: 0;
}

/* Event card container */
.event-item .event-content {
  flex: 1;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: var(--s-md);
  transition: all 0.5s var(--ease-out);
}

.event-item:hover .event-content {
  background: rgba(255,255,255,0.1);
  border-color: rgba(212,168,67,0.25);
  box-shadow: 0 0 30px rgba(212,168,67,0.08);
}

/* Event date — gold circle badge */
.event-date {
  min-width: 72px;
  max-width: 72px;
  height: 72px;
  text-align: center;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(212,168,67,0.3);
  transition: all 0.5s var(--ease-out);
}

.event-item:hover .event-date {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(212,168,67,0.4);
}

.date-day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-display);
}

.date-month {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-top: 2px;
}

.event-content h3 {
  margin-bottom: var(--s-xs);
  font-size: 1.15rem;
  color: var(--white);
}

.event-content p {
  margin-bottom: var(--s-sm);
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.6;
}

.event-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-400);
  font-size: 0.82rem;
  font-weight: 600;
}

.event-time i {
  font-size: 0.9rem;
}


/* ══════════════════════════════
   8. GALLERY SECTION
   ══════════════════════════════ */

.gallery-section {
  background: var(--bg-alt);
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: var(--s-md);
}

/* Masonry-inspired: vary heights */
.gallery-grid .gallery-item:nth-child(1) {
  grid-row: span 2;
}

.gallery-grid .gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-grid .gallery-item:nth-child(6) {
  grid-row: span 2;
}

.gallery-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s var(--ease-out);
}

/* Gold border glow on hover */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300), var(--gold-500));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 3;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  box-shadow: var(--shadow-xl), 0 0 20px rgba(212,168,67,0.1);
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,15,30,0.7),
    rgba(212,168,67,0.25)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s var(--ease-out);
  z-index: 2;
}

.gallery-overlay i {
  font-size: 2.5rem;
  color: var(--white);
  transform: scale(0.5) rotate(-15deg);
  transition: all 0.5s var(--ease-spring);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1) rotate(0deg);
}


/* ══════════════════════════════
   9. CTA SECTION
   ══════════════════════════════ */

.cta-section {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900), var(--navy-800));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* CSS-only animated particle/star dots background */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(212,168,67,0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 25% 60%, rgba(212,168,67,0.3) 50%, transparent 50%),
    radial-gradient(2px 2px at 40% 15%, rgba(212,168,67,0.4) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 55% 75%, rgba(212,168,67,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 35%, rgba(212,168,67,0.3) 50%, transparent 50%),
    radial-gradient(2px 2px at 80% 80%, rgba(212,168,67,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 10%, rgba(212,168,67,0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(212,168,67,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 45%, rgba(212,168,67,0.25) 50%, transparent 50%),
    radial-gradient(2px 2px at 35% 90%, rgba(212,168,67,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 85% 55%, rgba(212,168,67,0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 5% 50%, rgba(212,168,67,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 50% 5%, rgba(212,168,67,0.3) 50%, transparent 50%),
    radial-gradient(2px 2px at 95% 40%, rgba(212,168,67,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 45% 95%, rgba(212,168,67,0.25) 50%, transparent 50%);
  animation: twinkle 6s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Second layer of twinkling stars — offset timing */
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 18% 30%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 32% 70%, rgba(255,255,255,0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 48% 22%, rgba(255,255,255,0.25) 50%, transparent 50%),
    radial-gradient(2px 2px at 63% 85%, rgba(255,255,255,0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 78% 45%, rgba(255,255,255,0.15) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 88% 15%, rgba(255,255,255,0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 8% 65%, rgba(255,255,255,0.25) 50%, transparent 50%),
    radial-gradient(1px 1px at 72% 8%, rgba(255,255,255,0.2) 50%, transparent 50%);
  animation: twinkle 8s ease-in-out 2s infinite alternate;
  pointer-events: none;
}

/* Large background radial glow */
.cta-section .container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: var(--s-md);
  animation: textGlow 4s ease-in-out infinite;
}

.cta-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--s-lg);
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: var(--s-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-weight: 700;
  box-shadow: 0 6px 25px rgba(212,168,67,0.35);
  position: relative;
  overflow: hidden;
}

/* Shine sweep effect */
.cta-buttons .btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50px;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-15deg);
  transition: none;
}

.cta-buttons .btn-primary:hover::after {
  animation: goldSweep 0.7s ease forwards;
}

.cta-buttons .btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(212,168,67,0.5);
}

.cta-buttons .btn-secondary {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.cta-buttons .btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50px;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-15deg);
  transition: none;
}

.cta-buttons .btn-secondary:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255,255,255,0.15);
}

.cta-buttons .btn-secondary:hover::after {
  animation: goldSweep 0.7s ease forwards;
}


/* ══════════════════════════════
   SECTION FOOTER OVERRIDE
   ══════════════════════════════ */

.news-section .section-footer,
.gallery-section .section-footer {
  text-align: center;
  margin-top: var(--s-xl);
}


/* ══════════════════════════════════════════════
   RESPONSIVE — 991px (Tablet landscape)
   ══════════════════════════════════════════════ */

@media (max-width: 991px) {
  /* Hero */
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visuals {
    display: none;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(6,15,30,0.97) 0%, rgba(10,25,47,0.8) 60%, rgba(10,25,47,0.6) 100%);
  }

  .hero-content {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content p {
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--gold-500);
    padding-top: 22px;
    margin-top: 10px;
    text-align: center;
  }

  .hero-content p::before {
    display: none;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-bg-text {
    font-size: 22vw;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-text-stroke: 1px rgba(212,168,67,0.04);
  }

  /* About */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--s-lg);
  }

  .about-image::before {
    top: 14px;
    left: 14px;
    right: -14px;
    bottom: -14px;
  }

  .about-image::after {
    width: 45px;
    height: 45px;
  }

  /* Academic Levels */
  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Campus */
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
  }

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

  /* News */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid .news-card:first-child {
    grid-column: span 2;
  }

  /* Events — stack vertically */
  .events-timeline::before {
    left: 30px;
    transform: none;
  }

  .event-item {
    width: 100%;
    flex-direction: row !important;
    padding-left: 60px !important;
    padding-right: 0 !important;
  }

  .event-item:nth-child(odd),
  .event-item:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
    flex-direction: row !important;
    padding-left: 60px !important;
    padding-right: 0 !important;
  }

  .event-item::before {
    left: 22px !important;
    right: auto !important;
    transform: none !important;
  }

  .event-item::after {
    left: 38px !important;
    right: auto !important;
    width: 22px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-grid .gallery-item:nth-child(1) {
    grid-row: span 2;
  }

  .gallery-grid .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

  .gallery-grid .gallery-item:nth-child(6) {
    grid-row: span 1;
  }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — 768px (Tablet portrait)
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Hero */
  .hero {
    min-height: 85vh;
    padding-top: 70px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
    letter-spacing: -0.5px;
  }

  .hero-content p {
    font-size: 0.92rem;
    max-width: 450px;
  }

  /* About */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--s-md);
  }

  .about-text p {
    font-size: 0.95rem;
    padding-left: 18px;
  }

  .about-image::before {
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
  }

  .about-image::after {
    display: none;
  }

  /* Academic Levels */
  .levels-grid {
    grid-template-columns: 1fr;
    gap: var(--s-sm);
  }

  .level-card {
    padding: var(--s-md);
  }

  .level-icon {
    width: 70px;
    height: 70px;
    font-size: 1.7rem;
  }

  .level-card::after {
    font-size: 6rem;
  }

  /* Campus */
  .facilities-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  .facility-card:first-child {
    grid-column: span 1;
  }

  /* News */
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-grid .news-card:first-child {
    grid-column: span 1;
  }

  .news-grid .news-card:first-child .news-image {
    padding-top: 62%;
  }

  /* Events */
  .events-timeline::before {
    left: 20px;
  }

  .event-item {
    padding-left: 50px !important;
    flex-direction: column !important;
    gap: var(--s-sm);
  }

  .event-item::before {
    left: 12px !important;
    top: 25px;
  }

  .event-item::after {
    left: 28px !important;
    top: 32px;
    width: 18px;
  }

  .event-date {
    min-width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
    flex-direction: row;
    gap: var(--s-xs);
    padding: var(--s-xs) var(--s-sm);
  }

  .date-day {
    font-size: 1.3rem;
  }

  .date-month {
    font-size: 0.75rem;
    margin-top: 0;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-grid .gallery-item:nth-child(1) {
    grid-row: span 1;
  }

  .gallery-grid .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

  .gallery-grid .gallery-item:nth-child(6) {
    grid-row: span 1;
  }

  /* CTA */
  .cta-content h2 {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-buttons {
    gap: var(--s-sm);
  }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — 480px (Mobile)
   ══════════════════════════════════════════════ */

@media (max-width: 480px) {
  /* Hero */
  .hero {
    min-height: 80vh;
    padding-top: 60px;
  }

  .hero-content h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    margin-bottom: 20px;
  }

  .hero-content p {
    font-size: 0.87rem;
    margin-bottom: 30px;
    max-width: 100%;
    padding-top: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-bg-text {
    font-size: 30vw;
    -webkit-text-stroke: 1px rgba(212,168,67,0.03);
  }

  /* About */
  .about-text p {
    font-size: 0.88rem;
    padding-left: 14px;
    border-left-width: 2px;
    margin-bottom: var(--s-sm);
  }

  .about-image::before {
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    border-width: 2px;
  }

  .about-image::after {
    display: none;
  }

  .image-wrapper {
    border-radius: var(--r-md);
  }

  /* Academic Levels */
  .levels-grid {
    gap: var(--s-xs);
  }

  .level-card {
    padding: var(--s-sm) var(--s-xs);
  }

  .level-card h3 {
    font-size: 1.1rem;
  }

  .level-card p {
    font-size: 0.85rem;
  }

  .level-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .level-card::after {
    font-size: 5rem;
    top: -8px;
    right: -3px;
  }

  /* Campus */
  .facilities-grid {
    grid-auto-rows: 240px;
    gap: var(--s-sm);
  }

  .facility-card h3 {
    font-size: 1.05rem;
    padding: var(--s-xs) var(--s-sm) 2px;
  }

  .facility-card p {
    font-size: 0.82rem;
    padding: 0 var(--s-sm) var(--s-xs);
  }

  /* News */
  .news-grid {
    gap: var(--s-sm);
  }

  .news-content {
    padding: var(--s-sm);
  }

  .news-content h3 {
    font-size: 1.05rem;
  }

  .news-content p {
    font-size: 0.85rem;
  }

  /* Events */
  .events-timeline::before {
    left: 14px;
  }

  .event-item {
    padding-left: 40px !important;
    margin-bottom: var(--s-md);
    gap: var(--s-xs);
  }

  .event-item::before {
    left: 6px !important;
    width: 14px;
    height: 14px;
  }

  .event-item::after {
    left: 20px !important;
    width: 16px;
  }

  .event-item .event-content {
    padding: var(--s-sm);
  }

  .event-content h3 {
    font-size: 1rem;
  }

  .event-content p {
    font-size: 0.82rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: var(--s-sm);
  }

  .gallery-grid .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-overlay i {
    font-size: 2rem;
  }

  /* CTA */
  .cta-content h2 {
    font-size: 1.5rem;
    animation: none;
  }

  .cta-content p {
    font-size: 0.9rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ══════════════════════════════
   REDUCED MOTION PREFERENCE
   ══════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
    transform: scale(1);
  }

  .hero::before {
    animation: none;
  }

  .floating-card {
    animation: none;
  }

  .cta-section::before,
  .cta-section::after {
    animation: none;
    opacity: 0.6;
  }

  .cta-content h2 {
    animation: none;
  }

  .event-item::before {
    animation: none;
  }
}
