@charset "UTF-8";
/* ============================================================
   Sacred Heart School, Yercaud — Main Stylesheet
   Design: Matches the provided screenshot reference
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lato:wght@300;400;700;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

@font-face {
  font-family: 'Black Chancery';
  src: url('../fonts/black_chancery.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---- CSS Variables ---- */
:root {
  --navy: #1a3668;
  --navy-dark: #142954;
  --gold: #f5a623;
  --gold-dark: #e09010;
  --maroon: #800020;
  --white: #ffffff;
  --light-bg: #f4f6fa;
  --text-dark: #1a1a2e;
  --text-mid: #374151;
  --text-light: #6b7280;
  --border: #e2e8f0;
  --font-body: 'Inter', Arial, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --radius: 6px;
  --shadow: 0 2px 16px rgba(26, 54, 104, 0.10);
  --transition: 0.3s ease;
  --content-width: 90%;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-mid);
  background: #f4f7fb;
  line-height: 1.7;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  color: var(--text-dark);
  margin-bottom: 0;
}

p {
  margin-bottom: 12px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-width-90,
.subpage-content-area .container,
.subpage-content-area .container-fluid,
.maria-page-wrap .container,
.gallery-area .container {
  width: 90% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.subpage-content-area .max-w-7xl,
.subpage-content-area .news-cards-container,
.subpage-content-area .table-container {
  max-width: 100% !important;
  width: 100% !important;
}

@media (max-width: 1399px) {
  .custom-width-90,
  .subpage-content-area .container,
  .subpage-content-area .container-fluid,
  .maria-page-wrap .container,
  .gallery-area .container {
    width: 90% !important;
  }
}

@media (max-width: 991px) {
  .custom-width-90,
  .subpage-content-area .container,
  .subpage-content-area .container-fluid,
  .maria-page-wrap .container,
  .gallery-area .container {
    width: 95% !important;
  }
}


/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider-section {
  position: relative;
  width: 100%;
}

.hero-swiper {
  width: 100%;
  height: 640px;
}

.hero-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 640px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 25, 60, 0.55) 45%, rgba(10, 25, 60, 0.18) 100%);
  z-index: 1;
}

/* Content wrapper sits over the overlay */
.hero-content-wrap {
  position: absolute;
  top: 50%;
  left: 70px;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 560px;
  color: var(--white);
}

.hero-title {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 900;
  font-size: 44px;
  line-height: 1.15;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-primary {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
  border: 2px solid var(--gold);
}

.btn-hero-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}

.btn-hero-outline {
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-hero-video {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
}

.btn-hero-video i {
  font-size: 20px;
}

.btn-hero-video:hover {
  color: var(--gold);
}

/* Hero Nav */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.hero-nav:hover {
  background: var(--gold);
  color: var(--navy);
}

.hero-prev {
  left: 16px;
}

.hero-next {
  right: 16px;
}

.hero-pagination {
  bottom: 14px !important;
}

.hero-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--gold);
}

/* ============================================================
   ANNOUNCEMENT TICKER
   ============================================================ */
.announcement-bar {
  background: #052d72;
  display: flex;
  align-items: center;
  padding: 0 28px;
  height: 54px;
  overflow: hidden;
  width: var(--content-width);
  max-width: none;
  margin: -27px auto 0;
  position: relative;
  z-index: 20;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(5, 45, 114, 0.18);
}

.announcement-label {
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  padding: 0;
  height: auto;
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 6px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.announcement-ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  margin: 0 24px;
}

.announcement-ticker {
  display: inline-block;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  animation: ticker-scroll 22s linear infinite;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.announcement-viewall {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  height: auto;
  border-left: none;
}

.announcement-viewall:hover {
  color: var(--white);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: transparent;
  border-bottom: none;
  padding: 24px 0 0;
  box-shadow: none;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 16px 10px;
  width: var(--content-width);
  max-width: none;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 35, 75, 0.08);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  justify-content: center;
  padding: 0 10px;
  min-height: 52px;
  width: 100%;
}

.stat-item:not(:last-child) {
  border-right: 1px solid #dfe6f0;
}

.stat-icon {
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 28px;
  flex-shrink: 0;
}

