@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Poppins:wght@500;600;700&display=swap');

:root {
  --blue-900: #123d78;
  --blue-800: #1d4f93;
  --blue-700: #2f6fbe;
  --blue-100: #ecf5ff;
  --yellow-500: #f3a92f;
  --yellow-300: #ffd57c;
  --line: #deebf7;
  --text: #1e2b3a;
  --muted: #6f7d8f;
  --surface: #ffffff;
}

* {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  font-size: 0.94rem;
  color: var(--text);
  background:
    radial-gradient(900px 400px at 5% -8%, #d9ebff 0%, transparent 70%),
    radial-gradient(700px 320px at 100% 0%, #fff2ca 0%, transparent 75%),
    #f8fbff;
  min-height: 100vh;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn, th {
  font-family: 'Poppins', sans-serif;
}

a {
  color: var(--blue-700);
}

.card,
.sheet,
.cert-card {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 53, 99, 0.07);
}

.card .card-body {
  padding: 0.95rem;
}

.btn {
  border-radius: 9px;
  font-weight: 600;
  padding: 0.42rem 0.8rem;
}

.btn-primary,
.btn-dark {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
}

.btn-accent {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--yellow-500), #e89718);
}

.btn-outline-primary {
  border-color: #8cb1dc;
  color: var(--blue-800);
}

.form-control,
.form-select {
  border-radius: 10px;
  border-color: #cfe1f4;
  padding: 0.42rem 0.65rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #73a5dc;
  box-shadow: 0 0 0 0.2rem rgba(47, 111, 190, 0.12);
}

.table thead th {
  background: #f3f8ff;
  color: #1e3654;
}

.table {
  font-size: 0.88rem;
}

.table th,
.table td {
  vertical-align: middle;
}

.badge.bg-success {
  background: #13835e !important;
}

.badge.bg-secondary {
  background: #718096 !important;
}

.top-strip {
  background: #224f90;
}

.top-links a {
  color: #d8e6ff;
  text-decoration: none;
}

.top-links a:hover {
  color: #fff;
}

.top-enquiry-btn {
  background: #f3a92f;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-weight: 700;
}

.main-nav {
  border-bottom: 1px solid #d7e7f9;
  box-shadow: 0 4px 14px rgba(17, 58, 107, 0.06);
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #1f3555;
  font-weight: 700;
}

.brand-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--yellow-500), #f0a326);
}

.public-header .nav-link {
  color: #324c72;
  font-weight: 500;
}

.public-header .nav-link.active,
.public-header .nav-link:hover {
  color: var(--blue-800);
}

.public-mobile-menu {
  background: #0f1522;
  color: #e8f0ff;
}

.public-mobile-menu .offcanvas-header {
  border-bottom: 1px solid #2b3550;
}

.mobile-menu-link {
  display: block;
  text-decoration: none;
  color: #d4deef;
  border: 1px solid #2c3550;
  background: #131b2b;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.38rem;
  font-weight: 600;
}

