/* ============================================================
   Mothers' Joy International School — MODERN SKIN v2
   Apple-inspired: system font, frosted glass, layered shadows,
   generous radii, refined per-section typography.
   Loaded LAST; original theme untouched; remove <link> to revert.
   ============================================================ */

:root {
  --mj-blue: #1c3a9b;
  --mj-blue-deep: #14206b;
  --mj-blue-dark: #0d1647;
  --mj-blue-grad: linear-gradient(135deg, #2447a8 0%, #14206b 100%);
  --mj-blue-grad-soft: linear-gradient(135deg, #2e54bf 0%, #1c3a9b 100%);
  --mj-accent: #e41937;
  --mj-accent-grad: linear-gradient(135deg, #fb7185 0%, #be123c 100%);
  --mj-ink: #171a1f;
  --mj-muted: #5c6570;
  --mj-line: rgba(20, 30, 60, 0.08);
  --mj-bg: #f4f6fb;
  --mj-surface: rgba(255, 255, 255, 0.92);
  --mj-glass: rgba(255, 255, 255, 0.72);
  --mj-shadow-sm: 0 2px 6px rgba(16, 26, 77, 0.10), 0 6px 20px rgba(16, 26, 77, 0.12);
  --mj-shadow-md: 0 10px 26px rgba(16, 26, 77, 0.16), 0 22px 60px rgba(16, 26, 77, 0.20);
  --mj-shadow-lg: 0 16px 40px rgba(16, 26, 77, 0.20), 0 34px 90px rgba(16, 26, 77, 0.26);
  --mj-radius: 18px;
  --mj-radius-lg: 26px;
  --mj-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base / typography (Apple system stack) ---------- */
body {
  font-family: var(--mj-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--mj-ink);
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--mj-font);
  color: var(--mj-blue-dark);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 650; }
p { color: var(--mj-muted); }
a { color: var(--mj-blue); transition: color 0.2s ease; }
strong { font-weight: 650; }

/* ---------- Preloader: animated school logo (1[27]) ---------- */
#preloader { background: #ffffff; }
#preloader #spinner {
  border: none;
  width: 110px;
  height: 110px;
  background: url("../images/1[27].png") center / contain no-repeat;
  animation: mj-logo-pulse 1.8s ease-in-out infinite;
}
#preloader #spinner img { display: none; }
#preloader #disable-preloader { display: none !important; }
@keyframes mj-logo-pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.75; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* ---------- Header: frosted glass ---------- */
.header-top {
  background: linear-gradient(135deg, #1a2f8f 0%, #101a4d 100%) !important;
  background-color: #101a4d !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-top .list-inline > li {
  line-height: 38px;
  font-size: 13px;
  font-weight: 500;
}
.header-top a { color: #fff; }
.header-top a:hover { color: #bcd0ff; text-decoration: none; }

.header-nav-wrapper.navbar-scrolltofixed {
  background: var(--mj-glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(16, 26, 77, 0.06), 0 10px 40px rgba(16, 26, 77, 0.08);
  border-bottom: none;
}
.menuzord-brand img { max-height: 54px; width: auto; }
.menuzord-menu > li > a {
  font-size: 15px;
  font-weight: 600;
  color: var(--mj-blue-dark) !important;
  letter-spacing: 0.1px;
  padding: 16px 16px !important;
  position: relative;
}
.menuzord-menu > li > a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 10px;
  height: 3px;
  border-radius: 3px;
  background: var(--mj-blue-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.menuzord-menu > li:hover > a::after,
.menuzord-menu > li.active > a::after { transform: scaleX(1); }
.menuzord .menuzord-menu > li:hover > a,
.menuzord .menuzord-menu > li.active > a {
  background: transparent !important;
  color: var(--mj-blue) !important;
}
.menuzord .menuzord-menu ul.dropdown {
  border: none;
  border-radius: 16px;
  box-shadow: var(--mj-shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
}
.menuzord .menuzord-menu ul.dropdown li a {
  font-size: 14px;
  color: var(--mj-blue-dark);
  border-radius: 10px;
  padding: 10px 16px;
}
.menuzord .menuzord-menu ul.dropdown li:hover > a {
  background: var(--mj-blue-grad) !important;
  color: #fff !important;
}

/* ---------- Desktop navigation: dropdown above hero/media layers ---------- */
@media (min-width: 901px) {
  #header,
  .header,
  .header-nav,
  .header-nav-wrapper,
  .header-nav-wrapper .container,
  .menuzord {
    position: relative;
    z-index: 10000 !important;
  }
  .menuzord .menuzord-menu { z-index: 10001 !important; }
  .menuzord .menuzord-menu ul.dropdown {
    z-index: 10002 !important;
  }
  .rev_slider_wrapper,
  .rev_slider {
    position: relative;
    z-index: 1 !important;
  }
  .menuzord .menuzord-menu ul.dropdown {
    background: #ffffff !important;
    opacity: 1 !important;
    box-shadow: 0 18px 44px rgba(8, 18, 60, .24) !important;
  }
  .menuzord .menuzord-menu ul.dropdown li a {
    color: var(--mj-blue-dark) !important;
    background: #ffffff !important;
  }
  .menuzord .menuzord-menu ul.dropdown li:hover > a {
    color: #ffffff !important;
    background: var(--mj-blue-grad) !important;
  }
}

/* ---------- Buttons (iOS style) ---------- */
.btn,
.btn-theme-colored,
.btn-colored,
.btn-gray.btn-transparent,
.btn-border.btn-theme-colored,
.btn-theme-color-2 {
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1px;
  padding: 11px 26px !important;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease !important;
}
.btn-theme-colored,
.btn-colored {
  background: var(--mj-blue-grad) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(28, 58, 155, 0.35);
}
.btn-theme-colored:hover,
.btn-colored:hover {
  background: var(--mj-blue-grad-soft) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(28, 58, 155, 0.42) !important;
}
.btn-theme-colored:active,
.btn-colored:active { transform: translateY(0) scale(0.98); }
.btn-border.btn-theme-colored {
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--mj-blue) !important;
  border: 1.5px solid var(--mj-blue) !important;
}
.btn-border.btn-theme-colored:hover {
  background: var(--mj-blue-grad) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(28, 58, 155, 0.35) !important;
}
.btn-theme-color-2 {
  background: var(--mj-accent-grad) !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(228, 25, 55, 0.3);
}
.btn-theme-color-2:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(228, 25, 55, 0.38) !important;
}

/* ---------- Section titles: distinct, crisp ---------- */
.section-title .title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-title .title::after,
.line-bottom:after,
.line-bottom-center:after {
  height: 4px !important;
  width: 60px !important;
  border-radius: 4px;
  background: var(--mj-blue-grad) !important;
}
.section-title p { font-size: 16px; color: var(--mj-muted); }

/* ---------- Cards: Apple-style surfaces ---------- */
.icon-box,
.service-block,
.team-block,
.work-gallery,
.event,
.pricing,
.blog-posts .post,
.course-block,
.widget,
.testimonial .content,
.horizontal-contact-widget .each-widget {
  background: var(--mj-surface);
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius-lg);
  box-shadow: var(--mj-shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
}
.icon-box:hover,
.service-block:hover,
.team-block:hover,
.work-gallery:hover,
.event:hover,
.pricing:hover,
.blog-posts .post:hover,
.course-block:hover,
.widget:hover {
  transform: translateY(-6px);
  box-shadow: var(--mj-shadow-md);
}
.icon-box .icon {
  border-radius: 50%;
}
.icon-box.iconbox-theme-colored .icon {
  background: var(--mj-blue-grad-soft);
  color: #fff;
  box-shadow: 0 8px 24px rgba(28, 58, 155, 0.3);
}
.icon-box .icon i { line-height: 1; }

/* ---------- Forms (iOS) ---------- */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
  border-radius: 14px !important;
  border: 1.5px solid #d8deea !important;
  background: #fff;
  padding: 10px 16px;
  font-family: var(--mj-font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--mj-blue) !important;
  box-shadow: 0 0 0 4px rgba(28, 58, 155, 0.12) !important;
  outline: none;
}

/* ---------- Hero (Revolution slider) ---------- */
.rev_slider_wrapper { background: var(--mj-blue-dark); }
.rev_slider .rev-slidebg {
  filter: brightness(0.78) saturate(1.05);
  transform: scale(1.01);
}
.rev_slider { position: relative; }
.rev_slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(12, 20, 60, 0.70) 0%,
    rgba(12, 20, 60, 0.32) 48%,
    rgba(12, 20, 60, 0.04) 100%);
}
/* Hero typography: lightweight, airy, Apple-esque */
.rev_slider .tp-caption {
  font-family: var(--mj-font);
  text-shadow: 0 2px 30px rgba(8, 12, 40, 0.6);
}
.rev_slider .tp-caption.text-uppercase {
  letter-spacing: 0.04em;
  font-weight: 700;
}
.rev_slider .tp-caption.bg-theme-colored-transparent {
  background: linear-gradient(90deg, rgba(28, 58, 155, 0.88), rgba(24, 34, 122, 0.72));
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- Tabs / pagination / filters ---------- */
.nav-tabs > li > a {
  border-radius: 12px 12px 0 0 !important;
  font-weight: 600;
  color: var(--mj-blue-dark);
  border: none !important;
}
.nav-tabs > li.active > a {
  border-top: 3px solid var(--mj-blue) !important;
  background: #fff !important;
}
.portfolio-filter a {
  border-radius: 999px !important;
  padding: 8px 20px !important;
  font-weight: 600;
  border: none !important;
}
.portfolio-filter a.active {
  background: var(--mj-blue-grad) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(28, 58, 155, 0.3);
}
.pagination > li > a { border-radius: 10px !important; color: var(--mj-blue); }
.pagination > li.active > a {
  background: var(--mj-blue-grad) !important;
  border-color: transparent !important;
}

/* ---------- Footer: deep clean ---------- */
footer.footer {
  border-top: none;
  background: #0e1430 !important;
  position: relative;
}
footer.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--mj-blue-grad);
}
footer.footer .widget .title { color: #fff; font-weight: 700; }
footer.footer a { color: #b9c3e6; }
footer.footer a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.scrollToTop {
  background: var(--mj-blue-grad) !important;
  border-radius: 50%;
  box-shadow: var(--mj-shadow-md);
  width: 46px;
  height: 46px;
  line-height: 46px !important;
}
.scrollToTop:hover { transform: translateY(-4px); }

/* ---------- Misc ---------- */
.main-content, #wrapper { background: var(--mj-bg); }
blockquote { border-radius: 0 14px 14px 0; }
hr { border-color: var(--mj-line); }
.page-header { border-radius: 0 0 var(--mj-radius-lg) var(--mj-radius-lg); }

/* ============================================================
   HOME PAGE SECTION MODERNIZATION (Apple-sleek)
   ============================================================ */

/* ---------- Parallax banner ---------- */
section.divider.parallax {
  border-radius: 0;
}

/* ---------- Christ-Like Behaviours: elegant verse cards ---------- */
.mj-verse-row .card {
  border: none !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%) !important;
  border-radius: 24px;
  box-shadow: var(--mj-shadow-sm);
  padding: 10px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
}
.mj-verse-row .card:hover { transform: translateY(-6px); box-shadow: var(--mj-shadow-md); }
.mj-verse-row .card-img-top { display: none !important; }
.mj-verse-row .card-body {
  background: transparent !important;
  padding: 28px 24px !important;
}
/* white cards with blue/red alternating accents + quote chips */
.mj-verse-row > div:nth-child(odd) .card {
  background: #ffffff !important;
  --verse-accent: var(--mj-blue);
  --verse-grad: var(--mj-blue-grad);
  --verse-shadow: rgba(28, 58, 155, 0.45);
}
.mj-verse-row > div:nth-child(even) .card {
  background: #ffffff !important;
  --verse-accent: var(--mj-accent);
  --verse-grad: var(--mj-accent-grad);
  --verse-shadow: rgba(190, 18, 60, 0.48);
}
/* colored accent bar on top of the card */
.mj-verse-row .card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--verse-grad);
  z-index: 2;
}
.mj-verse-row .card-body h4 {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--mj-blue-dark);
  position: relative;
  padding-top: 64px;
}
/* colored icon chip behind the quote */
.mj-verse-row .card-body h4::before {
  content: "\275D";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: var(--verse-grad);
  border-radius: 16px;
  box-shadow: 0 10px 22px var(--verse-shadow), 0 4px 10px rgba(10, 14, 40, 0.18);
}
.mj-verse-row .card-body .d-flex { display: none !important; }
.mj-verse-row .card-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mj-muted);
  margin-top: 14px;
}

