@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&display=swap");

:root {
  --hmps-blue: #082f63;
  --hmps-blue-2: #0f477e;
  --hmps-blue-3: #143f73;
  --hmps-orange: #f25e22;
  --hmps-orange-dark: #d84315;
  --hmps-orange-light: #fff3e0;
  --hmps-red: #c62828;
  --hmps-gold: #e7ab18;
  --hmps-ink: #1d2733;
  --hmps-muted: #647184;
  --hmps-border: #dfe5ee;
  --hmps-bg: #f0f4f9;
  --hmps-light-gold: #fff7df;
  --hmps-shadow: 0 10px 24px rgba(8, 47, 99, 0.12);
  --font-heading: "Outfit", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--hmps-ink);
  background: #fff;
  font-family: var(--font-body);
  line-height: 1.65;
}

a {
  color: var(--hmps-blue-2);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--hmps-red);
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 1200;
  padding: 8px 14px;
  color: #fff;
  background: var(--hmps-red);
}

.skip-link:focus {
  top: 12px;
}

.top-strip {
  background: #c62828; /* Red background as requested */
  color: #fff;
  font-size: 0.875rem;
}

.top-strip a {
  color: #fff;
}

.top-strip .bi {
  color: var(--hmps-gold);
}

.social-dot {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.social-dot:hover {
  background: var(--hmps-red);
  color: #fff;
  transform: translateY(-1px);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--hmps-border);
}

.school-logo {
  display: block;
  width: 100px;
  height: 100px;
  flex: 0 0 auto;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
  background: url("../assets/images/logo.png") no-repeat center center;
  background-size: contain;
  border-radius: 50%;
  border: none;
  box-shadow: none;
}

.school-title {
  margin: 0;
  color: var(--hmps-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 35px;
}

.school-subtitle {
  margin: 0;
  color: var(--hmps-red);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.school-motto {
  margin: 0;
  color: var(--hmps-muted);
  font-size: 0.9rem;
}

.header-badge {
  padding: 10px 14px;
  color: var(--hmps-blue);
  background: var(--hmps-light-gold);
  border: 1px solid #f2d47a;
  font-weight: 700;
  text-align: center;
}

.header-actions {
  justify-content: flex-end;
  max-width: 520px;
}

.header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  white-space: nowrap;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #c62828; /* Red background as requested */
  box-shadow: none;
  transition: box-shadow 0.25s ease;
}

.main-nav.is-stuck {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.navbar {
  padding-top: 0;
  padding-bottom: 0;
}

.navbar .nav-link {
  padding: 0.8rem 0.5rem; /* Reduced horizontal & vertical padding */
  color: #fff;
  font-size: 0.75rem; /* Reduced size for zero-wrap on normal desktops */
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap; /* Prevent "Contact Us" wrapping */
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: #fff;
  background-color: #9e1c25; /* Harmonized dark red hover color */
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.55);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.35);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  filter: invert(1);
}

.dropdown-menu {
  min-width: 235px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: var(--hmps-shadow);
}

.dropdown-item {
  padding: 0.5rem 1rem;
  color: var(--hmps-ink);
  border-bottom: 1px solid #edf0f5;
  font-size: 0.9rem;
  font-weight: 600;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #fff;
  background: var(--hmps-red);
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--hmps-blue-3);
  background-color: var(--hmps-light-gold);
  font-weight: 700;
}

.dropdown-item.active:hover,
.dropdown-item.active:focus {
  color: #fff;
  background: var(--hmps-red);
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0;
}

.dropdown-submenu > .dropdown-item::after {
  float: right;
  margin-top: 0.25rem;
  font-family: "bootstrap-icons";
  content: "\F285";
}

.quick-action-strip {
  background: #fbfcff;
  border-bottom: 1px solid var(--hmps-border);
  position: relative;
  z-index: 1010;
}

.quick-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  color: var(--hmps-blue);
  border-right: 1px solid var(--hmps-border);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.25s ease;
}

.quick-action:hover {
  background-color: var(--hmps-bg);
  color: var(--hmps-red) !important;
}

.quick-action .bi {
  color: var(--hmps-red);
}

.notice-ticker {
  display: flex;
  overflow: hidden;
  color: #fff;
  background: var(--hmps-red);
}

.notice-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  padding: 0.42rem 0.9rem; /* Reduced height/padding */
  background: #861622;
  font-family: var(--font-body); /* Clean, modern sans-serif */
  font-weight: 700; /* Solid bold as in the screenshot */
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em; /* Premium open letter spacing */
}

.ticker-window {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: ticker 32s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-track a,
.ticker-track span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1.1rem; /* Reduced height/padding */
  color: #fff;
  white-space: nowrap;
  font-size: 0.8rem; /* Slightly smaller */
  text-decoration: none;
  transition: all 0.2s ease;
}

.ticker-track a {
  cursor: pointer;
}

.ticker-track a:hover {
  color: var(--hmps-light-gold) !important;
  text-decoration: underline;
}

.ticker-track .bi {
  margin-right: 0.5rem;
  color: var(--hmps-gold);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-carousel .carousel-item {
  min-height: 380px; /* Shrunk from 540px */
  background-position: center;
  background-size: cover;
}

.hero-carousel .carousel-item::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(6, 31, 66, 0.84),
    rgba(6, 31, 66, 0.35),
    rgba(6, 31, 66, 0.08)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  padding: 3.5rem 0; /* Shrunk padding from 6.25rem */
  color: #fff;
}

