/* ==========================================================================
   MMUMSA main stylesheet
   Design idea: deep green + gold, a mihrab-arch motif (arched photo frames)
   and a subtle eight-point-star pattern used only on dark green sections.
   ========================================================================== */
:root {
  --green: #0B5D3B;
  --emerald: #16865A;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --bg: #F5F8F6;
  --text: #202B25;
  --muted: #55655C;
  --line: #DCE6E0;
  --green-dark: #08452c;
  --shadow: 0 2px 4px rgba(11, 93, 59, .06), 0 10px 24px rgba(11, 93, 59, .08);
  --radius: 10px;
  --font-display: "Amiri", "Noto Naskh Arabic", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--emerald); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .6rem; color: var(--green); font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; max-width: 70ch; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.container { width: min(1180px, 92%); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--text); padding: .6rem 1rem; z-index: 3000; }
.skip-link:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; } /* honeypot field, hidden from people */

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: 700 .95rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--emerald); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--text); }
.btn-gold:hover { background: #e2c25a; color: var(--text); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--green); }
.btn-outline-dark { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline-dark:hover { background: var(--green); color: var(--white); }
.btn-danger { background: #a12a2a; color: #fff; }
.btn-sm { padding: .35rem .9rem; font-size: .85rem; }


/* ---------- Top bar ---------- */

.topbar {
  background: var(--green-dark);
  color: #e8f1ec;
  font-size: .875rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding-block: .45rem;
  flex-wrap: nowrap;
}

.topbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  min-width: 0;
}

.topbar-info li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.topbar a {
  color: #e8f1ec;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--gold);
}

.topbar i {
  color: var(--gold);
  margin-right: .35rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .9rem;
  flex-shrink: 0;
}

.topbar .social {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.topbar .social a {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.topbar .social i {
  margin: 0;
  color: #fff;
}

.topbar .social a:hover {
  background: var(--gold);
}

.topbar .social a:hover i {
  color: var(--text);
}

/* Support button */
.topbar .topbar-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  white-space: nowrap;
  padding: .45rem 1rem;
  font-size: .8rem;
  line-height: 1.2;
  color: var(--text);
  flex-shrink: 0;
}

.topbar .topbar-support i {
  color: inherit;
  margin: 0;
}

/* Tablet */
@media (max-width: 1000px) {
  .topbar .container {
      flex-wrap: wrap;
      justify-content: center;
      gap: .65rem;
  }

  .topbar-info {
      justify-content: center;
  }

  .topbar-actions {
      justify-content: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .topbar {
      display: none;
  }
}


/* ---------- Navbar ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(11, 93, 59, .06); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.brand-logo img { height: 105px; width: 105px; object-fit: contain; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .8rem; border: 0; background: none; font: 700 .95rem var(--font-body); color: var(--text); text-decoration: none; cursor: pointer; border-radius: 6px; border-bottom: 3px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--green); border-bottom-color: var(--gold); }
.dropdown { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--gold); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.dropdown a { display: block; padding: .55rem .8rem; color: var(--text); text-decoration: none; border-radius: 6px; font-size: .95rem; }
.dropdown a:hover, .dropdown a.active { background: var(--bg); color: var(--green); }
.has-dropdown.open > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: none; } }
.nav-toggle { display: none; background: none; border: 2px solid var(--green); color: var(--green); width: 44px; height: 44px; border-radius: 8px; font-size: 1.2rem; cursor: pointer; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.mmu-logo img { height: 105px; width: 105px; object-fit: contain; }
.mobile-only { display: none; }

/* ---------- Messages ---------- */
.messages { position: fixed; top: 90px; right: 1rem; z-index: 2000; display: grid; gap: .5rem; width: min(420px, 92vw); }
.message { background: var(--white); border-left: 6px solid var(--emerald); padding: .8rem 1rem; border-radius: 8px; box-shadow: var(--shadow); display: flex; justify-content: space-between; gap: 1rem; }
.message.error { border-color: #a12a2a; }
.message.info { border-color: var(--gold); }
.message button { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--muted); }

/* ---------- Layout helpers ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--white); }
.section-head { text-align: center; margin-bottom: 2.2rem; }
.section-head p { margin-inline: auto; color: var(--muted); }
.section-head h2::after { content: ""; display: block; width: 64px; height: 4px; background: var(--gold); margin: .6rem auto 0; border-radius: 2px; }
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.pattern-bg { position: relative; background: var(--green); color: var(--white); isolation: isolate; }
.pattern-bg::before { content: ""; position: absolute; inset: 0; background: url("../images/patterns/star.svg"); opacity: .16; z-index: -1; }
.pattern-bg h1, .pattern-bg h2, .pattern-bg h3 { color: var(--white); }

.page-banner { padding-block: 3rem; }
.page-banner p { color: #dcebe3; margin: 0; }
.breadcrumbs { font-size: .9rem; margin-bottom: .6rem; color: #cfe2d8; }
.breadcrumbs a { color: var(--gold); }

/* ---------- Cards ---------- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--bg); }
.card-img-empty { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--gold); font-size: 2rem; background: var(--green) url("../images/patterns/star.svg"); }
.card-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body h3 { font-size: 1.25rem; margin: 0; }
.card-body h3 a { text-decoration: none; }
.meta { font-size: .85rem; color: var(--muted); }
.meta i { color: var(--emerald); margin-right: .3rem; }
.read-more { margin-top: auto; font-weight: 700; text-decoration: none; }
.tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--bg); color: var(--green); font-size: .78rem; font-weight: 700; border: 1px solid var(--line); }
.tag-gold { background: var(--gold); color: var(--text); border-color: var(--gold); }
.tag-red { background: #a12a2a; color: #fff; border-color: #a12a2a; }

/* ---------- Hero slider ---------- */
.hero { position: relative; min-height: clamp(460px, 72vh, 640px); overflow: hidden; background: var(--green-dark); color: var(--white); }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; background: var(--green) center / cover no-repeat; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 69, 44, .92) 15%, rgba(8, 69, 44, .55) 70%, rgba(8, 69, 44, .35)); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: url("../images/patterns/star.svg"); opacity: .12; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-content { position: relative; z-index: 2; max-width: 640px; padding-block: 3rem; }
.hero-content h1, .hero-content h2 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.6rem); }
.hero-content p { font-size: 1.15rem; color: #e6f1ea; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(8, 69, 44, .55); color: #fff; cursor: pointer; font-size: 1.1rem; }
.hero-arrow:hover { background: var(--gold); color: var(--text); border-color: var(--gold); }
.hero-prev { left: 1rem; } .hero-next { right: 1rem; }
.hero-dots { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: .6rem; }
.hero-dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); }

