/* ==========================================================================
   MCC Alumni — Public Site & Landing Page, Modern Skin
   --------------------------------------------------------------------------
   Layers over the Bootstrap 5 landing template (assets/homepage/css/style.css)
   without touching its markup, so every public view is restyled at once.
   Requires mcc-tokens.css to be loaded first, and must be linked AFTER the
   template's own stylesheets.

   Contents
     1. Base & typography      6. News / event / job cards
     2. Navbar                 7. Contact & forms
     3. Hero carousel          8. Footer
     4. Section headings       9. Directory, pagination, utilities
     5. Service & category cards
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base & typography
   -------------------------------------------------------------------------- */

:root {
  /* Re-point the template's own variable at the shared brand token. */
  --primary: var(--mcc-primary);
  --bs-primary: var(--mcc-primary);
  --bs-primary-rgb: 13, 59, 102;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--mcc-font);
  color: var(--text-body);
  background: var(--bg-surface);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--mcc-font);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -.03em;
  line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4 {
  font-family: var(--mcc-font);
  font-weight: 800;
  letter-spacing: -.04em;
}

p { color: var(--text-body); }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--mcc-primary) !important; }
.bg-primary { background-color: var(--mcc-primary) !important; }

a { transition: color var(--t-fast); }

::selection { background: var(--navy-100); color: var(--navy-900); }

*:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
  border-radius: var(--radius-md);
  font-family: var(--mcc-font);
  font-weight: 600;
  letter-spacing: -.005em;
  transition: background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--mcc-primary);
  border-color: var(--mcc-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--mcc-primary-hover);
  border-color: var(--mcc-primary-hover);
  box-shadow: var(--shadow-brand);
  color: #fff;
}

.btn-outline-primary {
  border-color: var(--navy-200);
  color: var(--mcc-primary);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: var(--mcc-primary);
  border-color: var(--mcc-primary);
  box-shadow: var(--shadow-brand);
  color: #fff;
}

.btn.btn-lg-square, .btn-square { border-radius: var(--radius-md); }

.back-to-top {
  border-radius: var(--radius-full) !important;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }

/* --------------------------------------------------------------------------
   2. Navbar
   -------------------------------------------------------------------------- */

.navbar.sticky-top {
  z-index: 1030;
  border-bottom: 1px solid var(--border-subtle);
  /* Frosted bar so hero imagery reads through while text stays legible. */
  background: rgba(255, 255, 255, .82) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: none !important;
  transition: box-shadow var(--t-mid), background-color var(--t-mid);
}

.navbar.sticky-top.is-stuck {
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Browsers without backdrop-filter get a solid bar instead of a washed-out one. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar.sticky-top,
  .navbar.sticky-top.is-stuck { background: #fff !important; }
}

.navbar-brand h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--mcc-primary) !important;
}
.navbar-brand h2 i { margin-right: 10px !important; }

.navbar-light .navbar-nav .nav-link {
  position: relative;
  margin-right: 4px;
  padding: 26px 14px !important;
  font-family: var(--mcc-font);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text-body);
  transition: color var(--t-fast);
}

.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--mcc-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active { color: var(--mcc-primary); }

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.navbar-toggler:focus { box-shadow: var(--ring); }

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link { padding: 12px 0 !important; }
  .navbar-light .navbar-nav .nav-link::after { display: none; }
  .navbar-collapse {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    border-top: 1px solid var(--border-subtle);
  }
}

/* --------------------------------------------------------------------------
   3. Hero carousel
   -------------------------------------------------------------------------- */

/* The template paints a flat rgba(24,29,56,.7) sheet over the photo via an
   INLINE style on the overlay div. Inline wins on specificity, so !important is
   the only way to reach it — and adding a second overlay here instead would
   just double-darken the image. A directional gradient keeps the left-hand
   copy readable while letting the right of the picture come through. */
