/* Madi Devi Memorial College — custom responsive theme */
:root {
  --college-navy: #12355b;
  --college-navy-dark: #0a2342;
  --college-blue: #1f5f99;
  --college-gold: #d6a84b;
  --college-gold-light: #f4e4bd;
  --college-ink: #1f2937;
  --college-muted: #667085;
  --college-bg: #f6f8fb;
  --college-white: #ffffff;
  --college-border: #e3e9f1;
  --college-shadow: 0 14px 38px rgba(18, 53, 91, 0.10);
  --college-shadow-hover: 0 20px 48px rgba(18, 53, 91, 0.16);
  --college-radius: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--college-bg);
  color: var(--college-muted);
  font-family: "Muli", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--college-ink);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

a:hover,
a:focus {
  color: var(--college-navy-dark);
}

img {
  max-width: 100%;
}

.site-wrap {
  background: var(--college-white);
}

.container {
  width: 100%;
}

/* Contact strip */
.site-wrap > .py-2.px-2.bg-light {
  padding: 9px 0 !important;
  background: linear-gradient(90deg, var(--college-navy-dark), var(--college-navy)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-wrap > .py-2.px-2.bg-light .row > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 20px;
}

.site-wrap > .py-2.px-2.bg-light a {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-wrap > .py-2.px-2.bg-light a:hover {
  color: var(--college-gold-light) !important;
}

.site-wrap > .py-2.px-2.bg-light a span {
  color: var(--college-gold);
}

/* Header and navigation */
.site-navbar {
  position: relative !important;
  z-index: 1999;
  width: 100%;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--college-border);
  box-shadow: 0 5px 20px rgba(18, 53, 91, 0.07);
}

.sticky-wrapper {
  height: auto !important;
}

.sticky-wrapper.is-sticky .site-navbar,
.site-navbar.shrink {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(18, 53, 91, 0.12);
}

.site-navbar > .container > .d-flex {
  gap: 20px;
}

.site-logo {
  min-width: 290px;
}

.site-logo img {
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px;
  margin-right: 13px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--college-gold-light);
  box-shadow: 0 6px 16px rgba(18, 53, 91, 0.12);
}

.site-logo strong,
.site-logo h5 {
  display: block;
  margin: 0 !important;
  color: var(--college-navy-dark) !important;
  font-size: 16px;
  font-weight: 900 !important;
  line-height: 1.25;
  letter-spacing: 0.025em;
}

.site-logo p,
.site-logo small {
  display: block;
  margin: 3px 0 0 !important;
  color: var(--college-gold) !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.18em;
}