/* ---------- Vision / Mission / Values ---------- */
.vmv-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 1.6rem; border-top: 5px solid var(--gold); transition: transform .25s; }
.vmv-card:hover { transform: translateY(-4px); border: #08452c;}
.vmv-icon { width: 64px; height: 64px; display: grid; place-items: center; font-size: 1.6rem; color: var(--gold); background: var(--green); border-radius: 32px 32px 4px 4px; margin-bottom: 1rem; }
.vmv-card ul { padding-left: 1.2rem; margin: 0; }
.notice { background: #fff8dc; border: 1px solid var(--gold); border-radius: 8px; padding: .6rem 1rem; font-size: .9rem; margin-bottom: 1.2rem; }

/* ---------- News + announcements ---------- */
.news-featured .card-img { aspect-ratio: 16 / 8; }
.news-list { display: grid; gap: 1rem; margin-top: 1.2rem; }
.news-row { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.news-row img, .news-row .thumb-empty { width: 120px; height: 100%; min-height: 96px; object-fit: cover; background: var(--green) url("../images/patterns/star.svg"); }
.news-row div { padding: .8rem .8rem .8rem 0; }
.news-row h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.announce-list { display: grid; gap: .9rem; }
.announce { background: var(--white); border-left: 5px solid var(--gold); padding: 1rem 1.1rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.announce.priority-1 { border-left-color: var(--emerald); }
.announce.priority-2 { border-left-color: #a12a2a; }
.announce h3 { font-size: 1.1rem; margin-bottom: .3rem; }

/* ---------- Statistics ---------- */
.stat-card { text-align: center; padding: 1.8rem 1rem; border: 1px solid rgba(212, 175, 55, .55); border-radius: var(--radius); background: rgba(255, 255, 255, .06); }
.stat-card i { font-size: 1.8rem; color: var(--gold); margin-bottom: .6rem; }
.stat-number { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; color: var(--white); line-height: 1; }
.stat-label { margin-top: .4rem; color: #dcebe3; }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; color: var(--white); background: var(--green) center / cover no-repeat; isolation: isolate; text-align: center; }
.newsletter::before { content: ""; position: absolute; inset: 0; background: rgba(8, 69, 44, .88); z-index: -1; }
.newsletter h2 { color: var(--white); }
.newsletter p { margin-inline: auto; color: #e3efe8; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.4rem; }
.newsletter-form input[type=email] { flex: 1 1 280px; max-width: 380px; padding: .8rem 1.1rem; border-radius: 999px; border: 2px solid transparent; font: inherit; }
.consent { flex-basis: 100%; font-size: .9rem; display: flex; gap: .5rem; justify-content: center; align-items: center; }

/* ---------- Partners ---------- */

.partners-section {
  padding: 4rem 0;
  background: var(--white);
  overflow: hidden;
}

.partners-section .section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.partners-section .section-head h2 {
  color: var(--green);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
}

.partners-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;

  mask-image: linear-gradient(
      90deg,
      transparent,
      #000 8%,
      #000 92%,
      transparent
  );

  -webkit-mask-image: linear-gradient(
      90deg,
      transparent,
      #000 8%,
      #000 92%,
      transparent
  );
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-partners 40s linear infinite;
}

.partners-viewport:hover .partners-track,
.partners-viewport:focus-within .partners-track {
  animation-play-state: paused;
}

.partner {
  flex: 0 0 180px;
  height: 120px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);

  padding: 1rem;
  text-decoration: none;

  transition: transform .3s ease, box-shadow .3s ease;
}

.partner img {
  display: block;
  width: 100%;
  height: 85px;
  max-width: 145px;

  margin: 0 auto;
  object-fit: contain;
}

.partner:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

@keyframes scroll-partners {
  to {
      transform: translateX(-50%);
  }
}

@media (max-width: 768px) {

  .partners-section {
      padding: 3rem 0;
  }

  .partners-track {
      gap: 1rem;
      animation-duration: 30s;
  }

  .partner {
      flex-basis: 140px;
      height: 100px;
      padding: .75rem;
  }

  .partner img {
      height: 70px;
      max-width: 115px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
      animation: none;
  }
}

/* ---------- Leadership & messages (arch frames) ---------- */
.leader { text-align: center; }
.arch { width: 190px; height: 230px; margin: 0 auto 1rem; border-radius: 95px 95px 8px 8px; border: 4px solid var(--gold); overflow: hidden; background: var(--green) url("../images/patterns/star.svg"); display: grid; place-items: center; color: var(--gold); font-size: 3rem; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.leader h3 { margin-bottom: .1rem; }
.leader .position { color: var(--emerald); font-weight: 700; margin-bottom: .5rem; }
.message-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
.prose p { max-width: 72ch; }
.prose { font-size: 1.1rem; }

/* ---------- Tables, filters, forms ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--green); color: #fff; font-weight: 700; white-space: nowrap; }
table.data tr:hover td { background: var(--bg); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; align-items: center; }
.filters input, .filters select { padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2.2rem); max-width: 760px; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; padding: .7rem .9rem; border: 1px solid #b9c9bf; border-radius: 8px; font: inherit; background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--emerald); outline: 3px solid rgba(22, 134, 90, .25); }
.field.checkbox label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.field .help { font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.field .error, .errorlist { color: #a12a2a; font-size: .9rem; margin: .25rem 0 0; padding: 0; list-style: none; font-weight: 700; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #a12a2a; }
.privacy-box { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; font-size: .92rem; margin-bottom: 1.1rem; }

/* ---------- Pagination, empty, chips ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { padding: .45rem .9rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; text-decoration: none; min-width: 40px; text-align: center; }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.empty { text-align: center; padding: 3rem 1rem; background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty i { font-size: 2.2rem; color: var(--gold); margin-bottom: .6rem; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chips a { padding: .35rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: .9rem; }
.chips a.active, .chips a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); border: 0; padding: 0; cursor: zoom-in; background: var(--green); width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(5, 30, 20, .94); z-index: 4000; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 78vh; max-width: 94vw; border-radius: 6px; }
.lightbox p { color: #fff; margin-top: .8rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.lightbox button:hover { background: var(--gold); color: var(--text); }
.lb-close { top: 1rem; right: 1rem; } .lb-prev { left: 1rem; top: 50%; } .lb-next { right: 1rem; top: 50%; }

/* ---------- Prayer ---------- */
.prayer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.prayer { background: var(--white); border-radius: 80px 80px 8px 8px; box-shadow: var(--shadow); text-align: center; padding: 2rem 1rem 1.2rem; border-top: 4px solid var(--gold); }
.prayer .time { font-family: var(--font-display); font-size: 2.2rem; color: var(--green); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #d4e5db; padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer h3 { color: var(--gold); font-size: 1.2rem; }
.site-footer a { color: #d4e5db; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
/* Footer Logo */
.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 220px;
  height: 150px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}
@media (max-width: 768px) {
  .footer-logo img {
      width: 190px;
      height: 130px;
  }
}

@media (max-width: 480px) {
  .footer-logo img {
      width: 170px;
      height: 120px;
  }
}
.footer-search { display: flex; margin-top: 1.2rem; }
.footer-search input { flex: 1; min-width: 0; padding: .6rem .9rem; border: 0; border-radius: 999px 0 0 999px; font: inherit; }
.footer-search button { border: 0; background: var(--gold); padding: 0 1rem; border-radius: 0 999px 999px 0; cursor: pointer; font-size: 1rem; }
.footer-social { display: flex; gap: .5rem; margin-top: .8rem; }
.footer-social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-block: 1.1rem; text-align: center; font-size: .9rem; }
.back-to-top { position: fixed; right: 1.2rem; bottom: 5.4rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--green); color: var(--gold); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 900; box-shadow: var(--shadow); font-size: 1.1rem; }
.back-to-top.show { opacity: 1; visibility: visible; }
.whatsapp-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 900; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; font-size: 1.9rem; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); text-decoration: none; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- Detail pages ---------- */
.detail-hero-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.video-frame { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); margin-bottom: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .partners-track { flex-wrap: wrap; width: auto; justify-content: center; }
}

/* =====================================================
   MMUMSA HERO SLIDER – CENTERED AND TALLER DESIGN
   ===================================================== */

/* Increase the overall slider height */
.hero {
  height: clamp(560px, 75vh, 760px);
  min-height: 560px;
  position: relative;
  overflow: hidden;
}

/* Center the slide content horizontally and vertically */
.hero-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center center;
  background-size: cover;
}

/* Balanced green overlay across the photograph */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(8, 69, 44, 0.22) 0%,
      rgba(8, 69, 44, 0.12) 50%,
      rgba(8, 69, 44, 0.18) 100%
  );
}

