:root {
  --color-navy: #1f272b;
  --color-navy-dark: #1f272b;
  --color-navy-light: #2c373d;
  --color-gold: #f5a425;
  --color-gold-light: #ffc75a;
  --color-red: #a12c2f;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-text: #1f272b;
  --color-text-muted: #666;
  --color-border: #e5e7eb;
  --font-sans: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
}

a {
  color: var(--color-navy);
}

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

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-navy-light);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Navbar */
.navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 2px 10px rgba(15, 44, 82, 0.06);
}

.navbar-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--color-navy) !important;
  max-width: 20rem;
}

.navbar-brand-mark svg {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
}

/* Main nav links */
.navbar .navbar-nav .nav-link {
  font-weight: 500;
  color: var(--color-navy) !important;
  padding: 0.5rem 0.9rem;
  position: relative;
  transition: color 0.15s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
  color: var(--color-gold) !important;
}

/* Gold underline indicator on hover (desktop) */
@media (min-width: 992px) {
  .navbar .navbar-nav > .nav-item > .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .navbar .navbar-nav > .nav-item > .nav-link:hover::after {
    transform: scaleX(1);
  }
}

/* Dropdowns */
.navbar .dropdown-menu {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(15, 44, 82, 0.12);
  padding: 0.35rem;
  margin-top: 0.4rem;
}

.navbar .dropdown-item {
  border-radius: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  color: var(--color-navy);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: rgba(201, 154, 46, 0.14);
  color: var(--color-navy-dark);
}

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* Right-side auth/language cluster */
.navbar .nav-auth {
  gap: 0.5rem;
}

.navbar .nav-auth .form-select {
  width: auto;
  border-color: var(--color-border);
}

/* Buttons */
.btn-brand {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy-dark);
  font-weight: 600;
}

.btn-brand:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-navy-dark);
}

.btn-outline-brand {
  border-color: var(--color-navy);
  color: var(--color-navy);
  font-weight: 600;
}

.btn-outline-brand:hover {
  background-color: var(--color-navy);
  color: white;
}

/* Hero / carousel */
.hero-carousel .carousel-item {
  height: 60vh;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-navy);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 61, 0.55) 0%, rgba(10, 31, 61, 0.75) 100%);
  display: flex;
  align-items: center;
}

.hero-overlay .container {
  color: white;
}

.hero-overlay h1 {
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.section-title-underline {
  width: 60px;
  height: 4px;
  background-color: var(--color-gold);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

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

/* Auth / login brand panel */
.auth-brand-panel {
  background: linear-gradient(150deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: #fff;
}

/* Cards */
.card-elevated {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}

.card-elevated:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.5rem rgba(15, 44, 82, 0.12);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(201, 154, 46, 0.15);
  color: var(--color-gold);
  border-radius: 0.5rem;
  font-size: 1.5rem;
}

/* Placeholder imagery (used until real photos are supplied) */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: rgba(255, 255, 255, 0.85);
  min-height: 180px;
  border-radius: 0.5rem;
}

.placeholder-img svg {
  width: 3rem;
  height: 3rem;
  opacity: 0.85;
}

/* Topbar */
.site-topbar {
  background-color: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.85);
}

.site-topbar a {
  color: rgba(255, 255, 255, 0.85);
}

.site-topbar a:hover {
  color: var(--color-gold-light);
}

