:root {
  --mcs-primary: #8f1d2c;
  --mcs-primary-dark: #65111d;
  --mcs-gold: #d5a52e;
  --mcs-ink: #202735;
  --mcs-muted: #667085;
  --mcs-surface: #fffdf8;
  --mcs-shadow: 0 18px 50px rgba(42, 24, 27, 0.14);
}

html { scroll-behavior: smooth; }

body {
  color: var(--mcs-ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, iframe, video { max-width: 100%; }

main { min-height: 45vh; }

.container { width: min(100% - 30px, 1200px); }

a { text-underline-offset: 3px; }

button, input, select, textarea { font: inherit; }

footer {
  position: relative;
  overflow: hidden;
}

footer .address p { margin-bottom: 5px; }
footer .phone-mail a { overflow-wrap: anywhere; }
footer .map iframe { width: 100%; min-height: 220px; border: 0; border-radius: 14px; }

#banner .carousel-item > img {
  width: 100%;
  aspect-ratio: 1984 / 793;
  object-fit: cover;
}

#banner .mcs-banner-control {
  top: 50%;
  bottom: auto;
  width: 48px;
  height: 48px;
  margin: 0 18px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: rgba(29, 20, 31, .56);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  opacity: .92;
  transform: translateY(-50%);
}

#banner .mcs-banner-control:hover,
#banner .mcs-banner-control:focus-visible { background: var(--mcs-primary); opacity: 1; }
#banner .mcs-banner-control .carousel-control-prev-icon,
#banner .mcs-banner-control .carousel-control-next-icon { width: 20px; height: 20px; }

.mcs-video-carousel iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 14px;
}

.mcs-video-carousel .mcs-video-control {
  top: 50%;
  bottom: auto;
  width: 40px;
  height: 40px;
  margin-inline: 10px;
  border-radius: 50%;
  background: rgba(101, 17, 29, .88);
  transform: translateY(-50%);
}

.mcs-faq-section { padding: 78px 0; background: linear-gradient(180deg, #fff, var(--mcs-surface)); }
.mcs-section-heading { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.mcs-section-heading > span { color: var(--mcs-primary); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mcs-section-heading h2 { margin: 8px 0 10px; color: var(--mcs-primary-dark); font-size: clamp(28px, 4vw, 42px); }
.mcs-section-heading p { color: var(--mcs-muted); }
.mcs-faq { width: min(100%, 880px); margin: 0 auto; }
.mcs-faq .accordion-item { margin-bottom: 12px; overflow: hidden; border: 1px solid #eadfe1; border-radius: 14px; box-shadow: 0 7px 22px rgba(42,24,27,.05); }
.mcs-faq .accordion-button { color: var(--mcs-ink); background: #fff; font-weight: 750; box-shadow: none; }
.mcs-faq .accordion-button:not(.collapsed) { color: var(--mcs-primary-dark); background: #fff8f4; }
.mcs-faq .accordion-button:focus { border-color: var(--mcs-primary); box-shadow: 0 0 0 3px rgba(143,29,44,.1); }
.mcs-faq .accordion-body { color: #475467; line-height: 1.75; }

#copyright .copyright,
#copyright .design { padding-block: 4px; }

.about-a img,
#about-banner img {
  width: 100%;
  object-fit: cover;
}

.button a,
.btn,
button {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.button a:hover,
.btn:hover { transform: translateY(-2px); }

/* WhatsApp admission lead popup */
.mcs-lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 21, 27, .68);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}

.mcs-lead-overlay.is-open { opacity: 1; visibility: visible; }

.mcs-lead-card {
  position: relative;
  width: min(100%, 510px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid rgba(213, 165, 46, .35);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
  transform: translateY(16px) scale(.98);
  transition: transform .28s ease;
}

.mcs-lead-overlay.is-open .mcs-lead-card { transform: none; }

.mcs-lead-head {
  padding: 28px 30px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--mcs-primary-dark), var(--mcs-primary));
}

.mcs-lead-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #ffe9a9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mcs-lead-head h2 { margin: 0 42px 7px 0; color: #fff; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; }
.mcs-lead-head p { margin: 0; color: rgba(255,255,255,.88); line-height: 1.55; }

.mcs-lead-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mcs-lead-close:hover { background: rgba(255,255,255,.24); }

.mcs-lead-form { padding: 25px 30px 30px; }
.mcs-lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mcs-lead-field--full { grid-column: 1 / -1; }
.mcs-lead-field label { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 700; }

.mcs-lead-field input,
.mcs-lead-field select,
.mcs-lead-field textarea {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 11px;
  color: #1d2939;
  background: #fff;
  outline: none;
}

.mcs-lead-field textarea { min-height: 82px; resize: vertical; }
.mcs-lead-field input:focus,
.mcs-lead-field select:focus,
.mcs-lead-field textarea:focus { border-color: var(--mcs-primary); box-shadow: 0 0 0 3px rgba(143,29,44,.1); }

.mcs-lead-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 19px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #168b48;
  box-shadow: 0 10px 24px rgba(22,139,72,.23);
  font-weight: 800;
  cursor: pointer;
}

.mcs-lead-submit:hover { background: #10763b; transform: translateY(-1px); }
.mcs-lead-note { margin: 12px 0 0; color: var(--mcs-muted); font-size: 12px; line-height: 1.5; text-align: center; }
body.mcs-popup-open { overflow: hidden; }

@media (max-width: 767px) {
  .container { width: min(100% - 22px, 1200px); }
  .mcs-lead-overlay { padding: 10px; align-items: end; }
  .mcs-lead-card { max-height: calc(100vh - 20px); border-radius: 20px 20px 14px 14px; }
  .mcs-lead-head { padding: 23px 20px 18px; }
  .mcs-lead-form { padding: 20px; }
  .mcs-lead-grid { grid-template-columns: 1fr; gap: 13px; }
  .mcs-lead-field--full { grid-column: auto; }
  #copyright .container { text-align: center; }
  #banner .mcs-banner-control { width: 36px; height: 36px; margin-inline: 7px; }
  #banner .mcs-banner-control .carousel-control-prev-icon,
  #banner .mcs-banner-control .carousel-control-next-icon { width: 15px; height: 15px; }
  .mcs-faq-section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