.hero-kicker,
.section-kicker {
  color: var(--hmps-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .hero-kicker {
  color: var(--hmps-gold);
}

.hero-title {
  margin: 0.35rem 0 1rem;
  font-family: var(--font-body); /* Clean sans-serif matching body */
  font-size: clamp(1.5rem, 3.2vw, 2.4rem); /* Balanced size */
  font-weight: 600; /* Less bold, modern weight */
  line-height: 1.15;
}

.page-title {
  margin: 0.2rem 0 0.8rem;
  font-family: var(--font-heading);
  font-size: clamp(
    1.8rem,
    3vw,
    2.5rem
  ); /* Extremely neat, professional size scale */
  font-weight: 600; /* Decreased boldness for high-end sleekness */
  line-height: 1.1;
}

.hero-content p {
  max-width: 620px;
  font-size: 1.15rem;
}

.btn-hmps,
.btn-hmps-outline,
.btn-hmps-gold {
  border-radius: 0;
  font-family: var(--font-body); /* Segoe UI sans-serif */
  font-weight: 600; /* Sophisticated, less chunky weight */
  letter-spacing: 0.04em; /* Crisp tracking */
  text-transform: uppercase;
  padding: 0.42rem 1.15rem; /* Compact vertical height */
  font-size: 0.8rem; /* Premium text size */
  transition: all 0.2s ease;
}

.btn-hmps {
  color: #fff !important;
  background: var(--hmps-red);
  border-color: var(--hmps-red);
}

.btn-hmps:hover {
  color: #fff !important;
  background: #8f1722;
  border-color: #8f1722;
}

.btn-hmps-outline {
  color: #fff !important;
  border-color: #fff;
}

.btn-hmps-outline:hover {
  color: var(--hmps-blue) !important;
  background: #fff;
}

.btn-hmps-gold {
  color: var(--hmps-blue) !important;
  background: var(--hmps-gold);
  border-color: var(--hmps-gold);
}

.btn-hmps-gold:hover {
  color: var(--hmps-blue) !important;
  background: #d49a12;
  border-color: #d49a12;
}

.btn-rounded {
  border-radius: 30px !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.section-padding {
  padding: 10px 0; /* Extremely tight global section padding */
}

.section-padding-sm {
  padding: 5px 0; /* Extremely tight small section padding */
}

.section-title {
  margin: 0 0 0.5rem; /* Reduced margin */
  color: var(--hmps-blue);
  font-family: var(--font-heading);
  font-size: clamp(1.22rem, 1.85vw, 1.62rem); /* Shrunk further as requested */
  font-weight: 500; /* Decreased font weight from 600 to 500 (clean medium weight) */
}

.welcome-card .section-title {
  font-size: clamp(
    1.35rem,
    2.2vw,
    1.95rem
  ); /* Scaled down slightly & responsive */
  line-height: 1.25;
}

.section-lead {
  max-width: 760px;
  color: var(--hmps-muted);
}

.bg-school {
  background: var(--hmps-bg);
}

.bg-blue {
  color: #fff;
  background: var(--hmps-blue);
}

.bg-blue .section-title,
.bg-blue .section-lead {
  color: #fff;
}

.info-card,
.message-card,
.facility-card,
.achievement-card,
.activity-card,
.event-card,
.teacher-card,
.notice-card,
.download-card,
.portal-panel {
  height: 100%;
  background: #f8fafd; /* Soft, smooth light gray-blue background for high visibility */
  border: 1px solid var(--hmps-border);
  border-radius: 6px; /* Elegant rounded corners to look smooth and premium */
  box-shadow: 0 6px 16px rgba(20, 63, 115, 0.05);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

/* Premium interactive hover elevation for all cards */
.info-card:hover,
.message-card:hover,
.facility-card:hover,
.achievement-card:hover,
.activity-card:hover,
.event-card:hover,
.teacher-card:hover,
.notice-card:hover,
.download-card:hover,
.portal-panel:hover {
  background: #ffffff !important;
  border-color: var(--hmps-gold) !important;
  box-shadow: 0 10px 24px rgba(20, 63, 115, 0.12) !important;
  transform: translateY(-3px);
}

.info-card {
  height: auto;
  padding: 22px; /* Reduced padding */
}

.row > [class*="col-"] > .info-card:only-child {
  height: 100%;
}

.message-card {
  display: flex;
  flex-direction: column;
  height: auto !important; /* Let card adjust to content to remove empty vertical gap */
  padding: 16px 20px; /* Reduced vertical padding */
  border-top: 4px solid var(--hmps-gold);
}

.message-card-long {
  height: 380px !important; /* Retained long scrollable variant */
}

.message-card .message-body {
  margin-top: 6px;
  margin-bottom: 6px;
  font-style: italic; /* Make all message bodies italic */
}

.message-card-long .message-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 6px;
}

.message-card .message-body p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--hmps-ink);
  font-style: italic; /* Consistent italics */
}

/* Custom Scrollbar for message cards */
.message-card .message-body::-webkit-scrollbar {
  width: 5px;
}

.message-card .message-body::-webkit-scrollbar-track {
  background: #f1f3f7;
}

.message-card .message-body::-webkit-scrollbar-thumb {
  background: var(--hmps-muted);
  border-radius: 4px;
}

.message-card .message-body::-webkit-scrollbar-thumb:hover {
  background: var(--hmps-blue);
}

.home-intro-section {
  position: relative;
  z-index: 1;
}

.home-notice-panel {
  height: 100%;
  border-top: 4px solid var(--hmps-gold);
  box-shadow: var(--hmps-shadow);
}

.home-notice-panel .side-panel-body {
  padding: 14px 18px; /* Shrunk padding to make notice board super compact */
}

.home-notice-panel .side-panel-body .mb-3 {
  margin-bottom: 0.65rem !important; /* Tightened margin below header */
}

.home-notice-panel .side-panel-body .card-heading {
  font-size: 1.15rem; /* Scaled header text down slightly to conserve space */
}

.moving-notice-window {
  height: 250px; /* Shrunk from 350px for compact Notice Board layout */
  overflow: hidden;
  border-top: 1px solid var(--hmps-border);
  border-bottom: 1px solid var(--hmps-border);
}

.moving-notice-track {
  animation: noticeMove 24s linear infinite;
}

.moving-notice-window:hover .moving-notice-track {
  animation-play-state: paused;
}

/* News & Events Vertical Marquee Scroller */
.moving-event-window {
  height: 280px;
  overflow: hidden;
  border-top: 1px solid var(--hmps-border);
  border-bottom: 1px solid var(--hmps-border);
}

.moving-event-track {
  margin: 0;
  padding: 0;
  list-style: none;
  animation: eventMove 24s linear infinite;
}

.moving-event-window:hover .moving-event-track {
  animation-play-state: paused;
}

@keyframes eventMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.moving-notice-track li {
  background: #fff;
}

.moving-notice-track strong {
  font-weight: 600; /* Lighter, more professional than 700 bold */
  font-size: 0.92rem;
  color: var(--hmps-blue);
}

.moving-notice-track span {
  font-size: 0.86rem;
  line-height: 1.45;
}

.moving-notice-track a {
  padding: 0.55rem 0; /* Reduced from 0.95rem */
}

/* Compact date box inside notice board to match cleaner spacing */
.moving-notice-track .date-box {
  width: 44px;
  min-width: 44px;
  height: 48px;
}

.moving-notice-track .date-box span {
  font-size: 0.95rem;
}

.moving-notice-track .date-box small {
  font-size: 0.6rem;
}

@keyframes noticeMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.achievements-preview-section {
  background: #fff;
  border-bottom: 1px solid var(--hmps-border);
}

.topper-marquee {
  overflow: hidden;
  padding: 8px 0;
  border-top: 4px solid var(--hmps-gold);
  border-bottom: 1px solid var(--hmps-border);
}

.topper-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: topperScroll 42s linear infinite;
}

.topper-marquee:hover .topper-track {
  animation-play-state: paused;
}

.topper-card {
  display: grid;
  grid-template-columns: 122px 1fr;
  width: 390px;
  flex: 0 0 390px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hmps-border);
  box-shadow: 0 6px 16px rgba(20, 63, 115, 0.08);
}

.topper-photo {
  width: 122px;
  height: 100%;
  min-height: 172px;
  object-fit: cover;
  object-position: center top;
}

.topper-details {
  padding: 18px;
}

.topper-details h3 {
  margin: 0.75rem 0 0.25rem;
  color: var(--hmps-blue);
  font-family: var(--font-body); /* Modern, clean sans-serif */
  font-size: 1.15rem; /* Neater, tighter size */
  font-weight: 650; /* Sleeker, less blocky bold */
}