/* ---------- Extra-Curricula Activities: sleek class cards ---------- */
.mj-class-row .card {
  border: none !important;
  background: #ffffff !important;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--mj-shadow-sm);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
  position: relative;
}
.mj-class-row .card:hover { transform: translateY(-8px); box-shadow: var(--mj-shadow-md); }
.mj-class-row .card-img-top { display: none !important; }
/* gradient accent header in place of the missing image */
.mj-class-row .card::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--mj-blue-grad);
}
.mj-class-row .card-body { padding: 26px 24px 10px !important; }
.mj-class-row .card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--mj-blue-dark);
  letter-spacing: -0.01em;
}
.mj-class-row .card-text { font-size: 14.5px; line-height: 1.7; color: var(--mj-muted); }
.mj-class-row .card-footer { display: none !important; }
.mj-class-row .btn {
  display: block;
  width: max-content;
  margin: 6px auto 26px !important;
  font-size: 14px;
}

/* ---------- We Also Engage Kids: facility cards ---------- */
.mj-facility {
  border-radius: 20px !important;
  border-top: 4px solid var(--mj-blue) !important;
  background: #ffffff !important;
  box-shadow: var(--mj-shadow-sm);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
}
.mj-facility:hover { transform: translateY(-6px); box-shadow: var(--mj-shadow-md); }
.mj-facility i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  background: var(--mj-blue-grad);
  color: #fff !important;
  border-radius: 16px;
  font-size: 28px !important;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(28, 58, 155, 0.28);
  margin-bottom: 0;
}
.mj-facility h4 { color: var(--mj-blue-dark); font-weight: 700; font-size: 20px; }
.mj-facility p { font-size: 14px; line-height: 1.65; }

/* ---------- About section: modern cards ---------- */
.mj-about-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--mj-shadow-sm);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
}
.mj-about-card:hover { transform: translateY(-6px); box-shadow: var(--mj-shadow-md); }
.mj-about-card img { border-radius: 18px; }
.mj-about-card h4 { font-weight: 700; color: var(--mj-blue-dark); }
.mj-about-card p { font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .mj-verse-row .card-body h4 { font-size: 18px; }
  .mj-class-row .card::before { height: 6px; }
  .mj-facility { padding: 20px !important; }
  .mj-facility i { width: 54px; height: 54px; flex-basis: 54px; font-size: 24px !important; }
}

/* ---------- Christ-Like Behaviours: animations ---------- */
.mj-verse-row .card {
  overflow: hidden;
}
/* floating on hover */
.mj-verse-row .card:hover {
  animation: mj-float 3.2s ease-in-out infinite;
}
@keyframes mj-float {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(-13px); }
}
/* swaying quote mark on hover */
.mj-verse-row .card:hover .card-body h4::before {
  animation: mj-quote-sway 1.8s ease-in-out infinite;
}
@keyframes mj-quote-sway {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-3px); }
}
/* light sweep across the card on hover */
.mj-verse-row .card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.mj-verse-row .card:hover::after { left: 140%; }
/* soft breathing glow on the verse text */
.mj-verse-row .card-body h4 {
  transition: color 0.4s ease;
}
.mj-verse-row .card:hover .card-body h4 {
  color: var(--verse-accent);
  animation: mj-text-glow 2.4s ease-in-out infinite;
}
@keyframes mj-text-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(28, 58, 155, 0); }
  50% { text-shadow: 0 0 18px var(--verse-shadow); }
}

/* ---------- Home boxes below hero (Student Portal row) ---------- */
.mj-home-boxes [class*="bg-theme-colored"] {
  border-radius: 26px;
  box-shadow: var(--mj-shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
  margin: 6px;
}
/* solid dark blue / red backgrounds, alternating (no images) */
.mj-home-boxes > div:nth-child(odd) [class*="bg-theme-colored"] {
  background: linear-gradient(135deg, #1c3a9b 0%, #101a4d 100%) !important;
}
.mj-home-boxes > div:nth-child(even) [class*="bg-theme-colored"] {
  background: linear-gradient(135deg, #c2183f 0%, #6b0d24 100%) !important;
}
/* subtle top-left highlight for depth */
.mj-home-boxes [class*="bg-theme-colored"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}
.mj-home-boxes [class*="bg-theme-colored"]:hover {
  transform: translateY(-8px);
  box-shadow: var(--mj-shadow-lg);
}
.mj-home-boxes .text-center {
  padding: 46px 22px !important;
  position: relative;
  z-index: 1;
}
.mj-home-boxes i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25), 0 12px 30px rgba(8, 12, 40, 0.28);
  font-size: 34px !important;
  line-height: 1;
  margin-bottom: 8px;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.mj-home-boxes > div:nth-child(odd) [class*="bg-theme-colored"] i {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3), 0 12px 30px rgba(13, 20, 70, 0.4);
}
.mj-home-boxes > div:nth-child(even) [class*="bg-theme-colored"] i {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3), 0 12px 30px rgba(120, 10, 30, 0.4);
}
.mj-home-boxes [class*="bg-theme-colored"]:hover i {
  transform: scale(1.1) translateY(-2px);
}
.mj-home-boxes h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 18px !important;
}
.mj-home-boxes h4 a { color: #fff; text-decoration: none; }
.mj-home-boxes h4 a:hover { color: #ffe27a; }

@media (max-width: 991px) {
  .mj-home-boxes [class*="bg-theme-colored"] { margin: 8px 0; }
}
@media (max-width: 768px) {
  /* fixed attachment misbehaves on mobile */
  .mj-home-boxes [class*="bg-theme-colored"] { background-attachment: scroll; }
}

/* ---------- Parallax banners: guarantee visible text/buttons ---------- */
section.divider.parallax.layer-overlay {
  background-color: #101a4d !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
}
section.divider.parallax.layer-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 20, 70, 0.72) 0%, rgba(24, 34, 122, 0.55) 100%);
  z-index: 1;
}
section.divider.parallax.layer-overlay > .container {
  position: relative;
  z-index: 2;
}
section.divider.parallax.layer-overlay h2,
section.divider.parallax.layer-overlay p,
section.divider.parallax.layer-overlay a {
  position: relative;
  z-index: 2;
}

/* ---------- Strong shadows on all cards site-wide ---------- */
.card,
.icon-box,
.service-block,
.team-block,
.team-members,
.work-gallery,
.gallery-item,
.event,
.pricing,
.blog-posts .post,
.course-block,
.widget,
.testimonial .content,
.testimonial-wrapper,
.news,
.schedule-box,
.panel,
.accordion,
.feature-box,
.mj-verse-row .card,
.mj-class-row .card,
.mj-facility,
.mj-about-card,
.mj-home-boxes [class*="bg-theme-colored"],
.call-to-action,
.media-body .icon-box {
  box-shadow: var(--mj-shadow-md) !important;
}
/* even stronger on hover for interactive cards */
.icon-box:hover,
.service-block:hover,
.team-block:hover,
.team-members:hover,
.work-gallery:hover,
.gallery-item:hover,
.event:hover,
.pricing:hover,
.blog-posts .post:hover,
.course-block:hover,
.mj-verse-row .card:hover,
.mj-class-row .card:hover,
.mj-facility:hover,
.mj-about-card:hover,
.mj-home-boxes [class*="bg-theme-colored"]:hover {
  box-shadow: var(--mj-shadow-lg) !important;
}