/* Keep the geometric pattern subtle */
.hero-slide::after {
  opacity: 0.015;
}

/* Center the text container */
.hero-content {
  width: 90%;
  max-width: 850px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Improve heading appearance */
.hero-content h1,
.hero-content h2 {
  color: #ffffff;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Center the description */
.hero-content p {
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto 1.5rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Center the action buttons */
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Keep navigation controls above the photograph */
.hero-arrow {
  z-index: 5;
}

.hero-dots {
  z-index: 5;
}

/* Mobile and tablet adjustments */
@media (max-width: 768px) {
  .hero {
      height: 620px;
      min-height: 620px;
  }

  .hero-content {
      width: 94%;
      padding: 2rem 0.5rem;
  }

  .hero-content h1,
  .hero-content h2 {
      font-size: clamp(2rem, 7vw, 2.7rem);
  }

  .hero-content p {
      font-size: 1rem;
      line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .hero {
      height: 580px;
      min-height: 580px;
  }

  .hero-content h1,
  .hero-content h2 {
      font-size: 2rem;
  }

  .hero-actions {
      gap: 10px;
  }
}

/* ==========================================
   MMUMSA OFFICIAL MESSAGES
========================================== */

.official-message-section {
  background: #f7f9f7;
  padding: 5rem 0;
}

/* Main layout */

.official-message-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

/* Profile card */

.official-profile {
  background: #ffffff;
  border: 1px solid #e4ebe5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 50, 30, .06);

  transition: transform .4s ease,
              box-shadow .4s ease;
}

.official-profile:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 35px rgba(0, 50, 30, .12);
}

/* Photograph */

.official-photo {
  width: 100%;
  height: 330px;
  overflow: hidden;
  background: #e8f0e9;
}

.official-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s ease;
}

.official-profile:hover .official-photo img {
  transform: scale(1.05);
}

.official-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #075b37;
}

/* Profile details */

.official-details {
  padding: 1.7rem;
  text-align: center;
}

.official-label {
  color: #b58b35;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.official-details h2 {
  color: #075b37;
  font-size: 1.45rem;
  font-weight: 800;
  margin: .8rem 0 .5rem;
}

.official-position {
  color: #b58b35;
  font-weight: 700;
  font-size: .95rem;
}

.official-divider {
  width: 55px;
  height: 3px;
  background: #b58b35;
  margin: 1.2rem auto;
  border-radius: 5px;
}

.official-date {
  color: #758078;
  font-size: .82rem;
}

.official-date i {
  margin-right: 5px;
  color: #075b37;
}

/* Message content */

.official-message-content {
  background: #ffffff;
  border: 1px solid #e4ebe5;
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 8px 25px rgba(0, 50, 30, .045);
  min-width: 0;
}

.message-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #075b37;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 2rem;
}