.mobile-menu-link.active,
.mobile-menu-link:hover {
  color: #fff;
  border-color: #4774bb;
  background: linear-gradient(135deg, #2f6fbe, #184b86);
}

.announce-strip {
  background: linear-gradient(90deg, #1d4f93, #123d78);
}

.announce-row {
  min-height: 38px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem;
  color: #eaf2ff;
}

.announce-row marquee {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.announce-row marquee a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.announce-row marquee a:hover {
  text-decoration: underline;
}

.announce-cta {
  white-space: nowrap;
}

.admission-open-bar {
  padding-top: 0.65rem;
}

.admission-open-box {
  border: 1px solid #d8e8fa;
  background: linear-gradient(180deg, #fff, #f3f9ff);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.admission-open-text {
  color: #21456f;
  font-weight: 600;
}

.gallery-image {
  object-fit: cover;
  height: 220px;
  transition: transform .28s ease, box-shadow .28s ease;
  border-radius: 18px;
}

.gallery-card {
  position: relative;
  appearance: none;
  width: 100%;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  border: 1px solid #d7e7f9;
  box-shadow: 0 10px 24px rgba(18, 61, 120, 0.08);
  cursor: pointer;
  text-align: left;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.04);
}

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

.gallery-home-shell {
  padding: 1.4rem;
  border: 1px solid #dbe9f8;
  border-radius: 26px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(47, 111, 190, 0.08), transparent 65%),
    linear-gradient(180deg, #ffffff, #f6faff);
  box-shadow: 0 18px 38px rgba(18, 61, 120, 0.08);
}

.gallery-section-copy {
  max-width: 640px;
}

.gallery-home-categories,
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.gallery-chip,
.gallery-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #d6e5f7;
  background: rgba(255, 255, 255, 0.88);
  color: #26486f;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.gallery-filter-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #edf5ff;
  color: #1e4e92;
  font-size: 0.76rem;
}

.gallery-filter-chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: 0 12px 24px rgba(18, 61, 120, 0.22);
}

.gallery-filter-chip.active span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 25, 47, 0.04) 15%, rgba(7, 25, 47, 0.78) 100%);
  opacity: 0.9;
  transition: opacity .28s ease;
}

.gallery-card-content {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #fff;
}

.gallery-card-category {
  align-self: flex-start;
  display: inline-flex;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.gallery-card-action {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery-image-featured {
  height: 460px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(5, 14, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 4.5rem;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-stage {
  width: 100%;
  max-width: 1100px;
  text-align: center;
}

.gallery-lightbox-stage img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox-meta {
  margin: 1rem auto 0;
  max-width: 780px;
  text-align: left;
  color: #fff;
}

.gallery-lightbox-category {
  display: inline-flex;
  margin-bottom: 0.45rem;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-lightbox-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.gallery-lightbox-close {
  top: 18px;
  right: 18px;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
}

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

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

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

.gallery-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.5rem;
  border: 1px solid #dce9f8;
  border-radius: 28px;
  background:
    radial-gradient(440px 220px at 100% 0%, rgba(243, 169, 47, 0.12), transparent 70%),
    radial-gradient(520px 240px at 0% 0%, rgba(47, 111, 190, 0.12), transparent 70%),
    linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 18px 40px rgba(18, 61, 120, 0.08);
}

.gallery-page-hero-stats {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gallery-stat-card {
  min-width: 150px;
  padding: 0.95rem 1rem;
  border: 1px solid #d7e6f8;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(18, 61, 120, 0.08);
}

.gallery-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-stat-card strong {
  display: block;
  margin-top: 0.28rem;
  color: #143c77;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
}

.gallery-page-grid {
  align-items: stretch;
}

.gallery-empty-state {
  padding: 2rem 1.2rem;
  border: 1px solid #dbe8f8;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.hero-stage {
  background: #fff;
  border-bottom: 1px solid #e5eef9;
  padding-top: 0;
}

.hero-banner {
  height: 520px;
  min-height: 520px;
  background-position: center;
  background-size: cover;
  border-radius: 0 0 12px 12px;
  display: flex;
  align-items: center;
}

.hero-banner-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  color: #fff;
  padding: 2.2rem 0;
}

.hero-banner-layout {
  height: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-banner-layout-left {
  justify-content: flex-start;
}

.hero-banner-layout-right {
  justify-content: flex-end;
}

.hero-banner-copy-left {
  text-align: left;
}

.hero-banner-copy-right {
  text-align: left;
  margin-left: auto;
}

.hero-copy-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-banner-copy h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 0.85rem;
}

.hero-banner-copy p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.hero-card {
  max-width: 520px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(16, 40, 72, 0.22);
  padding: 1.6rem;
  margin-top: 22px;
}

.hero-card h1 {
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  color: #102742;
}

.feature-strip {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  gap: 0.9rem;
  padding: 1rem;
  align-items: start;
}

.feature-strip .icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-700), #3f86df);
}

.feature-strip h6 {
  margin-bottom: 0.25rem;
}

.feature-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-meta {
  font-size: 0.84rem;
  color: #8ca0bd;
  margin-bottom: 0.2rem;
}

.section-title {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.masonry-grid img {
  object-fit: cover;
  height: 100%;
  min-height: 170px;
}

.promo-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-radius: 16px;
  padding: 2.4rem 1.3rem;
}

.course-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 58, 107, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.course-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(17, 58, 107, 0.12);
}

.course-tile .p-3 {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem !important;
}

.course-image {
  height: 190px;
  object-fit: cover;
}

.course-card-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: #edf5ff;
  color: #1d4f93;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.course-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #58708f;
  font-weight: 700;
}