/* Footer */
.site-footer {
  background-color: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

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

.site-footer h5 {
  color: white;
  font-weight: 700;
}

.footer-credit {
  background-color: var(--color-navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}

@media (max-width: 767.98px) {
  .hero-carousel .carousel-item {
    height: 46vh;
    min-height: 280px;
  }

  .section {
    padding: 2.25rem 0;
  }
}

/* Edu Meeting theme integration */
body {
  background-color: #fff;
}

.sub-header {
  position: relative;
  z-index: 110;
}

.header-area {
  z-index: 109;
}

.header-area .main-nav {
  display: flex;
  align-items: center;
  min-height: 100px;
}

.header-area .main-nav .logo {
  min-width: 270px;
  max-width: 360px;
  white-space: normal;
  line-height: 1.15;
  padding-top: 0;
}

.header-area .main-nav .nav {
  flex: 1;
  justify-content: flex-end;
  padding-right: 1rem;
}

.header-area .main-nav .nav li a {
  white-space: nowrap;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu {
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.header-tools .form-select,
.header-tools .btn {
  min-height: 34px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.header-tools .btn-outline-brand {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.background-header .header-tools .btn-outline-brand {
  border-color: #a12c2f;
  color: #a12c2f;
}

.main-button-yellow {
  display: inline-block;
}

.main-button-yellow a {
  font-size: 13px;
  color: #1f272b;
  background-color: #f5a425;
  padding: 12px 30px;
  display: inline-block;
  border-radius: 22px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all .3s;
}

.main-button-yellow a:hover {
  opacity: 0.9;
}

.mrss-main-banner .caption {
  max-width: 820px;
}

.mrss-main-banner .caption p {
  max-width: 760px;
}

.upcoming-meetings .meeting-item .down-content {
  min-height: 176px;
}

.upcoming-meetings .meeting-item .thumb img,
.our-courses .item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.our-courses .item .down-content h4 {
  min-height: 78px;
}

.mrss-contact-panel {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
}

.mrss-contact-panel h2 {
  text-transform: uppercase;
  color: #1f272b;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
}

.mrss-contact-panel p {
  color: #444;
  margin-bottom: 24px;
}

main {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .header-area .main-nav .logo {
    min-width: 230px;
    font-size: 20px;
  }

  .header-area .main-nav .nav li {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 991px) {
  .header-area .main-nav {
    display: block;
  }

  .header-area .main-nav .logo {
    min-width: 0;
    max-width: 76%;
    padding-top: 30px;
  }

  .header-area .main-nav .nav {
    display: none;
    padding-right: 0;
  }

  .header-area .main-nav .menu-trigger {
    display: block;
  }

  .header-tools {
    position: absolute;
    right: 65px;
    top: 32px;
  }
}

@media (max-width: 575px) {
  .header-tools {
    display: none;
  }

  .header-area .main-nav .logo {
    max-width: 82%;
    font-size: 16px;
  }

  .mrss-main-banner .caption h2 {
    font-size: 30px;
  }
}

/* Final Edu Meeting overrides: one-color menu, visible on all pages */
.sub-header,
.header-area,
.header-area.background-header {
  background-color: #1f272b !important;
}

.header-area {
  position: sticky !important;
  top: 0;
  left: auto;
  right: auto;
  width: 100%;
  min-height: 86px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.header-area .main-nav {
  min-height: 86px;
  background: transparent !important;
}

.header-area .main-nav .logo,
.header-area.background-header .main-nav .logo {
  color: #fff !important;
  letter-spacing: 0.5px;
}

.header-area .main-nav .nav li a,
.header-area.background-header .main-nav .nav li a {
  color: #fff !important;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.header-area .main-nav .nav li:hover a,
.header-area .main-nav .nav li a.active,
.header-area.background-header .main-nav .nav li:hover a,
.header-area.background-header .main-nav .nav li a.active {
  color: #f5a425 !important;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu {
  background: #fff !important;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu li a {
  color: #1f272b !important;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu li a:hover {
  color: #a12c2f !important;
  background: #f7f7f7;
}

.header-tools .form-select {
  background-color: #fff;
  border: 0;
  color: #1f272b;
  box-shadow: none;
}

.header-tools .btn-outline-brand,
.background-header .header-tools .btn-outline-brand {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.header-tools .btn-outline-brand:hover {
  background-color: #a12c2f;
  border-color: #a12c2f;
  color: #fff;
}

.btn-brand,
.main-button-red a,
.main-button-red button {
  background-color: #a12c2f !important;
  border-color: #a12c2f !important;
  color: #fff !important;
}

.btn-brand:hover,
.main-button-red a:hover,
.main-button-red button:hover {
  background-color: #7f1f22 !important;
  border-color: #7f1f22 !important;
  color: #fff !important;
}

.btn-outline-brand {
  border-color: #a12c2f;
  color: #a12c2f;
}

.btn-outline-brand:hover {
  background: #a12c2f;
  color: #fff;
}

.section-title {
  color: #1f272b;
  text-transform: uppercase;
  font-size: 26px;
}

.section-title-underline {
  background-color: #a12c2f;
}

.section-alt {
  background-color: #f7f7f7;
}

.card-elevated {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card-icon {
  background-color: rgba(161, 44, 47, 0.1);
  color: #a12c2f;
}

.site-footer {
  background: #1f272b;
}

.footer-credit {
  background: #161d20;
}

body.inner-page main > .section:first-child {
  padding-top: 70px;
}

body.inner-page main > .section:first-child h1.section-title {
  background: url("../edu-meeting/assets/images/heading-bg.jpg") center / cover no-repeat;
  color: #fff;
  box-sizing: border-box;
  margin: -70px 0 40px 50%;
  padding: 88px max(7.5vw, calc((100vw - 1140px) / 2)) 82px;
  transform: translateX(-50%);
  width: 100vw;
  font-size: 42px;
  line-height: 1.2;
}

body.inner-page main > .section:first-child .section-title-underline {
  display: none;
}

/* BSEBS live-site assets */
.header-area .main-nav .mrss-brand-logo,
.header-area.background-header .main-nav .mrss-brand-logo {
  display: flex;
  align-items: center;
  min-width: 340px;
  max-width: 420px;
  height: 86px;
  padding: 0;
  font-size: 0;
  line-height: 1;
}

.header-area .main-nav .mrss-brand-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}

.mrss-main-banner {
  min-height: 760px;
  background:
    linear-gradient(90deg, rgba(31, 39, 43, 0.88) 0%, rgba(31, 39, 43, 0.66) 48%, rgba(31, 39, 43, 0.38) 100%),
    url("../images/brand/bsebs-academic-bg.png") center center / cover no-repeat;
}

.mrss-main-banner .video-overlay {
  background-color: transparent;
}

.apply-now {
  background:
    linear-gradient(rgba(31, 39, 43, 0.82), rgba(31, 39, 43, 0.82)),
    url("../images/brand/bsebs-academic-bg.png") center center / cover no-repeat !important;
}

.our-facts {
  background:
    linear-gradient(rgba(31, 39, 43, 0.78), rgba(31, 39, 43, 0.78)),
    url("../images/brand/bsebs-academic-bg.png") center center / cover no-repeat !important;
}

.contact-us {
  background:
    linear-gradient(rgba(31, 39, 43, 0.82), rgba(31, 39, 43, 0.82)),
    url("../images/brand/bsebs-academic-bg.png") center center / cover no-repeat !important;
}

body.inner-page main > .section:first-child h1.section-title {
  background:
    linear-gradient(90deg, rgba(31, 39, 43, 0.88), rgba(31, 39, 43, 0.58)),
    url("../images/brand/bsebs-academic-bg.png") center center / cover no-repeat;
}

@media (max-width: 1200px) {
  .header-area .main-nav .mrss-brand-logo,
  .header-area.background-header .main-nav .mrss-brand-logo {
    min-width: 270px;
    max-width: 320px;
  }

  .header-area .main-nav .mrss-brand-logo img {
    max-height: 58px;
  }
}

@media (max-width: 991px) {
  .header-area .main-nav .mrss-brand-logo,
  .header-area.background-header .main-nav .mrss-brand-logo {
    min-width: 0;
    max-width: 300px;
    height: 86px;
    padding-top: 0;
  }

  .header-area .main-nav .mrss-brand-logo img {
    max-height: 54px;
  }
}

@media (max-width: 575px) {
  .header-area .main-nav .mrss-brand-logo,
  .header-area.background-header .main-nav .mrss-brand-logo {
    max-width: 210px;
  }

  .header-area .main-nav .mrss-brand-logo img {
    max-height: 44px;
  }

  .mrss-main-banner {
    min-height: 640px;
  }
}

/* Footer contrast fixes */
.site-footer,
.site-footer p,
.site-footer .small,
.site-footer li,
.site-footer span:not(.footer-ico),
.footer-credit,
.footer-credit .small {
  color: rgba(255, 255, 255, 0.78) !important;
}

.site-footer .footer-heading,
.site-footer h5,
.site-footer h6 {
  color: #fff !important;
}

.site-footer a,
.footer-credit a {
  color: rgba(255, 255, 255, 0.88) !important;
}

.site-footer a:hover,
.footer-credit a:hover {
  color: #f5a425 !important;
}

.footer-credit .text-danger {
  color: #dc3545 !important;
}

/* Home hero action buttons */
.hero-action-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.mrss-main-banner .hero-action-group .main-button-red,
.mrss-main-banner .hero-action-group .main-button-yellow {
  display: inline-flex;
}

.mrss-main-banner .hero-action-group a {
  min-width: 158px;
  height: 52px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  padding: 0 24px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.mrss-main-banner .hero-action-group .main-button-yellow a {
  background-color: rgba(255, 255, 255, 0.94) !important;
  color: #1f272b !important;
  border: 2px solid rgba(255, 255, 255, 0.94) !important;
}

.mrss-main-banner .hero-action-group .main-button-yellow a:hover {
  background-color: #f5a425 !important;
  border-color: #f5a425 !important;
  color: #1f272b !important;
}

.mrss-main-banner .hero-action-group .main-button-red a:hover {
  transform: translateY(-1px);
}

.home-popup-modal .modal-content {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.home-popup-modal .modal-header {
  background: #1f272b;
  color: #fff;
  border-bottom: 4px solid #f5a425;
}

.home-popup-modal .btn-close {
  filter: invert(1);
}

.home-popup-eyebrow {
  color: #f5a425;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-popup-item {
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.home-popup-item:first-child {
  padding-top: 0;
}

.home-popup-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-popup-item h3 {
  margin: 10px 0 8px;
  color: #1f272b;
  font-size: 22px;
  font-weight: 800;
}

.home-popup-item p {
  margin-bottom: 10px;
  color: #4b5563;
}

.home-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #6b7280;
  font-size: 13px;
}

@media (max-width: 575px) {
  .hero-action-group {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    max-width: 100%;
  }

  .mrss-main-banner .hero-action-group a {
    min-width: 132px;
    height: 48px;
    padding: 0 18px !important;
  }
}

@media (max-width: 360px) {
  .hero-action-group {
    align-items: stretch;
    flex-direction: column;
    max-width: 220px;
  }

  .mrss-main-banner .hero-action-group a {
    width: 100%;
  }
}

/* Compact public language switcher */
.culture-flags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.culture-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.culture-flag.active,
.culture-flag:hover {
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.flag-icon {
  display: block;
  width: 22px;
  height: 15px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.flag-icon-uk {
  background:
    linear-gradient(27deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
    linear-gradient(153deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
    linear-gradient(27deg, transparent 48%, #c8102e 48%, #c8102e 52%, transparent 52%),
    linear-gradient(153deg, transparent 48%, #c8102e 48%, #c8102e 52%, transparent 52%),
    linear-gradient(to bottom, transparent 37%, #fff 37%, #fff 63%, transparent 63%),
    linear-gradient(to right, transparent 40%, #fff 40%, #fff 60%, transparent 60%),
    linear-gradient(to bottom, transparent 43%, #c8102e 43%, #c8102e 57%, transparent 57%),
    linear-gradient(to right, transparent 45%, #c8102e 45%, #c8102e 55%, transparent 55%),
    #012169;
}

.flag-icon-np {
  position: relative;
  width: 18px;
  height: 22px;
  border-radius: 0;
  background: #003893;
  clip-path: polygon(0 0, 100% 38%, 34% 38%, 100% 100%, 0 100%);
  box-shadow: none;
}

.flag-icon-np::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: #dc143c;
  clip-path: polygon(0 0, 100% 37%, 32% 37%, 100% 100%, 0 100%);
}

.flag-icon-np::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 9px 0 #fff;
}

/* Professional content pages */
.cms-content-page {
  color: #3f464a;
  font-size: 16px;
  line-height: 1.78;
}

.cms-content-page .lead {
  color: #1f272b;
  font-size: 20px;
  font-weight: 500;
}

.cms-content-page h4 {
  margin-top: 28px;
  color: #1f272b;
  font-size: 20px;
  font-weight: 800;
}

.cms-content-page ul,
.cms-content-page ol {
  padding-left: 1.2rem;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 32px;
  align-items: stretch;
}

.about-content-panel,
.about-campus-card,
.alumni-empty-state {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 39, 43, 0.1);
}

.about-content-panel {
  padding: 34px;
  border-top: 5px solid #a12c2f;
}

.about-campus-card {
  overflow: hidden;
  background: #1f272b;
  color: #fff;
}

.about-campus-image {
  min-height: 240px;
  background:
    linear-gradient(rgba(31, 39, 43, 0.1), rgba(31, 39, 43, 0.3)),
    url("../images/brand/bsebs-academic-bg.png") center / cover no-repeat;
}

.about-campus-body {
  padding: 28px;
}

.about-eyebrow,
.team-department,
.alumni-batch {
  display: inline-flex;
  align-items: center;
  color: #f5a425;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-campus-body h2 {
  margin: 12px 0 20px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}

.about-highlight-list {
  display: grid;
  gap: 10px;
}

.about-highlight-list span {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.team-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(31, 39, 43, 0.1);
}

.team-photo-wrap {
  height: 220px;
  background:
    linear-gradient(135deg, rgba(161, 44, 47, 0.08), rgba(245, 164, 37, 0.14)),
    #f5f5f5;
}

.team-photo-wrap img,
.alumni-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(31, 39, 43, 0.28);
}

.team-photo-placeholder svg {
  width: 74px;
  height: 74px;
}

.team-card-body {
  padding: 22px;
}

.team-card-body h3,
.alumni-card h2 {
  margin: 8px 0 6px;
  color: #1f272b;
  font-size: 20px;
  font-weight: 800;
}

.team-role {
  margin-bottom: 12px;
  color: #a12c2f;
  font-weight: 700;
}

.team-bio {
  margin-bottom: 0;
  color: #5f666b;
  font-size: 14px;
  line-height: 1.65;
}

.alumni-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
  padding: 38px;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(31, 39, 43, 0.95), rgba(31, 39, 43, 0.76)),
    url("../images/brand/bsebs-academic-bg.png") center / cover no-repeat;
  color: #fff;
}

.alumni-hero-copy h2 {
  max-width: 760px;
  margin: 12px 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
}

.alumni-hero-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
}

.alumni-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.alumni-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.alumni-stat-grid div {
  min-height: 122px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.alumni-stat-grid strong {
  display: block;
  color: #f5a425;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.alumni-stat-grid span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.alumni-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(31, 39, 43, 0.09);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.alumni-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(31, 39, 43, 0.13);
}

.alumni-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #a12c2f, #f5a425);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.alumni-card p {
  margin-bottom: 8px;
  color: #4b5563;
}

.alumni-email {
  color: #a12c2f;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.alumni-empty-state {
  padding: 42px;
  text-align: center;
}

.alumni-empty-state h2 {
  color: #1f272b;
  font-weight: 800;
}

@media (max-width: 991px) {
  .about-intro-grid,
  .alumni-hero-panel {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .alumni-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alumni-stat-grid {
    max-width: 520px;
  }
}

@media (max-width: 575px) {
  body.inner-page main > .section:first-child h1.section-title {
    padding-top: 64px;
    padding-bottom: 58px;
    font-size: 32px;
  }

  .about-content-panel,
  .alumni-hero-panel,
  .alumni-empty-state {
    padding: 24px;
  }

  .team-grid,
  .alumni-grid,
  .alumni-stat-grid {
    grid-template-columns: 1fr;
  }

  .alumni-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 18px;
  }

  .alumni-avatar {
    width: 72px;
    height: 72px;
  }
}

/* Header alignment and mobile menu visibility fixes */
@media (min-width: 992px) {
  .header-area .main-nav {
    display: flex !important;
    align-items: center !important;
  }

  .header-area .main-nav .nav,
  .header-area.background-header .main-nav .nav,
  .background-header .nav {
    display: flex !important;
    align-items: center;
    margin-top: 0 !important;
  }

  .header-area .main-nav .nav li a {
    display: inline-flex;
    align-items: center;
    height: 86px;
    line-height: 1.2;
  }

  .header-area .main-nav .nav li.has-sub::after {
    top: 50%;
    transform: translateY(-50%);
  }

  .header-tools {
    align-self: center;
  }
}

@media (max-width: 991px) {
  .header-area {
    min-height: 86px;
    padding: 0 15px;
  }

  .header-area .main-nav {
    position: relative;
    min-height: 86px;
    overflow: visible;
  }

  .header-area .main-nav .mrss-brand-logo,
  .header-area.background-header .main-nav .mrss-brand-logo {
    display: flex;
    align-items: center;
    height: 86px;
    margin-left: 0;
    padding: 0;
  }

  .header-area .main-nav .menu-trigger,
  .header-area.background-header .main-nav .menu-trigger {
    display: block !important;
    top: 50% !important;
    right: 0;
    transform: translateY(-50%);
    width: 34px;
    height: 42px;
    z-index: 1001;
  }

  .header-area .main-nav .menu-trigger span,
  .header-area .main-nav .menu-trigger span::before,
  .header-area .main-nav .menu-trigger span::after,
  .header-area.background-header .main-nav .menu-trigger span,
  .header-area.background-header .main-nav .menu-trigger span::before,
  .header-area.background-header .main-nav .menu-trigger span::after {
    background-color: #fff !important;
    height: 3px;
  }

  .header-area .main-nav .menu-trigger.active span,
  .header-area.background-header .main-nav .menu-trigger.active span {
    background-color: transparent !important;
  }

  .header-area .main-nav .menu-trigger.active span::before,
  .header-area .main-nav .menu-trigger.active span::after,
  .header-area.background-header .main-nav .menu-trigger.active span::before,
  .header-area.background-header .main-nav .menu-trigger.active span::after {
    background-color: #fff !important;
  }

  .header-area .main-nav .nav,
  .header-area.background-header .main-nav .nav {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    background: #fff !important;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    z-index: 1000;
  }

  .header-area .main-nav .nav li,
  .header-area.background-header .main-nav .nav li {
    width: 100%;
    padding: 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #eceff1;
  }

  .header-area .main-nav .nav li a,
  .header-area.background-header .main-nav .nav li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 54px !important;
    line-height: 1.2 !important;
    padding: 0 48px !important;
    background: #fff !important;
    color: #1f272b !important;
    opacity: 1 !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .header-area .main-nav .nav li a:hover,
  .header-area .main-nav .nav li a.active,
  .header-area.background-header .main-nav .nav li a:hover,
  .header-area.background-header .main-nav .nav li a.active {
    background: #f7f7f7 !important;
    color: #a12c2f !important;
  }

  .header-area .main-nav .nav li.has-sub::after,
  .header-area.background-header .main-nav .nav li.has-sub::after {
    color: #1f272b !important;
    top: 19px;
    right: 32px;
    z-index: 1002;
  }

  .header-area .main-nav .nav li.has-sub ul.sub-menu,
  .header-area.background-header .main-nav .nav li.has-sub ul.sub-menu {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    z-index: 1;
  }

  .header-area .main-nav .nav li.has-sub ul.sub-menu li a,
  .header-area.background-header .main-nav .nav li.has-sub ul.sub-menu li a {
    height: 46px !important;
    background: #f7f7f7 !important;
    color: #394247 !important;
    font-size: 13px;
    font-weight: 700;
  }
}

@media (max-width: 575px) {
  .header-area .main-nav .menu-trigger,
  .header-area.background-header .main-nav .menu-trigger {
    right: 8px;
  }
}

/* Admission / FAQ */
.admission-layout,
.admission-form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: stretch;
}

.admission-copy-card,
.admission-steps-card,
.admission-form-card {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 39, 43, 0.1);
}

.admission-copy-card,
.admission-form-card {
  padding: 34px;
}

.admission-steps-card,
.admission-form-intro {
  padding: 34px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 39, 43, 0.94), rgba(31, 39, 43, 0.76)),
    url("../images/brand/bsebs-academic-bg.png") center / cover no-repeat;
  color: #fff;
}

.admission-steps-card h2,
.admission-form-intro h2 {
  margin: 12px 0 18px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.admission-steps-card ul {
  display: grid;
  gap: 12px;
  padding-left: 1.2rem;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.86);
}

.admission-form-intro p {
  color: rgba(255, 255, 255, 0.82);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 39, 43, 0.08);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  color: #1f272b;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #a12c2f;
  color: #fff;
  transform: translateY(-50%);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 0 22px 22px;
  color: #4b5563;
  line-height: 1.75;
}

/* Academics */
.academics-intro,
.gallery-intro {
  margin-bottom: 30px;
  padding: 34px;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(31, 39, 43, 0.94), rgba(31, 39, 43, 0.68)),
    url("../images/brand/bsebs-academic-bg.png") center / cover no-repeat;
  color: #fff;
}

.academics-intro h2,
.gallery-intro h2 {
  max-width: 760px;
  margin: 12px 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
}

.academics-intro p,
.gallery-intro p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.academics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.academic-program-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--bsebs-cream);
  box-shadow: 0 16px 42px rgba(31, 39, 43, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.academic-program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(85, 9, 9, 0.16);
}

.academic-program-image {
  display: block;
  overflow: hidden;
}

.academic-program-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.academic-program-card:hover img {
  transform: scale(1.035);
}

.academic-program-body {
  position: relative;
  padding: 26px;
}

.academic-program-number {
  display: inline-flex;
  margin-bottom: 12px;
  color: #a12c2f;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.academic-program-body h2 {
  color: #1f272b;
  font-size: 22px;
  font-weight: 800;
}

.academic-program-body h2 a {
  color: inherit;
}

.academic-program-body h2 a:hover {
  color: var(--bsebs-red);
}

.academic-program-body p {
  margin-bottom: 18px;
  color: #5f666b;
  line-height: 1.7;
}

.academic-program-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bsebs-red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.academic-program-link:hover {
  color: var(--bsebs-red-deep);
}

/* Downloads */
.downloads-page,
.program-detail-page {
  background: var(--bsebs-cream-soft);
}

.downloads-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
  padding: 42px 46px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(92, 0, 0, 0.96), rgba(181, 9, 9, 0.82)),
    url("../images/brand/bsebs-academic-bg.png") center / cover no-repeat;
  box-shadow: 0 22px 52px rgba(94, 0, 0, 0.18);
  color: #fff;
}

.downloads-hero h1 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
}

.downloads-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.7;
}

.downloads-hero-icon {
  display: grid;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 42px;
  backdrop-filter: blur(8px);
}

.download-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  padding: 8px;
  border: 1px solid rgba(94, 0, 0, 0.08);
  border-radius: 16px;
  background: var(--bsebs-cream);
  box-shadow: 0 10px 30px rgba(31, 39, 43, 0.06);
}

.download-filters a {
  padding: 11px 18px;
  border-radius: 10px;
  color: var(--bsebs-ink);
  font-size: 13px;
  font-weight: 800;
}

.download-filters a:hover,
.download-filters a.active {
  background: var(--bsebs-red);
  color: #fff;
}

.download-groups {
  display: grid;
  gap: 28px;
}

.download-group {
  padding: 30px;
  border: 1px solid rgba(94, 0, 0, 0.08);
  border-radius: 22px;
  background: var(--bsebs-cream);
  box-shadow: 0 16px 44px rgba(31, 39, 43, 0.07);
}

.download-group-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(94, 0, 0, 0.1);
}

.download-group-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(181, 9, 9, 0.1);
  color: var(--bsebs-red);
  font-size: 21px;
}

.download-group-heading h2 {
  margin: 0 0 3px;
  color: var(--bsebs-ink);
  font-size: 23px;
  font-weight: 900;
}

.download-group-heading p {
  margin: 0;
  color: #767676;
  font-size: 13px;
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(94, 0, 0, 0.08);
  border-radius: 16px;
  background: var(--bsebs-cream-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.download-card:hover {
  transform: translateX(3px);
  border-color: rgba(181, 9, 9, 0.26);
}

.download-file-icon {
  display: grid;
  width: 44px;
  height: 52px;
  place-items: center;
  border-radius: 10px;
  background: var(--bsebs-red);
  color: #fff;
  font-size: 20px;
}

.download-category {
  color: var(--bsebs-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-card-copy h3 {
  margin: 4px 0;
  color: var(--bsebs-ink);
  font-size: 17px;
  font-weight: 800;
}

.download-card-copy p {
  margin: 0;
  color: #777;
  font-size: 12px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-view-link,
.download-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.download-view-link {
  color: var(--bsebs-red-deep);
}

.download-view-link:hover {
  background: rgba(181, 9, 9, 0.07);
  color: var(--bsebs-red);
}

.download-primary-link {
  background: var(--bsebs-red);
  color: #fff;
}

.download-primary-link:hover {
  background: var(--bsebs-red-deep);
  color: #fff;
}

.downloads-empty {
  padding: 64px 30px;
  border: 1px dashed rgba(94, 0, 0, 0.22);
  border-radius: 22px;
  background: var(--bsebs-cream);
  text-align: center;
}

.downloads-empty > i {
  margin-bottom: 18px;
  color: var(--bsebs-red);
  font-size: 46px;
}

.downloads-empty h2 {
  color: var(--bsebs-ink);
  font-size: 25px;
  font-weight: 900;
}

.downloads-empty p {
  max-width: 620px;
  margin: 0 auto 20px;
  color: #686868;
}

.downloads-contact-link {
  display: inline-flex;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--bsebs-red);
  color: #fff;
  font-weight: 800;
}

/* Academic program detail */
.program-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #777;
  font-size: 13px;
}

.program-breadcrumb a {
  color: var(--bsebs-red);
  font-weight: 800;
}

.program-detail-hero {
  position: relative;
  min-height: 430px;
  margin-bottom: 32px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--bsebs-ink);
  box-shadow: 0 22px 55px rgba(31, 39, 43, 0.16);
}

.program-detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.program-detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(31, 20, 20, 0.94) 0%, rgba(63, 0, 0, 0.7) 48%, rgba(63, 0, 0, 0.18) 100%);
}

.program-detail-overlay {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  max-width: 760px;
  padding: 52px;
  color: #fff;
}

.program-detail-overlay h1 {
  margin: 12px 0 14px;
  color: #fff;
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 900;
  line-height: 1.05;
}

.program-detail-overlay p {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.program-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 28px;
}

.program-detail-main {
  display: grid;
  gap: 22px;
}

.program-content-card {
  padding: 34px;
  border: 1px solid rgba(94, 0, 0, 0.08);
  border-radius: 20px;
  background: var(--bsebs-cream);
  box-shadow: 0 14px 40px rgba(31, 39, 43, 0.06);
}

.program-section-label {
  color: var(--bsebs-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.program-content-card > h2,
.program-resources-heading h2 {
  margin: 8px 0 16px;
  color: var(--bsebs-ink);
  font-size: 27px;
  font-weight: 900;
}

.program-content-card > p {
  margin: 0;
  color: #62676a;
  font-size: 16px;
  line-height: 1.8;
}

.program-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 22px;
}

.program-feature-grid > div {
  padding: 22px 18px;
  border-radius: 15px;
  background: var(--bsebs-cream-soft);
}

.program-feature-grid i {
  margin-bottom: 15px;
  color: var(--bsebs-red);
  font-size: 25px;
}

.program-feature-grid h3 {
  margin-bottom: 8px;
  color: var(--bsebs-ink);
  font-size: 16px;
  font-weight: 800;
}

.program-feature-grid p {
  margin: 0;
  color: #6f7476;
  font-size: 13px;
  line-height: 1.65;
}

.program-resources-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.program-resources-heading h2 {
  margin-bottom: 0;
}

.program-resources-heading > a,
.program-resource-empty a {
  flex: 0 0 auto;
  color: var(--bsebs-red);
  font-size: 13px;
  font-weight: 800;
}

.program-resource-empty {
  padding: 22px;
  border-radius: 14px;
  background: var(--bsebs-cream-soft);
}

.program-resource-empty p {
  margin-bottom: 8px;
  color: #666;
}

.program-resource-list {
  display: grid;
  gap: 10px;
}

.program-resource-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 13px;
  background: var(--bsebs-cream-soft);
}

.program-resource-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: rgba(181, 9, 9, 0.1);
  color: var(--bsebs-red);
}

