/* app/assets/stylesheets/home.css */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --max-w: 1200px;
  --red: #c0392b;
  --red-dark: #922b21;
  --navy: #1a2356;
  --gold: #c9a84c;
  --text-dark: #1a1a2e;
  --text-mid: #3d3d3d;
  --text-muted: #777;
  --gray-light: #f9f9f9;
  --gray-border: #e8e8e8;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text-dark); overflow-x: hidden; }

/* ── SCROLL ANIMATIONS ── */
[data-anim] { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-anim="fade-left"]  { transform: translateX(-40px); }
[data-anim="fade-right"] { transform: translateX(40px); }
[data-anim].anim-visible { opacity: 1; transform: translate(0); }
[data-anim-delay="100"].anim-visible { transition-delay: 0.1s; }
[data-anim-delay="200"].anim-visible { transition-delay: 0.2s; }
[data-anim-delay="300"].anim-visible { transition-delay: 0.3s; }
[data-anim-delay="400"].anim-visible { transition-delay: 0.4s; }
[data-anim-delay="500"].anim-visible { transition-delay: 0.5s; }


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative; width: 100%;
  height: calc(100vh - 2px); min-height: 560px; overflow: hidden;
}
.bg-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1);
  transition: opacity 1.2s ease-in-out; z-index: 1;
}
.bg-slide.active {
  opacity: 1; animation: kenBurns 7s ease-in-out forwards; z-index: 2;
}
.bg-slide.leaving { opacity: 0; z-index: 3; transition: opacity 1.4s ease; }
@keyframes kenBurns { 0% { transform: scale(1); } 100% { transform: scale(1.10); } }

.hero-overlay {
  position: absolute; inset: 0; z-index: 4;
  background: linear-gradient(135deg, rgba(10,10,30,0.72) 0%, rgba(10,10,30,0.44) 60%, rgba(10,10,30,0.28) 100%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 60px 60px 280px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: #f0d060; margin-bottom: 14px;
}
.hero-tag::before { content: ''; display: block; width: 36px; height: 1.5px; background: #f0d060; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 68px); font-weight: 900;
  line-height: 1.1; color: #fff; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-title .gold { color: #f0d060; }
.hero-subtitle {
  font-size: 15px; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.88); max-width: 560px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #b8860b; color: #fff; padding: 13px 30px; border-radius: 3px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: #8b6508; transform: translateY(-1px); }
.btn-primary svg { width: 14px; height: 14px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.6); color: #fff;
  padding: 12px 28px; border-radius: 3px; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
  transition: border-color 0.25s, background 0.25s; backdrop-filter: blur(4px);
}
.btn-outline:hover { border-color: #f0d060; background: rgba(255,255,255,0.08); }
.slide-dots { position: absolute; bottom: 22px; right: 28px; display: flex; gap: 8px; z-index: 6; }
.dot {
  width: 10px; height: 10px; background: rgba(255,255,255,0.4);
  border-radius: 50%; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.dot.active { background: #fff; transform: scale(1.25); }

/* ══════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════ */
.about-section {
  padding: 40px 24px;
  background: linear-gradient(rgba(255,255,255,0.93), rgba(255,255,255,0.93)),
                  url("net-shape.png") center / cover fixed;
}
.about-inner { max-width: var(--max-w); margin: 0 auto; }
.about-header { margin-bottom: 40px; }
.section-tag {
  display: inline-block; color: var(--red); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 36px); color: var(--text-dark); line-height: 1.2; margin-bottom: 6px;
}
.section-sub { font-size: 14px; color: var(--text-muted); font-style: italic; }
.about-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-img-main { width: 100%; height: 390px; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.about-img-thumb { height: 150px; border-radius: 10px; overflow: hidden; }
.about-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.about-right { display: flex; flex-direction: column; gap: 7px; }
.about-para { font-size: 14.5px; color: var(--text-mid); line-height: 1.85; }
.about-para strong { color: var(--text-dark); }
.about-divider { height: 1px; background: var(--gray-border); }
.about-hl-title { font-size: 12px; font-weight: 700; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.1em; }
.about-highlights { display: flex; flex-direction: column; gap: 10px; }
.about-hl {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--gray-light); border: 0.5px solid var(--gray-border);
  transition: background 0.2s, border-color 0.2s;
}
.about-hl:hover { background: #fff0f1; border-color: #f5c0c3; }
.about-hl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; margin-top: 5px; }
.about-hl-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.about-hl-text span { font-size: 12px; color: var(--text-muted); }
.about-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff0f1; border: 0.5px solid #f5c0c3;
  border-radius: 20px; padding: 7px 16px; font-size: 12px; font-weight: 600; color: var(--red-dark);
}

/* ══════════════════════════════════════════
   FACILITIES SECTION
══════════════════════════════════════════ */
.facilities-section {
  padding: 60px 24px;
  background: linear-gradient(rgba(8,20,40,0.82), rgba(8,20,40,0.82)), url("/assets/bg4-fb111928.png");
  background-size: cover; background-position: center; background-attachment: fixed;
}
.facilities-inner { max-width: var(--max-w); margin: 0 auto; }
.facilities-header { text-align: center; margin-bottom: 55px; }
.facilities-header .section-title { color: #fff; }
.facilities-header .section-sub { color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto; font-size: 15px; line-height: 1.7; }
.facilities-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.facility-card { position: relative; height: 340px; border-radius: 18px; overflow: hidden; cursor: pointer; background: #000; }
.facility-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.facility-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,17,44,0.96), rgba(4,17,44,0.15));
}
.facility-content { position: absolute; left: 24px; bottom: 24px; right: 20px; z-index: 2; color: #fff; }
.facility-content h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.facility-content p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.85); }
.facility-card:hover img { transform: scale(1.08); }