.header-carousel .owl-carousel-item > .position-absolute {
  background: linear-gradient(105deg,
              rgba(7, 33, 57, .92) 0%,
              rgba(10, 46, 80, .72) 45%,
              rgba(7, 33, 57, .25) 100%) !important;
}

.header-carousel .owl-carousel-item img { filter: saturate(1.05); }

/* The eyebrow above the headline is .text-primary — navy on a navy overlay.
   Lift it to a tint that actually reads against the dark. */
.header-carousel .owl-carousel-item .text-primary { color: var(--navy-200) !important; }

.header-carousel .owl-carousel-item h1,
.header-carousel .owl-carousel-item .display-3 {
  font-weight: 800;
  letter-spacing: -.04em;
  text-shadow: 0 2px 24px rgba(7, 33, 57, .45);
}

.header-carousel .owl-carousel-item p { font-size: 17px; color: rgba(255, 255, 255, .92); }

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  border-radius: var(--radius-full);
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover { background: var(--mcc-primary); border-color: var(--mcc-primary); }

/* --------------------------------------------------------------------------
   4. Section headings
   -------------------------------------------------------------------------- */

.section-title {
  font-family: var(--mcc-font);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mcc-primary);
}

/* The template draws flanking rules with ::before/::after — soften them. */
.section-title::before,
.section-title::after { background: var(--navy-200) !important; }

.container-xxl > .container > .text-center > h1,
.container-xxl > .container > .text-center > .h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -.035em;
}

/* --------------------------------------------------------------------------
   5. Service & category cards
   -------------------------------------------------------------------------- */

.service-item {
  height: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}

.service-item:hover {
  transform: translateY(-6px);
  border-color: var(--navy-200);
  box-shadow: var(--shadow-lg);
  background: var(--bg-surface);
}

.service-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px !important;
  border-radius: var(--radius-lg);
  background: var(--mcc-primary-soft);
  color: var(--mcc-primary) !important;
  font-size: 27px !important;
  transition: background-color var(--t-mid), color var(--t-mid), transform var(--t-mid);
}

.service-item:hover i {
  transform: scale(1.06) rotate(-3deg);
  background: var(--mcc-primary);
  color: #fff !important;
}

.service-item h5 { font-size: 17px; margin-bottom: 10px !important; }
.service-item p  { font-size: 14.5px; color: var(--text-muted); }

/* The template flips every child to white on hover; keep our own colours. */
.service-item:hover * { color: inherit; }
.service-item:hover h5 { color: var(--text-main); }
.service-item:hover p  { color: var(--text-muted); }

/* Department tiles */
.category a.position-relative {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.category img { transition: transform var(--t-slow); }
.category a:hover img { transform: scale(1.06); }
.category a .bg-white {
  border-radius: var(--radius-md) 0 var(--radius-lg) 0 !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  box-shadow: var(--shadow-sm);
}
.category a .bg-white h5 { font-size: 14.5px; color: var(--text-main); }

/* --------------------------------------------------------------------------
   6. News / event / job cards
   -------------------------------------------------------------------------- */

.probootstrap-featured-news-box {
  display: block;
  height: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}

.probootstrap-featured-news-box:hover {
  transform: translateY(-5px);
  border-color: var(--navy-200);
  box-shadow: var(--shadow-lg);
}

.probootstrap-media { margin: 0; overflow: hidden; background: var(--bg-sunken); }

.probootstrap-media img,
.fixed-dimension-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.probootstrap-featured-news-box:hover .probootstrap-media img { transform: scale(1.05); }

.probootstrap-text { padding: 18px 20px 20px; }

.news-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  /* Two lines maximum, so a long headline can't unbalance the row. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-description {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.probootstrap-date {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--mcc-primary-soft);
  color: var(--mcc-primary);
  font-size: 12px;
  font-weight: 600;
}

/* Owl carousel controls used by the news/event strips */
.testimonial-carousel .owl-dots { margin-top: 22px; }
.testimonial-carousel .owl-dot {
  width: 9px !important;
  height: 9px !important;
  margin: 0 4px !important;
  border-radius: var(--radius-full) !important;
  background: var(--navy-200) !important;
  transition: width var(--t-mid), background-color var(--t-mid);
}
.testimonial-carousel .owl-dot.active { width: 26px !important; background: var(--mcc-primary) !important; }

/* Generic Bootstrap cards on the inner public pages */
.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.card:hover { transform: translateY(-4px); border-color: var(--navy-200); box-shadow: var(--shadow-lg); }

/* News, events, jobs and the directory all ship .card.border-0.shadow-sm.
   Those utilities are !important, so matching them is the only way to pull
   these cards into the system rather than leaving them on Bootstrap defaults. */
.card.border-0 { border: 1px solid var(--border-light) !important; }
.card.border-0:hover { border-color: var(--navy-200) !important; }
.card.shadow-sm { box-shadow: var(--shadow-xs) !important; }
.card.shadow-sm:hover { box-shadow: var(--shadow-lg) !important; }

/* Reserve the image box so a loading card can't shift the grid. */
.card-img-top {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-sunken);
}