.topper-details p {
  margin-bottom: 0.4rem;
  color: var(--hmps-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.topper-details strong {
  color: var(--hmps-red);
  font-family: var(--font-body); /* Modern, clean sans-serif */
  font-size: 1.65rem; /* Shrunk from 2rem for a neater fit */
  font-weight: 700;
  line-height: 1;
}

@keyframes topperScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.domain-winner-card {
  border-top: 4px solid var(--hmps-gold);
}

.winner-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.winner-list li {
  position: relative;
  min-height: 58px;
  padding: 0.78rem 0.75rem 0.78rem 3.1rem;
  background: #f8fafd;
  border: 1px solid var(--hmps-border);
  counter-increment: winners;
}

.winner-list {
  counter-reset: winners;
}

.winner-list li::before {
  position: absolute;
  top: 0.82rem;
  left: 0.78rem;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--hmps-blue);
  font-weight: 800;
  content: counter(winners);
}

.winner-list strong,
.winner-list span {
  display: block;
}

.winner-list span {
  color: var(--hmps-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.message-photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 4px solid #fff;
  outline: 1px solid var(--hmps-border);
}

.academic-tabs {
  margin-bottom: 3px !important; /* Snug spacing directly above the container */
}

.academic-tabs .nav-link {
  color: var(--hmps-blue-2);
  background: #f8fafc; /* Very soft light gray-blue background */
  border: 1px solid var(--hmps-border);
  border-radius: 30px !important;
  font-family: var(--font-heading); /* Geometric Outfit font for premium look */
  font-size: 0.86rem; /* Clean professional size */
  font-weight: 600; /* Modern semi-bold weight */
  letter-spacing: 0.03em; /* Crisp tracking */
  padding: 0.35rem 1rem; /* Perfectly snug padding */
  margin-right: 3px; /* Reduced horizontal gap between buttons */
  margin-bottom: 0px; /* Removed bottom margin on buttons */
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.academic-tabs .nav-link:hover {
  color: var(--hmps-red);
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.academic-tabs .nav-link.active {
  color: #fff;
  background: var(--hmps-blue);
  border-color: var(--hmps-blue);
  box-shadow: 0 4px 12px rgba(8, 47, 99, 0.16); /* Premium active shadow */
}

.level-panel {
  padding: 24px; /* More elegant padding */
  background: #fff;
  border: 1px solid var(--hmps-border);
  border-radius: 8px; /* Elegant rounded corners to match premium cards */
  box-shadow: 0 6px 16px rgba(20, 63, 115, 0.04); /* Soft premium shadow */
}

.image-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: var(--hmps-blue);
}

.image-tile img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.facility-card .card-body,
.achievement-card .card-body,
.activity-card .card-body,
.event-card .card-body,
.teacher-card .card-body,
.download-card .card-body {
  padding: 18px; /* Reduced from 22px */
}

.card-heading {
  margin-bottom: 0.55rem;
  color: var(--hmps-blue);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  color: #fff;
  background: var(--hmps-red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gold-rule {
  width: 72px;
  height: 4px;
  margin: 0.75rem 0 1rem; /* Tighter margins */
  background: var(--hmps-gold);
}

.news-list,
.link-list,
.notice-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-list li,
.link-list li,
.notice-list li {
  border-bottom: 1px solid var(--hmps-border);
}

.news-list a,
.link-list a,
.notice-list a {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  color: var(--hmps-ink);
  font-weight: 650;
}

.news-list a:hover,
.link-list a:hover,
.notice-list a:hover {
  color: var(--hmps-red);
}

.date-box {
  display: grid;
  width: 54px;
  min-width: 54px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: var(--hmps-blue);
  line-height: 1.1;
  text-align: center;
}

.date-box span {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

.date-box small {
  display: block;
  color: var(--hmps-gold);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.counter-band {
  color: #fff;
  background:
    linear-gradient(rgba(8, 47, 99, 0.92), rgba(8, 47, 99, 0.92)),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1600&q=80")
      center/cover;
}

.counter-box {
  padding: 20px 12px;
  text-align: center;
}

.counter-num-container {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.counter-number {
  display: inline-block;
  color: var(--hmps-gold);
  font-family: var(--font-heading);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1;
}

.counter-plus {
  color: var(--hmps-gold);
  font-family: var(--font-heading);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
}

.counter-label {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  padding: 24px 0; /* Tight, compact height for all interior page heroes */
  color: #fff;
  background-position: center;
  background-size: cover;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82),
    rgba(0, 0, 0, 0.28)
  ); /* Transparent dark gradient allowing the real image colors to shine through */
}

.page-hero .section-lead {
  color: #f1f3f5; /* High contrast matching light-silver color */
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.level-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 90px;
  border: 3px solid var(--hmps-light-gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.breadcrumb-school {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumb-school a {
  color: var(--hmps-gold);
}

.side-panel {
  background: #fff;
  border: 1px solid var(--hmps-border);
  border-radius: 6px; /* Elegant top/bottom rounded corners as in the screenshot */
  overflow: hidden; /* Ensures headers clip cleanly to the rounded borders */
}

.side-panel-title {
  margin: 0;
  padding: 0.5rem 1rem; /* Compact banner vertical height */
  color: #fff;
  background: var(--hmps-blue);
  font-family: var(
    --font-body
  ); /* Modern, clean sans-serif (Segoe UI) matching the screenshot exactly */
  font-weight: 700; /* Clean, clear bold styling */
  font-size: 0.8rem; /* Scaled down and balanced */
  text-transform: uppercase;
  letter-spacing: 0.04em; /* High-end open letter spacing */
}

.side-panel-body {
  padding: 1rem;
}

.table-school {
  border: 1px solid var(--hmps-border);
}

.table-school thead {
  color: #fff;
  background: var(--hmps-blue);
}

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

.accordion-button {
  color: var(--hmps-blue);
  font-weight: 800;
}

.accordion-button:not(.collapsed) {
  color: #fff;
  background: var(--hmps-blue);
  box-shadow: none;
}

.form-control,
.form-select {
  min-height: 46px;
  border-radius: 0;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--hmps-gold);
  box-shadow: 0 0 0 0.15rem rgba(215, 165, 41, 0.2);
}

/* Gallery Section Styling */
.gallery-filter {
  background: #fffbf0;
  padding: 6px;
  border-radius: 40px;
  border: 1px solid var(--hmps-gold);
  display: inline-flex !important;
  gap: 4px;
}

.gallery-filter .btn {
  border-radius: 30px !important;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hmps-ink);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-filter .btn:hover {
  color: var(--hmps-red);
  background: rgba(198, 40, 40, 0.05);
}

.gallery-filter .btn.active,
.gallery-filter .btn.active:hover {
  color: #fff !important;
  background: var(--hmps-red) !important;
  border-color: var(--hmps-red) !important;
  box-shadow: 0 4px 10px rgba(198, 40, 40, 0.22);
}

.gallery-grid > [class*="col-"] {
  display: flex;
}

.gallery-item {
  width: 100%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--hmps-border);
  border-top: 4px solid var(--hmps-gold);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.1rem 1rem;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.3) 75%,
    transparent 100%
  );
  font-weight: 700;
  font-size: 0.92rem;
  border-left: 4px solid var(--hmps-gold);
  transition:
    background 0.4s ease,
    border-left-color 0.4s ease;
  z-index: 2;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0) 42%
  );
  pointer-events: none;
}

.gallery-item:hover .gallery-caption {
  background: linear-gradient(
    to top,
    rgba(198, 40, 40, 0.95) 0%,
    rgba(198, 40, 40, 0.35) 75%,
    transparent 100%
  );
}

/* Lightbox Modal & Controls */
#galleryModal .modal-content {
  background-color: #16161a;
  border: none;
  border-top: 5px solid var(--hmps-gold);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

#galleryModal .modal-header {
  background-color: #16161a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 1.5rem;
}

#galleryModal .modal-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

#galleryModalImage {
  max-height: 75vh;
  object-fit: contain;
  background-color: #000; /* Pure black to make images pop */
  display: block;
  margin: 0 auto;
}

#galleryPrevBtn,
#galleryNextBtn {
  background-color: rgba(22, 22, 26, 0.7) !important;
  border: 1px solid var(--hmps-gold) !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(4px);
}

#galleryPrevBtn:hover,
#galleryNextBtn:hover {
  background-color: var(--hmps-red) !important;
  border-color: var(--hmps-red) !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 0 12px rgba(198, 40, 40, 0.6);
}

.gallery-item.is-hidden,
.notice-row.is-hidden,
.teacher-card.is-hidden,
.is-hidden {
  display: none !important;
}

.teacher-photo {
  width: 100%;
  height: 245px;
  object-fit: cover;
  object-position: center top;
}

.portal-shell {
  min-height: 680px;
  background: var(--hmps-bg);
  border: 1px solid var(--hmps-border);
}

.portal-sidebar {
  min-height: 680px;
  color: #fff;
  background: var(--hmps-blue);
}

.portal-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.86);
  border-radius: 0;
  font-weight: 700;
}

.portal-sidebar .nav-link.active,
.portal-sidebar .nav-link:hover {
  color: #fff;
  background: var(--hmps-red);
}

.portal-stat {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--hmps-border);
}

.portal-stat span {
  color: var(--hmps-red);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.footer {
  color: #dce7f6;
  background: #061f42;
  padding-top: 1.75rem !important; /* Override pt-5 for a shorter footer */
}

.footer a {
  color: #dce7f6;
}

.footer a:hover {
  color: var(--hmps-gold);
}

.footer-title {
  margin-bottom: 0.75rem; /* Tighter margins */
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem; /* Reduced font size */
  font-weight: 700;
}

.footer .link-list li {
  border-color: rgba(255, 255, 255, 0.12);
}

.footer .link-list a {
  padding: 0.28rem 0; /* Tighter links padding */
  color: #dce7f6;
  font-size: 0.84rem; /* Reduced font size */
}

.map-frame {
  width: 100%;
  min-height: 170px; /* Shorter map frame to reduce footer height */
  border: 0;
  filter: grayscale(0.15);
}

.footer-bottom {
  color: #bed0e6;
  background: #041832;
  font-size: 0.8rem; /* Reduced copyright size */
  margin-top: 1.5rem !important; /* Override mt-5 for shorter layout */
  padding-top: 0.5rem !important; /* Override py-3 vertical padding */
  padding-bottom: 0.5rem !important; /* Override py-3 vertical padding */
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1040;
  display: none;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--hmps-red);
  border: 0;
  place-items: center;
}