/* ---------- Extra-Curricula cards: alternating blue/red accents + buttons ---------- */
.mj-class-row > div:nth-child(odd) .card { --class-grad: var(--mj-blue-grad); }
.mj-class-row > div:nth-child(even) .card { --class-grad: var(--mj-accent-grad); }
.mj-class-row .card::before { background: var(--class-grad, var(--mj-blue-grad)); }
.mj-class-row .btn {
  background: var(--class-grad, var(--mj-blue-grad)) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(16, 26, 77, 0.28) !important;
}
.mj-class-row .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 26, 77, 0.35) !important;
}

/* ---------- Facility cards (We Also Engage Kids): alternating blue/red ---------- */
.mj-facility-row > div:nth-child(odd) .mj-facility { --fac-grad: var(--mj-blue-grad); --fac-accent: var(--mj-blue); }
.mj-facility-row > div:nth-child(even) .mj-facility { --fac-grad: var(--mj-accent-grad); --fac-accent: var(--mj-accent); }
.mj-facility {
  border-top: 4px solid var(--fac-accent, var(--mj-blue)) !important;
}
.mj-facility i {
  background: var(--fac-grad, var(--mj-blue-grad)) !important;
}

/* ---------- Cap verse card content at 3 lines ---------- */
.mj-verse-row .card-body h4,
.mj-verse-row .card-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ---------- We Also Engage Kids: heading + responsive spacing ---------- */
.mj-engage-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--mj-blue-dark);
  letter-spacing: -0.02em;
  text-transform: none;
}
.mj-engage-sub {
  color: var(--mj-muted);
  font-size: 16px;
  margin-top: 6px;
}
/* space out the facility cards and keep equal heights */
.mj-facility-row > div {
  margin-bottom: 28px;
}
.mj-facility {
  height: calc(100% - 8px);
}
.mj-facility .pl-4 { padding-left: 20px !important; }
@media (max-width: 767px) {
  .mj-facility {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }
  .mj-facility .pl-4 { padding-left: 0 !important; margin-top: 14px; }
  .mj-facility h4 { margin-top: 0; }
}

/* ---------- Equal-height facility cards (same content cap) ---------- */
.mj-facility .pl-4 {
  flex: 1;
  min-width: 0;
}
.mj-facility p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

/* ---------- Christ-Like Behaviours: breathing room before the parallax ---------- */
.mj-christ-section {
  padding-bottom: 70px !important;
}
@media (max-width: 767px) {
  .mj-christ-section { padding-bottom: 48px !important; }
}

/* ---------- Extra-Curricula cards: equal text cap + equal heights ---------- */
.mj-class-row > div { display: flex; }
.mj-class-row .card {
  height: 100%;
  width: 100%;
}
.mj-class-row .card-title {
  min-height: 2.5em; /* room for two lines so titles align */
}
.mj-class-row .card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

/* ---------- Why Choose Us? — custom white cards ---------- */
#mission .icon-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: var(--mj-shadow-md);
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
}
#mission .icon-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--mj-shadow-lg);
}
#mission .icon-box .icon {
  background: var(--mj-blue-grad) !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  box-shadow: 0 10px 24px rgba(28, 58, 155, 0.3);
  float: none !important;
}
#mission .icon-box:nth-of-type(even) .icon {
  background: var(--mj-accent-grad) !important;
  box-shadow: 0 10px 24px rgba(190, 18, 60, 0.32);
}
#mission .icon-box .icon i {
  color: #fff !important;
  font-size: 26px !important;
  line-height: 1;
}
#mission .icon-box .ml-120,
#mission .icon-box .ml-sm-0 {
  margin-left: 0 !important;
  min-width: 0;
}
#mission .icon-box-title {
  color: var(--mj-blue-dark) !important;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0 !important;
}
#mission .icon-box p {
  color: var(--mj-muted) !important;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 6px 0 0 !important;
}
@media (max-width: 767px) {
  #mission .icon-box {
    padding: 16px;
    gap: 14px;
  }
  #mission .icon-box .icon { width: 54px; height: 54px; flex-basis: 54px; }
}

/* ---------- Mobile: vertically spaced, stacked cards ---------- */
@media (max-width: 767px) {
  .mj-verse-row > div,
  .mj-class-row > div,
  .mj-facility-row > div,
  .mj-home-boxes > div,
  .mj-about-card {
    margin-bottom: 22px;
  }
  .mj-verse-row > div:last-child,
  .mj-class-row > div:last-child,
  .mj-facility-row > div:last-child,
  .mj-home-boxes > div:last-child,
  .mj-about-card:last-child {
    margin-bottom: 0;
  }
  .mj-home-boxes [class*="bg-theme-colored"] { margin: 0 !important; }
  .card { margin-bottom: 16px; }
  .row > [class*="col-"] .icon-box,
  .row > [class*="col-"] .service-block,
  .row > [class*="col-"] .team-block,
  .row > [class*="col-"] .work-gallery {
    margin-bottom: 18px;
  }
  #mission .icon-box { margin-bottom: 16px; }
}

/* ---------- Top bar: plain text contact/portal info on blue ---------- */
.header-top .widget,
.header-top .widget ul,
.header-top .widget li {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.header-top .widget li {
  padding: 0 12px !important;
}
.header-top .widget li a {
  background: transparent !important;
}
.header-top .list-inline li {
  border: none !important;
}
.mj-top-sep {
  opacity: 0.55;
  padding: 0 2px !important;
}

/* ---------- Scroll-reveal animations (all cards & sections) ---------- */
.mj-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0, 0, 1);
}
.mj-reveal.mj-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .mj-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Why Choose Us: responsive + well-spaced ---------- */
#mission .pl-90,
#mission .pr-160,
#mission [class*="pl-90"],
#mission [class*="pr-160"] {
  padding-left: 28px !important;
  padding-right: 28px !important;
}
#mission > .container-fluid,
#mission {
  padding-top: 30px;
  padding-bottom: 30px;
}
#mission .icon-box {
  gap: 18px;
  margin-bottom: 16px;
}
#mission .icon-box:last-child { margin-bottom: 0; }

@media (min-width: 1200px) {
  #mission [class*="pl-90"],
  #mission [class*="pr-160"] {
    padding-left: 60px !important;
    padding-right: 60px !important;
  }
}

/* ---------- Preloader safety timeout ---------- */
@keyframes mj-preloader-timeout {
  0%, 78% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
#preloader {
  animation: mj-preloader-timeout 3s ease forwards;
}
@media (max-width: 767px) {
  #mission .pl-90, #mission .pr-160,
  #mission [class*="pl-90"], #mission [class*="pr-160"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
    padding-top: 22px !important;
    padding-bottom: 22px !important;
  }
  #mission .icon-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px;
    margin-bottom: 14px;
  }
  #mission .icon-box .icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
  #mission .icon-box:last-child { margin-bottom: 0; }
  #mission { padding-top: 20px; padding-bottom: 20px; }
}

/* ---------- Header: responsive on mobile ---------- */
@media (max-width: 991px) {
  .header-top .widget li { font-size: 12.5px; padding: 0 9px !important; }
  .menuzord-brand img { max-height: 46px; }
}
@media (max-width: 767px) {
  .header-top { text-align: center; }
  .header-top .col-md-8,
  .header-top .col-md-4 { width: 100% !important; padding: 0 10px; }
  .header-top .widget { margin: 0 !important; }
  .header-top .list-inline {
    margin: 0;
    display: block;
  }
  .header-top .list-inline > li {
    display: inline-block;
    float: none;
    padding: 0 7px !important;
    font-size: 12px;
    line-height: 30px;
  }
  .header-top .col-md-4 .widget ul.list-inline { text-align: center !important; }
  .mj-top-sep { display: none; }
  .menuzord-brand img { max-height: 38px; }
  .header-nav-wrapper { padding: 6px 0; }
}
@media (max-width: 480px) {
  .mj-top-hours { display: none !important; }
  .header-top .list-inline > li { font-size: 11px; padding: 0 5px !important; }
  .menuzord-brand img { max-height: 32px; }
  .header-top .widget li a { font-size: 11px; }
}

/* ---------- Why Choose Us: harden card layout ---------- */
#mission .icon-box {
  min-height: 0;
  height: auto;
  align-items: center;
}
#mission .icon-box .ml-120 {
  flex: 1;
  min-width: 0;
}
#mission .icon-box .icon {
  flex-shrink: 0;
}
#mission .icon-box p {
  margin: 6px 0 0 !important;
  overflow-wrap: break-word;
}