.site-navbar .site-navigation .site-menu > li > a,
.site-navbar .site-navigation .site-menu .active > a {
  position: relative;
  margin: 0 2px;
  padding: 11px 12px;
  color: var(--college-ink);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-navbar .site-navigation .site-menu > li > a::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  content: "";
  background: var(--college-gold);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-navbar .site-navigation .site-menu > li > a:hover,
.site-navbar .site-navigation .site-menu > li.active > a {
  color: var(--college-navy) !important;
  background: #f4f7fb;
}

.site-navbar .site-navigation .site-menu > li > a:hover::after,
.site-navbar .site-navigation .site-menu > li.active > a::after {
  transform: scaleX(1);
}

.social-wrap a {
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: var(--college-navy);
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(18, 53, 91, 0.18);
}

.social-wrap a:hover {
  background: var(--college-gold);
}

/* Mobile drawer */
.site-mobile-menu {
  width: min(88vw, 340px);
  padding-top: 10px;
  background: var(--college-white);
  box-shadow: -18px 0 45px rgba(10, 35, 66, 0.2);
}

.site-mobile-menu-header {
  height: 62px;
  border-bottom: 1px solid var(--college-border);
}

.site-mobile-menu-close span {
  color: var(--college-navy-dark);
}

.site-mobile-menu .site-nav-wrap a {
  padding: 13px 22px;
  color: var(--college-ink);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid #edf1f6;
}

.site-mobile-menu .site-nav-wrap a:hover {
  color: var(--college-navy);
  background: #f5f8fc;
}

/* Inner page banner */
.ftco-subscribe-1.site-blocks-cover {
  min-height: 230px;
  padding: 70px 0 42px !important;
  background-position: center 42%;
}

.ftco-subscribe-1::before {
  background: linear-gradient(105deg, rgba(10, 35, 66, 0.94), rgba(18, 53, 91, 0.72));
  opacity: 1;
}

.ftco-subscribe-1 > .container h2 {
  position: relative;
  margin: 0;
  padding-bottom: 15px;
  color: var(--college-white);
  font-size: clamp(31px, 5vw, 48px);
  font-weight: 900;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.ftco-subscribe-1 > .container h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 68px;
  height: 4px;
  content: "";
  background: var(--college-gold);
  border-radius: 99px;
}

.custom-breadcrumns {
  padding: 15px 0;
  background: #f8fafc;
  border-color: var(--college-border) !important;
}

.custom-breadcrumns span,
.custom-breadcrumns a {
  font-size: 13px;
  font-weight: 700;
}

.custom-breadcrumns a {
  color: var(--college-blue);
}

.custom-breadcrumns .current {
  color: var(--college-muted);
}

/* Home carousel */
#carouselExampleIndicators {
  width: min(1320px, calc(100% - 40px));
  margin: 26px auto 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--college-navy-dark);
  border-radius: 22px;
  box-shadow: var(--college-shadow-hover);
}

#carouselExampleIndicators .carousel-item {
  background: var(--college-navy-dark);
}

#carouselExampleIndicators .carousel-item img {
  width: 100%;
  height: clamp(260px, 47vw, 610px);
  object-fit: cover;
  opacity: 0.92;
}

.carousel-indicators li {
  width: 24px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.65);
}

.carousel-indicators .active {
  background: var(--college-gold);
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 42px;
  height: 42px;
  padding: 11px;
  background-color: rgba(10, 35, 66, 0.7);
  background-size: 45%;
  border-radius: 50%;
}

/* Sections and headings */
.site-section {
  padding: 58px 0;
}

.site-section:nth-of-type(even) {
  background: #fbfcfe;
}

.section-title-underline {
  margin-bottom: 26px !important;
  color: var(--college-navy-dark);
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 900;
}

.section-title-underline span {
  position: relative;
  padding-bottom: 12px;
  border: 0;
}

.section-title-underline span::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 58px;
  height: 4px;
  content: "";
  background: var(--college-gold);
  border-radius: 99px;
}

.text-center .section-title-underline span::after,
.section-title-underline.text-center span::after {
  left: 50%;
  transform: translateX(-50%);
}

.lead {
  color: #4b5c6e;
  font-size: 18px;
  line-height: 1.85;
}