.scroll-top.show {
  display: grid;
}

.modal-content {
  border-radius: 0;
}

.modal-header {
  color: #fff;
  background: var(--hmps-blue);
  border-radius: 0;
}

.required::after {
  color: var(--hmps-red);
  content: " *";
}

/* ==========================================================================
   Toppers Announcement Modal Custom Theme Styles
   ========================================================================== */
.topper-modal-content {
  border-radius: 12px;
  overflow: visible;
  border: 4px solid var(--hmps-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  background: #ffffff;
  position: relative;
  max-width: 660px; /* Constrain width to shrink card breath */
  margin: 0 auto;
}

.topper-modal-header {
  background: #ffffff;
  padding: 18px 24px;
  border-bottom: 2px solid var(--hmps-border);
  text-align: center;
  position: relative;
  border-radius: 8px 8px 0 0;
}

.topper-modal-close-btn {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--hmps-red);
  border: 2px solid #ffffff;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
  z-index: 1060;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.topper-modal-close-btn:hover {
  background: #9e1c25;
  transform: scale(1.1);
}

.topper-modal-header-text {
  flex: 1;
}

.topper-modal-school-title {
  font-family: var(--font-heading);
  color: var(--hmps-blue);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.topper-modal-school-subtitle {
  color: var(--hmps-red);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.topper-modal-pill-banner {
  display: inline-block;
  background: var(--hmps-light-gold);
  border: 1px solid #f2d47a;
  color: var(--hmps-blue);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.topper-modal-body {
  background: var(--hmps-blue); /* Royal Blue matching school theme */
  background: linear-gradient(
    135deg,
    var(--hmps-blue) 0%,
    var(--hmps-blue-3) 100%
  );
  padding: 20px 16px;
  max-height: 68vh;
  overflow-y: auto;
  border-radius: 0 0 8px 8px; /* Smooth rounded bottom edges now that footer is removed */
}

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

.topper-modal-card {
  background: #ffffff;
  border: 1.5px solid var(--hmps-gold);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.topper-modal-card:hover {
  transform: translateY(-3px);
}

.topper-modal-rank {
  position: absolute;
  top: -8px;
  right: 8px;
  background: #2e7d32; /* Rosette green theme decoration */
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #a5d6a7;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.topper-modal-rank::before,
.topper-modal-rank::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 6px;
  height: 8px;
  background: #2e7d32;
  z-index: -1;
}

.topper-modal-rank::before {
  left: 2px;
  transform: rotate(15deg);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 75%, 0% 100%);
}

.topper-modal-rank::after {
  right: 2px;
  transform: rotate(-15deg);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 75%, 0% 100%);
}

.topper-modal-photo {
  width: 100%;
  height: 102px; /* Increased height by 34px */
  object-fit: cover;
  border-bottom: 1.5px solid var(--hmps-gold);
  background-color: var(--hmps-red); /* Backdrop behind photo */
}

.topper-modal-info {
  background: #00bcd4; /* Vibrant teal/cyan matching reference */
  background: linear-gradient(180deg, #00acc1 0%, #00838f 100%);
  padding: 2px 1px; /* Snug padding to prevent scrollbars */
  text-align: center;
  height: 34px; /* Shrunk height by 50% (from 68px) */
  flex: 0 0 34px; /* Rigid height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

.topper-modal-name {
  font-family: var(--font-heading); /* Premium 'Outfit' */
  font-size: 0.54rem; /* Reduced font size to fit snugly */
  font-weight: 400; /* Non-bold */
  color: #ffffff;
  margin: 0; /* Zero margins */
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.topper-modal-percent {
  font-family: var(--font-heading); /* Premium 'Outfit' */
  font-size: 0.72rem; /* Reduced font size to fit snugly */
  font-weight: 400; /* Non-bold */
  color: #fffb00; /* Vivid bright yellow for text-outstand percentage */
  margin: 0; /* Zero margins */
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.topper-modal-stream {
  font-family: var(--font-heading); /* Premium 'Outfit' */
  font-size: 0.48rem; /* Reduced font size to fit snugly */
  font-weight: 400; /* Non-bold */
  color: rgba(255, 255, 255, 0.9);
  margin: 0; /* Zero margins */
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .topper-modal-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .topper-modal-photo {
    height: 93px; /* Proportionate height */
  }
  .topper-modal-info {
    height: 31px; /* Shrunk 50% */
    flex: 0 0 31px;
  }
  .topper-modal-school-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .topper-modal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .topper-modal-photo {
    height: 87px; /* Proportionate height */
  }
  .topper-modal-info {
    height: 29px; /* Shrunk 50% */
    flex: 0 0 29px;
  }
}

@media (max-width: 575px) {
  .topper-modal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .topper-modal-photo {
    height: 78px; /* Proportionate height */
  }
  .topper-modal-info {
    height: 26px; /* Shrunk 50% */
    flex: 0 0 26px;
  }
  .topper-modal-school-title {
    font-size: 1.1rem;
  }
  .topper-modal-school-subtitle {
    font-size: 0.8rem;
  }
  .topper-modal-pill-banner {
    font-size: 0.72rem;
    padding: 3px 12px;
  }
  .topper-modal-name {
    font-size: 0.48rem;
    font-weight: 400; /* Match non-bold weight */
  }
  .topper-modal-percent {
    font-size: 0.6rem;
    font-weight: 400; /* Match non-bold weight */
  }
  .topper-modal-stream {
    font-size: 0.42rem;
    font-weight: 400; /* Match non-bold weight */
  }
}

/* ==========================================================================
   Floating Contact Actions
   ========================================================================== */
.floating-contact-actions {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  font-size: 1.25rem;
}

.floating-action-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.floating-action-btn.whatsapp {
  background-color: #25d366;
}

.floating-action-btn.whatsapp:hover {
  background-color: #20ba5a;
}

.floating-action-btn.call {
  background-color: #c62828;
}

.floating-action-btn.call:hover {
  background-color: #b71c1c;
}

/* ==========================================================================
   Interactive Event Calendar
   ========================================================================== */
.calendar-card {
  padding: 24px;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  color: var(--hmps-blue);
  margin-bottom: 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hmps-border);
  padding-bottom: 8px;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.calendar-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--hmps-border);
  transition: all 0.2s ease;
  position: relative;
}
.calendar-day:hover {
  background: var(--hmps-light-gold);
  border-color: var(--hmps-gold);
  color: var(--hmps-ink);
}
.calendar-day.empty {
  background: transparent;
  border: none;
  cursor: default;
}
.calendar-day.empty:hover {
  background: transparent;
  border: none;
}
.calendar-day.today {
  border-color: var(--hmps-blue);
  color: var(--hmps-blue);
  box-shadow: inset 0 0 0 1px var(--hmps-blue);
}
.calendar-day.has-event {
  background: var(--hmps-light-gold);
  border-color: var(--hmps-gold);
  color: var(--hmps-blue);
}
.calendar-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 5px;
  height: 5px;
  background: var(--hmps-red);
  border-radius: 50%;
}
.calendar-day.active {
  background: var(--hmps-red) !important;
  color: #fff !important;
  border-color: var(--hmps-red) !important;
}
.calendar-day.active::after {
  background: #fff;
}
.event-details-card {
  padding: 24px;
}

/* Footer Newsletter Form Sizing */
#newsletterEmail {
  min-height: 36px;
  font-size: 0.85rem;
}

.footer .input-group .btn-hmps-gold {
  min-height: 36px;
  font-size: 0.75rem;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   Premium Downloads & Forms Section (Themed to the School Logo)
   ========================================================================== */
.download-card {
  height: 100%;
  background: #ffffff !important;
  border: 1px solid var(--hmps-border) !important;
  border-top: 4px solid var(--hmps-gold) !important; /* Gold ring of logo */
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(8, 47, 99, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex;
  flex-direction: column;
}

.download-card:hover {
  border-top-color: var(
    --hmps-red
  ) !important; /* Changes to red ribbon theme on hover */
  border-color: var(--hmps-red) !important;
  box-shadow: 0 12px 24px rgba(198, 40, 40, 0.08) !important;
  transform: translateY(-4px) !important;
  background-color: #ffffff !important;
}

.download-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%; /* Circle representing the outer ring of the logo */
  background-color: #fff9e6; /* Soft sun-yellow background from logo */
  color: var(--hmps-red); /* Red matching the logo ribbon/flames */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.25s ease;
  border: 2px solid var(--hmps-gold); /* Solid gold border representing circular ring */
}

.download-card:hover .download-icon-wrapper {
  background-color: var(--hmps-red); /* Transitions to solid red */
  color: #ffffff;
  border-color: var(--hmps-red);
  transform: scale(1.05);
}

.download-card .card-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hmps-blue); /* Diya blue */
  margin-bottom: 8px;
  transition: color 0.25s ease;
}

.download-card:hover .card-heading {
  color: var(--hmps-red);
}

.download-card p {
  font-size: 0.9rem;
  color: var(--hmps-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(
    --hmps-gold
  ); /* Gold matching logo circular ring/sun rays */
  color: var(--hmps-ink) !important; /* High contrast dark navy text */
  border: 2px solid var(--hmps-gold);
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  border-radius: 6px;
  text-decoration: none;
}

.download-card:hover .btn-download {
  background-color: var(--hmps-red); /* Solid red matching logo ribbon */
  border-color: var(--hmps-red);
  color: #ffffff !important;
}

/* Disclosure Cards (Horizontal variant for mandatory disclosure in about page) */
.disclosure-card {
  border: 1px solid var(--hmps-border) !important;
  border-left: 4px solid var(--hmps-gold) !important; /* Left gold border matching theme */
  background: #ffffff !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 8px !important;
  height: auto !important;
}

.disclosure-card:hover {
  border-left-color: var(--hmps-red) !important;
  border-color: var(--hmps-red) !important;
  box-shadow: 0 10px 20px rgba(198, 40, 40, 0.06) !important;
  transform: translateY(-2px) !important;
  background-color: #ffffff !important;
}

.disclosure-card .card-body {
  padding: 16px 20px !important;
}

.disclosure-card .download-icon-wrapper {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #fff9e6; /* Soft gold/yellow shade */
  color: var(--hmps-red);
  border: 2px solid var(--hmps-gold);
}

.disclosure-card:hover .download-icon-wrapper {
  background-color: var(--hmps-red);
  color: #ffffff;
  border-color: var(--hmps-red);
}

.disclosure-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hmps-blue); /* Diya blue */
  transition: color 0.25s ease;
}