.program-resource-list small {
  color: var(--bsebs-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-resource-list h3 {
  margin: 2px 0 0;
  color: var(--bsebs-ink);
  font-size: 15px;
  font-weight: 800;
}

.program-resource-list article > a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--bsebs-red);
  color: #fff;
}

.program-detail-sidebar {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 16px;
}

.program-action-card {
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--bsebs-red), var(--bsebs-red-deep));
  box-shadow: 0 18px 44px rgba(94, 0, 0, 0.22);
  color: #fff;
}

.program-action-card > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.program-action-card h2 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
}

.program-action-card p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.program-apply-link,
.program-contact-link {
  display: flex;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
}

.program-apply-link {
  margin-bottom: 9px;
  background: var(--bsebs-cream);
  color: var(--bsebs-red-deep);
}

.program-contact-link {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
}

.program-download-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 19px;
  border: 1px solid rgba(94, 0, 0, 0.1);
  border-radius: 16px;
  background: var(--bsebs-cream);
}

.program-download-card > i {
  color: var(--bsebs-red);
  font-size: 27px;
}

.program-download-card strong,
.program-download-card span {
  display: block;
}

.program-download-card strong {
  color: var(--bsebs-ink);
  font-size: 14px;
}

.program-download-card span {
  color: #777;
  font-size: 11px;
}