.stat-num {
  display: block;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 22px;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: #1f2f48;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 3px;
  white-space: nowrap;
}

.achievement-stat .stat-icon {
  color: var(--gold);
}

.achievement-stat:nth-last-child(-n+3) .stat-icon {
  color: var(--navy);
}

/* ============================================================
   WELCOME + EVENTS SECTION
   ============================================================ */
.welcome-events-section {
  background: #f4f7fb;
  padding: 34px 0 22px;
}

.welcome-events-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 0;
  width: var(--content-width);
  max-width: none;
  margin: 0 auto;
}

.welcome-col {
  padding: 30px 28px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 54, 104, 0.06);
}

.section-pre {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title-main {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.16;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  white-space: nowrap;
}

.welcome-body {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

.principal-sign {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--navy);
  font-style: italic;
  margin-bottom: 2px;
}

.principal-title {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.welcome-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.btn-read-more {
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
  border: 1px solid var(--navy);
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.btn-watch-video {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-watch-video:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-watch-video i {
  font-size: 16px;
  color: inherit;
}

/* Principal image */
.principal-img-col {
  margin-right: 0;
  display: flex;
  align-items: stretch;
}

.principal-photo {
  width: 100%;
  height: 560px;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center 46%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 54, 104, 0.08);
}

/* Events */
.events-col {
  background: #052d72;
  border-radius: 8px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  box-shadow: 0 8px 24px rgba(5, 45, 114, 0.12);
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.events-pre {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.events-view-all {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.events-view-all:hover {
  color: var(--gold);
}

.events-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.event-item:last-child {
  border-bottom: none;
}

.event-date-box {
  background: var(--white);
  border-radius: 5px;
  min-width: 58px;
  text-align: center;
  padding: 8px 7px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-day {
  display: block;
  font-weight: 900;
  font-size: 24px;
  color: var(--navy-dark);
  line-height: 1;
}

.event-mon {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy-dark);
  text-transform: uppercase;
  margin-top: 3px;
}

.event-info {
  flex: 1;
}

.event-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  font-family: var(--font-body);
}

.event-date-txt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

/* ============================================================
   WHY CHOOSE SACRED HEART
   ============================================================ */
.why-section {
  background: #f4f7fb;
  padding: 18px 0 20px;
  text-align: center;
}

.why-section .container {
  width: var(--content-width);
  max-width: none;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(26, 54, 104, 0.06);
  padding: 20px 14px 14px;
}

.why-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.2px;
  color: var(--navy);
  margin-bottom: 18px;
  text-transform: uppercase;
  position: relative;
}

.why-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: var(--gold);
  border-radius: 4px;
  margin: 10px auto 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  background: #ffffff;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 991px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .why-item:nth-child(4n) {
    border-right: 0;
  }
}

@media (max-width: 575px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-item:nth-child(2n) {
    border-right: 0;
  }
}

.why-item {
  background: var(--white);
  border: 0;
  border-right: 1px solid #e9eef5;
  border-radius: 0;
  padding: 18px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.why-item:last-child {
  border-right: 0;
}

.why-item:hover {
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.28);
  border-color: #e9eef5;
}

.why-icon {
  font-size: 42px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  line-height: 1;
}

.why-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.35;
  margin: 0;
}

/* ============================================================
   ACHIEVEMENTS + GALLERY
   ============================================================ */
.achievements-gallery-section {
  background: #f4f7fb;
  padding: 18px 0 20px;
}

.ach-gal-inner {
  display: flex;
  gap: 24px;
  padding: 0;
  flex-wrap: wrap;
  align-items: stretch;
  width: var(--content-width);
  max-width: none;
  margin: 0 auto;
}

.achievements-col {
  flex: 1 1 calc(42% - 12px);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  padding: 22px 22px 16px;
  box-shadow: 0 8px 24px rgba(26, 54, 104, 0.06);
}

.gallery-col {
  flex: 1 1 calc(58% - 12px);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  padding: 22px 22px 16px;
  box-shadow: 0 8px 24px rgba(26, 54, 104, 0.06);
}

.sub-section-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--navy);
  text-transform: uppercase;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 18px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  overflow: hidden;
}

.achievements-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.ach-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border: 0;
  border-right: 1px solid #e9eef5;
  border-radius: 0;
  padding: 14px 8px 12px;
  transition: var(--transition);
}