.message-heading-line {
  width: 35px;
  height: 3px;
  flex-shrink: 0;
  background: #b58b35;
  border-radius: 5px;
}

/* Message typography */

.message-text {
  color: #46544a;
  font-size: 1.02rem;
  line-height: 2;
  text-align: justify;
  overflow-wrap: anywhere;
}

.message-text p {
  margin-bottom: 1.4rem;
}

.message-text p:first-child {
  color: #075b37;
  font-weight: 600;
}

/* Closing signature */

.message-signoff {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8eee9;
}

.signoff-line {
  display: block;
  width: 45px;
  height: 3px;
  background: #b58b35;
  margin-bottom: 1rem;
}

.message-signoff p {
  color: #075b37;
  font-weight: 800;
  margin-bottom: .3rem;
}

.message-signoff small {
  color: #7a867e;
}

/* Tablet */

@media (max-width: 900px) {
  .official-message-layout {
      grid-template-columns: 260px minmax(0, 1fr);
      gap: 1.5rem;
  }

  .official-photo {
      height: 280px;
  }

  .official-message-content {
      padding: 1.8rem;
  }
}

/* Mobile */

@media (max-width: 650px) {
  .official-message-section {
      padding: 3rem 0;
  }

  .official-message-layout {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }

  .official-profile {
      max-width: 380px;
      width: 100%;
      margin-inline: auto;
  }

  .official-photo {
      height: 300px;
  }

  .official-message-content {
      padding: 1.5rem;
  }

  .message-text {
      font-size: .95rem;
      line-height: 1.85;
      text-align: left;
  }

  .message-heading {
      font-size: .7rem;
  }
}