.program-download-card > a {
  color: var(--bsebs-red);
}

.home-course-image {
  display: block;
  overflow: hidden;
}

.our-courses .item .home-course-image img {
  transition: transform 0.3s ease;
}

.our-courses .item:hover .home-course-image img {
  transform: scale(1.035);
}

.our-courses .item .down-content h4 a {
  color: inherit;
}

.our-courses .item .down-content h4 a:hover {
  color: var(--bsebs-red);
}

.course-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--bsebs-red) !important;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

/* Notice detail */
.notice-detail-shell {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(31, 39, 43, 0.12);
}

.notice-detail-hero {
  padding: 56px;
  background:
    linear-gradient(120deg, rgba(31, 39, 43, 0.94), rgba(31, 39, 43, 0.62)),
    url("../edu-meeting/assets/images/meeting-02.jpg") center / cover no-repeat;
  color: #fff;
}

/* Defensive reset: the legacy template script adds .background-header to every
   <header> while scrolling. Notice heroes must never become fixed navigation. */
.notice-detail-hero.background-header {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 56px !important;
  background:
    linear-gradient(120deg, rgba(31, 39, 43, 0.94), rgba(31, 39, 43, 0.62)),
    url("../edu-meeting/assets/images/meeting-02.jpg") center / cover no-repeat !important;
  box-shadow: none !important;
}