.course-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
  line-height: 1.3;
}

.course-view-btn {
  margin-top: auto;
  align-self: flex-start;
}

.course-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.course-modal-image {
  object-fit: cover;
  min-height: 240px;
  border: 1px solid #dceafb;
}

.course-modal-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.course-modal-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #eef5ff;
  color: #1d4f93;
  font-weight: 700;
  font-size: 0.8rem;
}

.course-detail-banner {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 53, 99, 0.14);
}

.course-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.course-detail-overlay {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(8, 28, 52, 0.08), rgba(8, 28, 52, 0.82));
}

.course-detail-title {
  color: #fff;
  margin-bottom: 0.9rem;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
}

.course-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.course-detail-chips span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.course-detail-side,
.course-detail-card {
  border-radius: 22px !important;
  box-shadow: 0 16px 36px rgba(15, 53, 99, 0.08) !important;
}

.compact-hero {
  border-radius: 24px !important;
  background: linear-gradient(135deg, #123d78, #1d4f93 58%, #2f6fbe) !important;
  box-shadow: 0 18px 40px rgba(15, 53, 99, 0.12) !important;
}

.course-detail-side {
  border: 1px solid #dceafb;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 1.45rem;
}

.course-list-card {
  border: 1px solid #dceafb;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 16px 34px rgba(15, 53, 99, 0.08);
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.course-list-card .course-card-tag {
  background: linear-gradient(135deg, #edf5ff, #e4f0ff);
}

.course-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(15, 53, 99, 0.13);
}

.course-list-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.detail-stat-list {
  display: grid;
  gap: 0.75rem;
}

.detail-stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #e6eef8;
  font-size: 0.9rem;
}

.detail-stat-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.subject-detail-list {
  display: grid;
  gap: 0.9rem;
}

.subject-detail-item {
  border: 1px solid #dceafb;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border-radius: 16px;
  padding: 1rem;
}

.subject-detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subject-detail-pills span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  background: #eef5ff;
  color: #214b87;
  font-size: 0.76rem;
  font-weight: 700;
}

.course-detail-card .btn,
.course-detail-side .btn {
  border-radius: 999px;
}

.event-item {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem;
  margin-bottom: 0.8rem;
}

.event-date {
  width: 58px;
  border: 1px solid #c8dcf5;
  border-radius: 9px;
  text-align: center;
  padding: 0.45rem 0.1rem;
  flex-shrink: 0;
}

.event-date strong {
  display: block;
  font-size: 1.1rem;
  color: #193f70;
}

.event-date span {
  font-size: 0.77rem;
  color: #7c8ea8;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.video-main,
.video-sm {
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.video-main {
  grid-column: 1 / -1;
  min-height: 240px;
}

.video-main::before,
.video-sm::before,
.welcome-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 60, 0.05), rgba(8, 32, 60, 0.65));
}