/* ══════════════════════════════════════════
   WHY ROYAL SECTION
══════════════════════════════════════════ */
.why-section { padding: 60px 0; background: #fff; }
.why-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.why-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 48px; }
.why-tag {
  font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase;
  letter-spacing: 0.14em; display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.why-tag::after { content: ''; flex: 1; height: 1.5px; background: var(--red); }
.why-h2 { font-family: 'Playfair Display', serif; font-size: clamp(24px,3vw,34px); font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.why-desc { font-size: 14.5px; color: var(--text-mid); line-height: 1.85; padding-top: 6px; }
.why-body { display: grid; grid-template-columns: 1fr 1fr; }
.why-img { position: relative; min-height: 380px; border-radius: 12px 0 0 12px; overflow: hidden; }
.why-img img { width: 100%; height: 100%; object-fit: cover; }
.why-img-accent { position: absolute; bottom: 0; left: 0; width: 16px; height: 80px; background: #1565c0; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; }
.why-card { padding: 30px 24px; border: 0.5px solid var(--gray-border); display: flex; flex-direction: column; gap: 14px; transition: background 0.2s; }
.why-card:hover { background: #fafafa; }
.why-icon { width: 50px; height: 50px; background: #fff0f1; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.why-card h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.why-card p { font-size: 13.5px; color: var(--text-mid); line-height: 1.75; }

/* ══════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════ */
.stats-section { position: relative; padding: 30px 24px; overflow: hidden; }
.stats-bg {
  position: absolute; inset: 0;
  background-image: url("/assets/bg5-eec74483.png");
  background-size: cover; background-position: center; background-attachment: fixed;
  filter: brightness(0.38) saturate(0.7); z-index: 0;
}
.stats-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,18,40,0.55) 0%, rgba(204,41,54,0.12) 100%); z-index: 1;
}
.stats-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2; }
.stats-top { text-align: center; margin-bottom: 52px; }
.stats-tag { display: inline-block; color: #ff8a93; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
.stats-title { font-family: 'Playfair Display', serif; font-size: clamp(22px,3vw,32px); font-weight: 700; color: #fff; line-height: 1.25; text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.stats-title span { color: var(--red); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 40px 24px; border-right: 1px solid rgba(255,255,255,0.15); transition: background 0.35s; cursor: default; }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.06); }
.stat-icon-wrap {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(204,41,54,0.18); border: 1.5px solid rgba(204,41,54,0.45);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  margin-bottom: 20px; transition: background 0.3s, transform 0.3s;
}
.stat-item:hover .stat-icon-wrap { background: rgba(204,41,54,0.35); transform: scale(1.1); }
.stat-number { font-family: 'Playfair Display', serif; font-size: clamp(38px,4.5vw,56px); font-weight: 700; color: #fff; line-height: 1; display: flex; align-items: flex-end; gap: 2px; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.stat-plus { font-size: 30px; color: var(--red); font-weight: 700; margin-bottom: 4px; line-height: 1.1; }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 10px; font-weight: 600; }
.stat-bar { width: 36px; height: 3px; background: var(--red); border-radius: 2px; margin-top: 16px; transition: width 0.4s ease; }
.stat-item:hover .stat-bar { width: 64px; }

/* ══════════════════════════════════════════
   COURSES SECTION
══════════════════════════════════════════ */
.courses-section {
  padding: 40px 24px 100px;
  background: linear-gradient(rgba(238,230,246,0.92), rgba(145,183,241,0.92)),url("/assets/bg6-586033d5.png");
  background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed;
  position: relative; overflow: hidden;
}

.courses-section::before {
  content: 'ROYAL'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: 'Playfair Display', serif; font-size: clamp(100px,18vw,220px);
  font-weight: 800; color: rgba(26,35,86,0.04);
  white-space: nowrap; pointer-events: none; z-index: 0; letter-spacing: 0.1em;
}

.courses-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }

.courses-head { text-align: center; margin-bottom: 60px; }

.courses-tag {
  display: inline-block; background: rgba(204,41,54,0.1); color: var(--red);
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 50px; margin-bottom: 16px;
}

.courses-title {
  font-family: 'Playfair Display', serif; font-size: clamp(28px,4vw,46px);
  font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 16px;
}
.courses-title span { color: var(--red); }

.courses-desc { font-size: 16px; color: #555; max-width: 600px; margin: 0 auto; line-height: 1.7; }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  align-items: stretch;
}

.course-card {
  background: #fff;
  border-radius: 20px;
  overflow: visible;           /* ← changed from hidden to visible */
  position: relative;
  box-shadow: 0 4px 24px rgba(26,35,86,0.08);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease;
  cursor: default;
  opacity: 0;
  transform: translateY(-60px);
  display: flex;               /* ← added */
  flex-direction: column;      /* ← added */
}

.course-card.visible { animation: slideDown 0.65s cubic-bezier(.22,1,.36,1) forwards; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-60px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.course-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(26,35,86,0.15); }

.card-bar {
  height: 5px;
  background: var(--navy);
  border-radius: 20px 20px 0 0;   /* ← added to keep top corners rounded */
  flex-shrink: 0;                  /* ← added */
}
.course-card.featured .card-bar { background: var(--red); }
.course-card.gold .card-bar     { background: var(--gold); }

.grade-badge {
  position: absolute;
  top: -16px;                              /* ← changed from 20px to -16px */
  right: 20px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; line-height: 1.1;
  box-shadow: 0 4px 16px rgba(204,41,54,0.35);
  transition: transform 0.3s ease;
  z-index: 2;                              /* ← added */
}
.course-card.featured .grade-badge { background: #fff; color: var(--red); }
.course-card.gold .grade-badge     { background: var(--gold); color: #4a2800; }
.course-card:hover .grade-badge    { transform: scale(1.1) rotate(-5deg); }

.grade-badge .grade-label { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.grade-badge .grade-val   { font-size: 14px; font-weight: 800; }

.card-body {
  padding: 28px 28px 32px;
  flex: 1;                     /* ← added so body fills remaining card height */
}

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(26,35,86,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}

.card-title {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  color: var(--navy); margin-bottom: 12px; padding-right: 70px; line-height: 1.25;
}
.course-card.featured .card-title { color: #fff; }

.card-desc { font-size: 14px; color: #666; line-height: 1.65; margin-bottom: 20px; }
.course-card.featured .card-desc { color: rgba(255,255,255,0.8); }

.card-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #555; line-height: 1.4; }
.course-card.featured .card-features li { color: rgba(255,255,255,0.75); }

.feat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-top: 5px; flex-shrink: 0; }
.course-card.featured .feat-dot { background: #fff; }
.course-card.gold .feat-dot     { background: var(--gold); }

.course-card.featured { background: var(--navy); }

.card-footer {
  padding: 0 28px 24px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--red);
  cursor: pointer; text-decoration: none; width: fit-content;
  transition: gap 0.2s;
  margin-top: auto;            /* ← added so footer always sticks to bottom */
}
.course-card.featured .card-footer { color: rgba(255,255,255,0.7); }
.card-footer:hover { gap: 10px; }

.card-footer-arrow { font-size: 16px; transition: transform 0.2s; }
.card-footer:hover .card-footer-arrow { transform: translateX(4px); }
/* ══════════════════════════════════════════
   PRINCIPAL SECTION
══════════════════════════════════════════ */
.principal-section {
  position: relative; padding: 50px 24px; overflow: hidden;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 50%, #ffffff 100%);
}
.principal-shape { position: absolute; border-radius: 50%; filter: blur(40px); z-index: 0; animation: floatShape 8s ease-in-out infinite; }
.shape-1 { width: 260px; height: 260px; background: rgba(214,40,57,0.12); top: -60px; left: -80px; }
.shape-2 { width: 300px; height: 300px; background: rgba(29,78,216,0.12); bottom: -100px; right: -80px; animation-delay: 2s; }
@keyframes floatShape { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.principal-container { max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; position: relative; z-index: 2; }
.principal-tag { display: inline-block; padding: 8px 20px; border-radius: 50px; background: rgba(214,40,57,0.1); color: #d62839; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 24px; }
.principal-title { font-family: 'Playfair Display', serif; font-size: clamp(32px,3vw,52px); line-height: 1.1; color: #111827; margin-bottom: 28px; font-weight: 800; }
.principal-text { font-size: 16px; line-height: 2; color: #555; margin-bottom: 24px; max-width: 620px; }
.principal-text strong { color: #111827; }
.principal-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 36px; border-radius: 50px;
  background: linear-gradient(135deg, #d62839, #ef233c);
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(214,40,57,0.28); transition: .35s ease;
}
.principal-btn:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 40px rgba(214,40,57,0.38); }
.principal-image-area { position: relative; }
.principal-glow { position: absolute; width: 350px; height: 350px; border-radius: 50%; background: rgba(29,78,216,0.15); filter: blur(60px); top: 40px; left: 40px; z-index: 0; }
.principal-image-box {
  position: relative; border-radius: 32px; overflow: hidden; background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12); z-index: 2;
  animation: floatImage 5s ease-in-out infinite;
}
@keyframes floatImage { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.principal-image-box img { width: 100%; height: 500px; object-fit: cover; display: block; }
.principal-floating-card {
  position: absolute; bottom: -40px; left: -40px; width: 320px; padding: 28px;
  border-radius: 24px; background: rgba(255,255,255,0.92); backdrop-filter: blur(18px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.12); z-index: 3;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.principal-floating-card h3 { font-size: 28px; font-weight: 800; color: #1d4ed8; margin-bottom: 10px; }
.principal-role { font-size: 16px; font-weight: 700; color: #d62839; margin-bottom: 16px; }
.principal-qualification { font-size: 14px; line-height: 1.8; color: #555; margin-bottom: 6px; }
.principal-qualification span { font-weight: 700; color: #111827; }

/* ══════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════ */
.cta-banner {
  position: relative; width: 100%; height: 220px; background: #2f2ff0;
  display: flex; align-items: center; justify-content: center;
  overflow: visible; padding-right: 5%;
}
.cta-student { position: absolute; left: 300px; bottom: 0; height: 120%; display: flex; align-items: flex-end; }
.cta-student img { height: 100%; width: auto; object-fit: contain; object-position: bottom; display: block; filter: drop-shadow(4px 0 18px rgba(0,0,0,0.18)); }
.cta-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; margin-left: 420px; text-align: center; }
.cta-heading { white-space: nowrap; font-size: clamp(16px,1.8vw,26px); font-weight: 700; color: #fff; line-height: 1.3; margin: 0; }
.cta-btn { display: inline-block; padding: 11px 28px; border: 2px solid #fff; border-radius: 30px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; letter-spacing: 0.3px; transition: background 0.2s, color 0.2s; background: transparent; }
.cta-btn:hover { background: #fff; color: #1a73c8; }

/* ══════════════════════════════════════════
   GALLERY SECTION
══════════════════════════════════════════ */
.simple-gallery { padding: 80px 24px; background: #f4f4f0; }
.gallery-heading { text-align: center; margin-bottom: 48px; }
.gallery-heading span { display: inline-block; font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: #c0392b; border-bottom: 1.5px solid #c0392b; padding-bottom: 4px; margin-bottom: 14px; }
.gallery-heading h2 { font-size: clamp(32px,5vw,52px); font-weight: 800; color: #111; font-family: 'Playfair Display', serif; }
.gallery-heading p { color: #888; font-size: 14px; margin-top: 8px; letter-spacing: 0.5px; }

.gallery-masonry {
  max-width: 1200px; margin: 0 auto;
  columns: 3; column-gap: 16px;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 16px;
  position: relative; overflow: hidden;
  border-radius: 14px; cursor: pointer; display: block;
}
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  opacity: 0; transition: opacity 0.4s ease; z-index: 1;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 18px 16px; z-index: 2;
  transform: translateY(12px); opacity: 0; transition: all 0.4s ease;
}
.gallery-item:hover .gallery-item-info { transform: translateY(0); opacity: 1; }
.gallery-item-tag {
  display: inline-block; font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: #ffd500;
  border: 1px solid rgba(255,213,0,0.4); background: rgba(255,213,0,0.12);
  border-radius: 4px; padding: 3px 10px; margin-bottom: 6px;
}
.gallery-item-title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
.gallery-item-sub { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 3px; }

.gallery-view-more { text-align: center; margin-top: 40px; }
.gallery-view-more a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 34px; border-radius: 3px;
  background: #c0392b; color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}
.gallery-view-more a:hover { background: #922b21; transform: translateY(-2px); }

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (768–1100)
══════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1100px) {
  .about-body { gap: 32px; }
  .about-img-main { height: 300px; }
  .about-img-thumb { height: 110px; }
  .about-section { background-attachment: scroll; }
  .facilities-section { background-attachment: scroll; }
  .stats-section { background-attachment: scroll; }
  .stats-bg { background-attachment: scroll; }
  .facilities-grid { grid-template-columns: repeat(2,1fr); }
  .why-top { grid-template-columns: 1fr; gap: 16px; }
  .why-body { grid-template-columns: 1fr; }
  .why-img { min-height: 240px; border-radius: 12px; }
  .why-cards { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 30px 14px; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .courses-grid { grid-template-columns: repeat(2,1fr); }
  .courses-section { background-attachment: scroll; }
  .principal-container { grid-template-columns: 1fr; gap: 60px; }
  .principal-image-box img { height: 420px; }
  .principal-floating-card { left: 20px; bottom: -20px; width: 280px; }
  .cta-banner { height: 180px; padding: 0 20px 0 0; justify-content: flex-end; }
  .cta-student { left: 0; height: 110%; width: 38%; }
  .cta-student img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
  .cta-content { margin-left: 0; max-width: 58%; gap: 12px; }
  .cta-heading { white-space: normal; font-size: 15px; }
  .gallery-masonry { columns: 2; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (<768)
══════════════════════════════════════════ */
@media (max-width: 767px) {
  .hero { height: 75vw; min-height: 340px; max-height: 480px; }
  .hero-content { padding: 70px 20px 30px 20px; }
  .hero-tag { font-size: 10px; letter-spacing: 2px; margin-bottom: 8px; }
  .hero-title { font-size: clamp(22px,7vw,34px); margin-bottom: 10px; }
  .hero-subtitle { font-size: 13px; margin-bottom: 20px; max-width: 100%; }
  .btn-primary, .btn-outline { padding: 10px 18px; font-size: 12px; letter-spacing: 1px; }
  .slide-dots { bottom: 10px; right: 14px; }
  .dot { width: 8px; height: 8px; }

  .about-section { padding: 48px 16px; background-attachment: scroll; }
  .about-body { grid-template-columns: 1fr; gap: 20px; }
  .about-img-main { height: 220px; border-radius: 10px; margin-bottom: 8px; }
  .about-img-row { gap: 6px; }
  .about-img-thumb { height: 85px; border-radius: 7px; }
  .about-para { font-size: 13.5px; line-height: 1.75; }

  .facilities-section { padding: 60px 16px; background-attachment: scroll; }
  .facilities-grid { grid-template-columns: 1fr; }
  .facility-card { height: 260px; }

  .why-section { padding: 60px 0; }
  .why-top { grid-template-columns: 1fr; gap: 14px; }
  .why-body { grid-template-columns: 1fr; }
  .why-img { min-height: 200px; border-radius: 12px; }
  .why-cards { grid-template-columns: 1fr; }

  .stats-section { padding: 60px 16px; }
  .stats-bg { background-attachment: scroll; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 28px 12px; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }

  .courses-section { padding: 60px 16px 70px; background-attachment: scroll; }
  .courses-grid { grid-template-columns: 1fr; }
  .course-card { transform: none; opacity: 1; }
  .course-card.visible { animation: none; opacity: 1; transform: none; }

  .principal-section { padding: 60px 16px; }
  .principal-container { grid-template-columns: 1fr; gap: 40px; }
  .principal-title { font-size: clamp(28px,7vw,40px); }
  .principal-text { font-size: 14.5px; }
  .principal-image-box img { height: 320px; width: 100%; }
  .principal-floating-card { position: relative; width: 100%; left: 0; bottom: 0; margin-top: 20px; }
  .principal-floating-card h3 { font-size: 22px; }

  .cta-banner { height: 180px; padding: 0 16px 0 0; justify-content: flex-end; overflow: visible; }
  .cta-student { left: 0; height: 110%; width: 45%; }
  .cta-student img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
  .cta-content { margin-left: 0; max-width: 55%; gap: 10px; }
  .cta-heading { white-space: normal; font-size: 14px; }
  .cta-btn { padding: 8px 16px; font-size: 12px; }

  .simple-gallery { padding: 60px 16px; }
  .gallery-heading h2 { font-size: 32px; }
  .gallery-masonry { columns: 1; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (<400)
══════════════════════════════════════════ */
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat-item:last-child { border-bottom: none; }
}