.ach-item:last-child {
  border-right: 0;
}

.ach-item:hover {
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.28);
}

.ach-icon {
  font-size: 42px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.ach-icon.gold-icon {
  color: var(--gold);
}

.ach-icon.navy-icon {
  color: var(--navy);
}

.ach-num {
  font-weight: 900;
  font-size: 22px;
  color: var(--navy);
  font-family: var(--font-body);
  margin: 0 0 5px 0;
  line-height: 1;
}

.ach-label {
  font-size: 11px;
  color: #1f2f48;
  margin: 0;
  line-height: 1.45;
  font-weight: 500;
}

/* Gallery */
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.view-gallery-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-gallery-link:hover {
  color: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.gallery-img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  border-radius: 7px;
  transition: var(--transition);
}

/* Campus gallery popup */
.gallery-img {
  cursor: zoom-in;
}

.gallery-img:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 44px 90px;
  background: rgba(6, 18, 43, 0.9);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-content {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  text-align: center;
}

.gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 112px);
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.gallery-lightbox-caption {
  margin-top: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  border: 0;
  color: var(--navy);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-lightbox-close {
  top: 22px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 27px;
}

.gallery-lightbox-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 32px;
  transform: translateY(-50%);
}

.gallery-lightbox-prev {
  left: 26px;
}

.gallery-lightbox-next {
  right: 26px;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.gallery-img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow);
}

/* ============================================================
   CAMPUS LIFE CATEGORIES
   ============================================================ */
.campus-categories-section {
  width: 100%;
  padding: 18px 0 34px;
  background: #f4f7fb;
}

.campus-cat-container {
  padding: 0;
  width: var(--content-width);
  max-width: none;
  margin: 0 auto;
}

.campus-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

@media (max-width: 991px) {
  .campus-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 575px) {
  .campus-cat-grid {
    grid-template-columns: 1fr;
  }
}

.campus-cat-card {
  background: var(--white);
  border-radius: 9px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 54, 104, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.campus-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(26, 54, 104, 0.10);
  border-color: rgba(26, 54, 104, 0.18);
}

.campus-cat-img {
  height: 108px;
  background-size: cover;
  background-position: center;
  width: 100%;
}