.video-main span,
.video-sm span {
  position: absolute;
  left: 0.8rem;
  bottom: 0.65rem;
  color: #fff;
  font-size: 0.85rem;
  z-index: 1;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.news-card img {
  height: 145px;
  object-fit: cover;
}

.welcome-list {
  padding-left: 1.1rem;
  color: #3f5878;
}

.welcome-list li {
  margin-bottom: 0.35rem;
}

.welcome-video {
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  padding: 1rem;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--yellow-500);
  color: #fff;
  font-size: 1.1rem;
  z-index: 2;
}

.welcome-video span {
  color: #fff;
  margin-left: 0.7rem;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 1.1rem;
}

.testimonial-stars {
  color: #f3a524;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.facility-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 1.2rem 1rem;
  box-shadow: 0 14px 30px rgba(15, 39, 71, 0.05);
}

.facility-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5ff;
  color: #2c5b98;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.facility-card h6 {
  margin-bottom: 0.45rem;
}

.facility-card p {
  font-size: 0.9rem;
  color: #697d98;
}

.topper-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 39, 71, 0.06);
}

.topper-image {
  height: 230px;
  object-fit: cover;
}

.topper-achievement {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #285a97;
  font-size: 0.8rem;
  font-weight: 700;
}

.opening-hours-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  padding: 0.55rem 1rem;
  box-shadow: 0 14px 28px rgba(15, 39, 71, 0.05);
}

.opening-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid #edf2f8;
}

.opening-row:last-child {
  border-bottom: 0;
}

.opening-row strong {
  color: #243449;
}

.opening-row span {
  text-align: right;
  color: #516883;
  font-weight: 600;
}

.opening-row span small {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: #7f91a8;
}

.site-footer {
  background: #1c3f79;
  color: #edf5ff;
}

.site-footer .text-light-emphasis {
  color: #dbe7fb !important;
}

.site-footer .footer-bottom .text-light-emphasis {
  color: #c9daf6 !important;
}

.footer-visit-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: 0 12px 24px rgba(8, 24, 50, 0.16);
}

.footer-visit-label {
  color: #d7e6ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-visit-widget strong {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-link {
  color: #d6e4fb;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.newsletter-form .form-control {
  border-color: #7ca2d3;
  background: #f3f8ff;
}

.list-group-item {
  border-radius: 10px !important;
  border: 1px solid var(--line);
  margin-bottom: 0.35rem;
}

.dashboard-page .admin-sidebar {
  min-height: calc(100vh - 58px);
  background: #ffffffd6;
  backdrop-filter: blur(3px);
}