.disclosure-card:hover .disclosure-title {
  color: var(--hmps-red);
}

.btn-download-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--hmps-gold); /* Gold matching theme */
  border: 2px solid var(--hmps-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  padding: 0;
  flex-shrink: 0;
}

.disclosure-card:hover .btn-download-arrow {
  background: var(--hmps-red); /* Red matching logo ribbon */
  color: #ffffff !important;
  border-color: var(--hmps-red);
  transform: translateX(3px);
}

/* Compact, Logo-Themed Stable Contact Form Card */
.compact-form-panel {
  background: #ffffff;
  border: 1px solid var(--hmps-border);
  border-top: 4px solid var(--hmps-gold); /* Gold header accent matching logo */
  border-radius: 8px;
  padding: 20px; /* Highly compact padding */
  box-shadow: 0 4px 16px rgba(8, 47, 99, 0.04);
}

.compact-form-panel .section-title {
  font-size: 1.35rem; /* Shrunk title size */
  margin-bottom: 10px;
}

.compact-form-panel .section-kicker {
  font-size: 0.72rem;
  margin-bottom: 2px;
}

.compact-form-panel .form-label {
  font-weight: 700;
  font-size: 0.8rem; /* Shrunk label size */
  color: var(--hmps-blue);
  margin-bottom: 4px;
}

.compact-form-panel .form-control,
.compact-form-panel .form-select {
  border: 1px solid var(--hmps-border);
  border-radius: 6px;
  padding: 8px 12px; /* More compact input padding */
  font-size: 0.85rem; /* Shrunk font size */
  transition: all 0.25s ease;
}

.compact-form-panel .form-control:focus,
.compact-form-panel .form-select:focus {
  border-color: var(--hmps-red);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
  background-color: #fff;
}

.compact-form-panel textarea.form-control {
  padding: 8px 12px;
}

/* Premium Stepper Timeline */
.stepper-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 20px 0;
}

.stepper-item {
  position: relative;
  flex: 1 1 0;
  text-align: center;
  padding: 0 15px;
  min-width: 200px;
}

.stepper-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: calc(50% + 25px);
  width: calc(100% - 50px);
  height: 2px;
  background: var(--hmps-border);
  z-index: 1;
}

.stepper-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--hmps-red);
  color: var(--hmps-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stepper-item:hover .stepper-circle {
  background: var(--hmps-red);
  color: #fff;
  transform: scale(1.05);
}

.stepper-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--hmps-blue);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stepper-desc {
  font-size: 0.82rem;
  color: var(--hmps-muted);
  line-height: 1.5;
}

@media (max-width: 991px) {
  .stepper-item {
    margin-bottom: 30px;
    flex: 1 1 50%;
  }
  .stepper-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 575px) {
  .stepper-item {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Gallery Video & Tab Styles
   ========================================================================== */
.gallery-type-tabs {
  margin-top: 1.5rem;
}

.gallery-type-tabs .nav-pills {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  border-radius: 40px;
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.gallery-type-tabs .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 24px;
  border-radius: 30px;
  border: none;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-type-tabs .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.gallery-type-tabs .nav-link.active {
  color: var(--hmps-blue) !important;
  background-color: var(--hmps-gold) !important;
  box-shadow: 0 4px 15px rgba(231, 171, 24, 0.4);
}

.video-item .video-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.video-item .video-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 1;
}

.video-item:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.play-btn-circle {
  width: 56px;
  height: 56px;
  background: var(--hmps-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.4);
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.video-item:hover .play-btn-circle {
  transform: scale(1.15);
  background: var(--hmps-gold);
  box-shadow: 0 6px 20px rgba(231, 171, 24, 0.5);
  border-color: #fff;
  animation: playPulse 2s infinite;
}

@keyframes playPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 171, 24, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(231, 171, 24, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 171, 24, 0);
  }
}

/* ==========================================================================
   Notices & Downloads Styling Updates
   ========================================================================== */
.category-list .list-group-item {
  border: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--hmps-ink);
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: 8px !important;
  background: transparent;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  text-align: left;
}

.category-list .list-group-item i {
  font-size: 1.1rem;
  color: var(--hmps-muted);
  transition: color 0.25s ease;
}

.category-list .list-group-item:hover {
  background-color: var(--hmps-bg);
  color: var(--hmps-blue);
}

.category-list .list-group-item:hover i {
  color: var(--hmps-blue);
}

.category-list .list-group-item.active {
  background-color: var(--hmps-light-gold) !important;
  color: var(--hmps-blue) !important;
  font-weight: 600;
}

.category-list .list-group-item.active i {
  color: var(--hmps-gold) !important;
}

.search-box-wrapper {
  position: relative;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--hmps-border);
  box-shadow: 0 4px 12px rgba(8, 47, 99, 0.04);
  padding: 4px 16px;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box-wrapper:focus-within {
  border-color: var(--hmps-gold);
  box-shadow: 0 4px 16px rgba(231, 171, 24, 0.15);
}

.search-box-wrapper .form-control {
  border: none;
  padding: 8px 0;
  box-shadow: none !important;
  background: transparent;
  font-size: 0.95rem;
}

.search-box-wrapper .bi-search {
  color: var(--hmps-muted);
  font-size: 1.1rem;
}

/* Modern card-like rows for notices */
.table-school {
  border-collapse: separate;
  border-spacing: 0 8px; /* Vertical gap between rows */
  border: none !important;
}

.table-school thead {
  background: transparent !important;
  color: var(--hmps-blue) !important;
}

.table-school th {
  background: transparent !important;
  color: var(--hmps-blue) !important;
  border-bottom: 2px solid var(--hmps-border) !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 12px !important;
}

.table-school tbody tr {
  background: #fff;
  box-shadow: 0 2px 6px rgba(8, 47, 99, 0.04);
  border-radius: 8px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.table-school tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(8, 47, 99, 0.08);
  background-color: #fff !important;
}

.table-school tbody td {
  border: none !important;
  padding: 16px 20px !important;
}