.card-title { font-size: 17px; line-height: 1.35; }
.card-title a { color: var(--text-main); }
.card-title a:hover { color: var(--mcc-primary); }
.card-body { padding: 18px 20px; }

/* --------------------------------------------------------------------------
   7. Contact & forms
   -------------------------------------------------------------------------- */

.form-control, .form-select {
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--mcc-font);
  font-size: 15px;
  color: var(--text-main);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-control::placeholder { color: var(--text-light); }
.form-control:focus, .form-select:focus {
  border-color: var(--navy-400);
  box-shadow: var(--ring);
}

.form-floating > label { color: var(--text-muted); font-weight: 500; }

.alert {
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}
.alert-success { background: var(--accent-emerald-soft); border-color: #a7f3d0; color: #065f46; }
.alert-danger  { background: var(--accent-rose-soft);    border-color: #fecdd3; color: #9f1239; }

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */

.footer.bg-dark {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%) !important;
  color: rgba(226, 232, 240, .78);
}

.footer h4 {
  margin-bottom: 18px !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff !important;
}

.footer .btn-link {
  display: block;
  padding: 5px 0;
  color: rgba(226, 232, 240, .74);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast), transform var(--t-fast);
}
.footer .btn-link:hover { color: #fff; transform: translateX(4px); }

.footer p { color: rgba(226, 232, 240, .74); }
.footer p i { color: var(--navy-300); }

.footer .btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-full);
  color: rgba(226, 232, 240, .85);
  transition: background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast);
}
.footer .btn-social:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: #fff;
  color: var(--navy-800);
}

.footer img.img-fluid {
  border-radius: var(--radius-sm);
  transition: transform var(--t-fast), opacity var(--t-fast);
  opacity: .9;
}
.footer img.img-fluid:hover { transform: scale(1.05); opacity: 1; }

.footer .copyright {
  margin-top: 8px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px;
  color: rgba(226, 232, 240, .66);
}
.footer .copyright a { color: rgba(226, 232, 240, .9); }
.footer .copyright a:hover { color: #fff; }
.footer .footer-menu a { padding: 0 10px; color: rgba(226, 232, 240, .74); }
.footer .footer-menu a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   9. Directory, pagination, utilities
   -------------------------------------------------------------------------- */

.pagination { gap: 6px; }
.page-link {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md) !important;
  color: var(--text-body);
  font-weight: 600;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.page-link:hover { background: var(--mcc-primary-soft); border-color: var(--navy-200); color: var(--mcc-primary); }
.page-item.active .page-link { background: var(--mcc-primary); border-color: var(--mcc-primary); color: #fff; }

.table > thead > tr > th {
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.badge { border-radius: var(--radius-full); font-weight: 600; letter-spacing: .01em; }

img { max-width: 100%; }

/* Section rhythm: a little more air than the template ships with. */
.container-xxl.py-5 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

@media (max-width: 767.98px) {
  .container-xxl.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  body { font-size: 15px; }
}