.admin-menu-link {
  display: block;
  text-decoration: none;
  color: #284a74;
  border: 1px solid #d7e7f9;
  background: #fff;
  border-radius: 10px;
  padding: 0.52rem 0.66rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.admin-menu-link:hover {
  background: #f3f8ff;
  color: #1d4f93;
}

.admin-menu-link.active {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff;
  border-color: transparent;
}

.dash-stat {
  border: 1px solid #d5e4f7;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f6fbff);
  padding: 0.8rem;
}

@media (max-width: 991.98px) {
  .main-nav .container {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .brand-wordmark {
    font-size: 1.3rem;
  }

  .brand-wordmark span:last-child {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-stage {
    padding-top: 4px;
  }

  .hero-banner {
    height: 340px;
    min-height: 340px;
  }

  .hero-banner-copy {
    max-width: 100%;
    padding: 1.4rem 0;
  }

  .hero-banner-layout {
    height: 100%;
    min-height: 340px;
  }

  .hero-banner-copy h1 {
    font-size: 1.8rem;
  }

  .hero-card {
    max-width: 100%;
    margin-top: 10px;
    padding: 1rem;
  }

  .hero-card h1 {
    font-size: 1.55rem;
  }

  .hero-card .btn {
    padding: 0.4rem 0.72rem;
    font-size: 0.84rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .feature-strip {
    padding: 0.8rem;
  }

  .feature-strip p {
    font-size: 0.82rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .event-item {
    padding: 0.72rem;
  }

  .video-main {
    min-height: 200px;
  }

  .welcome-video {
    min-height: 220px;
  }

  .site-footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-footer .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .top-strip {
    display: none;
  }

  .main-nav {
    position: sticky;
    top: 0;
    z-index: 1035;
  }

  .main-nav .navbar-brand {
    font-size: 1.2rem;
  }

  .main-nav .navbar-toggler {
    padding: 0.28rem 0.45rem;
    border-color: #c8dcf5;
  }

  .announce-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.45rem 0;
  }

  .announce-row marquee {
    font-size: 0.82rem;
  }

  .announce-cta {
    width: 100%;
  }

  .admission-open-box {
    flex-direction: column;
    align-items: stretch;
    padding: 0.62rem 0.68rem;
  }

  .admission-open-text {
    font-size: 0.86rem;
  }

  .admission-open-box .btn {
    width: 100%;
  }

  .gallery-image {
    height: 130px;
  }

  .gallery-image-featured {
    height: 240px;
  }

  .gallery-home-shell,
  .gallery-page-hero {
    padding: 1rem;
    border-radius: 20px;
  }

  .gallery-page-hero {
    grid-template-columns: 1fr;
  }

  .gallery-page-hero-stats {
    justify-content: flex-start;
  }

  .gallery-stat-card {
    min-width: 0;
    flex: 1 1 140px;
  }

  .gallery-card-content {
    right: 0.8rem;
    bottom: 0.8rem;
    left: 0.8rem;
  }

  .gallery-card-title {
    font-size: 0.88rem;
  }

  .gallery-lightbox {
    padding: 0.8rem 0.8rem 1rem;
  }

  .gallery-lightbox-close {
    top: 10px;
    right: 10px;
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
  }

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

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

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

  .gallery-lightbox-meta {
    margin-top: 0.8rem;
    text-align: center;
  }

  .hero-banner {
    height: 260px;
    min-height: 260px;
    border-radius: 0 0 10px 10px;
  }

  .hero-card {
    margin-top: 8px;
    padding: 0.9rem;
    border-radius: 10px;
  }

  .hero-card h1 {
    font-size: 1.35rem;
    margin-bottom: 0.45rem !important;
  }

  .hero-card p {
    font-size: 0.84rem;
    margin-bottom: 0.8rem !important;
  }

  .hero-card .d-flex {
    gap: 0.45rem !important;
    flex-wrap: wrap;
  }

  .hero-card .btn {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .mobile-hide {
    display: none !important;
  }

  .mobile-priority {
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
  }

  .promo-box {
    padding: 1.1rem 0.9rem;
    border-radius: 12px;
  }

  .promo-box h3 {
    font-size: 1.15rem;
  }

  .course-image {
    height: 140px;
  }

  .news-card img,
  .news-card .p-3 {
    height: auto;
  }

  .news-card .p-3 p {
    font-size: 0.8rem;
  }

  .footer-top .row > [class*="col-"] {
    margin-bottom: 0.35rem;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .footer-top .row > [class*="col-"] h5,
  .footer-top .row > [class*="col-"] h6 {
    font-size: 0.95rem;
  }

  .footer-top .row > [class*="col-"] p,
  .footer-top .row > [class*="col-"] a {
    font-size: 0.78rem;
  }

  .footer-bottom .container {
    justify-content: center !important;
    text-align: center;
  }

  .footer-visit-widget {
    width: 100%;
    justify-content: center;
  }

  .table {
    font-size: 0.78rem;
  }

  .table th,
  .table td {
    padding: 0.3rem 0.34rem;
  }

  .table .btn,
  .table .btn-sm {
    font-size: 0.69rem;
    padding: 0.13rem 0.34rem;
    border-radius: 8px;
    line-height: 1.25;
  }

  .table .badge {
    font-size: 0.68rem;
    padding: 0.2rem 0.38rem;
  }
}