.notice-category {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f5a425;
  color: #1f272b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-detail-hero h1 {
  max-width: 900px;
  margin: 18px 0;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
}

.notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.notice-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  padding: 34px;
}

.notice-summary {
  margin-bottom: 24px;
  padding: 20px;
  border-left: 5px solid #a12c2f;
  border-radius: 12px;
  background: #f7f7f7;
  color: #1f272b;
  font-size: 18px;
  font-weight: 600;
}

.notice-side-card {
  align-self: start;
  padding: 24px;
  border-radius: 16px;
  background: #f7f7f7;
}

.notice-side-card h2 {
  color: #1f272b;
  font-size: 20px;
  font-weight: 800;
}

.notice-side-card dt {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.notice-side-card dd {
  margin-bottom: 14px;
  color: #1f272b;
  font-weight: 700;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(31, 39, 43, 0.1);
}

.gallery-card-image {
  position: relative;
  display: block;
  height: 230px;
  color: #fff;
  overflow: hidden;
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

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

.gallery-card-image span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(31, 39, 43, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #a12c2f, #1f272b);
  font-size: 48px;
}

.gallery-card-body {
  padding: 24px;
}

.gallery-card-body h2 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 800;
}

.gallery-card-body a {
  color: #1f272b;
  text-decoration: none;
}

.gallery-card-body p {
  margin: 14px 0 0;
  color: #5f666b;
  line-height: 1.65;
}

.gallery-detail-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.external-gallery-embed {
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 18px;
  background: #f7f7f7;
  box-shadow: 0 14px 36px rgba(31, 39, 43, 0.08);
}

.external-gallery-embed iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 0;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 39, 43, 0.08);
}