.table-school tbody td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  font-weight: 600;
  color: var(--hmps-blue);
  font-size: 0.9rem;
}

.table-school tbody td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.table-school .meta-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
}

.table-school tr[data-category="admission"] .meta-pill {
  background: #e8f5e9;
  color: #2e7d32;
}

.table-school tr[data-category="exam"] .meta-pill {
  background: #e3f2fd;
  color: #1565c0;
}

.table-school tr[data-category="holiday"] .meta-pill {
  background: #fff3e0;
  color: #e65100;
}

.table-school tr[data-category="fee"] .meta-pill {
  background: #f3e5f5;
  color: #6a1b9a;
}

.table-school tr[data-category="result"] .meta-pill {
  background: #ffebee;
  color: #c62828;
}

.table-school .download-btn-table {
  color: var(--hmps-red);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.table-school .download-btn-table:hover {
  color: var(--hmps-blue);
}

/* Download Cards Styling */
.download-card {
  border: 1px solid var(--hmps-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(8, 47, 99, 0.12);
  border-color: var(--hmps-gold);
}

.download-icon-wrapper {
  width: 50px;
  height: 50px;
  background: var(--hmps-light-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hmps-gold);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.download-card:hover .download-icon-wrapper {
  background: var(--hmps-gold);
  color: #fff;
  transform: rotate(-10deg) scale(1.05);
}

.btn-download {
  border: 1px solid var(--hmps-red);
  color: var(--hmps-red);
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 20px;
  background: transparent;
  transition: all 0.3s ease;
}

.download-card:hover .btn-download {
  background: var(--hmps-red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

/* ==========================================================================
   Disclosure Page Styling
   ========================================================================== */
.disclosure-tab-nav {
  background: var(--hmps-bg);
  padding: 6px;
  border-radius: 40px;
  display: inline-flex;
  border: 1px solid var(--hmps-border);
  margin-bottom: 2rem;
}

.disclosure-tab-nav .nav-link {
  color: var(--hmps-muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 24px;
  border-radius: 30px;
  border: none;
  background: transparent;
  transition: all 0.3s ease;
}

.disclosure-tab-nav .nav-link:hover {
  color: var(--hmps-blue);
}

.disclosure-tab-nav .nav-link.active {
  color: #fff !important;
  background-color: var(--hmps-blue) !important;
  box-shadow: 0 4px 12px rgba(8, 47, 99, 0.2);
}

/* Stats Card for Staff */
.stat-card-disclosure {
  background: #fff;
  border: 1px solid var(--hmps-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
}

.stat-card-disclosure:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(8, 47, 99, 0.08);
  border-color: var(--hmps-gold);
}

.stat-card-disclosure .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--hmps-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card-disclosure .stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hmps-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Infrastructure Item list */
.infra-card {
  background: #fff;
  border: 1px solid var(--hmps-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.infra-card:hover {
  border-color: var(--hmps-gold);
  box-shadow: 0 8px 16px rgba(8, 47, 99, 0.06);
}

.infra-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--hmps-light-gold);
  color: var(--hmps-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.infra-card:hover .infra-icon {
  background: var(--hmps-gold);
  color: #fff;
}

.infra-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hmps-blue);
  margin-bottom: 4px;
}

.infra-info p {
  font-size: 0.88rem;
  color: var(--hmps-muted);
  margin-bottom: 0;
}

/* Location & Map UI Styling on Contact Page */
.location-info-card {
  background: #fff;
  border: 1.5px solid var(--hmps-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(8, 47, 99, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.location-item:last-of-type {
  margin-bottom: 0;
}

.location-icon-wrapper {
  background: rgba(198, 40, 40, 0.08);
  color: var(--hmps-red);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.location-item:hover .location-icon-wrapper {
  background: var(--hmps-red);
  color: #fff;
  transform: scale(1.08);
}

.location-item-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--hmps-blue);
}

.location-item-content p {
  font-size: 0.88rem;
  color: var(--hmps-ink);
  margin-bottom: 0;
  line-height: 1.5;
}

.map-card-wrapper {
  background: #fff;
  border: 1.5px solid var(--hmps-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(8, 47, 99, 0.05);
  padding: 8px;
  height: 100%;
  min-height: 380px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.map-card-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(8, 47, 99, 0.1);
}

.map-card-wrapper iframe {
  border-radius: 14px;
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 364px;
}

/* Video Card Redesign (mock YouTube player style) */
.video-card-container {
  background: #fff;
  border: 1.5px solid var(--hmps-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(8, 47, 99, 0.04);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-card-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--hmps-shadow);
}

.video-card-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card-container:hover .video-card-thumb {
  transform: scale(1.04);
}

/* YouTube Header Overlay */
.video-card-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.video-card-profile-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--hmps-red);
  font-weight: 800;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.video-card-header-text {
  min-width: 0;
}

.video-card-main-title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.video-card-sub-title {
  color: #ccc;
  font-size: 0.68rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* YouTube Play Button */
.video-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 36px;
  background: #f00;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.video-card-play-btn::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
  margin-left: 2px;
}

.video-card-container:hover .video-card-play-btn {
  background: #cc0000;
  transform: translate(-50%, -50%) scale(1.08);
}

/* YouTube Bottom Controls */
.video-card-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.video-card-control-left {
  display: flex;
  gap: 12px;
  color: #fff;
  font-size: 0.95rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.video-card-control-left i {
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.video-card-control-left i:hover {
  opacity: 1;
}

.video-card-watch-youtube {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.video-card-watch-youtube i {
  color: #f00;
  font-size: 0.82rem;
}

.video-card-watch-youtube:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Video Info Area */
.video-card-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.video-card-info h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hmps-blue);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.video-card-info p {
  font-size: 0.78rem;
  color: var(--hmps-muted);
  line-height: 1.45;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.9em;
}

/* About Us Page Modern Redesign */
.about-card {
  background: #fff;
  border: 1.5px solid var(--hmps-border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 6px 20px rgba(8, 47, 99, 0.03);
  height: 100%;
}

.value-grid-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--hmps-bg);
  border: 1px solid var(--hmps-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hmps-blue);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.value-grid-item:hover {
  transform: translateY(-2px);
  background: var(--hmps-light-gold);
  border-color: var(--hmps-gold);
}

.leader-message-card {
  background: #fff;
  border: 1.5px solid var(--hmps-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(8, 47, 99, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.leader-message-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hmps-shadow);
}

.leader-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--hmps-gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.leader-quote {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--hmps-ink);
  line-height: 1.6;
  border-left: 3px solid var(--hmps-red);
  padding-left: 1rem;
  margin: 1.25rem 0;
  position: relative;
}

.leader-quote::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 3rem;
  color: rgba(198, 40, 40, 0.1);
  position: absolute;
  top: -1.5rem;
  left: 0.2rem;
}

.leader-message-full {
  font-size: 0.86rem;
  color: var(--hmps-muted);
  line-height: 1.55;
  margin-top: 10px;
}

.read-more-btn {
  color: var(--hmps-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.75rem;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  transition: color 0.2s ease;
}

.read-more-btn:hover {
  color: var(--hmps-blue);
}

.read-more-btn[aria-expanded="true"] .bi-chevron-down::before {
  content: "\f286"; /* Bootstrap Icon Chevron-Up code */
}

.admin-row {
  background: #fff;
  border: 1px solid var(--hmps-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.admin-row:hover {
  transform: translateX(4px);
  border-color: var(--hmps-blue);
}

.admin-row:last-child {
  margin-bottom: 0;
}

.admin-row-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--hmps-blue);
  margin: 0;
}

.admin-row-desc {
  font-size: 0.86rem;
  color: var(--hmps-muted);
  margin: 0;
  flex-grow: 1;
}

.admin-row-badge {
  background: var(--hmps-light-gold);
  color: var(--hmps-ink);
  border: 1px solid rgba(231, 171, 24, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
}

.calendar-highlight-card {
  background: #fff;
  border: 1.5px solid var(--hmps-border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  border-left: 4px solid var(--hmps-red);
  height: 100%;
  transition: transform 0.2s ease;
}

.calendar-highlight-card:hover {
  transform: translateY(-2px);
}

.calendar-highlight-card.gold-accent {
  border-left-color: var(--hmps-gold);
}

.calendar-highlight-card.blue-accent {
  border-left-color: var(--hmps-blue);
}

@media (max-width: 768px) {
  .admin-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .admin-row-badge {
    align-self: flex-end;
  }
}

/* Compact & Premium Calendar styling */
.calendar-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow:
    0 15px 35px rgba(8, 47, 99, 0.08),
    0 5px 15px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(8, 47, 99, 0.08) !important;
  padding: 24px !important;
  max-width: 480px;
  margin: 0 auto;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.calendar-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px rgba(8, 47, 99, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.04) !important;
}

.calendar-header {
  border-bottom: 1.5px dashed var(--hmps-border);
  padding-bottom: 16px;
  margin-bottom: 20px !important;
}

/* Beautiful select dropdowns */
.calendar-header select.form-select {
  border-radius: 10px !important;
  font-family: var(--font-heading) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--hmps-blue) !important;
  border: 1.5px solid var(--hmps-border) !important;
  padding: 0.35rem 2.2rem 0.35rem 0.75rem !important;
  background-color: #fbfbfb !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: none !important;
}

.calendar-header select.form-select:hover {
  border-color: var(--hmps-blue) !important;
  background-color: #ffffff !important;
}

.calendar-header select.form-select:focus {
  border-color: var(--hmps-gold) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(231, 171, 24, 0.15) !important;
}

/* Round navigation buttons */
.calendar-header .btn-outline-primary {
  color: var(--hmps-blue) !important;
  border-color: rgba(8, 47, 99, 0.15) !important;
  background-color: transparent !important;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}

.calendar-header .btn-outline-primary:hover {
  color: #ffffff !important;
  background-color: var(--hmps-blue) !important;
  border-color: var(--hmps-blue) !important;
  transform: scale(1.08);
}

.calendar-header .btn-outline-primary:active {
  transform: scale(0.95);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  color: var(--hmps-blue);
  margin-bottom: 12px !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* Make Sundays stand out */
.calendar-weekdays div:first-child {
  color: var(--hmps-red);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px !important;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem !important;
  font-weight: 600;
  border-radius: 10px !important;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid rgba(8, 47, 99, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  color: var(--hmps-ink);
}

.calendar-day:hover:not(.empty) {
  background: #ffffff !important;
  border-color: var(--hmps-gold) !important;
  color: var(--hmps-blue) !important;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(231, 171, 24, 0.2) !important;
  z-index: 2;
}

.calendar-day.empty {
  background: transparent !important;
  border: none !important;
  cursor: default;
}

.calendar-day.today {
  border: 2.2px solid var(--hmps-blue) !important;
  color: var(--hmps-blue) !important;
  font-weight: 700 !important;
  background: rgba(8, 47, 99, 0.03) !important;
}

.calendar-day.has-event {
  background: var(--hmps-light-gold) !important;
  border-color: rgba(231, 171, 24, 0.45) !important;
  color: var(--hmps-blue) !important;
}

.calendar-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 5px;
  height: 5px;
  background: var(--hmps-red) !important;
  border-radius: 50% !important;
  transition: all 0.2s ease;
}

.calendar-day.active {
  background: var(--hmps-red) !important;
  color: #ffffff !important;
  border-color: var(--hmps-red) !important;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3) !important;
  transform: scale(1.05);
}

.calendar-day.active::after {
  background: #ffffff !important;
}

.calendar-day.active:hover {
  color: #ffffff !important;
  border-color: var(--hmps-red) !important;
}

/* Event dashboard styling */
.calendar-dashboard-card {
  border-radius: 20px !important;
  box-shadow:
    0 15px 35px rgba(8, 47, 99, 0.06),
    0 5px 15px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(8, 47, 99, 0.08) !important;
  background: #ffffff !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.calendar-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px rgba(8, 47, 99, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.04) !important;
}

/* Event List custom scrollbar */
#monthlyEventsList::-webkit-scrollbar {
  width: 5px;
}

#monthlyEventsList::-webkit-scrollbar-track {
  background: transparent;
}

#monthlyEventsList::-webkit-scrollbar-thumb {
  background: rgba(8, 47, 99, 0.15);
  border-radius: 4px;
}

#monthlyEventsList::-webkit-scrollbar-thumb:hover {
  background: rgba(8, 47, 99, 0.3);
}

/* Date Badge sizing & look */
.event-date-badge {
  box-shadow: 0 4px 8px rgba(8, 47, 99, 0.1);
  transition: all 0.2s ease;
}

.monthly-event-item:hover .event-date-badge {
  transform: scale(1.05);
  background-color: var(--hmps-red) !important;
}

/* Vision & Mission Premium Cards Styling */
.vision-card,
.mission-card {
  position: relative;
  background: #ffffff !important;
  border-radius: 24px !important;
  border: 1px solid rgba(8, 47, 99, 0.06) !important;
  box-shadow: 0 12px 35px rgba(8, 47, 99, 0.04) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden;
  z-index: 1;
}

/* Beautiful top brand border */
.vision-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--hmps-blue) 0%,
    var(--hmps-blue-2) 100%
  );
  z-index: 2;
}

.mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--hmps-red) 0%,
    var(--hmps-orange) 100%
  );
  z-index: 2;
}