/* Course cards and generic Bootstrap cards */
.card {
  height: 100%;
  overflow: hidden;
  background: var(--college-white);
  border: 1px solid var(--college-border) !important;
  border-radius: var(--college-radius);
  box-shadow: 0 8px 25px rgba(18, 53, 91, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(214, 168, 75, 0.6) !important;
  box-shadow: var(--college-shadow-hover);
  transform: translateY(-7px);
}

.card-body {
  position: relative;
  min-height: 150px;
  padding: 28px 25px;
}

.card-body::before {
  display: block;
  width: 44px;
  height: 5px;
  margin-bottom: 22px;
  content: "";
  background: linear-gradient(90deg, var(--college-gold), var(--college-blue));
  border-radius: 99px;
}

.card-title {
  margin-bottom: 8px;
  color: var(--college-navy-dark);
  font-size: 23px;
  font-weight: 900;
}

.card-text {
  margin-bottom: 0;
  color: var(--college-muted);
}

/* Bootstrap 4 does not provide the Bootstrap 5 g-4 utility used on home */
.row.g-4 {
  margin-right: -10px;
  margin-left: -10px;
}

.row.g-4 > [class*="col"] {
  margin-bottom: 20px;
  padding-right: 10px;
  padding-left: 10px;
}

.feature-1 {
  min-height: 245px;
  margin-top: 32px;
  background: var(--college-white);
  border: 1px solid var(--college-border) !important;
  border-radius: var(--college-radius);
  box-shadow: 0 10px 28px rgba(18, 53, 91, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-1:hover {
  box-shadow: var(--college-shadow-hover);
  transform: translateY(-7px);
}

.feature-1 .icon-wrapper,
.person .icon-wrapper {
  width: 76px;
  height: 76px;
  margin-top: -38px;
  background: linear-gradient(145deg, var(--college-blue), var(--college-navy-dark)) !important;
  border: 5px solid var(--college-white);
  border-radius: 20px;
  box-shadow: 0 9px 22px rgba(18, 53, 91, 0.2);
}

.feature-1 .icon-wrapper::before,
.feature-1 .icon-wrapper::after,
.person .icon-wrapper::before,
.person .icon-wrapper::after {
  display: none;
}

.feature-1 .icon-wrapper > span,
.person .icon-wrapper > span {
  top: 0;
  width: 100%;
  height: 100%;
  color: var(--college-white) !important;
  font-size: 36px;
  line-height: 67px;
}

.feature-1 .feature-1-content,
.person .feature-1-content {
  padding: 52px 24px 30px;
}

.feature-1 .feature-1-content h2,
.person .feature-1-content h2 {
  margin-bottom: 12px;
  color: var(--college-navy-dark);
  font-size: 20px;
  font-weight: 900;
}

/* Facilities and gallery tiles */
.course-1-item {
  height: 100%;
  overflow: hidden;
  background: var(--college-white);
  border: 1px solid var(--college-border);
  border-radius: var(--college-radius);
  box-shadow: 0 8px 25px rgba(18, 53, 91, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-1-item:hover {
  box-shadow: var(--college-shadow-hover);
  transform: translateY(-7px);
}

.course-1-item figure {
  margin: 0;
  overflow: hidden;
}

.course-1-item figure img,
.course-1-item .thumbnail img,
.course-1-item .thumnail img {
  width: 100% !important;
  height: 235px !important;
  object-fit: cover !important;
  transition: transform 0.45s ease;
}

.course-1-item:hover figure img {
  transform: scale(1.045);
}

.course-1-item .category {
  position: relative;
  padding: 17px 20px;
  background: linear-gradient(90deg, var(--college-navy-dark), var(--college-navy));
}

.course-1-item .category::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 3px;
  content: "";
  background: var(--college-gold);
}

.course-1-item .category h3 {
  color: var(--college-white);
  font-size: 18px;
  font-weight: 800;
}

.owl-slide-3 .owl-stage,
.owl-slide .owl-stage {
  padding-top: 14px;
  padding-bottom: 24px;
}

.owl-slide-3 img {
  height: 245px !important;
}

.owl-slide-3 .owl-nav .owl-prev,
.owl-slide-3 .owl-nav .owl-next {
  width: 44px;
  height: 44px;
  color: var(--college-white);
  background: var(--college-navy);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(18, 53, 91, 0.2);
}

/* About band */
.section-bg {
  position: relative;
  padding: 70px 0;
  overflow: hidden;
  background-color: var(--college-navy-dark);
  background-image: linear-gradient(115deg, rgba(10, 35, 66, 0.96), rgba(31, 95, 153, 0.88)) !important;
}

.section-bg::after {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 280px;
  height: 280px;
  content: "";
  border: 48px solid rgba(214, 168, 75, 0.13);
  border-radius: 50%;
}

.section-bg .container {
  position: relative;
  z-index: 1;
}

.section-bg h2 {
  color: var(--college-white);
  font-size: 34px;
  font-weight: 900;
}

.section-bg p,
.section-bg .lead {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

/* Content pages */
.container.pt-5.mb-5 > .row,
.container.py-4,
.container.mt-5 {
  position: relative;
}

.container.pt-5.mb-5 > .row {
  margin: 0;
  padding: 34px;
  background: var(--college-white);
  border: 1px solid var(--college-border);
  border-radius: var(--college-radius);
  box-shadow: 0 10px 30px rgba(18, 53, 91, 0.07);
}

.container.pt-5.mb-5 > .row > [class*="col-lg-4"]:nth-child(n+2) {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.container.py-4 > li,
.container.py-4 ul li {
  margin-bottom: 10px;
  padding: 0;
  list-style: none;
}

.container.py-4 > li a,
.container.py-4 ul li a {
  position: relative;
  display: block;
  padding: 14px 45px 14px 18px;
  color: var(--college-ink);
  font-weight: 700;
  background: var(--college-white);
  border: 1px solid var(--college-border);
  border-radius: 11px;
  box-shadow: 0 5px 15px rgba(18, 53, 91, 0.05);
}

.container.py-4 > li a::after,
.container.py-4 ul li a::after {
  position: absolute;
  top: 50%;
  right: 18px;
  content: "→";
  color: var(--college-gold);
  font-size: 20px;
  transform: translateY(-50%);
}

.container.py-4 > li a:hover,
.container.py-4 ul li a:hover {
  color: var(--college-navy);
  border-color: rgba(214, 168, 75, 0.75);
  transform: translateX(4px);
}

/* Tables */
.table,
table {
  width: 100%;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--college-white);
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--college-border) !important;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(18, 53, 91, 0.07);
}

.table thead th,
table thead th,
th {
  padding: 14px 13px !important;
  color: var(--college-white) !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: middle;
  background: var(--college-navy) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

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

.table td,
table td {
  padding: 13px !important;
  color: #435166;
  border-color: var(--college-border) !important;
}

.table-striped tbody tr:nth-of-type(odd),
table tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.table tbody tr:hover,
table tbody tr:hover {
  background: #fff9ec;
}

/* Forms */
.form-control {
  height: 50px;
  padding: 12px 16px;
  color: var(--college-ink);
  background: var(--college-white);
  border: 1px solid #d7dfeb;
  border-radius: 10px;
  box-shadow: none;
}

textarea.form-control {
  min-height: 150px;
}

.form-control:focus {
  border-color: var(--college-blue);
  box-shadow: 0 0 0 4px rgba(31, 95, 153, 0.12);
}

.btn,
input[type="submit"],
button {
  border-radius: 10px;
}

.btn-primary,
input[type="submit"] {
  padding: 12px 24px;
  color: var(--college-white);
  font-weight: 800;
  background: linear-gradient(90deg, var(--college-blue), var(--college-navy));
  border: 0;
  box-shadow: 0 8px 18px rgba(18, 53, 91, 0.18);
}

.btn-primary:hover,
input[type="submit"]:hover {
  background: var(--college-navy-dark);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  position: relative;
  padding: 62px 0 24px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(125deg, var(--college-navy-dark), #102f52 60%, #183f68);
}

.footer::before {
  position: absolute;
  top: -170px;
  left: -100px;
  width: 360px;
  height: 360px;
  content: "";
  border: 58px solid rgba(214, 168, 75, 0.06);
  border-radius: 50%;
}

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

.footer h3,
.footer h4,
.footer .footer-heading {
  color: var(--college-white);
  font-weight: 800;
}

.footer .footer-heading {
  margin-bottom: 22px;
  font-size: 17px;
}

.footer .footer-heading span {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--college-gold);
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
}

.footer a:hover {
  color: var(--college-gold-light);
  text-decoration: none;
}

.footer ul li {
  margin-bottom: 9px;
}

.footer img {
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.footer .copyright {
  margin-top: 35px;
  padding-top: 25px;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .copyright p {
  margin-bottom: 0;
}

/* Standalone staff profile pages */
body > .container:only-child {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 32px;
  background: var(--college-white);
  border-top: 5px solid var(--college-gold);
  border-radius: 18px;
  box-shadow: var(--college-shadow);
}

body > .container:only-child h1 {
  color: var(--college-navy-dark);
  font-size: clamp(24px, 4vw, 38px);
}

body > .container:only-child h3 {
  color: var(--college-blue);
  font-size: 18px;
}

.pdf-link {
  display: inline-block;
  padding: 7px 14px;
  color: var(--college-white) !important;
  background: var(--college-blue);
  border-radius: 8px;
}

.pdf-link:hover {
  background: var(--college-navy-dark);
  text-decoration: none !important;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .site-logo {
    min-width: 255px;
  }

  .site-logo strong,
  .site-logo h5 {
    font-size: 14px;
  }

  .site-navbar .site-navigation .site-menu > li > a,
  .site-navbar .site-navigation .site-menu .active > a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 13px;
  }
}

@media (max-width: 991.98px) {
  body {
    font-size: 15px;
  }

  .site-wrap > .py-2.px-2.bg-light .row > div {
    justify-content: center;
    text-align: center;
  }

  .site-navbar {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
  }

  .site-navbar > .container > .d-flex {
    gap: 8px;
  }

  .site-logo {
    min-width: 0;
    max-width: calc(100% - 58px);
  }

  .site-logo img {
    width: 50px !important;
    height: 50px !important;
    flex-basis: 50px;
    margin-right: 10px !important;
  }

  .site-logo strong,
  .site-logo h5 {
    font-size: clamp(11px, 3.1vw, 14px);
  }

  .site-logo p,
  .site-logo small {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  #carouselExampleIndicators {
    width: calc(100% - 24px);
    margin-top: 16px !important;
    border-radius: 16px;
  }

  .site-section {
    padding: 44px 0;
  }

  .ftco-subscribe-1.site-blocks-cover {
    min-height: 190px;
    padding: 55px 0 34px !important;
  }

  .container.pt-5.mb-5 > .row > [class*="col-lg-4"]:nth-child(n+2) {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .container.pt-5.mb-5 > .row {
    padding: 25px;
  }

  .section-bg h2 {
    margin-bottom: 20px;
  }

  .footer .col-lg-3 {
    margin-bottom: 28px;
  }

  .footer .col-lg-3:empty {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .site-wrap > .py-2.px-2.bg-light a {
    display: block;
    width: 100%;
    font-size: 11px;
    line-height: 1.45;
  }

  .site-wrap > .py-2.px-2.bg-light a:nth-of-type(3) {
    display: none;
  }

  .site-logo img {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px;
  }

  #carouselExampleIndicators .carousel-item img {
    height: 250px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 34px;
    height: 34px;
  }

  .section-title-underline {
    font-size: 28px;
  }

  .course-1-item figure img,
  .course-1-item .thumbnail img,
  .course-1-item .thumnail img {
    height: 220px !important;
  }

  .feature-1 {
    min-height: auto;
    margin-bottom: 35px;
  }

  .section-bg {
    padding: 52px 0;
  }

  .table-responsive,
  .container.mt-5,
  body > .container:only-child {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table,
  table {
    min-width: 620px;
    font-size: 13px;
  }

  body > .container:only-child {
    width: calc(100% - 24px);
    padding: 20px;
  }

  .footer {
    padding-top: 48px;
    text-align: center;
  }

  .footer .footer-heading span {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .site-logo strong,
  .site-logo h5 {
    font-size: 10.5px;
  }

  .site-logo p,
  .site-logo small {
    font-size: 8px;
  }

  .social-wrap a {
    width: 40px;
    height: 40px;
  }

  #carouselExampleIndicators {
    width: calc(100% - 16px);
    border-radius: 13px;
  }

  #carouselExampleIndicators .carousel-item img {
    height: 220px;
  }

  .card-body {
    min-height: 135px;
    padding: 23px 20px;
  }

  .container.pt-5.mb-5 > .row {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Embedded campus map */
.container > iframe {
  display: block;
  width: 100% !important;
  min-height: 430px;
  margin: 42px 0;
  border: 0 !important;
  border-radius: var(--college-radius);
  box-shadow: var(--college-shadow);
}

@media (max-width: 767.98px) {
  .container > iframe {
    min-height: 330px;
    margin: 26px 0;
  }
}


/* ===== Complete-site refinements ===== */
.site-navbar .site-navigation .site-menu .has-children > .dropdown {
  min-width: 285px;
  padding: 10px 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--college-border);
  border-top: 4px solid var(--college-gold);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 38px rgba(10, 35, 66, 0.18);
}
.site-navbar .site-navigation .site-menu .has-children > .dropdown > li > a {
  display: block;
  padding: 11px 18px;
  color: var(--college-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
}
.site-navbar .site-navigation .site-menu .has-children > .dropdown > li > a:hover,
.site-navbar .site-navigation .site-menu .has-children > .dropdown > li.active > a {
  color: var(--college-navy-dark) !important;
  background: #f4f7fb;
}
.site-navbar .site-navigation .site-menu .has-children > a {
  padding-right: 28px !important;
}
.site-navbar .site-navigation .site-menu .has-children > a::before {
  right: 9px;
}
.site-mobile-menu .site-nav-wrap .has-children ul {
  margin: 0 0 6px;
  padding-left: 15px;
  background: #f8fafc;
}
.site-mobile-menu .site-nav-wrap .has-children ul a {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
}

/* Generic responsive content improvements across legacy pages */
.site-wrap main,
.site-wrap > .container,
.site-wrap > .site-section {
  position: relative;
}
.table {
  background: #fff;
  border-radius: 12px;
}
.table thead th,
table thead th {
  color: #fff;
  background: linear-gradient(135deg, var(--college-navy-dark), var(--college-navy));
  border-color: rgba(255,255,255,.14) !important;
  font-weight: 800;
  vertical-align: middle;
}
.table td, .table th,
table td, table th {
  padding: 13px 14px;
  border-color: var(--college-border) !important;
  vertical-align: middle;
}
.table-striped tbody tr:nth-of-type(odd) {
  background: #f8fafc;
}
.form-control {
  min-height: 48px;
  border: 1px solid #dce4ee;
  border-radius: 10px;
  box-shadow: none;
}
.form-control:focus {
  border-color: var(--college-blue);
  box-shadow: 0 0 0 3px rgba(31,95,153,.12);
}
.btn-primary,
.btn.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--college-blue), var(--college-navy-dark));
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(18,53,91,.18);
}
.btn-primary:hover,
.btn.btn-primary:hover {
  color: var(--college-navy-dark);
  background: var(--college-gold);
}

/* Staff directory pages */
.staff-page-section { padding: 64px 0 80px; background: #f6f8fb; }
.staff-intro { max-width: 780px; margin: 0 auto 30px; text-align: center; }
.staff-intro .eyebrow {
  display: inline-block; margin-bottom: 10px; color: var(--college-gold);
  font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
}
.staff-intro h2 { margin-bottom: 12px; color: var(--college-navy-dark); font-size: clamp(28px, 4vw, 40px); }
.staff-intro p { margin: 0; color: var(--college-muted); }
.staff-table-card {
  overflow: hidden; background: #fff; border: 1px solid var(--college-border);
  border-radius: 18px; box-shadow: var(--college-shadow);
}
.staff-table-header {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px; background: linear-gradient(135deg, var(--college-navy-dark), var(--college-navy)); color: #fff;
}
.staff-table-header h3 { margin: 0; color: #fff; font-size: 20px; }
.staff-table-header span { color: rgba(255,255,255,.76); font-size: 13px; }
.staff-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.staff-table { width: 100%; min-width: 1000px; margin: 0; border-collapse: collapse; }
.staff-table thead th {
  padding: 15px 14px; background: #eef3f8; color: var(--college-navy-dark);
  border-bottom: 1px solid #d8e1ec; font-size: 13px; font-weight: 900;
  letter-spacing: .025em; text-align: left; text-transform: uppercase; white-space: nowrap;
}
.staff-table tbody td {
  padding: 15px 14px; color: #4b5563; border-bottom: 1px solid #edf1f5;
  font-size: 14px; line-height: 1.55; vertical-align: middle;
}
.staff-table tbody tr:not(.staff-section-row):hover { background: #f8fafc; }
.staff-section-row td {
  padding: 11px 14px !important; background: var(--college-gold-light); color: var(--college-navy-dark) !important;
  border-bottom: 1px solid #ead6a4 !important; font-size: 13px !important;
  font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}
.serial-cell { width: 72px; color: var(--college-navy) !important; font-weight: 800; text-align: center; }
.photo-cell { width: 96px; text-align: center; }
.name-cell { min-width: 190px; color: var(--college-ink) !important; font-weight: 800; }
.profile-cell { width: 110px; text-align: center; }
.staff-photo {
  display: block; width: 72px; height: 88px; margin: 0 auto; object-fit: cover; object-position: center top;
  background: #eef3f8; border: 3px solid #fff; border-radius: 12px;
  box-shadow: 0 5px 15px rgba(18,53,91,.18);
}
.staff-pdf-link,
.document-pdf-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 78px; padding: 9px 14px; color: #fff !important; background: var(--college-navy);
  border-radius: 9px; font-size: 13px; font-weight: 800;
  box-shadow: 0 5px 14px rgba(18,53,91,.16);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.staff-pdf-link:hover, .staff-pdf-link:focus,
.document-pdf-link:hover, .document-pdf-link:focus {
  color: var(--college-navy-dark) !important; background: var(--college-gold); text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18,53,91,.20);
}
.staff-note { margin: 18px 0 0; color: var(--college-muted); font-size: 13px; text-align: center; }
.document-card {
  max-width: 760px; margin: 0 auto; padding: 38px; text-align: center;
  background: #fff; border: 1px solid var(--college-border); border-radius: 18px; box-shadow: var(--college-shadow);
}
.document-card .document-icon {
  display: inline-flex; width: 74px; height: 74px; margin-bottom: 20px; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(145deg, var(--college-blue), var(--college-navy-dark));
  border-radius: 20px; font-size: 32px; box-shadow: 0 10px 24px rgba(18,53,91,.2);
}
.document-card h3 { margin-bottom: 10px; color: var(--college-navy-dark); }
.document-card p { max-width: 560px; margin: 0 auto 22px; }

@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-logo { min-width: 255px; }
  .site-navbar .site-navigation .site-menu > li > a,
  .site-navbar .site-navigation .site-menu .active > a { padding-right: 8px; padding-left: 8px; font-size: 12.5px; }
  .site-navbar .site-navigation .site-menu .has-children > a { padding-right: 24px !important; }
}
@media (max-width: 991.98px) {
  .staff-page-section { padding: 46px 0 60px; }
  .staff-table-header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .document-card { padding: 28px 22px; }
}
@media (max-width: 575.98px) {
  .staff-table-card { margin-right: -4px; margin-left: -4px; border-radius: 14px; }
  .staff-table-header { padding: 18px; }
  .staff-table tbody td, .staff-table thead th { padding-right: 11px; padding-left: 11px; }
  .staff-photo { width: 62px; height: 76px; border-radius: 10px; }
  .photo-cell { width: 82px; }
}

/* Correct Bootstrap 5 row-cols utilities used by the legacy home markup */
.row.row-cols-1.row-cols-md-4 > .col {
  flex: 0 0 25%;
  max-width: 25%;
}
@media (max-width: 991.98px) {
  .row.row-cols-1.row-cols-md-4 > .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 575.98px) {
  .row.row-cols-1.row-cols-md-4 > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.full-width-carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.full-width-carousel .carousel-inner,
.full-width-carousel .carousel-item {
    width: 100%;
}

.full-width-carousel .carousel-item img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Tablet */
@media (max-width: 991px) {
    .full-width-carousel .carousel-item img {
        height: 400px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .full-width-carousel .carousel-item img {
        height: 260px;
    }
}