.registration-subheading {
  margin-top: 2rem;
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  background: #f1f7f2;
  border-left: 4px solid #075b37;
  border-radius: 6px;
}

.registration-subheading h3 {
  color: #075b37;
  font-size: 1.15rem;
  margin-bottom: .4rem;
}

.registration-subheading p {
  color: #68746c;
  font-size: .9rem;
  margin-bottom: 0;
}



/* MMUMSA STAFF LOGIN DESIGN
   Scoped exclusively to the staff authentication page.
   Existing action buttons are intentionally untouched.
*/

.staff-login-card {
    width: min(100%, 540px);
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    background: var(--white);
    border: 1px solid rgba(11, 93, 59, 0.09);
    border-top: 4px solid var(--gold);
    border-radius: 18px;
    box-shadow:
        0 18px 45px rgba(11, 55, 35, 0.09),
        0 3px 10px rgba(11, 55, 35, 0.04);
}

/* Heading hierarchy */
.staff-login-card > h2 {
    margin: 0 0 .55rem;
    color: var(--green);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.025em;
}

.staff-login-card > h2 + p {
    margin: 0 0 1.6rem;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.7;
}

/* MFA form table alignment */
.staff-login-card form > table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .9rem;
    margin: 0 0 1.1rem;
}

.staff-login-card form > table th {
    width: 31%;
    padding: .65rem .9rem .65rem 0;
    color: var(--text);
    font-size: .92rem;
    font-weight: 700;
    text-align: left;
    vertical-align: middle;
}