/* Decorative background glows */
.vision-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(8, 47, 99, 0.03) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: -1;
  transition: all 0.35s ease;
}

.mission-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(198, 40, 40, 0.03) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: -1;
  transition: all 0.35s ease;
}

.vision-card:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 47, 99, 0.15) !important;
  box-shadow: 0 20px 45px rgba(8, 47, 99, 0.08) !important;
}

.mission-card:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 40, 40, 0.15) !important;
  box-shadow: 0 20px 45px rgba(198, 40, 40, 0.08) !important;
}

.vision-card:hover::after {
  transform: scale(1.2);
}

.mission-card:hover::after {
  transform: scale(1.2);
}

/* Icon box styling */
.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.vision-icon-box {
  background: rgba(8, 47, 99, 0.05);
  color: var(--hmps-blue);
  border: 1px solid rgba(8, 47, 99, 0.1);
}

.mission-icon-box {
  background: rgba(198, 40, 40, 0.05);
  color: var(--hmps-red);
  border: 1px solid rgba(198, 40, 40, 0.1);
}

.vision-card:hover .vision-icon-box {
  background: var(--hmps-blue);
  color: #ffffff;
  transform: rotate(-10deg) scale(1.05);
  box-shadow: 0 6px 15px rgba(8, 47, 99, 0.2);
}

.mission-card:hover .mission-icon-box {
  background: var(--hmps-red);
  color: #ffffff;
  transform: rotate(10deg) scale(1.05);
  box-shadow: 0 6px 15px rgba(198, 40, 40, 0.2);
}

/* Typography styles inside cards */
.vision-card .section-kicker,
.mission-card .section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 2px;
}

.vision-card .section-title,
.mission-card .section-title {
  font-size: 1.35rem !important;
  font-weight: 700;
  color: var(--hmps-blue) !important;
  margin-top: 0;
}

.vision-card .card-text,
.mission-card .card-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--hmps-muted);
  margin-top: 10px;
}

/* Vacancy list scroll container */
.vacancy-scroll-container {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

.vacancy-scroll-container::-webkit-scrollbar {
  width: 5px;
}

.vacancy-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.vacancy-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(8, 47, 99, 0.15);
  border-radius: 4px;
}

.vacancy-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(8, 47, 99, 0.3);
}

/* ==========================================================================
   Careers Page Premium UI Overhaul
   ========================================================================== */

