/***************************
Add your custom styles below
****************************/

.swal2-popup {
  font-size: 0.7rem !important;
}

/* SweetAlert inline submit alerts */
.swal-inline-alert {
  border-radius: 14px !important;
  border: 1px solid var(--mms-line) !important;
  box-shadow: var(--mms-shadow) !important;
  padding: 1.8rem 1.4rem 1.2rem !important;
}

.swal-inline-alert .swal2-title {
  color: var(--mms-primary) !important;
  font-weight: 700 !important;
}

.swal-inline-alert .swal2-html-container {
  color: var(--mms-ink) !important;
  font-size: 0.98rem !important;
}

.swal-inline-alert-confirm {
  margin-top: 0.35rem !important;
  min-width: 35px;
}

.swal-inline-alert-show {
  animation: swal-inline-gentle-show 220ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.swal-inline-alert-hide {
  animation: swal-inline-gentle-hide 170ms cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

@keyframes swal-inline-gentle-show {
  from {
    opacity: 0;
    transform: scale(0.992) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes swal-inline-gentle-hide {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.996) translateY(4px);
  }
}

/* Button Hover Effects */
.btn {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.btn:hover {
  transform: translateY(-3px);
  /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); */
}

.btn--primary:hover {
  /* You can add specific color changes for primary buttons if needed */
  /* Example: background-color: #1a2b4a; */
}

/* Image Carousel Hover Effects */
.slider .slides li.imagebg .background-image-holder img {
  transition: transform 0.5s ease-in-out;
}

.slider .slides li.imagebg:hover .background-image-holder img {
  transform: scale(1.05);
}

/* Enhancing carousel navigation arrows on hover (if they exist and are styled by theme.css) */
/* This is a generic selector, might need adjustment based on actual arrow classes */
.slider .arrows .arrow:hover {
  transform: scale(1.1);
  opacity: 1;
}
/* Modernized Thumbnail Cards for "Our Programs" */
.thumbnail {
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  overflow: hidden; /* Ensures image zoom doesn't break card layout */
  background-color: #ffffff; /* Ensure background is white as per original inline style */
}

.thumbnail:hover {
  transform: translateY(-8px) scale(1.02); /* Lift and slightly scale up */
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.thumbnail img {
  transition: transform 0.4s ease-out;
  width: 30%; /* Maintaining original inline style for consistency */
}

.thumbnail:hover img {
  transform: scale(1.1); /* Zoom image on card hover */
}

/* Adjusting caption padding for consistency if needed */
.thumbnail .caption {
  padding: 15px 20px; /* Standardized padding */
}

/* Specific styling for program images if they differ in size, e.g., violin, drum, flute */
.thumbnail img[src*="violin.jpg"],
.thumbnail img[src*="drum.jpg"],
.thumbnail img[src*="flute.jpg"] {
  width: 35%; /* Maintaining original inline style */
}

.thumbnail img[src*="Clarinet.png"] {
  width: 25%; /* Maintaining original inline style */
}

.thumbnail img[src*="Trumpet.png"] {
  width: 15%; /* Maintaining original inline style */
}

.thumbnail img[src*="Trombone.png"] {
  width: 45%; /* Maintaining original inline style */
}
/* Course Requirements Grid Layout */
.course-requirements-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-top: 40px;
}

.course-requirements-grid .requirement-card {
    flex: 1 1 280px;
    max-width: 320px;
}

@media (max-width: 991px) {
    .course-requirements-grid {
        gap: 20px;
    }

    .course-requirements-grid .requirement-card {
        max-width: 340px;
    }
}

@media (max-width: 767px) {
    .course-requirements-grid {
        gap: 20px;
        margin-top: 20px;
    }

    .course-requirements-grid .requirement-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* Requirement Card Button Reset & Styling */
.requirement-card {
    appearance: none;
    background: var(--mms-paper);
    border: 1px solid var(--mms-line);
    border-radius: 12px;
    padding: 35px 25px;
    width: 100%;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    box-shadow: var(--mms-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.requirement-card:hover,
.requirement-card:focus {
    outline: none;
    border-color: var(--mms-teal);
    box-shadow: var(--mms-shadow-strong);
    transform: translateY(-8px);
}

/* Accessible focus ring */
.requirement-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(14, 135, 145, 0.35), var(--mms-shadow-strong);
}

.requirement-card .requirement-thumbnail {
    max-width: 90px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 12px rgba(22, 39, 53, 0.12));
    transition: transform 0.3s ease;
}

.requirement-card:hover .requirement-thumbnail,
.requirement-card:focus .requirement-thumbnail {
    transform: scale(1.1) translateY(-5px);
}

.requirement-card h4 {
    margin: 0;
    color: var(--mms-primary);
    font-weight: 700;
    font-size: 1.35rem;
    transition: color 0.3s ease;
}

/* Professional SweetAlert2 Styling */
.swal-popup-professional {
  border-radius: 16px !important;
  border: 1px solid var(--mms-line) !important;
  box-shadow: var(--mms-shadow-strong) !important;
  width: 90% !important;
  max-width: 700px !important;
  padding: 0 !important; /* Header will handle its own padding */
  overflow: hidden;
}

.swal-requirement-header {
    background: var(--mms-soft);
    padding: 40px 20px 30px;
    border-bottom: 1px solid var(--mms-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.swal-instrument-image {
    max-width: 100px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 15px rgba(22, 39, 53, 0.15));
}

.swal-title-professional {
  color: var(--mms-primary) !important;
  margin: 0 !important;
  font-weight: 700 !important;
  font-size: 1.8rem !important;
  text-align: center;
}

.swal-requirement-details {
  text-align: left !important;
  padding: 30px 40px !important;
  font-size: 1.05rem !important;
  color: var(--mms-ink) !important;
  line-height: 1.6;
}

@media (max-width: 767px) {
    .swal-requirement-details {
        padding: 20px 25px !important;
    }
}

.swal-requirement-details ul {
  padding-left: 20px !important;
  margin-bottom: 1.5rem !important;
  list-style-type: disc !important;
}

.swal-requirement-details li {
    margin-bottom: 0.5rem;
}

.swal-requirement-details p {
  margin-bottom: 1.2rem !important;
}

.swal-requirement-details h4 {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--mms-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.swal-requirement-details h4:first-child {
    margin-top: 0;
}

.swal-confirm-professional {
  font-weight: 600 !important;
  padding: 12px 35px !important;
  margin-bottom: 30px !important;
}

.swal-close-professional {
  color: var(--mms-muted) !important;
  transition: color 0.2s ease;
}

.swal-close-professional:hover {
  color: var(--mms-primary) !important;
}

@media (max-width: 767px) {
    .swal-requirement-modal {
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
    }
}

/* Gentle animations using SWAL hooks */
.swal-animate-show {
    animation: swal-gentle-show 0.56s cubic-bezier(0.22, 0.8, 0.24, 1) !important;
}

.swal-animate-hide {
    animation: swal-gentle-hide 0.26s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

@media (max-width: 767px) {
    .swal-animate-show {
        animation: swal-sheet-gentle 0.56s cubic-bezier(0.2, 0.85, 0.22, 1) !important;
    }
}

@keyframes swal-sheet-gentle {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes swal-gentle-show {
    from {
        opacity: 0;
        transform: scale(0.985) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes swal-gentle-hide {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.992) translateY(6px);
    }
}


/* Homepage visual refresh */
:root {
  --mms-ink: #162735;
  --mms-muted: #344a58;
  --mms-primary: #173f70;
  --mms-teal: #0e8791;
  --mms-gold: #d5a340;
  --mms-paper: #ffffff;
  --mms-soft: #f5f8fb;
  --mms-line: rgba(22, 39, 53, 0.11);
  --mms-shadow: 0 18px 45px rgba(22, 39, 53, 0.12);
  --mms-shadow-strong: 0 26px 70px rgba(22, 39, 53, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--mms-ink);
  background:
    linear-gradient(90deg, rgba(14, 135, 145, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 45%, #eef5f8 100%);
  background-size: 72px 72px, auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  font-size: 16px;
  line-height: 1.65;
}

body,
p,
span:not(.btn__text),
li,
blockquote,
figcaption,
input[type],
textarea {
  color: var(--mms-ink);
}

.nav-container,
.main-container {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
}

section:not(.imagebg):not(.slider):not(.space--0) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76) 0%, rgba(248, 252, 253, 0.68) 48%, rgba(232, 244, 247, 0.72) 100%);
}

section:not(.height-100):not(.height-70):not(.space--0) {
  padding-top: 78px;
  padding-bottom: 78px;
}

.bg--secondary {
  background:
    linear-gradient(135deg, rgba(247, 250, 252, 0.76) 0%, rgba(233, 245, 248, 0.66) 52%, rgba(222, 239, 244, 0.8) 100%) !important;
}

.bg--white {
  background: rgba(255, 255, 255, 0.92) !important;
}

.bg--dark {
  background: rgba(35, 35, 35, 0.72) !important;
}

.lead {
  color: var(--mms-muted);
  font-size: 19px;
  line-height: 1.82;
  font-weight: 400;
}

h3 {
  color: var(--mms-ink);
  letter-spacing: 0;
  font-weight: 700;
}

h4,
h5 {
  color: var(--mms-ink);
}

.btn,
button.btn,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(23, 63, 112, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(23, 63, 112, 0.15);
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.btn .btn__text,
button.btn .btn__text {
  position: relative;
  z-index: 1;
  color: inherit;
  font-size: 16px !important;
  line-height: 1.2;
}

.btn:hover,
button.btn:hover,
input[type="submit"]:hover {
  box-shadow: 0 18px 38px rgba(23, 63, 112, 0.22);
  transform: translateY(-3px);
}

.btn.btn--primary,
button.btn.btn--primary,
.swal2-confirm.swal2-styled,
.swal-confirm-professional,
.swal-inline-alert-confirm {
  position: relative;
  overflow: hidden;
  border-color: rgba(14, 135, 145, 0.34) !important;
  background: linear-gradient(135deg, var(--mms-primary) 0%, #135f83 58%, var(--mms-teal) 100%) !important;
  color: #fff !important;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.btn.btn--primary::before,
button.btn.btn--primary::before,
.swal2-confirm.swal2-styled::before,
.swal-confirm-professional::before,
.swal-inline-alert-confirm::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--mms-teal) 0%, var(--mms-primary) 72%, var(--mms-gold) 100%);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.btn.btn--primary .btn__text,
button.btn.btn--primary .btn__text {
  color: #fff;
  font-size: 16px !important;
}

.btn.btn--primary:hover,
button.btn.btn--primary:hover,
.swal2-confirm.swal2-styled:hover,
.swal-confirm-professional:hover,
.swal-inline-alert-confirm:hover {
  border-color: rgba(213, 163, 64, 0.65) !important;
  box-shadow: 0 18px 38px rgba(14, 135, 145, 0.26);
}

.btn.btn--primary:hover::before,
button.btn.btn--primary:hover::before,
.swal2-confirm.swal2-styled:hover::before,
.swal-confirm-professional:hover::before,
.swal-inline-alert-confirm:hover::before {
  opacity: 1;
}

.slider.height-100.cover-5 {
  min-height: 78vh;
  background: var(--mms-ink);
}

.slider.height-100.cover-5 .slides li.imagebg:after,
.page-title.imagebg:after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 23, 34, 0.38);
  content: "";
  pointer-events: none;
}

.imagebg .container {
  position: relative;
  z-index: 2;
}

.slider.height-100.cover-5 .background-image-holder,
.page-title .background-image-holder {
  transform: none;
  animation: none;
}

#music-in-the-bible + .page-title {
  display: flex;
  align-items: center;
  height: auto;
  min-height: clamp(360px, 46vw, 560px);
  overflow: hidden;
  padding: 0;
}

#music-in-the-bible + .page-title .background-image-holder {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  background-position: center !important;
  background-size: cover !important;
  transform: none !important;
}

#music-in-the-bible + .page-title .background-image-holder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none !important;
}

#music-in-the-bible + .page-title .container {
  top: auto !important;
  width: 100%;
  min-height: 0;
  padding-top: 72px;
  padding-bottom: 72px;
  transform: none !important;
}

.slider.height-100.cover-5 .owl-dots {
  bottom: 30px;
}

.owl-theme .owl-dots .owl-dot span,
.owl-dots .owl-dot span {
  width: 10px !important;
  height: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent !important;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-dots .owl-dot.active span {
  border-color: var(--mms-gold);
  background: var(--mms-gold) !important;
  transform: scale(1.2);
}

#our-programs-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#our-programs-section [class*="col-"] {
  display: flex;
}

.thumbnail {
  display: flex;
  width: 100%;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--mms-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 254, 0.96)),
    linear-gradient(135deg, rgba(14, 135, 145, 0.08), transparent 45%);
  box-shadow: var(--mms-shadow);
  padding: 28px 24px 22px;
  transform: translateY(0);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.thumbnail:hover {
  border-color: rgba(14, 135, 145, 0.32);
  box-shadow: var(--mms-shadow-strong);
  transform: translateY(-7px);
}