/* ---------- Mobile menu: modern hamburger + dropdown ---------- */
.menuzord .showhide {
  position: relative;
  width: 46px;
  height: 40px;
  padding: 0;
  margin: 6px 10px 0 0;
  border-radius: 12px;
  background: var(--mj-blue-grad);
  box-shadow: 0 8px 20px rgba(28, 58, 155, 0.32);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  z-index: 20;
}
.menuzord .showhide em {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2.5px;
  margin: 0;
  background: #fff;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: top 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.menuzord .showhide em:nth-child(1) { top: calc(50% - 7px); }
.menuzord .showhide em:nth-child(2) { top: 50%; }
.menuzord .showhide em:nth-child(3) { top: calc(50% + 7px); }
/* open state → X */
.menuzord.mj-open .showhide em:nth-child(1) { top: 50%; transform: translate(-50%, -50%) rotate(45deg); }
.menuzord.mj-open .showhide em:nth-child(2) { opacity: 0; }
.menuzord.mj-open .showhide em:nth-child(3) { top: 50%; transform: translate(-50%, -50%) rotate(-45deg); }
.menuzord.mj-open .showhide {
  background: var(--mj-accent-grad);
  box-shadow: 0 8px 20px rgba(190, 18, 60, 0.32);
}

@media (max-width: 900px) {
  .menuzord .showhide { display: block !important; }
  .menuzord-responsive .menuzord-menu {
    background: #ffffff;
    border-top: 4px solid var(--mj-blue);
    border-radius: 0 0 20px 20px;
    box-shadow: var(--mj-shadow-lg);
    padding: 10px 12px 14px;
    margin: 0;
  }
  .menuzord-responsive .menuzord-menu > li > a {
    padding: 13px 18px;
    border-bottom: 1px solid var(--mj-line) !important;
    color: var(--mj-blue-dark) !important;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    width: auto;
  }
  .menuzord-responsive .menuzord-menu > li:first-child > a { border-top: none !important; }
  .menuzord-responsive .menuzord-menu > li > a:hover,
  .menuzord-responsive .menuzord-menu > li.active > a {
    background: rgba(28, 58, 155, 0.06) !important;
    color: var(--mj-blue) !important;
  }
  .menuzord-responsive .menuzord-menu ul.dropdown {
    background: #f6f8ff;
    border-radius: 14px;
    margin: 4px 0 6px 14px;
    width: auto;
    border: none;
  }
  .menuzord-responsive .menuzord-menu ul.dropdown li a {
    padding: 11px 18px;
    border-bottom: 1px solid rgba(28, 58, 155, 0.08);
    color: var(--mj-blue-dark);
    border-radius: 8px;
    font-size: 14px;
  }
  .menuzord-responsive .menuzord-menu ul.dropdown li:hover > a {
    background: rgba(28, 58, 155, 0.08) !important;
    color: var(--mj-blue) !important;
  }
  .menuzord-responsive .menuzord-menu li .indicator {
    width: 42px;
    height: 46px;
    line-height: 46px;
    color: var(--mj-blue);
    border-left: 1px solid var(--mj-line) !important;
  }
}

/* ---------- Home boxes: 2x2 grid on mobile ---------- */
@media (max-width: 767px) {
  .mj-home-boxes > div {
    width: 50% !important;
    float: left;
    padding: 5px;
    margin-bottom: 0 !important;
  }
  .mj-home-boxes {
    margin-left: -5px !important;
    margin-right: -5px !important;
  }
  .mj-home-boxes [class*="bg-theme-colored"] {
    margin: 0 !important;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px !important;
  }
  .mj-home-boxes .text-center {
    padding: 16px 8px !important;
  }
  .mj-home-boxes i {
    width: 42px !important;
    height: 42px !important;
    font-size: 19px !important;
    border-radius: 12px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 8px 18px rgba(8,12,40,0.28) !important;
  }
  .mj-home-boxes h4 {
    font-size: 12px !important;
    letter-spacing: 0 !important;
    margin-top: 10px !important;
    line-height: 1.25 !important;
  }
  .mj-home-boxes h4 a { font-size: 12px !important; }
}
@media (max-width: 380px) {
  .mj-home-boxes [class*="bg-theme-colored"] { min-height: 128px; }
  .mj-home-boxes i { width: 36px !important; height: 36px !important; font-size: 16px !important; }
  .mj-home-boxes h4 a { font-size: 11px !important; }
}

@media (max-width: 900px) {
/* ---------- Mobile drawer: no underline, blue chevron always ---------- */
.menuzord-responsive .menuzord-menu > li > a::after {
  display: none !important;
}
.menuzord-responsive .menuzord-menu li .indicator,
.menuzord-responsive .menuzord-menu li ul.dropdown li .indicator {
  color: var(--mj-blue) !important;
}
.menuzord-responsive .menuzord-menu li.menuzord-active > a .indicator,
.menuzord-responsive .menuzord-menu li:hover > a .indicator,
.menuzord-responsive .menuzord-menu li.active > a .indicator {
  color: var(--mj-blue) !important;
}

/* ---------- Mobile drawer: plain text items (no cards/boxes) ---------- */
.menuzord-responsive .menuzord-menu > li > a {
  border-radius: 0 !important;
  background: transparent !important;
  padding: 12px 16px !important;
  font-weight: 600;
  color: var(--mj-blue-dark) !important;
  border-bottom: 1px solid var(--mj-line) !important;
}
.menuzord-responsive .menuzord-menu > li > a:hover,
.menuzord-responsive .menuzord-menu > li.active > a {
  background: transparent !important;
  color: var(--mj-blue) !important;
}
.menuzord-responsive .menuzord-menu ul.dropdown {
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 0 0 14px !important;
  width: auto !important;
}
.menuzord-responsive .menuzord-menu ul.dropdown li a {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid rgba(28, 58, 155, 0.08) !important;
  color: var(--mj-blue-dark) !important;
}
.menuzord-responsive .menuzord-menu ul.dropdown li:hover > a {
  background: transparent !important;
  color: var(--mj-blue) !important;
}
}

/* ---------- Desktop dropdown final guard ---------- */
@media (min-width: 901px) {
  .menuzord-responsive .menuzord-menu ul.dropdown,
  .menuzord .menuzord-menu ul.dropdown {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 34px rgba(8, 18, 60, .20) !important;
    opacity: 1 !important;
    overflow: hidden !important;
    padding: 6px !important;
  }
  .menuzord-responsive .menuzord-menu ul.dropdown li,
  .menuzord .menuzord-menu ul.dropdown li {
    background-color: #ffffff !important;
  }
  .menuzord-responsive .menuzord-menu ul.dropdown li a,
  .menuzord .menuzord-menu ul.dropdown li a {
    background-color: #ffffff !important;
    border-radius: 6px !important;
    color: var(--mj-blue-dark) !important;
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    padding: 9px 14px !important;
    white-space: nowrap !important;
  }
  .menuzord-responsive .menuzord-menu ul.dropdown li:hover > a,
  .menuzord .menuzord-menu ul.dropdown li:hover > a {
    background: var(--mj-blue-grad) !important;
    color: #ffffff !important;
  }
}

/* ---------- Hero portal row: controlled desktop transition ---------- */
@media (min-width: 992px) {
  .main-content > section:has(.mj-home-boxes) {
    background: #f5f7fb !important;
    overflow: visible !important;
  }
  .main-content > section:has(.mj-home-boxes) > .container {
    padding-bottom: 24px !important;
  }
  .mj-home-boxes {
    margin-top: -64px !important;
    position: relative;
    z-index: 20;
  }
  .mj-home-boxes [class*="bg-theme-colored"] {
    border-radius: 18px !important;
    margin: 8px !important;
    min-height: 158px;
  }
  .mj-home-boxes .text-center {
    padding: 34px 18px 28px !important;
  }
  .mj-home-boxes i {
    width: 62px !important;
    height: 62px !important;
    font-size: 26px !important;
    margin-bottom: 4px !important;
  }
  .mj-home-boxes h4 {
    font-size: 14px !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    margin-top: 14px !important;
  }
}

/* ---------- Management page ---------- */
#teachers .mj-management-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}
#teachers .mj-management-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(28, 58, 155, 0.10);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(12, 24, 70, 0.12);
  min-height: 230px;
  padding: 30px 24px;
  position: relative;
}
#teachers .mj-management-card::before {
  background: var(--mj-blue-grad);
  border-radius: 18px 18px 0 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}
#teachers .mj-management-card:nth-child(even)::before {
  background: var(--mj-accent-grad);
}
#teachers .mj-management-icon {
  align-items: center;
  background: var(--mj-blue-grad);
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(28, 58, 155, .24);
  color: #fff;
  display: inline-flex;
  font-size: 24px;
  height: 58px;
  justify-content: center;
  margin-bottom: 20px;
  width: 58px;
}
#teachers .mj-management-card:nth-child(even) .mj-management-icon {
  background: var(--mj-accent-grad);
}
#teachers .mj-management-card h3 {
  color: var(--mj-blue-dark);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
}
#teachers .mj-management-card p {
  color: #596274;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
#teachers .mj-management-note {
  align-items: center;
  background:
    radial-gradient(circle at 8% 10%, rgba(228, 25, 55, 0.14), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eef3ff 100%);
  border: 1px solid rgba(28, 58, 155, 0.10);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(12, 24, 70, 0.13);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-top: 28px;
  padding: 30px 34px;
}
#teachers .mj-management-kicker {
  color: var(--mj-accent);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
#teachers .mj-management-note h3 {
  color: var(--mj-blue-dark);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
}
#teachers .mj-management-note p {
  color: #596274;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  max-width: 760px;
}
#teachers .mj-management-btn {
  align-items: center;
  background: var(--mj-accent-grad) !important;
  border: 0 !important;
  color: #fff !important;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  min-height: 50px;
  min-width: 190px;
}
@media (max-width: 991px) {
  #teachers .mj-management-grid {
    grid-template-columns: 1fr;
  }
  #teachers .mj-management-note {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 767px) {
  #teachers .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  #teachers .mj-management-grid {
    gap: 16px;
  }
  #teachers .mj-management-card {
    min-height: 0;
    padding: 24px 20px;
  }
  #teachers .mj-management-card h3 {
    font-size: 20px;
  }
  #teachers .mj-management-note {
    border-radius: 18px;
    margin-top: 20px;
    padding: 24px 20px;
  }
  #teachers .mj-management-btn {
    width: 100%;
  }
}

/* ---------- Strategic goals and achievements pages ---------- */
.mj-page-kicker {
  color: var(--mj-accent);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.mj-strategy-page,
.mj-achievements-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(228, 25, 55, 0.08), transparent 30%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  padding: 72px 0;
}
.mj-goal-grid,
.mj-achievement-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mj-goal-card,
.mj-achievement-card,
.mj-download-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(28, 58, 155, 0.10);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(12, 24, 70, 0.12);
  min-height: 230px;
  padding: 28px 24px;
  position: relative;
}
.mj-goal-card::before,
.mj-achievement-card::before {
  background: var(--mj-blue-grad);
  border-radius: 18px 18px 0 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}