/* Benefit Cards styling */
.careers-benefit-card {
  background: #ffffff;
  border: 1px solid rgba(8, 47, 99, 0.08);
  border-radius: 20px;
  padding: 35px 28px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(8, 47, 99, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.careers-benefit-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 100% 100%,
    rgba(231, 171, 24, 0.07) 0%,
    rgba(8, 47, 99, 0) 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.careers-benefit-card:hover {
  transform: translateY(-8px);
  border-color: rgba(8, 47, 99, 0.16);
  box-shadow: 0 20px 45px rgba(8, 47, 99, 0.09);
}

.careers-benefit-card:hover::after {
  opacity: 1;
}

.careers-benefit-card .icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background-color: rgba(8, 47, 99, 0.05) !important;
  color: var(--hmps-blue) !important;
  border: 1px solid rgba(8, 47, 99, 0.1) !important;
}

/* Different subtle accent colors for each benefit card icon on hover */
.careers-benefit-card:nth-child(1):hover .icon-wrapper,
.col-md-6:nth-child(1) .careers-benefit-card:hover .icon-wrapper {
  background-color: var(--hmps-blue) !important;
  color: #ffffff !important;
  transform: scale(1.1) rotate(-8deg);
  box-shadow: 0 8px 20px rgba(8, 47, 99, 0.2);
}

.careers-benefit-card:nth-child(2):hover .icon-wrapper,
.col-md-6:nth-child(2) .careers-benefit-card:hover .icon-wrapper {
  background-color: #2e7d32 !important; /* Success Green */
  color: #ffffff !important;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.2);
  border-color: rgba(46, 125, 50, 0.2) !important;
}

.careers-benefit-card:nth-child(3):hover .icon-wrapper,
.col-md-6:nth-child(3) .careers-benefit-card:hover .icon-wrapper {
  background-color: #ef6c00 !important; /* Warning Orange/Gold */
  color: #ffffff !important;
  transform: scale(1.1) rotate(-8deg);
  box-shadow: 0 8px 20px rgba(239, 108, 0, 0.2);
  border-color: rgba(239, 108, 0, 0.2) !important;
}

.careers-benefit-card:nth-child(4):hover .icon-wrapper,
.col-md-6:nth-child(4) .careers-benefit-card:hover .icon-wrapper {
  background-color: var(--hmps-red) !important; /* Red */
  color: #ffffff !important;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 8px 20px rgba(198, 40, 40, 0.2);
  border-color: rgba(198, 40, 40, 0.2) !important;
}

.careers-benefit-card .card-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hmps-blue);
  margin-bottom: 12px;
}

.careers-benefit-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Accordion Vacancy list items styling */
.careers-vacancy-item {
  background: #ffffff;
  border: 1px solid rgba(8, 47, 99, 0.08) !important;
  border-radius: 12px !important;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(8, 47, 99, 0.02);
  overflow: hidden;
  transition: all 0.3s ease;
}

.careers-vacancy-item:hover {
  border-color: rgba(8, 47, 99, 0.16) !important;
  box-shadow: 0 8px 25px rgba(8, 47, 99, 0.05);
}

.careers-vacancy-btn {
  background: #ffffff !important;
  color: var(--hmps-blue) !important;
  border: none !important;
  padding: 20px 24px !important;
  font-size: 1.05rem !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

.careers-vacancy-btn:not(.collapsed) {
  background: rgba(8, 47, 99, 0.02) !important;
  color: var(--hmps-blue) !important;
  box-shadow: inset 0 -1px 0 rgba(8, 47, 99, 0.06) !important;
}

.careers-vacancy-btn::after {
  background-size: 1rem !important;
  transition: transform 0.25s ease !important;
}

.careers-vacancy-body {
  padding: 24px;
  background: #fafbfc;
  border-top: 1px solid rgba(8, 47, 99, 0.04);
  font-size: 0.92rem;
  color: var(--hmps-muted);
}

.careers-vacancy-body strong {
  color: var(--hmps-blue);
}

/* Application Form Panel styling */
.careers-form-panel {
  background: #ffffff;
  border: 1px solid rgba(8, 47, 99, 0.08) !important;
  border-radius: 24px !important;
  padding: 40px !important;
  box-shadow: 0 15px 40px rgba(8, 47, 99, 0.04) !important;
  position: relative;
  overflow: hidden;
}

/* Premium signature colored top border */
.careers-form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--hmps-blue) 0%,
    var(--hmps-red) 50%,
    var(--hmps-gold) 100%
  );
}

.careers-form-panel .section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--hmps-red);
  margin-bottom: 4px;
  display: block;
}

.careers-form-panel .section-title {
  font-size: 1.6rem !important;
  font-weight: 700;
  color: var(--hmps-blue) !important;
  margin-top: 0;
  margin-bottom: 24px;
}

.careers-form-panel .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--hmps-blue-3);
  margin-bottom: 6px;
}

.careers-form-panel .form-label.required::after {
  content: " *";
  color: var(--hmps-red);
}

.careers-form-panel .form-control {
  border: 1px solid rgba(8, 47, 99, 0.15) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  background-color: #fcfdfe !important;
  color: var(--hmps-ink) !important;
  transition: all 0.3s ease !important;
}

.careers-form-panel .form-control:focus {
  background-color: #ffffff !important;
  border-color: var(--hmps-blue) !important;
  box-shadow: 0 0 0 4px rgba(8, 47, 99, 0.12) !important;
  outline: none !important;
}

.careers-form-panel .form-control::placeholder {
  color: #adb5bd !important;
}

/* File Upload styling */
.careers-form-panel input[type="file"].form-control {
  padding: 10px 14px !important;
  background-color: #f8f9fa !important;
  border: 1px dashed rgba(8, 47, 99, 0.3) !important;
  cursor: pointer !important;
}

.careers-form-panel input[type="file"].form-control:focus {
  border-style: solid !important;
  border-color: var(--hmps-blue) !important;
}

/* Submit Button */
.careers-form-panel .btn-hmps {
  background: var(--hmps-blue) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 14px 28px !important;
  border-radius: 12px !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(8, 47, 99, 0.15) !important;
}

.careers-form-panel .btn-hmps:hover {
  background: var(--hmps-blue-2) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(8, 47, 99, 0.25) !important;
}

.careers-form-panel .btn-hmps:active {
  transform: translateY(0) !important;
}

/* ==========================================================================
   Academics Page Premium Overhaul
   ========================================================================== */

/* CBSE Curriculum - Academics intro cards */
.academic-intro-card {
  background: #ffffff;
  border: 1px solid rgba(8, 47, 99, 0.08);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 8px 20px rgba(8, 47, 99, 0.02);
  transition: all 0.3s ease;
}

.academic-intro-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 47, 99, 0.16);
  box-shadow: 0 12px 30px rgba(8, 47, 99, 0.06);
}

.academic-intro-card .intro-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.academic-intro-card:hover .intro-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

/* Feature Image on the right side of curriculum section */
.academics-feature-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(8, 47, 99, 0.08);
  border: 1px solid rgba(8, 47, 99, 0.1);
  aspect-ratio: 4 / 3;
}

.academics-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.academics-feature-img-wrapper:hover .academics-feature-img {
  transform: scale(1.04);
}

/* Academic Stage Cards styling */
.academic-stage-card {
  background: #ffffff;
  border: 1px solid rgba(8, 47, 99, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(8, 47, 99, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.academic-stage-card:hover {
  transform: translateY(-8px);
  border-color: rgba(8, 47, 99, 0.16);
  box-shadow: 0 20px 45px rgba(8, 47, 99, 0.09);
}

.academic-card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: #f8fafc;
}

.academic-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.academic-stage-card:hover .academic-card-img {
  transform: scale(1.05);
}

.academic-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.academic-stage-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.academic-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hmps-blue);
  margin-bottom: 12px;
  margin-top: 0;
}

.academic-card-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--hmps-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.academic-card-highlights {
  padding-top: 20px;
  border-top: 1px dashed rgba(8, 47, 99, 0.1);
  margin-top: auto;
}

.highlight-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--hmps-blue-3);
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.highlight-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--hmps-ink);
}

/* Assessment Pattern list bullets styling */
.bullet-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Examination Resource Cards styling */
.academic-resource-card {
  background: #ffffff;
  border: 1px solid rgba(8, 47, 99, 0.08);
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(20, 63, 115, 0.03);
  transition: all 0.3s ease;
}

.academic-resource-card:hover {
  transform: translateY(-5px);
  border-color: var(--hmps-gold);
  box-shadow: 0 12px 28px rgba(20, 63, 115, 0.09);
}

.academic-resource-card .resource-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.academic-resource-card .card-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hmps-blue);
  margin-bottom: 10px;
}

.academic-resource-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  flex-grow: 1;
}

.academic-resource-card .btn-hmps {
  font-size: 0.82rem;
  padding: 8px 18px;
}