.thumbnail img,
.thumbnail img[src*="violin.jpg"],
.thumbnail img[src*="drum.jpg"],
.thumbnail img[src*="flute.jpg"],
.thumbnail img[src*="Clarinet.png"],
.thumbnail img[src*="Trumpet.png"],
.thumbnail img[src*="Trombone.png"] {
  width: auto;
  max-width: 128px;
  height: 116px;
  object-fit: contain;
  margin: 0 auto 18px;
  filter: drop-shadow(0 12px 18px rgba(22, 39, 53, 0.16));
  transition: transform 260ms ease, filter 260ms ease;
}

.thumbnail:hover img {
  filter: drop-shadow(0 18px 24px rgba(22, 39, 53, 0.2));
  transform: translateY(-4px) scale(1.05);
}

.thumbnail .caption {
  width: 100%;
  padding: 0;
  text-align: center;
}

.thumbnail .caption h3 {
  margin-bottom: 10px;
  color: var(--mms-primary);
  font-size: 1.35em;
  font-weight: 700;
}

.thumbnail .caption span,
.thumbnail .caption em {
  color: var(--mms-muted);
  font-size: 15px;
  line-height: 1.78;
}

.thumbnail .caption b,
.card__body b,
.swal-requirement-details b {
  color: var(--mms-ink);
}