.mj-goal-card:nth-child(even)::before,
.mj-achievement-card:nth-child(even)::before {
  background: var(--mj-accent-grad);
}
.mj-goal-icon {
  align-items: center;
  background: var(--mj-blue-grad);
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(28, 58, 155, .24);
  color: #fff;
  display: inline-flex;
  font-size: 23px;
  height: 56px;
  justify-content: center;
  margin-bottom: 18px;
  width: 56px;
}
.mj-goal-card:nth-child(even) .mj-goal-icon {
  background: var(--mj-accent-grad);
}
.mj-goal-card h3,
.mj-achievement-card h3,
.mj-achievement-copy h2,
.mj-achievement-panel h3,
.mj-download-card h4 {
  color: var(--mj-blue-dark);
  letter-spacing: 0;
}
.mj-goal-card h3,
.mj-achievement-card h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px;
}
.mj-goal-card p,
.mj-achievement-card p,
.mj-achievement-copy p,
.mj-achievement-panel p,
.mj-download-card p {
  color: #596274;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
.mj-achievement-hero {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(28, 58, 155, 0.10);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(12, 24, 70, 0.14);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  margin-bottom: 26px;
  overflow: hidden;
}
.mj-achievement-media img {
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  width: 100%;
}
.mj-achievement-copy {
  align-self: center;
  padding: 44px 42px;
}
.mj-achievement-copy h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 16px;
}
.mj-achievement-card span {
  color: rgba(28, 58, 155, 0.18);
  display: block;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
}
.mj-achievement-panel {
  align-items: stretch;
  background:
    radial-gradient(circle at 8% 10%, rgba(228, 25, 55, 0.13), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eef3ff 100%);
  border: 1px solid rgba(28, 58, 155, 0.10);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(12, 24, 70, 0.13);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin-top: 28px;
  padding: 34px;
}
.mj-achievement-panel h3 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  margin: 0 0 18px;
}
.mj-subject-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.mj-subject-list li {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 58, 155, 0.10);
  border-radius: 999px;
  color: var(--mj-blue-dark);
  font-size: 14px;
  font-weight: 650;
  padding: 9px 14px;
}
.mj-download-card {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.mj-download-card i {
  align-items: center;
  background: var(--mj-accent-grad);
  border-radius: 15px;
  color: #fff;
  display: inline-flex;
  font-size: 28px;
  height: 58px;
  justify-content: center;
  margin-bottom: 18px;
  width: 58px;
}
.mj-download-card h4 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}
.mj-achievement-btn {
  align-items: center;
  background: var(--mj-blue-grad) !important;
  border: 0 !important;
  color: #fff !important;
  display: inline-flex;
  justify-content: center;
  margin-top: 18px;
  min-height: 46px;
  min-width: 150px;
}
@media (max-width: 991px) {
  .mj-goal-grid,
  .mj-achievement-grid,
  .mj-achievement-hero,
  .mj-achievement-panel {
    grid-template-columns: 1fr;
  }
  .mj-achievement-media img {
    min-height: 260px;
  }
  .mj-subject-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .mj-strategy-page,
  .mj-achievements-page {
    padding: 52px 0;
  }
  .mj-goal-grid,
  .mj-achievement-grid {
    gap: 16px;
  }
  .mj-goal-card,
  .mj-achievement-card,
  .mj-download-card {
    min-height: 0;
    padding: 24px 20px;
  }
  .mj-achievement-copy,
  .mj-achievement-panel {
    padding: 24px 20px;
  }
  .mj-achievement-hero,
  .mj-achievement-panel {
    border-radius: 18px;
  }
  .mj-achievement-media img {
    min-height: 210px;
  }
  .mj-subject-list {
    grid-template-columns: 1fr;
  }
  .mj-achievement-btn {
    width: 100%;
  }
}

/* ---------- Academics page ---------- */
.mj-academics-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(228, 25, 55, 0.08), transparent 30%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  padding: 72px 0;
}
.mj-academics-hero {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(28, 58, 155, 0.10);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(12, 24, 70, 0.14);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  margin-bottom: 26px;
  overflow: hidden;
}
.mj-academics-media img {
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  width: 100%;
}
.mj-academics-copy {
  align-self: center;
  padding: 44px 42px;
}
.mj-academics-copy h2,
.mj-development-panel h3 {
  color: var(--mj-blue-dark);
  font-weight: 800;
  letter-spacing: 0;
}
.mj-academics-copy h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.06;
  margin: 0 0 16px;
}
.mj-academics-copy p,
.mj-academic-card p,
.mj-development-panel p {
  color: #596274;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
.mj-academic-levels {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mj-academic-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(28, 58, 155, 0.10);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(12, 24, 70, 0.12);
  min-height: 230px;
  padding: 28px 22px;
  position: relative;
}
.mj-academic-card::before {
  background: var(--mj-blue-grad);
  border-radius: 18px 18px 0 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}
.mj-academic-card:nth-child(even)::before {
  background: var(--mj-accent-grad);
}
.mj-academic-icon {
  align-items: center;
  background: var(--mj-blue-grad);
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(28, 58, 155, .24);
  color: #fff;
  display: inline-flex;
  font-size: 23px;
  height: 56px;
  justify-content: center;
  margin-bottom: 18px;
  width: 56px;
}
.mj-academic-card:nth-child(even) .mj-academic-icon {
  background: var(--mj-accent-grad);
}
.mj-academic-card h3 {
  color: var(--mj-blue-dark);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 10px;
}
.mj-development-panel {
  background:
    radial-gradient(circle at 8% 10%, rgba(228, 25, 55, 0.13), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eef3ff 100%);
  border: 1px solid rgba(28, 58, 155, 0.10);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(12, 24, 70, 0.13);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  margin-top: 28px;
  padding: 34px;
}
.mj-development-panel h3 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.16;
  margin: 0 0 12px;
}
.mj-development-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.mj-development-list li {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 58, 155, 0.10);
  border-radius: 999px;
  color: var(--mj-blue-dark);
  display: flex;
  font-size: 14px;
  font-weight: 650;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
}
.mj-development-list i {
  color: var(--mj-accent);
}
@media (max-width: 991px) {
  .mj-academics-hero,
  .mj-development-panel {
    grid-template-columns: 1fr;
  }
  .mj-academic-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mj-academics-media img {
    min-height: 260px;
  }
}
@media (max-width: 767px) {
  .mj-academics-page {
    padding: 52px 0;
  }
  .mj-academics-hero,
  .mj-development-panel {
    border-radius: 18px;
  }
  .mj-academics-copy,
  .mj-development-panel {
    padding: 24px 20px;
  }
  .mj-academics-media img {
    min-height: 210px;
  }
  .mj-academic-levels,
  .mj-development-list {
    grid-template-columns: 1fr;
  }
  .mj-academic-levels {
    gap: 16px;
  }
  .mj-academic-card {
    min-height: 0;
    padding: 24px 20px;
  }
  .mj-development-list li {
    border-radius: 14px;
  }
}

/* ---------- Gallery and contact pages ---------- */
.mj-gallery-page,
.mj-contact-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(228, 25, 55, 0.08), transparent 30%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  padding: 72px 0;
}
.mj-gallery-filter {
  margin-bottom: 28px !important;
  text-align: center;
}
.mj-gallery-filter a {
  background: #ffffff !important;
  border: 1px solid rgba(28, 58, 155, 0.12) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 22px rgba(12, 24, 70, 0.10);
  color: var(--mj-blue-dark) !important;
  display: inline-flex;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 24px !important;
}
.mj-gallery-filter a.active,
.mj-gallery-filter a:hover {
  background: var(--mj-blue-grad) !important;
  color: #ffffff !important;
}
.mj-gallery-grid {
  margin-left: -14px;
  margin-right: -14px;
}
.mj-gallery-card {
  padding: 14px !important;
}
.mj-gallery-card .thumb {
  background: #ffffff;
  border: 1px solid rgba(28, 58, 155, 0.10);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(12, 24, 70, 0.12);
  overflow: hidden;
}
.mj-gallery-card .thumb > img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.mj-gallery-card .text-holder .title {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  padding: 0 14px;
}
.mj-gallery-card .overlay-shade {
  background: rgba(8, 16, 54, 0.48) !important;
}
.mj-contact-layout {
  align-items: stretch;
  display: flex;
}
.mj-contact-card,
.mj-contact-form-card {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(28, 58, 155, 0.10) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 38px rgba(12, 24, 70, 0.12) !important;
}
.mj-contact-card {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  min-height: 132px;
}
.mj-contact-card .media-left {
  align-items: center;
  background: var(--mj-blue-grad);
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(28, 58, 155, .24);
  display: inline-flex;
  flex: 0 0 56px;
  height: 56px;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  width: 56px;
}
.mj-contact-card .media-left i {
  color: #ffffff !important;
  font-size: 28px;
}
.mj-contact-card strong {
  color: var(--mj-blue-dark);
  display: block;
  font-size: 14px;
  letter-spacing: .02em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.mj-contact-card p {
  color: #596274;
  line-height: 1.65;
  margin: 0;
  overflow-wrap: anywhere;
}
.mj-contact-form-card {
  padding: 34px;
}
.mj-contact-form-card h3 {
  color: var(--mj-blue-dark);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: 0;
}
.mj-contact-form-card p {
  color: #596274;
  line-height: 1.75;
}
.mj-contact-form-card .form-control {
  background: #ffffff !important;
  border: 1px solid rgba(28, 58, 155, 0.13) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: var(--mj-blue-dark);
  min-height: 48px;
  padding: 12px 14px !important;
}
.mj-contact-form-card textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
.mj-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.mj-contact-actions .btn {
  min-height: 48px;
}
.mj-map-section {
  background: #eef3ff;
  padding: 0 0 60px;
}
.mj-map-wrap {
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(12, 24, 70, 0.16);
  margin: 0 auto;
  max-width: 1140px;
  overflow: hidden;
}
.mj-map-wrap iframe {
  border: 0;
  display: block;
  height: 430px;
  width: 100%;
}
@media (max-width: 991px) {
  .mj-contact-layout {
    display: block;
  }
  .mj-contact-form-card {
    margin-top: 8px;
  }
}
@media (max-width: 767px) {
  .mj-gallery-page,
  .mj-contact-page {
    padding: 52px 0;
  }
  .mj-gallery-grid {
    margin-left: 0;
    margin-right: 0;
  }
  .mj-gallery-card {
    padding: 12px 0 !important;
  }
  .mj-contact-page .container,
  .mj-map-section .container-fluid {
    padding-left: 18px;
    padding-right: 18px;
  }
  .mj-contact-card {
    min-height: 0;
    padding: 22px !important;
  }
  .mj-contact-form-card {
    padding: 24px 20px;
  }
  .mj-contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .mj-contact-actions .btn {
    width: 100%;
  }
  .mj-map-section {
    padding-bottom: 44px;
  }
  .mj-map-wrap {
    border-radius: 18px;
  }
  .mj-map-wrap iframe {
    height: 330px;
  }
}

/* ---------- Home boxes: smaller mobile font ---------- */
@media (max-width: 767px) {
  .mj-home-boxes h4,
  .mj-home-boxes h4 a { font-size: 11px !important; }
}
@media (max-width: 380px) {
  .mj-home-boxes h4,
  .mj-home-boxes h4 a { font-size: 10px !important; }
}

/* ---------- Why Choose Us: more vertical space between cards ---------- */
#mission .icon-box {
  margin-bottom: 26px !important;
}
#mission .icon-box:last-child {
  margin-bottom: 0 !important;
}
#mission .title {
  margin-bottom: 34px !important;
}
@media (max-width: 767px) {
  #mission .icon-box { margin-bottom: 20px !important; }
  #mission .icon-box:last-child { margin-bottom: 0 !important; }
}

