/* ---------- HEADER ---------- */
/* ---------- Departments ---------- */

.rr-dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 18px;
}

.rr-dept-card {
  background: #0b3d91;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
}

.rr-dept-card:hover {
  background: #1457c5;
}

.rr-dept-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.rr-dept-images img {
  width: 100%;
  border-radius: 10px;
}

.rr-section {
  margin-bottom: 28px;
}

.rr-list {
  padding-left: 18px;
}

.rr-links a {
  display: block;
  margin-bottom: 6px;
}


.topbar {
  background: #0b3d91;
  color: #fff;
  padding: 10px 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-rotator {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}

.logo-rotator img {
  width: 40px;
  animation: logoSpinY 12s linear infinite;
}

@keyframes logoSpinY {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-rotator img { animation: none; }
}

/* ---------- NAV ---------- */
.rr-navbar {
  margin-bottom: 0;
  border-radius: 0;
}

/* ---------- FOOTER ---------- */
.rr-footer {
  background: #0b3d91;
  color: #fff;
  padding: 16px 0;
}

.rr-footer-row {
  display: flex;
  align-items: center;
}

.rr-footer-city {
  font-weight: 600;
}

.rr-footer-links {
  margin-top: 6px;
  opacity: 0.95;
}

.rr-footer-links a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.rr-footer-links a:hover {
  color: #f5c542;
  text-decoration: none;
}

.rr-social a {
  color: #fff;
  font-size: 20px;
  margin-left: 14px;
}

.rr-social a:hover {
  color: #f5c542;
}
/* === Departments Mega Menu FIX === */

/* Parent needs positioning context */
.rr-has-mega {
  position: relative;
}

/* Mega menu panel */
.rr-mega {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: #1f3b6f;
  padding: 18px 24px;
  display: none;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Links inside mega menu */
.rr-mega a {
  display: inline-block;
  color: #ffffff;
  font-weight: 600;
  margin-right: 18px;
  margin-bottom: 8px;
  text-decoration: none;
}

.rr-mega a:hover {
  text-decoration: underline;
}

/* Show mega menu on hover (desktop) */
@media (min-width: 992px) {
  .rr-has-mega:hover .rr-mega {
    display: block;
  }
@media (max-width: 991px) {
  .rr-mega {
    position: static;
    display: block;
    background: transparent;
    box-shadow: none;
    padding: 10px 0;
  }

  .rr-mega a {
    display: block;
    padding: 6px 0;
  }
}
}
/* Mega container */
.rr-mega {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #0b3d91;
  padding: 12px 0;
  display: none;
  z-index: 1000;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Mega links */
.rr-mega a {
  display: block;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.rr-mega a:hover,
.rr-mega a:focus {
  background: #4d87d7;
  color: #ffffff;
}

/* Desktop hover behavior */
@media (min-width: 768px) {
  .rr-has-mega:hover .rr-mega {
    display: block;
  }
}

/* Mobile-friendly fallback */
@media (max-width: 767px) {
  .rr-mega {
    position: static;
    display: block;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .rr-mega a {
    padding-left: 28px;
    background: #1b4fa1;
    margin-bottom: 2px;
  }
  /* ================================
   Department Pages
================================ */

.rr-dept-hero {
  background: #0b3d91;
  color: #ffffff;
  padding: 40px 0;
}

.rr-dept-hero h1 {
  margin: 0;
  font-weight: 800;
}

.rr-dept-tagline {
  opacity: 0.9;
  font-size: 16px;
  margin-top: 6px;
}

.rr-dept-content {
  padding: 40px 0;
}

.rr-dept-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.rr-dept-main h2 {
  margin-top: 0;
}

.rr-dept-sidebar .rr-dept-card {
  background: #f4f6fb;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.rr-dept-image img {
  width: 100%;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .rr-dept-grid {
    grid-template-columns: 1fr;
  }
}
/* ================================
   DEPARTMENT PAGE TEMPLATE
================================ */





/* Header block */
.department-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}

.department-header img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.department-title {
  font-size: 30px;
  font-weight: 800;
  color: #0b3d91;
  margin-bottom: 10px;
}

.department-mission {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Section blocks */
.department-section {
  margin-bottom: 32px;
}

.department-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0b3d91;
  border-bottom: 3px solid #0b3d91;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.department-section ul {
  list-style: disc;
  padding-left: 22px;
}

.department-section li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* Contact block */
.department-contact {
  background: #f4f8fd;
  padding: 22px;
  border-radius: 10px;
  border-left: 6px solid #0b3d91;
}

.department-contact h2 {
  margin-top: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0b3d91;
}

.department-contact p {
  margin-bottom: 6px;
  font-size: 15px;
}
.department-page {
  min-height: 100vh;

  background-image:
    linear-gradient(
      rgba(235, 241, 252, 0.92),
      rgba(235, 241, 252, 0.92)
    ),
    url('/riverrouge/assets/images/slide1.png');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 40px 0 60px;
}

.department-page a:hover {
  text-decoration: underline;
}
.dept-content-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 1100px;
  margin: 30px auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}



.dept-content-box h2 {
  margin-top: 24px;
  color: #0b3d91;
  font-weight: 800;
}

.dept-content-box ul {
  padding-left: 18px;
}






/* Mobile */
@media (max-width: 768px) {
  .department-header {
    grid-template-columns: 1fr;
  }

  .department-title {
    font-size: 26px;
  }
}
/* ==============================
   Department Leadership Card
================================ */

.dept-leadership {
  padding: 30px 0 10px;
}

.dept-card,
.qa-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
}


.dept-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.dept-title {
  margin-top: 0;
  font-size: 26px;
  font-weight: 800;
  color: #0b3d91;
}

.dept-head {
  margin: 10px 0 12px;
  font-weight: 700;
}

.dept-head span {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.dept-mission {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.dept-contact p {
  margin-bottom: 6px;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
  .dept-card {
    grid-template-columns: 1fr;
  }

  .dept-title {
    font-size: 22px;
  }
}
/* Outer wrapper that allows background to show */
.department-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
/* 🔑 FORCE ALL MODALS ABOVE EVERYTHING */
.video-modal {
  position: fixed !important;
  inset: 0;
  z-index: 2147483647 !important; /* max safe z-index */
}
/* ==============================
   GLOBAL VIDEO MODALS (TOP LAYER)
============================== */

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;

  /* 🔑 THIS beats EVERYTHING */
  z-index: 2147483647;
}

.video-modal[hidden] {
  display: none;
}

.video-card {
  position: relative;
  background: #000;
  padding: 16px;
  border-radius: 12px;
  max-width: 760px;
  width: 90%;
}
@media (max-width: 480px) {
  .video-card {
    max-width: 94vw;
    max-height: 80svh;
  }

  .video-card video {
    max-height: 70svh;
  }
}
/* 🔑 GLOBAL VIDEO MODAL – TOP OF PAGE */
.video-modal {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh; /* iOS safe */
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2147483647 !important; /* absolute top */
}

.video-modal[hidden] {
  display: none;
}

.video-card {
  position: relative;
  background: #000;
  padding: 16px;
  border-radius: 12px;
  max-width: 760px;
  width: 90%;
}

@media (max-width: 480px) {
  .video-card {
    max-width: 94vw;
    max-height: 80svh;
  }

  .video-card video {
    max-height: 70svh;
  }
}
/* =========================
   CONTACT GRID
========================= */

.contact-grid-wrapper {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

.contact-grid-title {
  text-align: center;
  font-weight: 800;
  color: #0b3d91;
  margin-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-card {
  display: block;
  background: #0b3d91;
  color: #ffffff;
  padding: 16px 14px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}

.contact-card span {
  display: block;
  font-weight: 600;
  margin-top: 6px;
  opacity: 0.95;
}

.contact-card:hover {
  background: #1457c5;
  transform: translateY(-2px);
  color: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.contact-grid a {
  background: #0b3d91;
  color: #ffffff;
  text-decoration: none;
  padding: 16px;
  border-radius: 10px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.contact-grid a span {
  display: block;
  font-weight: 600;
  margin-top: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.business-header {
  background: #0b3d91; /* River Rouge blue */
  color: #fff;
  text-align: center;
  padding: 30px 15px;
  margin-bottom: 30px;
  border-radius: 6px;
}

.business-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.business-header p {
  margin: 5px 0 0;
  font-size: 14px;
  opacity: 0.9;
}
.business-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 25px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.business-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.business-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.business-body {
  padding: 15px;
}

.business-body h3 {
  margin-top: 0;
  font-size: 18px;
}

body {
  outline: 5px solid red;
}

  
}

/* =========================
   BUSINESS DIRECTORY FIX
========================= */

.business-header {
  background: #0b3d91;
  color: #ffffff;
  text-align: center;
  padding: 28px 20px;
  margin-bottom: 40px;
  border-radius: 8px;
}

.business-header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
}

.business-header p {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.9;
}

.business-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  margin-bottom: 30px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.business-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.business-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.business-body {
  padding: 18px;
}

.business-body h3 {
  margin-top: 0;
  font-size: 19px;
  font-weight: 700;
}

.business-category {
  display: inline-block;
  margin: 8px 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: #0b3d91;
}
/* =========================
   BUSINESS CATEGORY BAR
========================= */

.category-bar {
  background: #0b3d91; /* River Rouge blue */
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.category-label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-links a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  transition: background 0.15s ease;
}

.category-links a:hover {
  background: rgba(255,255,255,0.3);
  text-decoration: none;
}
/* Matterport Modal */
.mp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.mp-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.mp-modal iframe {
  width: 100%;
  height: 100%;
}

/* Close Button */
.mp-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

/* Mobile */
@media (max-width: 768px) {
  .category-links {
    flex-direction: column;
    gap: 6px;
  }
  @media (max-width: 991px) {

  .home-slider,
  .hero-slider,
  .slider,
  .hero {
    background: #d9d9d9 !important;
    background-image: none !important;
  }
}
/* Default: two boxes */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Single box mode */
.qa-grid.single-box {
  grid-template-columns: 1fr;
}

/* Optional: center & widen the single card */
.qa-grid.single-box .below-card {
  max-width: 900px;
  margin: 0 auto;
}
/* Default: two boxes */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Single box mode */
.qa-grid.single-box {
  grid-template-columns: 1fr;
}

/* Optional: center & widen the single card */
.qa-grid.single-box .below-card {
  max-width: 900px;
  margin: 0 auto;
}
/* Single centered blue box layout */
.qa-grid.single-centered-box {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* Blue card styling */
.centered-box {
  background: #0b3d91; /* River Rouge blue */
  color: #ffffff;
  padding: 26px 32px;
  border-radius: 14px;
  max-width: 720px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

/* Text polish */
.centered-box h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
}

.centered-box p {
  margin: 6px 0;
  font-size: 15px;
}

/* Mobile tuning */
@media (max-width: 768px) {
  .centered-box {
    margin: 0 16px;
    padding: 22px;
  }
}


}