.gallery-photo-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.gallery-photo-grid figcaption {
  padding: 12px 14px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 991px) {
  .admission-layout,
  .admission-form-shell,
  .notice-detail-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 575px) {
  .admission-copy-card,
  .admission-steps-card,
  .admission-form-card,
  .admission-form-intro,
  .academics-intro,
  .gallery-intro,
  .notice-detail-grid {
    padding: 24px;
  }

  .notice-detail-hero {
    padding: 36px 24px;
  }

  .notice-detail-hero.background-header {
    padding: 36px 24px !important;
  }

  .notice-detail-hero h1,
  .academics-intro h2,
  .gallery-intro h2 {
    font-size: 30px;
  }

  .academics-grid,
  .gallery-grid,
  .gallery-photo-grid {
    grid-template-columns: 1fr;
  }

  .gallery-detail-header {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Final accordion and hero button fixes */
.mrss-main-banner .hero-action-group {
  flex-wrap: nowrap;
  align-items: center;
}

.mrss-main-banner .hero-action-group .main-button-red,
.mrss-main-banner .hero-action-group .main-button-yellow {
  margin: 0 !important;
}

.apply-now .accordions {
  overflow: visible;
}

.apply-now .accordions .accordion-body {
  height: auto !important;
  overflow: visible !important;
}

.apply-now .accordions .accordion-body[style*="display: none"] {
  display: none !important;
}

.apply-now .accordions .accordion-body > .content {
  padding: 0 20px 22px;
}

.apply-now .accordions .accordion-body p {
  margin: 0;
  color: #444;
  line-height: 1.75;
}

.faq-item,
.faq-item[open],
.faq-answer {
  overflow: visible;
}

@media (max-width: 420px) {
  .mrss-main-banner .hero-action-group {
    flex-wrap: wrap;
  }
}
/* Bidhya Sagar English Boarding School brand system
   Source of truth: supplied red-and-cream school crest and notice artwork. */
:root {
  --bsebs-red: #b50909;
  --bsebs-red-deep: #780000;
  --bsebs-red-bright: #df0b0b;
  --bsebs-cream: #fff7ee;
  --bsebs-cream-deep: #f4e5d4;
  --bsebs-gold: #d3a82b;
  --bsebs-ink: #2e1818;
}

body {
  color: var(--bsebs-ink);
  background: #fffdfa;
}

a {
  color: var(--bsebs-red);
}

a:hover {
  color: var(--bsebs-red-deep);
}

.sub-header,
.footer-credit {
  background: var(--bsebs-red-deep) !important;
}

.header-area,
.header-area.background-header {
  background: rgba(255, 253, 250, .98) !important;
  border-bottom: 4px solid var(--bsebs-red);
  box-shadow: 0 10px 32px rgba(71, 0, 0, .13);
}

.header-area .main-nav .nav li a,
.header-area.background-header .main-nav .nav li a {
  color: var(--bsebs-ink) !important;
  font-weight: 700;
}

.header-area .main-nav .nav li:hover a,
.header-area .main-nav .nav li a.active,
.header-area.background-header .main-nav .nav li:hover a,
.header-area.background-header .main-nav .nav li a.active {
  color: var(--bsebs-red) !important;
}

.header-area .main-nav .mrss-brand-logo,
.header-area.background-header .main-nav .mrss-brand-logo {
  width: 112px !important;
  height: 86px !important;
  padding: 3px 0 !important;
}

.header-area .main-nav .mrss-brand-logo img {
  width: 82px !important;
  height: 82px !important;
  object-fit: contain !important;
}

.mrss-main-banner {
  background:
    linear-gradient(90deg, rgba(74, 0, 0, .88), rgba(181, 9, 9, .62), rgba(44, 0, 0, .32)),
    url("../images/bidhyasagar/hero-honour.jpg") center 30% / cover no-repeat !important;
}

.mrss-main-banner .video-overlay {
  background: linear-gradient(90deg, rgba(63, 0, 0, .62), rgba(181, 9, 9, .14)) !important;
}

.mrss-main-banner .caption h6 {
  color: #ffd8d0 !important;
  letter-spacing: .16em;
}

.mrss-main-banner .caption h1,
.mrss-main-banner .caption h2 {
  max-width: 900px;
  margin: 18px 0 14px;
  color: #fff !important;
  font-size: clamp(2.25rem, 5vw, 4.75rem) !important;
  font-weight: 800;
  line-height: 1.04;
  text-shadow: 0 4px 24px rgba(38, 0, 0, .7);
}

.main-button-red a,
.btn-brand,
.footer-subscribe .btn,
.home-popup-modal .btn-brand {
  background: var(--bsebs-red) !important;
  border-color: var(--bsebs-red) !important;
  color: #fff !important;
}

.main-button-yellow a {
  background: var(--bsebs-cream) !important;
  color: var(--bsebs-red-deep) !important;
  border: 1px solid rgba(255,255,255,.7);
}

.services .item,
.meeting-item,
.categories,
.accordions,
.our-courses .item {
  border-top-color: var(--bsebs-red) !important;
}

.services .item {
  background: linear-gradient(145deg, var(--bsebs-red), var(--bsebs-red-deep)) !important;
}

.section-heading h2,
.upcoming-meetings .section-heading h2,
.our-courses .section-heading h2 {
  border-color: rgba(181, 9, 9, .25) !important;
}

.meeting-item .down-content .date h6,
.meeting-item .down-content .date h6 span,
.accordions .accordion-head.is-open,
.accordions .accordion-head:hover {
  color: var(--bsebs-red) !important;
}

.apply-now {
  background:
    linear-gradient(rgba(72, 0, 0, .84), rgba(72, 0, 0, .84)),
    url("../images/bidhyasagar/hero-teej.jpg") center / cover fixed !important;
}

.our-facts {
  background:
    linear-gradient(rgba(62, 0, 0, .82), rgba(62, 0, 0, .82)),
    url("../images/bidhyasagar/hero-tour.png") center / cover !important;
}

.contact-us .right-info {
  background: linear-gradient(155deg, var(--bsebs-red-bright), var(--bsebs-red-deep)) !important;
}

.site-footer {
  background: var(--bsebs-cream) !important;
  border-top: 5px solid var(--bsebs-red);
  color: var(--bsebs-ink) !important;
}

.site-footer .footer-heading,
.site-footer a {
  color: var(--bsebs-red-deep) !important;
}

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

@media (max-width: 991px) {
  .header-area .main-nav .mrss-brand-logo,
  .header-area.background-header .main-nav .mrss-brand-logo {
    width: 84px !important;
    height: 70px !important;
  }

  .header-area .main-nav .mrss-brand-logo img {
    width: 66px !important;
    height: 66px !important;
  }

  .mrss-main-banner {
    min-height: 680px;
    background-position: 58% center !important;
  }

  .mrss-main-banner .caption {
    padding-top: 90px;
  }
}

@media (max-width: 575px) {
  .mrss-main-banner {
    min-height: 620px;
  }

  .mrss-main-banner .caption h1,
  .mrss-main-banner .caption h2 {
    font-size: 2.1rem !important;
    line-height: 1.12;
  }

  .mrss-main-banner .caption p {
    font-size: .98rem;
  }
}

/* 2026 visual refinement: warm red-aligned surfaces, clearer branding and profiles */
:root {
  --bsebs-warm-ivory: #f7ebe2;
  --bsebs-warm-ivory-soft: #fff6ee;
  --bsebs-warm-blush: #efd9cf;
  --bsebs-wine: #5b0707;
}

body,
body.inner-page {
  background: var(--bsebs-warm-ivory) !important;
}

.header-area,
.header-area.background-header {
  background: rgba(255, 246, 238, .98) !important;
}

.header-area .main-nav .mrss-brand-logo,
.header-area.background-header .main-nav .mrss-brand-logo {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 94px !important;
  overflow: hidden;
}

.header-area .main-nav .mrss-brand-logo img,
.header-area.background-header .main-nav .mrss-brand-logo img {
  width: 122px !important;
  min-width: 122px !important;
  max-width: none !important;
  height: 122px !important;
  max-height: none !important;
  margin: -14px 0 0;
  object-fit: contain !important;
  mix-blend-mode: multiply;
  filter: contrast(1.08) saturate(1.06);
}

.section-alt,
.upcoming-meetings,
.our-courses,
.about-page,
.alumni-directory-page {
  background-color: var(--bsebs-warm-ivory) !important;
}

.about-content-panel,
.alumni-empty-state,
.team-card,
.meeting-item,
.categories,
.accordions,
.our-courses .item,
.card-elevated,
.home-popup-modal .modal-content {
  background-color: var(--bsebs-warm-ivory-soft) !important;
}

.about-campus-card {
  background: linear-gradient(155deg, var(--bsebs-red-deep), var(--bsebs-wine)) !important;
}

.form-control,
.form-select,
textarea.form-control {
  background-color: #fff9f3;
  border-color: #d8b9ad;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  background-color: #fff9f3;
  border-color: var(--bsebs-red);
  box-shadow: 0 0 0 .2rem rgba(181, 9, 9, .14);
}

.site-footer {
  background: linear-gradient(135deg, var(--bsebs-red-deep), var(--bsebs-wine)) !important;
  border-top-color: var(--bsebs-gold);
}

.site-footer,
.site-footer p,
.site-footer .small,
.site-footer li,
.site-footer span:not(.footer-ico) {
  color: #f9e9dc !important;
}

.site-footer .footer-heading,
.site-footer h5,
.site-footer h6 {
  color: #ffd9c2 !important;
}

.site-footer a {
  color: #fff4e9 !important;
}

.site-footer a:hover {
  color: #ffd166 !important;
}

.footer-credit,
.footer-credit .small,
.footer-credit span {
  color: #f9e9dc !important;
}

.footer-credit a {
  color: #fff4e9 !important;
}

.chairman-section {
  padding-top: 10px;
  background: var(--bsebs-warm-ivory);
}

.chairman-card {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid rgba(181, 9, 9, .16);
  border-radius: 24px;
  background: var(--bsebs-warm-ivory-soft);
  box-shadow: 0 24px 60px rgba(91, 7, 7, .14);
}

.profile-toggle {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--bsebs-warm-blush);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.profile-toggle:focus-visible {
  z-index: 2;
  outline: 4px solid var(--bsebs-gold);
  outline-offset: -4px;
}

.chairman-profile-toggle {
  min-height: 390px;
}

.profile-image-face,
.profile-intro-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: opacity .28s ease, transform .28s ease;
}

.profile-image-face {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.profile-image-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chairman-profile-toggle .profile-image-face img {
  object-position: center top;
}

.profile-intro-face {
  justify-content: center;
  gap: 14px;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(211, 168, 43, .24), transparent 38%),
    linear-gradient(145deg, var(--bsebs-red), var(--bsebs-wine));
  color: #fff3e8;
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
}

.profile-toggle.is-revealed .profile-image-face {
  opacity: 0 !important;
  transform: translateY(-14px);
  visibility: hidden !important;
  pointer-events: none;
}

.profile-toggle.is-revealed .profile-intro-face {
  opacity: 1 !important;
  transform: translateY(0);
  visibility: visible !important;
}

.profile-intro-label {
  color: #ffd166;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-intro-text {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.profile-click-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(65, 0, 0, .74);
  color: #fff6ee;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.profile-intro-face .profile-click-hint {
  background: rgba(255, 246, 238, .12);
}

.chairman-message {
  align-self: center;
  padding: clamp(34px, 5vw, 68px);
}

.chairman-message h2 {
  margin: 12px 0 22px;
  color: var(--bsebs-red-deep);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
}

.chairman-quote {
  max-width: 760px;
  margin-bottom: 28px;
  color: #4f2926;
  font-family: Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1.75;
}

.chairman-message h3 {
  margin-bottom: 4px;
  color: var(--bsebs-ink);
  font-size: 20px;
  font-weight: 800;
}

.chairman-role {
  margin: 0;
  color: var(--bsebs-red);
  font-weight: 700;
}

.team-card {
  border: 1px solid rgba(181, 9, 9, .1);
}

.team-photo-wrap.profile-toggle {
  height: 250px;
}

.team-card-body {
  background: var(--bsebs-warm-ivory-soft);
}

.map-location-note {
  color: #67413b;
}

.map-location-note a {
  color: var(--bsebs-red-deep);
  font-weight: 700;
}

@media (max-width: 991px) {
  .header-area .main-nav .mrss-brand-logo,
  .header-area.background-header .main-nav .mrss-brand-logo {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    height: 76px !important;
  }

  .header-area .main-nav .mrss-brand-logo img,
  .header-area.background-header .main-nav .mrss-brand-logo img {
    width: 98px !important;
    min-width: 98px !important;
    height: 98px !important;
    margin-top: -11px;
  }

  .chairman-card {
    grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 767px) {
  .chairman-card {
    grid-template-columns: 1fr;
  }

  .chairman-profile-toggle {
    min-height: 360px;
  }

  .chairman-message {
    padding: 34px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-image-face,
  .profile-intro-face {
    transition: none;
  }
}

/* Mobile navigation contrast on the warm ivory header */
@media (max-width: 991px) {
  .header-area .main-nav .menu-trigger span,
  .header-area .main-nav .menu-trigger span::before,
  .header-area .main-nav .menu-trigger span::after,
  .header-area.background-header .main-nav .menu-trigger span,
  .header-area.background-header .main-nav .menu-trigger span::before,
  .header-area.background-header .main-nav .menu-trigger span::after {
    background-color: var(--bsebs-red-deep) !important;
  }

  .header-area .main-nav .menu-trigger.active span,
  .header-area.background-header .main-nav .menu-trigger.active span {
    background-color: transparent !important;
  }

  .header-area .main-nav .menu-trigger.active span::before,
  .header-area .main-nav .menu-trigger.active span::after,
  .header-area.background-header .main-nav .menu-trigger.active span::before,
  .header-area.background-header .main-nav .menu-trigger.active span::after {
    background-color: var(--bsebs-red-deep) !important;
  }

  .header-area .main-nav .nav li,
  .header-area.background-header .main-nav .nav li {
    background: var(--bsebs-warm-ivory-soft) !important;
    border-bottom-color: var(--bsebs-warm-blush);
  }

  .header-area .main-nav .nav li a,
  .header-area.background-header .main-nav .nav li a {
    color: var(--bsebs-ink) !important;
  }

  .header-area .main-nav .nav li.has-sub ul.sub-menu li a,
  .header-area.background-header .main-nav .nav li.has-sub ul.sub-menu li a {
    background: var(--bsebs-warm-ivory) !important;
    color: var(--bsebs-ink) !important;
  }
}

/* Compact, balanced home contact panel */
section.contact-us.home-contact-section {
  padding: 80px 0 !important;
  background-attachment: scroll !important;
}

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

.home-contact-section .mrss-contact-panel,
.home-contact-section .right-info {
  width: 100%;
  min-height: 330px;
}

.home-contact-section .mrss-contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4vw, 52px);
  border: 1px solid rgba(181, 9, 9, .12);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(211, 168, 43, .11), transparent 35%),
    var(--bsebs-warm-ivory-soft);
  box-shadow: 0 24px 60px rgba(31, 16, 16, .18);
}