/* ---------- Global mobile overflow fix ---------- */
html,
body {
  overflow-x: hidden;
}
@media (max-width: 767px) {
  .rev_slider .tp-caption {
    white-space: normal !important;
  }
}

/* ---------- Why Choose Us: center icons vertically ---------- */
#mission .icon-box {
  align-items: center !important;
}
#mission .icon-box .icon {
  margin: 0 !important;
  align-self: center !important;
  line-height: 1 !important;
  top: auto !important;
  position: static !important;
}

/* ---------- Christ-like: verse text colored directly (no quote chip) ---------- */
.mj-verse-row .card-body h4 {
  padding-top: 0 !important;
  color: var(--verse-accent) !important;
}
.mj-verse-row .card-body h4::before {
  display: none !important;
}

/* ---------- Mobile: center the logo ---------- */
@media (max-width: 900px) {
  .menuzord-responsive .menuzord-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 5;
    float: none;
  }
  .menuzord-responsive .menuzord-brand img {
    max-height: 34px;
    display: block;
  }
  .menuzord-responsive .menuzord-brand p { display: none; }
}
@media (max-width: 380px) {
  .menuzord-responsive .menuzord-brand img { max-height: 28px; }
}

/* ---------- Mobile header: left-align the logo ---------- */
@media (max-width: 900px) {
  .menuzord-responsive {
    position: relative !important;
  }
  .menuzord-responsive .menuzord-brand {
    position: absolute !important;
    top: 50% !important;
    left: 16px !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
  }
  .menuzord-responsive .menuzord-menu {
    z-index: 1000 !important;
    margin-top: 18px !important;
  }
}

/* ---------- Footer contact text: readable mobile email row ---------- */
@media (max-width: 767px) {
  #home,
  #home .rev_slider_wrapper,
  #home .rev_slider {
    margin: 0 !important;
    padding: 0 !important;
  }
  .mj-home-boxes {
    display: flex !important;
    flex-wrap: wrap;
    align-content: flex-start;
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
  }
  .mj-home-boxes > div {
    display: flex;
    float: none !important;
    flex: 0 0 50%;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box;
  }
  .mj-home-boxes > div > div {
    width: 100%;
    height: auto !important;
  }
  .mj-home-boxes > div.wow {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
  }
  footer.footer .mj-contact-list li a {
    font-size: 14px !important;
    line-height: 1.45 !important;
    overflow-wrap: break-word;
    word-break: normal;
  }
  footer.footer .newsletter-form .input-group {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    padding: 4px !important;
  }
  footer.footer .newsletter-form .mj-newsletter-icon {
    flex: 0 0 34px;
    width: 34px;
    padding: 0 !important;
    justify-content: center;
  }
  footer.footer .newsletter-form .form-control {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    font-size: 14px !important;
    padding: 0 6px !important;
  }
  footer.footer .newsletter-form .input-group-btn {
    flex: 0 0 48px !important;
    width: 48px;
    min-width: 48px !important;
  }
  footer.footer .newsletter-form .input-group-btn .btn {
    width: 48px !important;
    max-width: 48px;
  }
  footer.footer .newsletter-form .input-group {
    min-height: 56px !important;
    height: 56px;
    border-radius: 16px !important;
  }
  footer.footer .newsletter-form .mj-newsletter-icon {
    flex: 0 0 40px;
    width: 40px;
    font-size: 18px;
  }
  footer.footer .newsletter-form .form-control {
    height: 48px !important;
    font-size: 15px !important;
    line-height: 48px !important;
  }
  footer.footer .newsletter-form .input-group-btn,
  footer.footer .newsletter-form .input-group-btn .btn {
    height: 48px !important;
  }
}

/* ---------- Open mobile drawer: keep the logo out of menu rows ---------- */
@media (max-width: 767px) {
  .menuzord-responsive.mj-open .menuzord-brand {
    display: none !important;
  }
  .menuzord-responsive.mj-open .menuzord-menu {
    margin-top: 18px !important;
  }
  .menuzord-responsive:has(.menuzord-menu[style*="display: block"]) .menuzord-brand {
    display: none !important;
  }
}

/* ============================================================
   INNER PAGES — unified modern layout
   ============================================================ */

/* Page title banner */
.main-content.bg-lighter .inner-header {
  min-height: 228px;
  margin: 0;
  background-color: var(--mj-blue-dark) !important;
  background-position: center !important;
  background-size: cover !important;
  overflow: hidden;
}
.main-content.bg-lighter .inner-header::before {
  background: linear-gradient(115deg, rgba(13, 22, 71, .94), rgba(28, 58, 155, .58)) !important;
}
.main-content.bg-lighter .inner-header .container {
  position: relative;
  z-index: 2;
  padding-top: 72px !important;
  padding-bottom: 30px !important;
}
.main-content.bg-lighter .inner-header .title {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(30px, 5vw, 54px) !important;
  font-weight: 800 !important;
  letter-spacing: -.04em;
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.main-content.bg-lighter .inner-header .breadcrumb {
  display: inline-flex;
  gap: 8px;
  margin: 18px 0 0 !important;
  padding: 7px 14px !important;
  border-radius: 999px;
  background: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.86) !important;
}
.main-content.bg-lighter .inner-header .breadcrumb a,
.main-content.bg-lighter .inner-header .breadcrumb li.active {
  color: #fff !important;
}

/* Inner page sections and readable content width */
.main-content.bg-lighter > section:not(.inner-header) {
  padding-top: 62px;
  padding-bottom: 62px;
  background: var(--mj-bg);
}
.main-content.bg-lighter > section:nth-of-type(odd):not(.inner-header) {
  background: #fff;
}
.main-content.bg-lighter > section > .container {
  position: relative;
  z-index: 1;
}
.main-content.bg-lighter .section-content > .row,
.main-content.bg-lighter > section > .row {
  margin-left: -12px;
  margin-right: -12px;
}
.main-content.bg-lighter .section-content > .row > [class*="col-"],
.main-content.bg-lighter > section > .row > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
}
.main-content.bg-lighter h3:not(.media-heading),
.main-content.bg-lighter h2:not(.title) {
  margin-top: 0;
  color: var(--mj-blue-dark);
}
.main-content.bg-lighter p {
  max-width: 78ch;
  color: #586275;
  line-height: 1.8;
}

/* Images and media blocks */
.main-content.bg-lighter img.img-responsive,
.main-content.bg-lighter .thumb img,
.main-content.bg-lighter .gallery-item img,
.main-content.bg-lighter .work-gallery img {
  width: 100%;
  max-width: 100%;
  border-radius: var(--mj-radius);
  object-fit: cover;
}
.main-content.bg-lighter .class-item1,
.main-content.bg-lighter .work-gallery,
.main-content.bg-lighter .gallery-item,
.main-content.bg-lighter .team-block {
  overflow: hidden;
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius-lg);
  background: #fff;
  box-shadow: var(--mj-shadow-sm);
}
.main-content.bg-lighter .class-item1 img,
.main-content.bg-lighter .work-gallery img,
.main-content.bg-lighter .gallery-item img {
  min-height: 190px;
  transition: transform .45s ease, filter .45s ease;
}
.main-content.bg-lighter .class-item1:hover img,
.main-content.bg-lighter .work-gallery:hover img,
.main-content.bg-lighter .gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

/* Cards, contact tiles, lists, and data tables */
.main-content.bg-lighter .icon-box.left.media,
.main-content.bg-lighter .list-group,
.main-content.bg-lighter .card,
.main-content.bg-lighter .pricing,
.main-content.bg-lighter .team-block,
.main-content.bg-lighter .blog-posts .post {
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius);
  background: rgba(255,255,255,.94) !important;
  box-shadow: var(--mj-shadow-sm);
}
.main-content.bg-lighter .icon-box.left.media {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px !important;
  margin-bottom: 16px !important;
}
.main-content.bg-lighter .icon-box.left.media .media-left {
  float: none;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--mj-blue-grad);
}
.main-content.bg-lighter .icon-box.left.media .media-left i {
  color: #fff !important;
  font-size: 22px;
}
.main-content.bg-lighter .icon-box.left.media .media-body { min-width: 0; }
.main-content.bg-lighter .icon-box.left.media strong {
  display: block;
  margin-bottom: 5px;
  color: var(--mj-blue-dark);
  font-size: 13px;
  letter-spacing: .04em;
}
.main-content.bg-lighter .icon-box.left.media p { margin: 0; font-size: 14px; }
.main-content.bg-lighter .list-group {
  overflow: hidden;
  margin: 22px 0;
}
.main-content.bg-lighter .list-group-item {
  border: 0 !important;
  border-bottom: 1px solid var(--mj-line) !important;
  padding: 15px 18px;
  color: var(--mj-blue-dark);
  background: transparent !important;
  font-weight: 600;
}
.main-content.bg-lighter .list-group-item:last-child { border-bottom: 0 !important; }
.main-content.bg-lighter .list-group-item:hover {
  color: var(--mj-blue) !important;
  background: rgba(28,58,155,.06) !important;
}
.main-content.bg-lighter table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius);
  background: #fff;
  box-shadow: var(--mj-shadow-sm);
}
.main-content.bg-lighter th {
  background: var(--mj-blue-grad);
  color: #fff;
  font-weight: 700;
}
.main-content.bg-lighter th,
.main-content.bg-lighter td { padding: 13px 15px; border-color: var(--mj-line); }
.main-content.bg-lighter tr:nth-child(even) td { background: #f7f9ff; }

/* Forms */
.main-content.bg-lighter form {
  padding: 26px;
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius-lg);
  background: rgba(255,255,255,.9);
  box-shadow: var(--mj-shadow-sm);
}
.main-content.bg-lighter form .form-group { margin-bottom: 16px; }
.main-content.bg-lighter form .form-control {
  min-height: 48px;
  border-radius: 14px !important;
  border: 1px solid #dbe1ee !important;
  background: #fff;
}
.main-content.bg-lighter form textarea.form-control { min-height: 130px; }