.staff-login-card form > table td {
    width: 69%;
    padding: .35rem 0;
    vertical-align: middle;
}

/* Input fields only: no button styling */
.staff-login-card form > table input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]),
.staff-login-card form > table select,
.staff-login-card form > table textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    box-sizing: border-box;
    padding: .75rem .95rem;
    color: var(--text);
    background: #fbfdfb;
    border: 1px solid #d6e2da;
    border-radius: 10px;
    font: inherit;
    font-size: .96rem;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.staff-login-card form > table input:focus,
.staff-login-card form > table select:focus,
.staff-login-card form > table textarea:focus {
    outline: none;
    border-color: var(--emerald);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 134, 90, .12);
}

/* Validation and help text */
.staff-login-card form > table .errorlist,
.staff-login-card form > table ul.errorlist {
    margin: .4rem 0;
    padding: 0;
    color: #a12a2a;
    font-size: .84rem;
    font-weight: 600;
    list-style: none;
}

.staff-login-card form > table .helptext {
    display: block;
    margin-top: .4rem;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
}

/* Secondary information */
.staff-login-card form > p,
.staff-login-card > p {
    color: var(--muted);
    line-height: 1.65;
}

.staff-login-card hr {
    margin: 1.6rem 0;
    border: 0;
    border-top: 1px solid var(--line);
}

/* Narrow screens */
@media (max-width: 640px) {
    .staff-login-card {
        width: 100%;
        padding: 1.3rem 1.1rem;
        border-radius: 14px;
    }

    .staff-login-card form > table,
    .staff-login-card form > table tbody,
    .staff-login-card form > table tr,
    .staff-login-card form > table th,
    .staff-login-card form > table td {
        display: block;
        width: 100%;
    }

    .staff-login-card form > table th {
        padding: .2rem 0 .45rem;
    }

    .staff-login-card form > table td {
        padding: 0;
    }
}

/* =========================================
   MMUMSA ALUMNI REGISTRATION
========================================= */

.alumni-section {
    background: var(--light, #f7f9f6);
}

.alumni-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: start;
}

.alumni-intro {
    padding: 1.5rem 0;
}