.cta input[type="email"] {
  width: min(100%, 420px);
  height: 50px;
  border: 1px solid rgba(23, 63, 112, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 28px rgba(22, 39, 53, 0.08);
  color: var(--mms-ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.cta input[type="email"]:focus {
  border-color: var(--mms-teal);
  box-shadow: 0 0 0 4px rgba(14, 135, 145, 0.12), 0 12px 28px rgba(22, 39, 53, 0.08);
}

.requirement-card {
  animation: mmsFadeUp 720ms cubic-bezier(0.2, 0.75, 0.15, 1) both;
}

.card {
  overflow: hidden;
  border: 1px solid var(--mms-line);
  border-radius: 8px;
  box-shadow: var(--mms-shadow);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.card:hover {
  border-color: rgba(14, 135, 145, 0.28);
  box-shadow: var(--mms-shadow-strong);
  transform: translateY(-6px);
}

.card__image img,
.space--0 .slides img,
.testimonial img {
  transition: transform 420ms ease, filter 420ms ease;
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.space--0 .slides li {
  height: clamp(260px, 34vw, 420px) !important;
  overflow: hidden;
  padding: 0;
}

.space--0 .slides li > div,
.space--0 .hover-element__initial,
.space--0 .slides img {
  width: 100%;
  height: 100%;
}

.space--0 .slides img {
  display: block;
  height: clamp(260px, 34vw, 420px) !important;
  object-fit: cover;
  object-position: center;
}

.space--0 .slides li:hover img {
  transform: scale(1.06);
}

.card--horizontal {
  min-height: 100%;
}

.card__body,
.card__body span,
.card__body em,
.card__body div {
  color: var(--mms-ink);
  font-size: 15px;
  line-height: 1.72;
}

.card__body em {
  color: var(--mms-muted);
}

.instructors-section .row {
  display: flex;
  flex-wrap: wrap;
}

.instructors-section [class*="col-"] {
  display: flex;
}

.instructors-section [class*="col-"] > a {
  display: flex;
  width: 100%;
}

.instructors-section .card {
  display: flex;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
  background: #fff;
}

.instructors-section .card__image {
  display: flex;
  height: 520px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.instructors-section .card__image img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.testimonial blockquote {
  position: relative;
  border-left: 4px solid var(--mms-gold);
  border-radius: 8px;
  box-shadow: var(--mms-shadow);
  background: #ffffff;
  color: var(--mms-ink);
  padding: 18px 22px;
  font-size: 20px;
  line-height: 1.65;
}

.testimonial {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(240, 248, 250, 0.64) 54%, rgba(232, 244, 247, 0.78)) !important;
}

.testimonial img {
  border-radius: 8px;
  box-shadow: var(--mms-shadow-strong);
}

.testimonial img:hover {
  transform: scale(1.015);
}

.footer-2 {
  border-top: 1px solid var(--mms-line);
  background: linear-gradient(180deg, #ffffff, #f7fafc) !important;
}

.footer-2 img {
  max-width: 190px;
  height: auto !important;
  width: auto !important;
}

.footer-2 a {
  transition: color 180ms ease, opacity 180ms ease;
}

.footer-2 a:hover {
  color: var(--mms-teal);
  opacity: 0.9;
}

.footer-one-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--mms-ink);
}

.footer-one-line img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.card,
.requirement-card,
.testimonial__text {
  animation: mmsFadeUp 720ms cubic-bezier(0.2, 0.75, 0.15, 1) both;
}

@keyframes mmsHeroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

@keyframes mmsFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mmsFadeRight {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mmsFadeLeft {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .lead {
    font-size: 17px;
    line-height: 1.75;
  }

  section:not(.height-100):not(.height-70):not(.space--0) {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .slider.height-100.cover-5 {
    height: clamp(260px, 42vh, 360px);
    min-height: 0;
  }

  .slider.height-100.cover-5 .slides,
  .slider.height-100.cover-5 .owl-stage-outer,
  .slider.height-100.cover-5 .owl-stage,
  .slider.height-100.cover-5 .owl-item,
  .slider.height-100.cover-5 .slides li {
    height: 100% !important;
  }

  .slider.height-100.cover-5 .slides li {
    padding: 0;
  }

  .slider.height-100.cover-5 .owl-dots {
    bottom: 16px;
  }

  #our-programs-section .row,
  #our-programs-section [class*="col-"] {
    display: block;
  }

  .thumbnail {
    min-height: 0;
    margin-bottom: 22px;
  }

  .card--horizontal .card__image,
  .card--horizontal .card__body {
    width: 100%;
  }

  .card--horizontal .card__image {
    height: 240px;
    overflow: hidden;
  }

  .card--horizontal .card__image .background-image-holder,
  .card--horizontal .card__image img {
    width: 100%;
    height: 100%;
  }

  .card--horizontal .card__image img {
    object-fit: cover;
    object-position: center;
  }

  .instructors-section .row {
    display: block;
  }

  .instructors-section [class*="col-"] {
    display: block;
  }

  .instructors-section .card {
    min-height: 0;
    margin-bottom: 24px;
  }

  .instructors-section .card__image {
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 22px;
  }

  .instructors-section .card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .footer-2,
  .footer-2 .text-right {
    text-align: center !important;
  }

  .footer-one-line {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Layout accessibility and responsive hardening */
html {
  overflow-x: hidden;
}

body {
  overflow-x: clip;
}

.nav-container {
  position: sticky;
  z-index: 20;
  top: 0;
  overflow: visible;
}

.main-container {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.site-nav {
  position: relative;
  z-index: 20;
  right: 0;
  left: 0;
  border-bottom: 1px solid var(--mms-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(22, 39, 53, 0.08);
  backdrop-filter: blur(16px);
}

.site-nav__inner {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-nav__brand,
.site-nav__links a {
  color: var(--mms-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.site-nav__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.site-nav__brand img {
  width: 28px;
  height: 36px;
  object-fit: contain;
  display: block;
  transform: translateY(9px);
}

.site-nav__brand span {
  display: inline-block;
  line-height: 1.2;
}

.site-nav__links {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.site-nav__links a {
  font-size: 11px;
  line-height: 1.2;
  position: relative;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav__links a.site-nav__cta {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(14, 135, 145, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(23, 63, 112, 0.96), rgba(14, 135, 145, 0.94));
  box-shadow: 0 10px 22px rgba(23, 63, 112, 0.14);
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  padding: 0 13px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-nav__links a.site-nav__cta:hover,
.site-nav__links a.site-nav__cta:focus {
  border-color: rgba(213, 163, 64, 0.72);
  box-shadow: 0 14px 28px rgba(14, 135, 145, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.site-nav__links a + a::before {
  position: absolute;
  top: 50%;
  left: -8px;
  width: 1px;
  height: 14px;
  background: rgba(23, 63, 112, 0.24);
  content: "";
  transform: translateY(-50%);
}

.site-nav__links a.site-nav__cta::before,
.site-nav__links a.site-nav__cta + a::before {
  content: none;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--mms-primary);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

h1,
h2 {
  color: var(--mms-ink);
  letter-spacing: 0;
  font-weight: 700;
}

.main-container section:not(.imagebg) h1,
.main-container section:not(.imagebg) h2,
.main-container section:not(.imagebg) h3,
.main-container section:not(.imagebg) h4,
.main-container section:not(.imagebg) h5,
.main-container section:not(.imagebg) .card__title h4 {
  color: var(--mms-primary);
}

.main-container section:not(.imagebg) .lead,
.main-container section:not(.imagebg) .thumbnail .caption span,
.main-container section:not(.imagebg) .card__body,
.main-container section:not(.imagebg) .card__body div {
  color: var(--mms-muted);
}

.main-container section:not(.imagebg) em,
.main-container section:not(.imagebg) .card__body em,
.main-container section:not(.imagebg) .action-cue {
  color: var(--mms-teal);
}

.main-container section:not(.imagebg) strong,
.main-container section:not(.imagebg) b,
.main-container .testimonial h5,
.footer-one-line span {
  color: var(--mms-gold);
}

.footer-one-line a {
  color: var(--mms-teal);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(14, 135, 145, 0.42);
  outline-offset: 4px;
}

.programs-grid-section {
  padding: 0;
}

.program-column {
  margin-bottom: 30px;
}

.is-hidden {
  display: none;
}

.enrollment-section {
  padding: 50px 0;
}

.enrollment-card {
  padding: 40px 30px;
}

.enrollment-flip {
  position: relative;
  perspective: 1200px;
}

.enrollment-flip__inner {
  position: relative;
  display: block;
  min-height: 330px;
  transform-style: preserve-3d;
  transition: transform 560ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.enrollment-flip .card {
  animation: none;
}

.enrollment-flip .card:hover {
  box-shadow: var(--mms-shadow);
}

.enrollment-flip.is-flipped .enrollment-flip__inner {
  transform: rotateY(180deg);
}

.enrollment-card--front,
.enrollment-card--back {
  width: 100%;
  min-height: 330px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.enrollment-card--front {
  display: block;
  transform: rotateY(0deg);
}

.enrollment-card--back {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
  transform: rotateY(180deg);
}

.enrollment-flip.is-flipped .enrollment-card--front {
  pointer-events: none;
}

.enrollment-flip.is-flipped .enrollment-card--back {
  pointer-events: auto;
}

.enrollment-card--back {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.enrollment-card--front:hover {
  transform: rotateY(0deg);
}

.enrollment-card--back:hover {
  transform: rotateY(180deg);
}

.enrollment-card h3 {
  color: var(--mms-primary);
}

.enrollment-card h3::after {
  display: block;
  width: 48px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mms-teal), var(--mms-gold));
  content: "";
}

.enrollment-card h4,
.enrollment-card label {
  color: var(--mms-teal);
}

.enrollment-card .email-highlight {
  color: var(--mms-gold);
  font-weight: 700;
}

.enrollment-card input[type="email"]::placeholder {
  color: var(--mms-muted);
  opacity: 0.85;
}

.already-signed-up {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mms-teal) !important;
  font-weight: 700;
  margin-top: 18px;
  opacity: 1;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.already-signed-up:hover,
.already-signed-up:focus,
.already-signed-up:active {
  background: transparent !important;
  color: var(--mms-primary) !important;
  opacity: 1 !important;
}

.portal-login-link {
  font-size: inherit;
  line-height: inherit;
  margin-top: 20px;
  min-width: 150px;
}

.enrollment-submit,
.portal-login-link {
  min-height: 52px;
  min-width: 150px;
  padding-right: 28px;
  padding-left: 28px;
}

.enrollment-submit .btn__text,
.portal-login-link .btn__text {
  font-size: 18px !important;
  line-height: 1.2;
}

.enrollment-back-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mms-muted) !important;
  font-weight: 700;
  margin-top: 18px;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.enrollment-back-link:hover,
.enrollment-back-link:focus,
.enrollment-back-link:active {
  background: transparent !important;
  color: var(--mms-primary) !important;
  opacity: 1 !important;
}

.enrollment-actions {
  margin-top: 20px;
}

.course-requirements-row {
  margin-top: 100px;
}

.requirement-card::after {
  content: none;
}

.requirement-card .action-cue {
  display: inline-block;
  margin-top: 10px;
  color: var(--mms-teal);
  font-weight: 700;
}

.instructors-section-spacing {
  padding: 70px 0;
}

.instructor-card {
  background: #fff;
}

.intermediate-card-body {
  padding-bottom: 60px;
}

.virtual-classes-section {
  padding: 48px 0 28px !important;
}

.program-end-section {
  padding: 0 0 100px;
}

.virtual-classes-section + .in-page-link + section.bg--secondary {
  padding-top: 28px !important;
}

.testimonial-section {
  padding: 100px 0 30px;
}

.testimonial__text--eli {
  margin-top: 100px;
}

.testimonial__text--daniel {
  margin-top: 30px;
}

.testimonial-image-column {
  display: inline-block;
  padding: 20px;
}

.testimonial-image-column img[alt="Brother Eli Soriano"],
.testimonial img[alt="Brother Daniel Razon"] {
  width: min(100%, 540px) !important;
  height: min(72vw, 432px) !important;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center top;
}

.footer-2 {
  padding: 24px 0;
}

@media (max-width: 1199px) {
  .site-nav .container.site-nav__inner {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .site-nav__inner {
    flex-direction: row;
    min-height: 46px;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 10px;
  }

  .site-nav__brand {
    height: 34px;
    max-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1;
  }

  .site-nav__brand img {
    position: relative;
    top: 7px;
    width: 28px;
    height: 34px;
    margin-top: 0;
    transform: none;
  }

  .site-nav__brand span {
    display: none;
  }

  .site-nav__links {
    width: auto;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 16px;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .site-nav__links::-webkit-scrollbar {
    display: none;
  }

  .site-nav__links a {
    flex: 0 0 auto;
    font-size: 10px;
  }

  .site-nav__links a.site-nav__cta {
    min-height: 34px;
    font-size: 13px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-nav__links a + a::before {
    left: -8px;
    height: 12px;
  }

  .testimonial__text--eli,
  .testimonial__text--daniel {
    margin-top: 24px;
  }

  .testimonial-image-column {
    display: block;
  }

  .testimonial-section .row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .testimonial-section [class*="col-sm-push"],
  .testimonial-section [class*="col-sm-pull"] {
    right: auto;
    left: auto;
    float: none;
    width: 100%;
  }

  .testimonial-section .testimonial-image-column {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .testimonial-image-column img[alt="Brother Eli Soriano"],
  .testimonial img[alt="Brother Daniel Razon"] {
    display: block;
    width: min(70vw, 720px) !important;
    height: min(56vw, 576px) !important;
    margin-right: auto;
    margin-left: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center top;
  }

  .testimonial img[alt="Brother Eli Soriano"] {
    margin-right: auto;
    margin-left: 0;
  }

  .testimonial img[alt="Brother Daniel Razon"] {
    margin-right: 0;
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .site-nav .container.site-nav__inner {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .site-nav__inner {
    flex-direction: row;
    min-height: 46px;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 10px;
  }

  .site-nav__brand {
    height: 34px;
    max-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1;
  }

  .site-nav__brand img {
    position: relative;
    top: 7px;
    width: 28px;
    height: 34px;
    margin-top: 0;
    transform: none;
  }

  .site-nav__brand span {
    display: none;
  }

  .site-nav__links {
    width: auto;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 16px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .site-nav__links::-webkit-scrollbar {
    display: none;
  }

  .site-nav__links a {
    flex: 0 0 auto;
    font-size: 10px;
  }

  .site-nav__links a.site-nav__cta {
    min-height: 34px;
    font-size: 13px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-nav__links a + a::before {
    left: -8px;
    height: 12px;
  }

  .course-requirements-row {
    margin-top: 54px;
  }

  .testimonial__text--eli,
  .testimonial__text--daniel {
    margin-top: 24px;
  }

  .testimonial-image-column {
    display: block;
  }

  .testimonial-section .row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .testimonial-section [class*="col-sm-push"],
  .testimonial-section [class*="col-sm-pull"] {
    right: auto;
    left: auto;
    float: none;
    width: 100%;
  }

  .testimonial-section .testimonial-image-column {
    width: 100%;
    max-width: 760px;
    text-align: center;
  }

  .testimonial-image-column img[alt="Brother Eli Soriano"],
  .testimonial img[alt="Brother Daniel Razon"] {
    display: block;
    width: min(82vw, 720px) !important;
    height: min(65.6vw, 576px) !important;
    margin-right: auto;
    margin-left: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center top;
  }

  .testimonial img[alt="Brother Eli Soriano"] {
    margin-right: auto;
    margin-left: 0;
  }

  .testimonial img[alt="Brother Daniel Razon"] {
    margin-right: 0;
    margin-left: auto;
  }
}

/* Interactive Background Particles */
#music-particle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 1;
}