/* Mobile inner pages */
@media (max-width: 767px) {
  .main-content.bg-lighter .inner-header { min-height: 190px; }
  .main-content.bg-lighter .inner-header .container {
    padding: 52px 18px 24px !important;
  }
  .main-content.bg-lighter .inner-header .title { font-size: 32px !important; }
  .main-content.bg-lighter .inner-header .breadcrumb { margin-top: 12px !important; font-size: 12px; }
  .main-content.bg-lighter > section:not(.inner-header) {
    padding-top: 38px;
    padding-bottom: 38px;
  }
  .main-content.bg-lighter .section-content > .row,
  .main-content.bg-lighter > section > .row {
    margin-left: -8px;
    margin-right: -8px;
  }
  .main-content.bg-lighter .section-content > .row > [class*="col-"],
  .main-content.bg-lighter > section > .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }
  .main-content.bg-lighter h3:not(.media-heading) { font-size: 22px; }
  .main-content.bg-lighter p { font-size: 15px; line-height: 1.7; }
  .main-content.bg-lighter .icon-box.left.media { padding: 18px !important; }
  .main-content.bg-lighter form { padding: 18px; }
  .main-content.bg-lighter table { display: block; overflow-x: auto; white-space: nowrap; }
  .main-content.bg-lighter .class-item1 img,
  .main-content.bg-lighter .work-gallery img,
  .main-content.bg-lighter .gallery-item img { min-height: 160px; }
}