.contact-panel-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--bsebs-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-contact-section .mrss-contact-panel h2 {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom-color: rgba(181, 9, 9, .14);
  color: var(--bsebs-ink);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.home-contact-section .mrss-contact-panel p {
  max-width: 680px;
  margin-bottom: 24px;
  color: #5e3d38;
  font-size: 16px;
  line-height: 1.75;
}

.home-contact-section .right-info {
  display: flex;
  align-items: center;
  padding: 24px !important;
  border: 1px solid rgba(255, 216, 194, .2);
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(53, 0, 0, .24);
}

.home-contact-section .right-info ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0;
}

.home-contact-section .right-info ul li,
.home-contact-section .right-info ul li:last-child {
  display: block;
  min-width: 0;
  margin: 0 !important;
  padding: 22px !important;
  border: 0;
  border-bottom: 1px solid rgba(255, 246, 238, .18);
}

.home-contact-section .right-info ul li:nth-child(odd) {
  border-right: 1px solid rgba(255, 246, 238, .18);
}

.home-contact-section .right-info ul li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.home-contact-section .right-info ul li h6 {
  margin-bottom: 8px;
  color: #ffd9c2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-contact-section .right-info ul li span {
  color: #fff7ee;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.home-contact-section .right-info a {
  color: inherit;
  text-decoration: none;
}

.home-contact-section .right-info a:hover {
  color: #ffd166;
}

@media (max-width: 991px) {
  section.contact-us.home-contact-section {
    padding: 64px 0 !important;
  }

  .home-contact-section .mrss-contact-panel,
  .home-contact-section .right-info {
    min-height: 0;
  }
}

@media (max-width: 575px) {
  section.contact-us.home-contact-section {
    padding: 48px 0 !important;
  }

  .home-contact-section .mrss-contact-panel {
    padding: 28px 24px;
  }

  .home-contact-section .right-info {
    padding: 12px 22px !important;
  }

  .home-contact-section .right-info ul {
    grid-template-columns: 1fr;
  }

  .home-contact-section .right-info ul li,
  .home-contact-section .right-info ul li:last-child {
    padding: 18px 4px !important;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 246, 238, .18);
  }

  .home-contact-section .right-info ul li:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 991px) {
  .program-detail-layout {
    grid-template-columns: 1fr;
  }

  .program-detail-sidebar {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .program-feature-grid {
    grid-template-columns: 1fr;
  }

  .program-detail-hero {
    min-height: 380px;
  }
}

@media (max-width: 767px) {
  .downloads-hero {
    padding: 34px 28px;
  }

  .downloads-hero-icon {
    display: none;
  }

  .download-group {
    padding: 22px 18px;
  }

  .download-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .download-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 4px;
  }

  .program-detail-hero {
    min-height: 340px;
  }

  .program-detail-overlay {
    padding: 34px 28px;
  }

  .program-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .program-content-card {
    padding: 26px 22px;
  }

  .program-resources-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .downloads-hero {
    padding: 30px 22px;
    border-radius: 18px;
  }

  .downloads-hero p {
    font-size: 15px;
  }

  .download-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .download-filters a {
    flex: 0 0 auto;
  }

  .download-card {
    gap: 12px;
    padding: 16px 14px;
  }

  .download-actions {
    justify-content: stretch;
  }

  .download-view-link,
  .download-primary-link {
    flex: 1;
  }

  .program-detail-hero {
    min-height: 320px;
    border-radius: 18px;
  }

  .program-detail-overlay {
    padding: 28px 22px;
  }

  .program-detail-overlay p {
    font-size: 14px;
  }

  .program-content-card > h2,
  .program-resources-heading h2 {
    font-size: 23px;
  }
}

/* Search-friendly school introduction */
.school-seo-intro {
  padding: 82px 0;
  background: #f6efe8;
}

.school-intro-card {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border: 1px solid rgba(150, 0, 18, 0.12);
  border-radius: 24px;
  background: linear-gradient(135deg, #fffaf4 0%, #f4e5dc 100%);
  box-shadow: 0 18px 46px rgba(63, 27, 23, 0.09);
}

.school-intro-card::after {
  content: "";
  position: absolute;
  right: -85px;
  top: -110px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(181, 0, 24, 0.07);
}

.school-intro-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #a70018;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.school-intro-card h2 {
  margin-bottom: 18px;
  color: #241719;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
}

.school-intro-card p {
  max-width: 760px;
  margin-bottom: 24px;
  color: #59494b;
  font-size: 1.04rem;
  line-height: 1.8;
}

.school-intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.school-intro-links a {
  color: #9d0017;
  font-weight: 700;
  text-decoration: none;
}

