:root {
  --bright-blue: #1e90ff;
  --dark-blue: #0a2a66;
  --soft-white: #f8fbff;
  --brand: var(--bright-blue);
  --bg-soft: var(--soft-white);
  --surface: #eef5ff;
  --font-family-base: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --text-body: 1rem;
  --text-sm: 0.92rem;
  --text-xs: 0.84rem;
  --text-lead: 1.1rem;
  --h1-size: 2.2rem;
  --h2-size: 1.85rem;
  --h3-size: 1.6rem;
  --h4-size: 1.35rem;
  --h5-size: 1.15rem;
  --h6-size: 1rem;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--text-body);
  line-height: 1.55;
  background-color: var(--soft-white);
  color: var(--dark-blue);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-blue);
  line-height: 1.25;
}

h1 {
  font-size: var(--h1-size);
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
}

h5 {
  font-size: var(--h5-size);
}

h6 {
  font-size: var(--h6-size);
}

p,
li,
label,
input,
select,
textarea,
a {
  font-size: var(--text-body);
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.6;
}

.navbar {
  background-color: var(--dark-blue) !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
}

.navbar.nav-hidden {
  transform: translateY(-110%);
}

.navbar-brand,
.nav-link {
  color: var(--soft-white) !important;
}

.navbar-brand {
  text-transform: none;
  letter-spacing: 0;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.nav-link {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.brand-logo-img {
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: var(--text-sm);
  color: var(--soft-white);
}

.brand-subtitle {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d6e7ff;
}

.navbar .navbar-toggler {
  border-color: rgba(248, 251, 255, 0.55);
  flex-shrink: 0;
  width: 40px;
  height: 36px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

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

.navbar .navbar-toggler-icon {
  filter: brightness(0) invert(1);
  width: 1.05em;
  height: 1.05em;
  background-size: 1.05em 1.05em;
  display: inline-block;
}

.menu-close-icon {
  display: none;
  color: var(--soft-white);
  font-size: 1.35rem;
  width: 1.05em;
  height: 1.05em;
  line-height: 1.05em;
  text-align: center;
}

.navbar-toggler[aria-expanded="true"] .menu-open-icon {
  display: none;
}

.navbar-toggler[aria-expanded="true"] .menu-close-icon {
  display: inline-block;
}

@media (max-width: 991.98px) {
  .navbar .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .navbar-collapse {
    flex-basis: 100%;
    margin-top: 0.6rem;
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    position: static;
    inset: auto;
    z-index: auto;
    background-color: transparent;
    padding: 0;
    overflow-y: visible;
  }

  .navbar-nav {
    gap: 0.3rem;
  }

  .navbar-nav .nav-link {
    font-size: 15px;
    line-height: 1.2;
    padding: 0.55rem 0;
  }

  .navbar-toggler {
    position: relative;
    z-index: 2;
  }

  .navbar-brand {
    margin-right: 0.5rem;
    min-width: 0;
    max-width: calc(100% - 62px);
    position: relative;
    z-index: 1051;
  }

  .brand-wrap {
    max-width: 100%;
    min-width: 0;
  }

  .brand-title {
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: normal;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    font-size: 0.68rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding-bottom: 2rem !important;
  }

  .hero-section h2.display-6 {
    font-size: 2.2rem;
    line-height: 1.15;
  }

  .hero-section .lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-section ul {
    font-size: 0.97rem;
    line-height: 1.55;
    padding-left: 1.1rem !important;
  }

  .hero-card {
    margin-top: 8px;
    padding-top: 6px;
  }

  .contact-title {
    font-size: 1.75rem;
  }

  .contact-subtitle {
    font-size: 0.95rem;
  }

  .contact-form-card {
    padding: 1rem;
  }

  .contact-info-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .about-page-title {
    font-size: 2rem;
  }

  .about-intro-card {
    padding: 1.2rem !important;
  }

  .about-intro-eyebrow {
    font-size: 1.1rem;
  }

  .about-intro-title {
    font-size: 1.9rem;
    line-height: 1.18;
  }

  .about-intro-text {
    font-size: 0.98rem;
    line-height: 1.62;
  }
}

.nav-link.active {
  color: var(--bright-blue) !important;
}

.btn-primary {
  background-color: var(--bright-blue);
  border-color: var(--bright-blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #167fe6;
  border-color: #167fe6;
}

.btn-outline-primary {
  color: var(--dark-blue);
  border-color: var(--bright-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--bright-blue);
  border-color: var(--bright-blue);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 0 !important;
  background-image: linear-gradient(
      rgba(248, 251, 255, 0.78),
      rgba(248, 251, 255, 0.78)
    ),
    url("assets/HomeBackground.jpg");
  background-size: cover;
  background-position: center;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
  padding-top: 0 !important;
}

.hero-section h1 {
  color: #081f4d;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.hero-title-nowrap {
  white-space: nowrap;
}

.hero-chip {
  background-color: rgba(217, 235, 255, 0.92);
  color: var(--dark-blue);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.hero-card {
  border-radius: 14px;
  height: 100%;
  margin-top: 16px;
  padding-top: 12px;
  background-color: transparent;
  border: 2px solid rgba(10, 42, 102, 0.45);
  backdrop-filter: blur(2px);
  box-shadow: 0 10px 24px rgba(10, 42, 102, 0.12) !important;
}

.hero-section .text-secondary {
  color: #163a73 !important;
}

.hero-section ul,
.hero-section li {
  color: #12366e;
}

.hero-section .lead,
.hero-section li,
#visionMissionSection p {
  text-align: justify;
  text-justify: inter-word;
}

#homeHighlights p {
  text-align: justify;
  text-justify: inter-word;
}

.hero-card .form-control,
.hero-card .form-select {
  background-color: rgba(255, 255, 255, 0.92);
  border-color: rgba(10, 42, 102, 0.25);
  color: #0a2a66;
}

.hero-card .form-control:focus,
.hero-card .form-select:focus {
  border-color: var(--bright-blue);
  box-shadow: 0 0 0 0.2rem rgba(30, 144, 255, 0.15);
}

#homeEnquiryForm .form-label {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  color: #0a3d7a;
  font-size: 0.9rem;
}

.stat-number {
  font-size: 1.4rem;
  color: var(--dark-blue);
}

.feature-box {
  background-color: #ffffff;
  border: 1px solid #d6e4fb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #dcebff, #eff6ff);
  border: 1px solid #c8dcff;
}

.section-soft {
  background-color: var(--surface);
}

.section-gap {
  margin-top: 1.25rem;
  padding-top: 0 !important;
}

.about-page-title {
  font-size: 2.5rem;
  line-height: 1.15;
  color: #0a2a66;
}

.about-intro-card {
  padding: 1.75rem !important;
  border-color: #cddcf6;
}

.about-intro-eyebrow {
  font-size: 1.28rem;
  color: #0b3171;
  margin-bottom: 0.55rem;
}

.about-intro-title {
  font-size: 2rem;
  line-height: 1.12;
  color: #0a2a66;
  margin-bottom: 0.9rem;
}

.about-intro-text {
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-lead {
  margin-bottom: 1.1rem;
}

.contact-page {
  background-color: #f5f8ff;
}

.contact-title {
  font-size: var(--h1-size);
  color: #0a2a66;
}

.contact-subtitle {
  max-width: 760px;
  margin-inline: auto;
  color: #3a4f77;
  font-size: var(--text-lead);
}

.contact-info-stack {
  display: grid;
  gap: 1rem;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #ffffff;
  border: 1px solid #d9e4f7;
  border-radius: 14px;
  padding: 1.15rem;
  box-shadow: 0 6px 18px rgba(10, 42, 102, 0.08);
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: #ddebff;
  color: #1e63d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex: 0 0 auto;
}

.contact-info-card h5 {
  color: #0a2a66;
}

.contact-info-card p {
  color: #35517f;
  font-size: var(--text-sm);
}

.contact-form-card {
  background-color: #ffffff;
  border: 1px solid #d9e4f7;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(10, 42, 102, 0.08);
}

.contact-form-card .form-label {
  color: #0a2a66;
}

.contact-form-card .form-control {
  border-color: #cdd8ec;
  min-height: 46px;
}

.contact-form-card textarea.form-control {
  min-height: 140px;
}

.contact-form-card .form-control:focus {
  border-color: #1e90ff;
  box-shadow: 0 0 0 0.2rem rgba(30, 144, 255, 0.15);
}

.contact-submit-btn {
  min-height: 50px;
  font-size: 1.15rem;
}

.contact-location-block {
  background-color: #ffffff;
  border: 1px solid #d9e4f7;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 6px 18px rgba(10, 42, 102, 0.08);
}

.contact-location-head h2 {
  color: #0a2a66;
  font-size: 1.35rem;
}

.contact-location-head p {
  color: #35517f;
}

.contact-map-link {
  color: #1e63d6;
  text-decoration: none;
}

.contact-map-link:hover {
  text-decoration: underline;
}

.contact-map-frame-wrap {
  margin-top: 0.9rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #cdd8ec;
}

.contact-map-frame-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.course-card {
  background-color: #ffffff;
  border: 1px solid #cfe1ff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.stream-card {
  background-color: #ffffff;
  border: 2px solid var(--bright-blue);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stream-card-pcmb {
  background-image: linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
    url("assets/bio.jpg");
  background-size: cover;
  background-position: center;
}

.stream-card-pcmc {
  background-image: linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
    url("assets/pcmc.jpg");
  background-size: cover;
  background-position: center;
}

.stream-card-ebacs {
  background-image: linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
    url("assets/Ebacs.jpg");
  background-size: cover;
  background-position: center;
}

.stream-card-pcmb p,
.stream-card-pcmc p,
.stream-card-ebacs p {
  color: #061a42 !important;
  font-size: 1.02rem;
  line-height: 1.5;
}

.stream-card-pcmb .stream-title,
.stream-card-pcmc .stream-title,
.stream-card-ebacs .stream-title {
  color: #061a42;
}

.stream-card-pcmb .stream-divider,
.stream-card-pcmc .stream-divider,
.stream-card-ebacs .stream-divider {
  background-color: #072252;
}

.stream-card-pcmb .stream-icon {
  color: #0a2a66;
}

.stream-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.stream-icon {
  flex: 0 0 auto;
  width: 74px;
  font-size: 2.8rem;
  line-height: 1;
  text-align: center;
}

.stream-divider {
  width: 1px;
  align-self: stretch;
  background-color: #d8d8d8;
}

.stream-title {
  color: #142b67;
  letter-spacing: 0.08em;
}

.course-tag {
  display: inline-block;
  margin-bottom: 12px;
  background-color: var(--dark-blue);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.quote-box {
  border-left: 4px solid var(--brand);
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.life-box {
  max-width: 900px;
}

.life-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.cta-strip {
  background: linear-gradient(180deg, #ffffff 0%, #e8f2ff 100%);
}

.site-footer {
  background-color: var(--dark-blue);
  color: var(--soft-white);
  margin-top: auto !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  background-color: #ffffff;
  color: #ffffff;
}

.footer-logo-img {
  height: 100%;
  object-fit: contain;
}

.footer-logo-lg {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
}

.footer-brand-block {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-title,
.footer-heading {
  color: var(--soft-white);
}

.footer-heading {
  margin-bottom: 0.45rem;
}

.footer-text {
  color: #dbe8ff;
  font-size: var(--text-sm);
}

.footer-contact-inline .footer-text {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-contact-inline i {
  color: #e8f2ff;
  line-height: 1.2;
  margin-top: 0.1rem;
}

.footer-links-list,
.footer-social-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links-list a,
.footer-social-list a {
  color: #dbe8ff;
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.35rem;
  border-radius: 8px;
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bright-blue);
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1;
}

.social-icon i {
  font-size: 0.8rem;
}

.footer-links-list a:hover,
.footer-social-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(219, 232, 255, 0.25);
  margin-top: 1rem;
  padding-top: 0.85rem;
  text-align: center;
  color: #dbe8ff;
}

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 767.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .footer-brand-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contact-block,
  .footer-links-block,
  .footer-social-block {
    text-align: center;
  }

  .footer-links-list,
  .footer-social-list {
    align-items: center;
  }

  .footer-social-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.6rem;
  }

  .footer-social-list a {
    min-width: 130px;
    justify-content: flex-start;
  }

  .footer-contact-inline {
    max-width: 200px;
    margin: 0.65rem auto 0;
    text-align: left;
  }

  .footer-contact-inline .footer-text {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.5rem !important;
    line-height: 1.45;
  }

  .footer-contact-inline i {
    min-width: 18px;
    margin-top: 0.15rem;
  }
}

#formMessage,
#admissionMessage {
  min-height: 24px;
}


.footer-phone-link {
  color: #dbe8ff;
  text-decoration: none;
}

.footer-phone-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Anti-bot honeypot fields (hidden from real users). */
.hp-field {
  display: none;
}

.form-privacy {
  line-height: 1.35;
}

.life-news-card h5 {
  min-height: 2.6rem;
}

.life-news-card .ratio > img,
.life-news-card .ratio > video,
.life-news-card .ratio > iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