/* ---------- Need Assistance? — modern CTA band ---------- */
.mj-cta {
  background: var(--mj-blue-grad);
  position: relative;
  overflow: hidden;
  padding: 46px 0;
}
.mj-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% -20%, rgba(255, 255, 255, 0.14), transparent 46%);
  pointer-events: none;
}
.mj-cta .container { position: relative; z-index: 1; }
.mj-cta-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.mj-cta-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  font-size: 30px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 12px 30px rgba(8, 12, 40, 0.3);
}
.mj-cta-title {
  color: #fff;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 6px !important;
}
.mj-cta-text {
  color: #dbe1f5;
  margin: 0 !important;
  font-size: 15.5px;
  line-height: 1.6;
}
.mj-cta-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.mj-cta-btn {
  background: #ffffff;
  color: var(--mj-blue) !important;
  border-radius: 999px;
  padding: 13px 36px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(8, 12, 40, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.mj-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(8, 12, 40, 0.42);
  color: var(--mj-blue-deep) !important;
}
@media (max-width: 767px) {
  .mj-cta { padding: 36px 0; }
  .mj-cta-inner { flex-direction: column; text-align: center; gap: 14px; }
  .mj-cta-icon { width: 56px; height: 56px; flex-basis: 56px; font-size: 26px; }
  .mj-cta-title { font-size: 22px; }
  .mj-cta-btn-wrap { margin-top: 20px; }
}

/* ---------- CTA + testimonials: final responsive polish ---------- */
.mj-cta {
  background:
    radial-gradient(circle at 12% 10%, rgba(228, 25, 55, 0.16), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(28, 58, 155, 0.18), transparent 36%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%) !important;
  padding: 54px 0 !important;
  box-shadow: none !important;
}
.mj-cta::before {
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.22)) !important;
}
.mj-cta .row {
  align-items: center;
  display: flex;
}
.mj-cta .container {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(28, 58, 155, 0.10);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(12, 24, 70, 0.14);
  padding: 28px 34px;
}
.mj-cta-inner {
  align-items: center;
  gap: 18px;
}
.mj-cta-icon {
  background: var(--mj-blue-grad) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 28px rgba(28, 58, 155, .28) !important;
  color: #fff !important;
}
.mj-cta-title {
  color: var(--mj-blue-dark) !important;
  font-size: clamp(24px, 2.4vw, 32px) !important;
  letter-spacing: 0 !important;
}
.mj-cta-text {
  color: #4d5668 !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  max-width: 680px;
}
.mj-cta-btn {
  align-items: center;
  background: var(--mj-accent-grad) !important;
  border: 0 !important;
  color: #ffffff !important;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  min-width: 150px;
  padding: 12px 28px !important;
}
.mj-cta-btn:hover,
.mj-cta-btn:focus {
  color: #ffffff !important;
}
.testimonial-wrapper {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(28, 58, 155, 0.10) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 38px rgba(12, 24, 70, 0.14) !important;
  height: 100%;
  margin: 10px 8px;
  padding: 26px 22px 24px !important;
  position: relative;
}
.testimonial-wrapper::before {
  content: "\201C";
  color: rgba(28, 58, 155, 0.12);
  font-size: 74px;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  right: 20px;
  top: 10px;
}
.testimonial-wrapper .thumb img {
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(12, 24, 70, 0.18);
  height: 74px;
  object-fit: cover;
  width: 74px;
}
.testimonial-wrapper .content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 16px 0 0 !important;
}
.testimonial-wrapper .lead {
  color: #475066 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  margin-bottom: 16px !important;
}
.testimonial-wrapper .author {
  color: var(--mj-blue-dark) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
.testimonial-wrapper .title {
  color: var(--mj-accent) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.call-to-action.bg-theme-colored:not(.mj-cta) {
  background:
    radial-gradient(circle at 12% 8%, rgba(228, 25, 55, 0.16), transparent 32%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%) !important;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(12, 24, 70, 0.14) !important;
  margin: 24px auto;
  max-width: 1140px;
  overflow: hidden;
  padding: 28px 30px !important;
}
.call-to-action.bg-theme-colored:not(.mj-cta) > .row {
  align-items: center;
  display: flex;
}
.call-to-action.bg-theme-colored:not(.mj-cta) .icon-box {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex;
  gap: 16px;
  margin: 0 !important;
  padding: 0 !important;
}
.main-content .call-to-action.bg-theme-colored:not(.mj-cta) .icon-box.left.media,
.main-content.bg-lighter .call-to-action.bg-theme-colored:not(.mj-cta) .icon-box.left.media {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.call-to-action.bg-theme-colored:not(.mj-cta) .media-left {
  align-items: center;
  background: var(--mj-blue-grad) !important;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(28, 58, 155, .28);
  display: inline-flex;
  flex: 0 0 58px;
  height: 58px;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  width: 58px;
}
.call-to-action.bg-theme-colored:not(.mj-cta) .media-left i {
  border: 0 !important;
  color: #fff !important;
  font-size: 28px;
  padding: 0 !important;
}
.call-to-action.bg-theme-colored:not(.mj-cta) .heading {
  color: var(--mj-blue-dark) !important;
  font-size: clamp(24px, 2.4vw, 32px) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  margin: 0 0 6px !important;
}
.call-to-action.bg-theme-colored:not(.mj-cta) p {
  color: #4d5668 !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}
.call-to-action.bg-theme-colored:not(.mj-cta) .btn {
  align-items: center;
  background: var(--mj-accent-grad) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 34px rgba(190, 18, 60, .28) !important;
  color: #fff !important;
  display: inline-flex;
  font-weight: 700 !important;
  justify-content: center;
  min-height: 48px;
  min-width: 150px;
  padding: 12px 28px !important;
}
@media (max-width: 991px) {
  .mj-cta .row {
    display: block;
  }
  .mj-cta .container {
    margin-left: 15px;
    margin-right: 15px;
    padding: 26px 24px;
  }
  .mj-cta-btn-wrap {
    justify-content: flex-start;
    margin-top: 22px;
    text-align: left;
  }
  .call-to-action.bg-theme-colored:not(.mj-cta) > .row {
    display: block;
  }
  .call-to-action.bg-theme-colored:not(.mj-cta) .text-center {
    margin-top: 20px;
    text-align: left !important;
  }
}
@media (max-width: 767px) {
  .mj-cta {
    padding: 34px 0 !important;
  }
  .mj-cta .container {
    border-radius: 18px;
    padding: 24px 18px;
  }
  .mj-cta-inner {
    align-items: flex-start !important;
    flex-direction: row !important;
    gap: 14px !important;
    text-align: left !important;
  }
  .mj-cta-icon {
    flex: 0 0 50px !important;
    height: 50px !important;
    width: 50px !important;
  }
  .mj-cta-title {
    font-size: 22px !important;
  }
  .mj-cta-text {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
  }
  .mj-cta-btn-wrap {
    margin-top: 18px !important;
  }
  .mj-cta-btn {
    min-width: 100%;
    width: 100%;
  }
  .testimonial-wrapper {
    margin: 10px 0;
    padding: 22px 18px !important;
  }
  .call-to-action.bg-theme-colored:not(.mj-cta) {
    border-radius: 18px;
    margin: 18px 15px;
    padding: 24px 18px !important;
  }
  .call-to-action.bg-theme-colored:not(.mj-cta) .icon-box {
    align-items: flex-start;
  }
  .call-to-action.bg-theme-colored:not(.mj-cta) .media-left {
    flex-basis: 50px;
    height: 50px;
    width: 50px;
  }
  .call-to-action.bg-theme-colored:not(.mj-cta) .heading {
    font-size: 22px !important;
  }
  .call-to-action.bg-theme-colored:not(.mj-cta) p {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
  }
  .call-to-action.bg-theme-colored:not(.mj-cta) .btn {
    min-width: 100%;
    width: 100%;
  }
}

/* ---------- Footer: complete redesign ---------- */
footer.footer {
  background: linear-gradient(180deg, #0e1430 0%, #070b1c 100%) !important;
}
footer.footer .widget {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  backdrop-filter: none !important;
}
footer.footer .widget-title {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
  padding-bottom: 12px;
  position: relative;
}
footer.footer .widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--mj-blue-grad);
}
footer.footer .widget p,
footer.footer .widget a { color: #aab3d6; }
footer.footer .widget a:hover { color: #ffffff; text-decoration: none; }

/* About widget */
footer.footer .styled-icons a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-block;
  text-align: center;
  margin-right: 8px;
  transition: background 0.25s ease, transform 0.25s ease;
}
footer.footer .styled-icons a:hover {
  background: var(--mj-blue-grad) !important;
  transform: translateY(-3px);
}

/* Latest News */
footer.footer .media-post {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
footer.footer .media-post .post-thumb img {
  width: 56px !important;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}
footer.footer .media-post .post-title { font-size: 14px; margin: 0 0 3px !important; }
footer.footer .media-post .post-title a { color: #e2e6f5; }
footer.footer .media-post .post-title a:hover { color: #fff; }
footer.footer .media-post .post-date { color: #7f89b0; font-size: 12px; margin: 0; }

/* Useful Links */
footer.footer .list li { padding: 7px 0; }
footer.footer .list li a { position: relative; display: inline-block; }
footer.footer .list li a::before {
  content: "\2192";
  margin-right: 9px;
  color: var(--mj-blue-grad-soft);
  transition: margin 0.2s ease;
}
footer.footer .list li a:hover::before { margin-right: 13px; }
footer.footer .list-border li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

/* Newsletter */
footer.footer .newsletter-form .input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 4px;
}
footer.footer .newsletter-form .form-control {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  flex: 1;
  height: 38px;
}
footer.footer .newsletter-form .form-control::placeholder { color: #8b95c0; }
footer.footer .newsletter-form .input-group-btn .btn {
  border-radius: 10px !important;
  background: var(--mj-blue-grad) !important;
  border: none !important;
  width: 44px;
  height: 38px;
  line-height: 38px;
  padding: 0;
}

/* Bottom bar */
.footer-bottom {
  background: #05081a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-bottom a { color: #8b95c0; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom p { color: #8b95c0; }

/* ---------- Remove floating snow/balloon decorations ---------- */
#snowfall,
.snowflake,
.christmas-overlay,
.christmas-message,
.santa,
.balloon {
  display: none !important;
}

/* ---------- Quick Contact: icons + well-spaced ---------- */
footer.footer .mj-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer.footer .mj-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
footer.footer .mj-contact-list li i {
  margin-top: 3px;
  color: #7fb0ff;
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
footer.footer .mj-contact-list li a { color: #aab3d6; line-height: 1.5; }
footer.footer .mj-contact-list li a:hover { color: #fff; }

/* Subscribe: icon input + button */
.mj-subscribe-title {
  font-weight: 600;
  letter-spacing: 0.2px;
}
footer.footer .newsletter-form .input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 4px;
  width: 100%;
}
footer.footer .mj-newsletter-icon {
  background: transparent !important;
  border: none !important;
  padding: 0 4px 0 12px;
  color: #7fb0ff !important;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
footer.footer .newsletter-form .form-control {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  height: 38px;
  padding: 0 6px;
  flex: 1;
}
footer.footer .newsletter-form .form-control::placeholder { color: #8b95c0; }
footer.footer .newsletter-form .input-group-btn { display: inline-flex; }
footer.footer .newsletter-form .input-group-btn .btn {
  border-radius: 10px !important;
  background: var(--mj-blue-grad) !important;
  border: none !important;
  width: 44px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
footer.footer .newsletter-form .input-group-btn .btn:hover {
  background: var(--mj-blue-grad-soft) !important;
}

/* ---------- Footer: prevent long contact rows from overflowing on phones ---------- */
footer.footer .mj-contact-list li {
  min-width: 0;
}
footer.footer .mj-contact-list li a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
footer.footer .newsletter-form,
footer.footer .newsletter-form .input-group {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
footer.footer .newsletter-form .form-control {
  min-width: 0;
}
footer.footer .newsletter-form .input-group-btn {
  flex: 0 0 44px;
  min-width: 44px;
}

/* ---------- Footer: canonical layout across all public pages ---------- */
footer#footer.footer {
  background: linear-gradient(180deg, #0e1430 0%, #070b1c 100%) !important;
  clear: both;
  color: #aab3d6;
  overflow: hidden;
}
footer#footer.footer > .container {
  max-width: 1140px;
  padding-bottom: 46px !important;
  padding-top: 64px !important;
}
footer#footer.footer > .container > .row {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
}
footer#footer.footer > .container > .row > [class*="col-"] {
  float: none !important;
  min-height: 1px;
}
footer#footer.footer .widget {
  margin-bottom: 0 !important;
  min-width: 0;
}
footer#footer.footer .widget p,
footer#footer.footer .widget a,
footer#footer.footer .post-date {
  overflow-wrap: anywhere;
}
footer#footer.footer .latest-posts {
  display: grid;
  gap: 0;
}
footer#footer.footer .latest-posts .media-post {
  min-height: 66px;
}
footer#footer.footer .latest-posts .media-post:nth-child(n+5) {
  display: none;
}
footer#footer.footer .footer-bottom {
  margin-top: 0;
}
footer#footer.footer .footer-bottom > .container {
  max-width: 1140px;
  padding-bottom: 20px !important;
  padding-top: 20px !important;
}
footer#footer.footer .footer-bottom .row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}
footer#footer.footer .footer-bottom [class*="col-"] {
  float: none !important;
}
@media (min-width: 992px) {
  footer#footer.footer > .container > .row > .col-md-3 {
    width: 25% !important;
  }
  footer#footer.footer .footer-bottom .col-md-6 {
    width: 50% !important;
  }
}
@media (max-width: 991px) {
  footer#footer.footer > .container > .row {
    row-gap: 30px;
  }
  footer#footer.footer > .container > .row > [class*="col-"] {
    width: 50% !important;
  }
  footer#footer.footer .footer-bottom .row {
    display: block;
    text-align: center;
  }
  footer#footer.footer .footer-bottom .text-right {
    text-align: center !important;
  }
}
@media (max-width: 767px) {
  footer#footer.footer > .container {
    padding-bottom: 40px !important;
    padding-top: 52px !important;
  }
  footer#footer.footer > .container > .row {
    display: block;
  }
  footer#footer.footer > .container > .row > [class*="col-"] {
    width: 100% !important;
  }
  footer#footer.footer .widget {
    margin-bottom: 32px !important;
  }
  footer#footer.footer > .container > .row > [class*="col-"]:last-child .widget {
    margin-bottom: 0 !important;
  }
}

/* ---------- Unified mobile hero system ---------- */
@media (max-width: 767px) {
  .rev_slider_wrapper,
  .rev_slider { min-height: 520px !important; }
  .rev_slider .tp-caption {
    width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  .rev_slider .tp-caption.bg-theme-colored-transparent {
    width: 78vw !important;
    max-width: 78vw !important;
    padding: 10px 16px !important;
    line-height: 1.2 !important;
    border-radius: 22px !important;
  }
  #rs-1-layer-2,
  #rs-2-layer-2,
  #rs-3-layer-2 { margin-top: 14px !important; }
  #rs-1-layer-3,
  #rs-2-layer-3,
  #rs-3-layer-3 {
    margin-top: 30px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
  #rs-1-layer-4,
  #rs-2-layer-4,
  #rs-3-layer-4 { margin-top: 48px !important; }
}
@media (max-width: 380px) {
  .rev_slider .tp-caption {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }
  #rs-1-layer-1,
  #rs-2-layer-2,
  #rs-3-layer-1 { font-size: 34px !important; line-height: 1.12 !important; }
  #rs-1-layer-1,
  #rs-2-layer-1,
  #rs-3-layer-1 { margin-top: -20px !important; }
  #rs-1-layer-2,
  #rs-2-layer-2,
  #rs-3-layer-2 { margin-top: 48px !important; }
  #rs-1-layer-3,
  #rs-2-layer-3,
  #rs-3-layer-3 {
    margin-top: 120px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }
  #rs-1-layer-4,
  #rs-2-layer-4,
  #rs-3-layer-4 { margin-top: 174px !important; }
  #rs-2-layer-1 { margin-top: -42px !important; }
  #rs-2-layer-2 { margin-top: 54px !important; }
  #rs-2-layer-3 { margin-top: 124px !important; }
  #rs-2-layer-4 { margin-top: 178px !important; }
  #rs-1-layer-1,
  #rs-3-layer-1 { margin-top: 34px !important; }
  #rs-2-layer-1 { margin-top: -10px !important; }

  /* Slide 3 has a two-line headline followed by a separate subtitle. */
  #rs-3-layer-1 { margin-top: 24px !important; }
  #rs-3-layer-2 { margin-top: 118px !important; }
  #rs-3-layer-3 { margin-top: 190px !important; }
  #rs-3-layer-4 { margin-top: 206px !important; }
}

/* ---------- Small phones: collapse the portal section to card content ---------- */
@media (max-width: 380px) {
  .main-content > section:has(.mj-home-boxes),
  .main-content > section:has(.mj-home-boxes) > .container,
  .main-content > section:has(.mj-home-boxes) .section-content {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .main-content > section:has(.mj-home-boxes) .mj-home-boxes {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}