.alumni-eyebrow,
.alumni-form-heading > span {
    display: inline-block;
    color: var(--gold, #c9a227);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    margin-bottom: .9rem;
}

.alumni-intro h2 {
    color: var(--primary, #14532d);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.2;
    margin: 0 0 1.2rem;
}

.alumni-intro > p {
    line-height: 1.8;
    color: var(--text-muted, #647067);
}

.alumni-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.7rem;
}

.alumni-benefit > i {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(201, 162, 39, .13);
    color: var(--gold, #b58b17);
}

.alumni-benefit strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--primary, #14532d);
}

.alumni-benefit p {
    margin: 0;
    color: var(--text-muted, #647067);
    line-height: 1.6;
    font-size: .94rem;
}

.alumni-form-panel {
    min-width: 0;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(20, 83, 45, .10);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .07);
}

.alumni-form-heading h2 {
    color: var(--primary, #14532d);
    margin: 0 0 .4rem;
}

.alumni-form-heading p {
    color: var(--text-muted, #647067);
    margin-bottom: 1.3rem;
}

.alumni-eligibility-note {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 1.4rem;
    border-radius: 10px;
    background: #f3f7ed;
    border-left: 4px solid var(--gold, #c9a227);
}

.alumni-eligibility-note > i {
    color: var(--primary, #14532d);
    margin-top: .2rem;
}

.alumni-eligibility-note p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
}

.alumni-form {
    padding: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
}

.alumni-optional-heading {
    margin-top: 1.8rem;
}

.alumni-submit {
    width: 100%;
    margin-top: 1rem;
}

.alumni-privacy-note {
    margin: 1rem 0 0;
    color: var(--text-muted, #647067);
    font-size: .8rem;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 800px) {
    .alumni-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .alumni-intro {
        padding: .5rem 0;
    }
}


/* ==========================================================
   MMUMSA STAFF MFA LOGIN — PRESENTATION ONLY
   Preserves Django Two-Factor authentication functionality.
   ========================================================== */

.staff-mfa-section {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.staff-login-card {
  position: relative;
  overflow: hidden;
  max-width: 540px;
  margin-inline: auto;
  padding: 2.5rem;
  border: 1px solid rgba(20, 75, 52, 0.10);
  border-top: 5px solid var(--gold);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(15, 55, 39, 0.11);
}

.staff-login-heading {
  text-align: center;
  margin-bottom: 1.8rem;
}

.staff-login-security-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 1.1rem;
  border-radius: 20px;
  color: var(--green);
  background: rgba(20, 75, 52, 0.08);
  font-size: 1.8rem;
}

.staff-login-eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: #9a7928;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.staff-login-heading h2 {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-size: 1.75rem;
  line-height: 1.25;
}

.staff-login-heading p {
  max-width: 390px;
  margin: 0 auto;
  color: #64736b;
  font-size: 0.96rem;
  line-height: 1.65;
}

.staff-login-heading .staff-login-device {
  margin-bottom: 0.5rem;
  color: var(--green);
  font-weight: 700;
}

.staff-login-security-note {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.5rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(20, 75, 52, 0.10);
  border-radius: 12px;
  background: #f3f8f5;
  color: #40584b;
  font-size: 0.86rem;
  line-height: 1.5;
}

.staff-login-security-note i {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 1.05rem;
}

.staff-login-card table {
  margin-bottom: 1.5rem;
}

.staff-login-card--token table input {
  min-height: 58px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
}

.staff-login-card--token table input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(20, 75, 52, 0.12);
}

.staff-login-card .staff-login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.staff-login-card .staff-login-actions .btn {
  min-width: 115px;
  justify-content: center;
}

.staff-login-card .staff-login-actions .btn-primary {
  min-width: 145px;
  box-shadow: 0 5px 14px rgba(20, 75, 52, 0.17);
}

.staff-login-card .staff-login-actions .btn-primary:hover {
  box-shadow: 0 8px 19px rgba(20, 75, 52, 0.22);
}

.staff-login-card .staff-login-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.staff-login-alternatives {
  margin: 1.2rem 0;
  padding: 1rem;
  border: 1px solid #e7eee9;
  border-radius: 12px;
  background: #fafcfb;
}

.staff-login-alternatives p {
  margin-bottom: 0.8rem;
  color: #52645a;
  font-size: 0.88rem;
  font-weight: 700;
}

.staff-login-alternatives .btn {
  margin: 0.2rem 0.35rem 0.2rem 0;
}

.staff-login-backup {
  margin-top: 1.8rem;
  text-align: center;
}

.staff-login-backup-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #8a968f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.staff-login-backup-divider::before,
.staff-login-backup-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5ebe7;
}

.staff-login-backup form p {
  margin-bottom: 0.85rem;
  color: #64736b;
  font-size: 0.88rem;
}

.staff-login-backup .btn {
  justify-content: center;
}

.staff-login-footer {
  margin: 1.3rem auto 0;
  color: #7b8981;
  font-size: 0.8rem;
  text-align: center;
}

.staff-login-footer i {
  margin-right: 0.35rem;
  color: #9a7928;
}

@media (max-width: 640px) {
  .staff-mfa-section {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .staff-login-card {
    padding: 1.5rem 1.15rem;
    border-radius: 16px;
  }

  .staff-login-security-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    font-size: 1.55rem;
  }

  .staff-login-heading h2 {
    font-size: 1.45rem;
  }

  .staff-login-card .staff-login-actions {
    gap: 0.6rem;
  }

  .staff-login-card .staff-login-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .staff-login-card--token table input {
    font-size: 1.15rem;
    letter-spacing: 0.25em;
  }
}

/* End MMUMSA staff MFA login presentation */

/* Password strength meter */
.password-strength {
    margin-top: 10px;
    width: 100%;
}

.password-strength-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 20px;
    background: #e5e7eb;
}

.password-strength-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #b45309;
    transition: width 0.25s ease;
}

.password-strength-label {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: inherit;
}


/* ---------- Password recovery pages ---------- */

.recovery-section {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: clamp(2rem, 6vw, 4.5rem);
}

.recovery-container {
    width: min(100%, 560px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.recovery-card {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    box-sizing: border-box;
}

.recovery-card h1 {
    text-align: center;
    margin-bottom: 1.1rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.recovery-card > p {
    max-width: 48ch;
    margin: 0 auto 1rem;
    text-align: center;
    color: var(--muted);
    line-height: 1.7;
}

.recovery-card form {
    width: 100%;
    margin-top: 1.6rem;
}

.recovery-card .form-group {
    width: 100%;
    margin-bottom: 1.3rem;
}

.recovery-card .form-group label {
    display: block;
    margin-bottom: .55rem;
    color: var(--green-dark);
    font-weight: 700;
    font-size: .95rem;
}

.recovery-card .form-group input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: .75rem 1rem;
    box-sizing: border-box;
    border: 1px solid #b9c9bf;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.recovery-card .form-group input:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(22, 134, 90, .18);
}

.recovery-card form .btn-primary {
    display: flex;
    width: 100%;
    min-height: 48px;
    justify-content: center;
    align-items: center;
    border-radius: 9px;
    margin-top: .5rem;
}

.recovery-card > p:last-child {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: .95rem;
}

.recovery-card > p:last-child a {
    font-weight: 700;
    text-decoration: none;
}

.recovery-card > p:last-child a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 600px) {
    .recovery-section {
        min-height: auto;
        padding-block: 2rem;
    }

    .recovery-container {
        width: 100%;
    }

    .recovery-card {
        padding: 1.4rem 1.1rem;
    }
}

/* ---------- End password recovery pages ---------- */


/* ---------- Homepage Upcoming Events letter animation ---------- */

.events-letter-animation {
    display: inline-flex;
    white-space: nowrap;
    vertical-align: baseline;
}

.events-letter-animation .event-letter {
    display: inline-block;
    position: relative;
    animation: events-letter-slide 1.8s ease-in-out infinite;
    will-change: transform, opacity;
}

.events-letter-animation .letter-1 { animation-delay: 0s; }
.events-letter-animation .letter-2 { animation-delay: .15s; }
.events-letter-animation .letter-3 { animation-delay: .30s; }
.events-letter-animation .letter-4 { animation-delay: .45s; }
.events-letter-animation .letter-5 { animation-delay: .60s; }
.events-letter-animation .letter-6 { animation-delay: .75s; }

@keyframes events-letter-slide {
    0% {
        transform: translateX(-.4em);
        opacity: .35;
    }
    35% {
        transform: translateX(0);
        opacity: 1;
    }
    70% {
        transform: translateX(.4em);
        opacity: 1;
    }
    100% {
        transform: translateX(.4em);
        opacity: .35;
    }
}

/* ---------- End Upcoming Events letter animation ---------- */