.school-intro-links a:hover,
.school-intro-links a:focus {
  color: #6f0010;
  text-decoration: underline;
}

.school-intro-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.school-intro-points > div {
  padding: 18px 20px;
  border-left: 4px solid #b5001b;
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.75);
}

.school-intro-points strong,
.school-intro-points span {
  display: block;
}

.school-intro-points strong {
  color: #2f1d20;
  font-size: 1rem;
}

.school-intro-points span {
  margin-top: 3px;
  color: #756164;
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .school-seo-intro {
    padding: 56px 0;
  }

  .school-intro-card {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .school-intro-links {
    display: grid;
    gap: 10px;
  }
}

/* Boarding and hostel */
.boarding-hero {
  padding: 120px 0 86px;
  background:
    linear-gradient(110deg, rgba(46, 24, 24, 0.94), rgba(120, 0, 0, 0.8)),
    url("../images/bidhyasagar/hero-tour.png") center / cover no-repeat;
}

.boarding-hero-content {
  max-width: 780px;
  color: #fffaf4;
}

.boarding-hero-content .about-eyebrow {
  color: #f3c979;
}

.boarding-hero-content h1 {
  margin: 10px 0 20px;
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800;
}

/* Public Facebook page feed */
.facebook-feed-section {
  padding: 84px 0;
  background: linear-gradient(135deg, #fff8f0 0%, #f3e7dc 100%);
}

.facebook-feed-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(340px, 1.15fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.facebook-feed-copy {
  max-width: 520px;
}

.facebook-feed-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--bsebs-red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.facebook-feed-copy h2 {
  margin: 12px 0 18px;
  color: #2e1818;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.facebook-feed-copy p {
  margin-bottom: 28px;
  color: #665151;
  font-size: 1.05rem;
  line-height: 1.8;
}

.facebook-feed-frame {
  width: 100%;
  max-width: 540px;
  min-height: 620px;
  padding: 20px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(120, 0, 0, .1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(94, 0, 0, .14);
}

.facebook-feed-frame iframe {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .facebook-feed-layout {
    grid-template-columns: 1fr;
  }

  .facebook-feed-copy {
    max-width: 700px;
  }

  .facebook-feed-frame {
    justify-self: start;
  }
}

@media (max-width: 575px) {
  .facebook-feed-section {
    padding: 58px 0;
  }

  .facebook-feed-frame {
    min-height: 560px;
    padding: 10px;
    border-radius: 16px;
  }

  .facebook-feed-frame iframe {
    height: 560px;
  }
}

.boarding-hero-content p {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.boarding-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.boarding-outline-btn {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.boarding-outline-btn:hover,
.boarding-outline-btn:focus {
  background: #fffaf4;
  color: #8a0014;
}

.boarding-options-section {
  background: #fffaf4;
}

.boarding-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.boarding-option-card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid rgba(138, 0, 20, 0.13);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(54, 25, 27, 0.07);
}

.boarding-option-featured {
  background: linear-gradient(145deg, #b50909, #780000);
  color: #fff;
}

.boarding-option-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #f6e7dc;
  color: #980016;
  font-weight: 800;
}

.boarding-option-featured .boarding-option-number {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.boarding-option-card h3 {
  margin-bottom: 13px;
  color: #2e1818;
  font-size: 1.35rem;
  font-weight: 800;
}

.boarding-option-card p {
  margin: 0;
  color: #6b5759;
  line-height: 1.75;
}

.boarding-option-featured h3,
.boarding-option-featured p {
  color: #fff;
}

.boarding-facts-section {
  padding-top: 0;
  background: #fffaf4;
}

.boarding-facts-card,
.admission-service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 38px;
  border-radius: 20px;
  background: #f2e2d7;
}

.boarding-facts-card h2,
.admission-service-card h2 {
  margin: 8px 0 9px;
  color: #2e1818;
  font-weight: 800;
}

.boarding-facts-card p,
.admission-service-card p {
  margin: 0;
  color: #685456;
}

.boarding-facts-actions {
  display: grid;
  gap: 9px;
  min-width: 230px;
}

.boarding-facts-actions a {
  color: #920016;
  font-weight: 700;
}

.admission-service-options {
  padding-top: 0;
  background: #fffaf4;
}

@media (max-width: 991.98px) {
  .boarding-options-grid {
    grid-template-columns: 1fr;
  }

  .boarding-option-card {
    min-height: 0;
  }
}

@media (max-width: 767.98px) {
  .boarding-hero {
    padding: 96px 0 64px;
  }

  .boarding-facts-card,
  .admission-service-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 27px 23px;
  }

  .boarding-facts-actions {
    min-width: 0;
  }
}

.academics-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.academics-trust-list li {
  color: #4f3c3f;
  font-weight: 700;
}

.academics-trust-list .fa {
  margin-right: 7px;
  color: #a70018;
}

.scholarship-section {
  padding-top: 0;
  background: #fffaf4;
}

.scholarship-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 30px 34px;
  border: 1px solid rgba(163, 111, 0, 0.2);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff6dc, #f7e8c2);
}

.scholarship-card h2 {
  margin: 6px 0 8px;
  color: #2e1818;
  font-weight: 800;
}

.scholarship-card p {
  margin: 0;
  color: #655348;
}

.scholarship-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #a70018;
  color: #fff;
  font-size: 1.35rem;
}

@media (max-width: 767.98px) {
  .scholarship-card {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }
}

/* Transportation */
.transportation-page {
  padding-top: 112px;
  background: #fffaf4;
}

.transportation-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: 48px;
}

.transportation-copy h1 {
  margin: 10px 0 20px;
  color: #2e1818;
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
}

.transportation-copy > p {
  color: #625052;
  font-size: 1.08rem;
  line-height: 1.8;
}

.transportation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.transportation-call-btn {
  border: 1px solid #a70018;
  color: #910015;
}

.transportation-call-btn:hover,
.transportation-call-btn:focus {
  background: #910015;
  color: #fff;
}

.transportation-image-card {
  overflow: hidden;
  margin: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(54, 25, 27, 0.13);
}

.transportation-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.transportation-image-card figcaption {
  padding: 12px 16px;
  background: #f4e5d4;
  color: #6c585a;
  font-size: 0.82rem;
}

.transportation-info-section {
  padding-top: 0;
  background: #fffaf4;
}

.transportation-info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 38px;
  border-left: 5px solid #a70018;
  border-radius: 0 20px 20px 0;
  background: #f2e2d7;
}

.transportation-info-card h2 {
  margin: 8px 0;
  color: #2e1818;
  font-weight: 800;
}

.transportation-info-card p {
  max-width: 760px;
  margin: 0;
  color: #655255;
}

.transportation-info-links {
  display: grid;
  gap: 9px;
  min-width: 180px;
}

.transportation-info-links a {
  color: #910015;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .transportation-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .transportation-page {
    padding-top: 88px;
  }

  .transportation-info-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 27px 23px;
  }

  .transportation-info-links {
    min-width: 0;
  }
}

/* Compact, consistent vertical rhythm across the homepage only. */
.home-page .school-seo-intro {
  padding-top: 64px;
  padding-bottom: 32px;
}

.home-page section.upcoming-meetings {
  padding-top: 56px;
  padding-bottom: 74px;
}

.home-page section.apply-now {
  padding-top: 88px;
  padding-bottom: 88px;
}

.home-page section.our-courses {
  padding-top: 82px;
  padding-bottom: 76px;
}

.home-page section.our-facts {
  padding-top: 88px;
  padding-bottom: 76px;
}

.home-page section.contact-us.home-contact-section {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

.home-page .facebook-feed-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (max-width: 992px) {
  .home-page section.apply-now,
  .home-page section.our-courses,
  .home-page section.our-facts {
    padding-top: 68px;
    padding-bottom: 68px;
  }
}

@media (max-width: 767.98px) {
  .home-page .school-seo-intro {
    padding-top: 44px;
    padding-bottom: 24px;
  }

  .home-page section.upcoming-meetings {
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .home-page section.apply-now,
  .home-page section.our-courses,
  .home-page section.our-facts {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .home-page section.contact-us.home-contact-section,
  .home-page .facebook-feed-section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}