.campus-cat-body {
  padding: 18px 14px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.campus-cat-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.campus-cat-desc {
  font-size: 14px;
  color: #1f2f48;
  margin-bottom: 16px;
  line-height: 1.45;
  font-weight: 500;
  flex-grow: 1;
}

.campus-cat-link {
  font-size: 13px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.campus-cat-link:hover {
  color: var(--gold);
}

/* ============================================================
   FLOATING CONTACT BUTTONS
   ============================================================ */
.floating-btns {
  position: fixed;
  right: 24px;
  bottom: 86px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.2px;
  border-radius: 6px;
  white-space: nowrap;
  transition: var(--transition);
  transform: translateX(0);
  line-height: 1;
}

.float-btn i {
  font-size: 15px;
}

.float-btn:hover {
  transform: translateY(-2px);
  color: var(--white);
}

.float-whatsapp {
  background: #25d366;
}

.float-whatsapp:hover {
  background: #20b55a;
}

.float-call {
  background: #1e3a8a;
}

.float-call:hover {
  background: #172d6b;
}

.float-admission {
  background: #f5a623;
  color: #142954;
}

.float-admission:hover {
  background: #e09010;
  color: #142954;
}

.float-brochure {
  background: #3b82f6;
}

.float-brochure:hover {
  background: #2563eb;
}

.float-directions {
  background: #0b224f;
}

.float-directions:hover {
  background: #071738;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #052d72;
  color: rgba(255, 255, 255, 0.82);
  padding-top: 26px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 0 24px;
  justify-content: space-between;
  width: var(--content-width);
  max-width: none;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 18%;
  min-width: 150px;
  padding: 0 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-col:first-child {
  border-left: 0;
  padding-left: 0;
}

.footer-newsletter {
  padding-right: 0;
}

.footer-about {
  flex: 1.35 1 24%;
}

.footer-logo {
  height: 66px;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin-bottom: 12px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #052d72;
  font-size: 16px;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: 0;
}

.footer-links li {
  margin-bottom: 4px;
  line-height: 1.2;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 9px;
  line-height: 1.35;
}

.footer-contact li i {
  font-size: 17px;
  color: #ffffff;
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-get-directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 13px;
  font-weight: 900;
  padding: 9px 18px;
  border-radius: var(--radius);
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.btn-get-directions:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.footer-newsletter-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 14px;
  line-height: 1.45;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-input {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  padding: 11px 16px;
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: var(--font-body);
}

.newsletter-input::placeholder {
  color: #7b8794;
}

.newsletter-input:focus {
  border-color: var(--gold);
}

.newsletter-btn {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  font-weight: 900;
  font-size: 14px;
  padding: 11px;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: var(--transition);
  font-family: var(--font-body);
}

.newsletter-btn:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.footer-bottom {
  background: #041f50;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
  padding: 13px 40px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom a {
  color: var(--gold);
  font-weight: 800;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: var(--transition);
}

.back-to-top:hover {
  background: var(--gold-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .welcome-events-inner {
    padding: 0;
  }

  .ach-gal-inner {
    padding: 0;
  }

  .stats-inner {
    padding: 20px 18px;
  }

  .stat-item {
    padding: 0 12px;
  }

  .stat-icon {
    font-size: 28px;
    width: 42px;
    height: 42px;
  }

  .stat-num {
    font-size: 24px;
  }

  .stat-label {
    font-size: 12px;
  }

  .footer-inner {
    padding: 0 24px 28px;
  }

  .footer-col {
    padding: 0 18px;
  }
}

@media (max-width: 991px) {

  .hero-swiper,
  .hero-slide {
    height: 560px;
  }

  .hero-title {
    font-size: 28px;
  }

  .welcome-events-inner {
    grid-template-columns: 1fr;
  }

  .section-title-main {
    white-space: normal;
  }

  .principal-photo {
    height: 320px;
  }

  .events-col {
    min-height: auto;
    margin-top: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .achievements-col,
  .gallery-col {
    flex-basis: 100%;
  }

  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ach-item:nth-child(3n) {
    border-right: 0;
  }

  .campus-cat-grid {
    height: auto;
    flex-direction: column;
  }

  .campus-cat-item {
    height: 180px;
    flex: none;
  }

  .campus-cat-item:hover {
    flex: none;
  }

  .campus-cat-desc {
    display: block;
  }

  .campus-cat-link {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .gallery-lightbox {
    padding: 58px 16px 34px;
  }

  .gallery-lightbox-image {
    max-height: calc(100vh - 130px);
  }

  .gallery-lightbox-close {
    top: 12px;
    right: 14px;
  }

  .gallery-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .gallery-lightbox-prev {
    left: 12px;
  }

  .gallery-lightbox-next {
    right: 12px;
  }

  .top-bar {
    display: none;
  }

  .hero-swiper,
  .hero-slide {
    height: 460px;
  }

  .hero-title {
    font-size: 20px;
    line-height: 1.18;
  }

  .hero-sub {
    font-size: 13px;
  }

  .announcement-bar {
    width: calc(100% - 28px);
    height: auto;
    min-height: 58px;
    padding: 10px 14px;
    margin-top: -18px;
  }

  .stats-bar {
    padding: 18px 14px 0;
  }

  .stats-inner,
  .welcome-events-inner,
  .why-section .container,
  .ach-gal-inner,
  .campus-cat-container,
  .footer-inner {
    width: 100%;
  }

  .announcement-label {
    font-size: 10px;
    padding: 0 10px;
  }

  .stats-inner {
    justify-content: flex-start;
    gap: 16px 24px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .stat-item {
    border-right: 0 !important;
    justify-content: flex-start;
    padding: 0;
    width: 100%;
  }

  .welcome-col {
    padding: 24px;
    margin-bottom: 0;
  }

  .principal-img-col {
    margin-right: 0;
    margin-bottom: 0;
  }

  .principal-photo {
    height: 300px;
  }

  .why-section {
    padding: 16px 14px;
  }

  .ach-gal-inner,
  .campus-cat-container {
    padding: 0 14px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ach-item:nth-child(2n) {
    border-right: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 22px;
    padding: 0 14px 24px;
  }

  .footer-col {
    border-left: 0;
    padding: 0;
  }

  .floating-btns {
    right: 12px;
    bottom: 76px;
    transform: none;
    gap: 8px;
  }

  .float-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    gap: 0;
    font-size: 0;
    border-radius: 50%;
  }

  .float-btn i {
    font-size: 20px;
  }
}

/* ============================================================
   UTILITIES (legacy classes retained for sub-pages)
   ============================================================ */
.ptb-64 {
  padding-top: 64px;
  padding-bottom: 64px;
}

.ptb-50 {
  padding-top: 50px;
  padding-bottom: 50px;
}

.pt-50 {
  padding-top: 50px;
}

.bg-white {
  background: var(--white);
}

.text-center {
  text-align: center;
}

.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-3 {
  gap: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.ms-auto {
  margin-left: auto;
}

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

.align-items-center {
  align-items: center;
}

.w-100 {
  width: 100%;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.shadow-sm {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.rounded {
  border-radius: var(--radius);
}

/* ============================================================
   CARD BODY HELPERS (retained from sub-pages)
   ============================================================ */
.card-body2,
.card-body3,
.adminissions-body {
  padding: 20px;
}

.decorated-divider {
  height: 2px;
  background: var(--gold);
  width: 60px;
  margin: 12px auto;
  border-radius: 2px;
}

/* ============================================================
   FOOTER.CSS CONFLICT OVERRIDES
   These override legacy footer.css rules that conflict with
   the new site-footer design.
   ============================================================ */

/* Ensure the new back-to-top button isn't hidden by footer.css's opacity:0 rule */
#back-to-top.back-to-top {
  opacity: 1 !important;
  position: fixed !important;
  bottom: 24px !important;
  left: auto !important;
  right: 24px !important;
  width: 40px !important;
  height: 40px !important;
  line-height: 1 !important;
  font-size: 22px !important;
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  border-radius: 50% !important;
  display: none;
  /* controlled by JS scroll handler */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  border: none;
  z-index: 9999 !important;
}

#back-to-top.back-to-top::before {
  display: none !important;
}

#back-to-top.back-to-top:hover {
  background: var(--gold-dark) !important;
  color: var(--white) !important;
}

/* Prevent footer.css from re-styling the new .site-footer elements */
.site-footer .footer-heading {
  font-family: var(--font-body) !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

.site-footer .footer-links li {
  margin-bottom: 4px !important;
}

.site-footer .footer-links a {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-weight: 400 !important;
}

.site-footer .footer-links a:hover {
  color: var(--gold) !important;
}

/* Responsive fix for hero content on small screens */
@media (max-width: 767px) {
  .hero-content-wrap {
    left: 20px;
    right: 20px;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-content-wrap {
    left: 40px;
    max-width: 460px;
  }
}

/* ============================================================
   CONTACT PAGE STYLES (MATCHING WEBSITE DESIGN)
   ============================================================ */
.contact-page-section {
  padding: 10px 0 60px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(15, 35, 75, 0.06);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: 0 14px 36px rgba(15, 35, 75, 0.09);
}

.news-yt-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-dark);
  background: rgba(245, 166, 35, 0.12);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.contact-form-title {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
}

.contact-form-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.5;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--light-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-info-item:hover .contact-info-icon {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.contact-info-content h5 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.contact-info-content p,
.contact-info-content a {
  font-size: 14px;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.45;
  text-decoration: none;
  transition: var(--transition);
}

.contact-info-content a:hover {
  color: var(--gold-dark);
}

.contact-form-group {
  margin-bottom: 20px;
}

.contact-form-control {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-dark);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.contact-form-control:focus {
  background: #ffffff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 54, 104, 0.12);
}

.contact-form-control::placeholder {
  color: #94a3b8;
}

.btn-contact-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: var(--transition);
}

.btn-contact-send:hover {
  background: var(--navy-dark);
  color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 54, 104, 0.2);
}

.btn-directions {
  background: var(--gold);
  color: var(--navy-dark);
  border: 1px solid var(--gold);
}

.btn-directions:hover {
  background: var(--gold-dark);
  color: var(--white);
  border-color: var(--gold-dark);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}