/* =========================================================
   مقرأة مكة العالمية — Design System
   Emerald + Gold Islamic professional language
   ========================================================= */

/*
 * Digits / punctuation: Thmanyah woff2 is Arabic-only. On some mobile browsers,
 * Latin digits inside Arabic runs render blank. Bind the same family name to
 * local system fonts for numerals so 04:00 / 17 / 2026 stay visible.
 * Also exclude Arabic-Indic digits (U+0660-0669) from the woff2 ranges below.
 */
@font-face {
  font-family: "Thmanyah Sans";
  src: local("Segoe UI"), local("Tahoma"), local("Roboto"), local("Arial");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+002E, U+003A, U+002F, U+002C, U+002D;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/thmanyahsans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-065F, U+066A-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/thmanyahsans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-065F, U+066A-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/thmanyahsans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-065F, U+066A-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/thmanyahsans-Medium.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-065F, U+066A-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/thmanyahsans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-065F, U+066A-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/thmanyahsans-Black.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-065F, U+066A-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/fonts/thmanyah/thmanyahsans-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-065F, U+066A-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  /* Palette from official logo: navy + gold */
  --sm-ink: #0b1c2c;
  --sm-emerald: #0a2f4a;
  --sm-emerald-mid: #123f5f;
  --sm-emerald-soft: #e8eef4;
  --sm-navy: #0a2f4a;
  --sm-navy-mid: #123f5f;
  --sm-navy-soft: #e8eef4;
  --sm-gold: #b5965e;
  --sm-gold-bright: #c9ab72;
  --sm-gold-soft: #f4eee2;
  --sm-surface: #f6f7f9;
  --sm-surface-alt: #ffffff;
  --sm-muted: #5a6672;
  --sm-line: rgba(10, 47, 74, 0.12);
  --sm-radius: 18px;
  --sm-radius-sm: 12px;
  --sm-shadow: 0 18px 40px rgba(10, 47, 74, 0.08);
  --sm-shadow-soft: 0 8px 24px rgba(10, 47, 74, 0.06);
  --sm-font-display: "Thmanyah Sans", "Segoe UI", Roboto, Tahoma, Arial, sans-serif;
  --sm-font-body: "Thmanyah Sans", "Segoe UI", Roboto, Tahoma, Arial, sans-serif;
  --sm-container: 1440px;
  --sm-container-gutter: 1.5rem;
  --sm-header-h: 84px;
  --sm-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b5965e' fill-opacity='0.09'%3E%3Cpath d='M30 0l6 12 12 6-12 6-6 12-6-12-12-6 12-6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }

body,
.sm-site,
.sm-site *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.hgi):not([class*="hgi-"]) {
  font-family: "Thmanyah Sans", "Segoe UI", Roboto, Tahoma, Arial, sans-serif !important;
}

body,
.sm-site,
.sm-site button,
.sm-site input,
.sm-site select,
.sm-site textarea {
  color: var(--sm-ink);
  line-height: 1.7;
}

body {
  background: var(--sm-surface);
}

#app {
  overflow-x: hidden;
}

.sm-container {
  width: min(100% - var(--sm-container-gutter), var(--sm-container));
  margin-inline: auto;
}

.sm-display {
  font-family: var(--sm-font-body);
  font-weight: 700;
  line-height: 1.35;
}

.text-major { color: var(--sm-emerald) !important; }
.text-minor { color: var(--sm-gold-soft) !important; }
.bg-major { background: var(--sm-emerald) !important; }
.bg-minor { background: var(--sm-emerald-soft) !important; }

/* Ornament divider */
.sm-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: .85rem 0 1.25rem;
}
.sm-ornament::before,
.sm-ornament::after {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sm-gold), transparent);
}
.sm-ornament span {
  width: 8px;
  height: 8px;
  border: 1px solid var(--sm-gold);
  transform: rotate(45deg);
}

/* Buttons */
.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sm-font-body);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
}
.sm-btn:hover { transform: translateY(-2px); }
.sm-btn--primary {
  background: linear-gradient(135deg, var(--sm-emerald), var(--sm-emerald-mid));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(11, 61, 46, 0.25);
}
.sm-btn--primary:hover { color: #fff !important; box-shadow: 0 14px 28px rgba(11, 61, 46, 0.3); }
.sm-btn--gold {
  background: linear-gradient(135deg, var(--sm-gold), var(--sm-gold-bright));
  color: #fff !important;
}
.sm-btn--gold:hover { color: #fff !important; }
.sm-btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.45);
  color: #fff !important;
}
.sm-btn--ghost:hover { background: rgba(255,255,255,.1); }
.sm-btn--outline {
  background: transparent;
  border-color: var(--sm-emerald);
  color: var(--sm-emerald) !important;
}
.sm-btn--outline:hover { background: var(--sm-emerald-soft); }

/* Section */
.sm-section {
  position: relative;
  padding: 4.5rem 0;
}
.sm-section--surface { background: var(--sm-surface-alt); }
.sm-section--muted { background: var(--sm-surface); }
.sm-section--emerald {
  background:
    radial-gradient(circle at 20% 20%, rgba(181,150,94,.2), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(18,63,95,.4), transparent 45%),
    linear-gradient(160deg, #071f33, #123f5f 55%, #0a2f4a);
  color: #fff;
}
.sm-section--pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--sm-pattern);
  pointer-events: none;
  opacity: .9;
}
.sm-section--surface.sm-section--pattern {
  background:
    linear-gradient(180deg, #fbfcfd 0%, #f3f5f8 100%);
  overflow: hidden;
}
.sm-section--surface.sm-section--pattern::before {
  opacity: 1;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(181, 150, 94, 0.12), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(10, 47, 74, 0.06), transparent 46%),
    var(--sm-pattern);
  animation: sm-pattern-drift 28s linear infinite;
}
.sm-section--surface.sm-section--pattern::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 150, 94, 0.12), transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: sm-orb-float 9s ease-in-out infinite;
}
@keyframes sm-pattern-drift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 60px 60px; }
}
@keyframes sm-orb-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-18px, -22px, 0); }
}
.sm-section > * { position: relative; z-index: 1; }

.sm-section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.sm-section-heading__title {
  font-family: var(--sm-font-body);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  color: var(--sm-emerald);
  margin: 0;
}
.sm-section--emerald .sm-section-heading__title { color: #fff; }
.sm-section-heading__sub {
  margin: .35rem 0 0;
  color: var(--sm-muted);
  font-weight: 400;
  font-size: 1.05rem;
}
.sm-section--emerald .sm-section-heading__sub { color: rgba(255,255,255,.78); }

/* Header — transparent over hero, frosted glass on scroll */
.sm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    backdrop-filter .28s ease,
    -webkit-backdrop-filter .28s ease;
}
.sm-header.is-scrolled,
.sm-header.is-open,
.sm-site:not(:has(.sm-hero)) .sm-header {
  background: rgba(246, 247, 249, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--sm-line);
  box-shadow: 0 10px 28px rgba(10, 47, 74, 0.08);
}
/* Keep content clear of fixed header (homepage hero fills under it) */
.sm-site:not(:has(.sm-hero)) {
  padding-top: var(--sm-header-h);
}
/* Light nav when floating over dark hero */
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-brand__name,
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-nav a {
  color: #fff !important;
}
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-brand__tag {
  color: rgba(255, 255, 255, 0.78);
}
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
}
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-nav a.is-active {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--sm-emerald) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-btn--outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff !important;
}
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
}
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-header__toggle {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-lang__toggle {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-profile__toggle {
  background: transparent;
  border-color: transparent;
  color: #fff;
}
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-profile__name {
  color: #fff;
}
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-profile__avatar:not(.sm-profile__avatar--photo) {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.sm-site:has(.sm-hero) .sm-header:not(.is-scrolled):not(.is-open) .sm-mobile-panel {
  border-top-color: rgba(255, 255, 255, 0.18);
}
.sm-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--sm-header-h);
}
.sm-header .sm-container {
  width: min(100% - var(--sm-container-gutter), var(--sm-container));
}
.sm-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none !important;
  color: var(--sm-emerald) !important;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 18rem;
}
.sm-nav-desktop {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.sm-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sm-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .85rem;
  color: var(--sm-ink) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
  white-space: nowrap;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.sm-nav a:hover {
  background: var(--sm-emerald-soft);
  color: var(--sm-emerald) !important;
}
.sm-nav a.is-active {
  background: var(--sm-emerald) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(10, 47, 74, 0.18);
}
.sm-header__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 0 0 auto;
  margin-inline-start: .25rem;
}
.sm-header__actions-desktop {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
}
.sm-header__actions .sm-btn {
  min-height: 40px;
  padding: .5rem .95rem;
  font-size: .84rem;
}
.sm-header__actions .sm-btn--icon {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.2rem;
}
.sm-header__actions .sm-btn--icon i {
  margin: 0;
  line-height: 1;
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sm-header__actions .sm-btn--icon i::before {
  font-size: inherit;
  line-height: 1;
}
.sm-brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(181,150,94,.35), 0 6px 16px rgba(10,47,74,.12);
}
.sm-brand__text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  line-height: 1.25;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}
.sm-brand__name {
  display: block;
  font-family: var(--sm-font-body);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--sm-navy);
  white-space: nowrap;
  letter-spacing: normal;
  word-spacing: normal;
}
.sm-brand__tag {
  display: block;
  font-size: .6rem;
  font-weight: 500;
  color: var(--sm-muted);
  white-space: nowrap;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: start;
}
@media (max-width: 575.98px) {
  .sm-brand img { width: 56px; height: 56px; }
  .sm-brand__tag { display: none; }
}
.sm-header__toggle {
  display: none;
  border: 1px solid var(--sm-line);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--sm-emerald);
}
.sm-mobile-panel {
  display: none;
  border-top: 1px solid var(--sm-line);
  padding: 1rem 0 1.25rem;
}
.sm-mobile-panel.is-open { display: block; }
.sm-mobile-panel .sm-nav {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: wrap;
}
.sm-mobile-panel .sm-nav a {
  padding: .85rem 1rem;
  white-space: normal;
}

@media (max-width: 1399.98px) and (min-width: 992px) {
  .sm-brand__tag { display: none; }
  .sm-brand { max-width: 14rem; }
  .sm-brand__name { font-size: 1.15rem; }
  .sm-nav { gap: .1rem; }
  .sm-nav a { padding: .5rem .65rem; font-size: .9rem; }
  .sm-header__actions { gap: .55rem; }
  .sm-header__actions .sm-btn--icon {
    width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: .95rem;
  }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .sm-nav a { padding: .45rem .55rem; font-size: .86rem; }
}

@media (max-width: 991.98px) {
  .sm-nav-desktop,
  .sm-header__actions-desktop { display: none !important; }
  .sm-header__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .sm-brand { max-width: none; }
}

@media (min-width: 992px) {
  .sm-mobile-panel { display: none !important; }
}

/* Language switcher (Bootstrap dropdown) */
.sm-lang {
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
}
.sm-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 42px;
  padding: .45rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--sm-line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--sm-navy);
  font-family: var(--sm-font-body);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.sm-lang__flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(10, 47, 74, 0.12);
  flex-shrink: 0;
  display: block;
}
.sm-lang__toggle:hover,
.sm-lang__toggle:focus-visible {
  background: var(--sm-emerald-soft);
  outline: none;
}
.sm-lang__caret {
  font-size: .65rem;
  opacity: .7;
}
.sm-lang__menu {
  /* With data-bs-display="static", CSS anchors the menu (RTL-safe). */
  --bs-position: unset;
  position: absolute !important;
  inset: auto !important;
  inset-inline-end: 0 !important;
  inset-inline-start: auto !important;
  top: calc(100% + .45rem) !important;
  right: auto;
  left: auto;
  margin: 0 !important;
  transform: none !important;
  min-width: 12.5rem;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  padding: .4rem 0;
  border: 1px solid var(--sm-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--sm-shadow-soft);
  z-index: 1060;
}
[dir="rtl"] .sm-lang__menu {
  right: auto !important;
  left: 0 !important;
}
[dir="ltr"] .sm-lang__menu {
  left: auto !important;
  right: 0 !important;
}
.sm-lang__item {
  display: flex !important;
  align-items: center;
  gap: .65rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--sm-ink) !important;
  padding: .55rem 1rem;
}
.sm-lang__item:hover,
.sm-lang__item:focus {
  background: var(--sm-emerald-soft);
  color: var(--sm-emerald) !important;
}
.sm-lang__item.is-active {
  background: var(--sm-emerald-soft);
  color: var(--sm-emerald) !important;
  font-weight: 700;
}
@media (max-width: 575.98px) {
  .sm-lang__current { display: none; }
  .sm-lang__toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
  .sm-lang__caret { display: none; }
  .sm-lang__flag {
    width: 24px;
    height: 18px;
  }
}

/* Profile menu (external header — Bootstrap dropdown) */
.sm-profile {
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
}
.sm-profile__toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  max-width: 15rem;
  padding: .3rem .15rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--sm-navy);
  font-family: var(--sm-font-body);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: none;
  transition: color .2s ease, opacity .2s ease;
}
.sm-profile__toggle:hover,
.sm-profile__toggle:focus-visible,
.sm-profile.show .sm-profile__toggle {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
  opacity: .88;
}
.sm-profile__avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sm-navy);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  overflow: hidden;
}
.sm-profile__avatar--photo {
  object-fit: cover;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(181, 150, 94, 0.35);
}
.sm-profile__meta {
  display: block;
  min-width: 0;
  max-width: 9.5rem;
}
.sm-profile__name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--sm-navy);
}
.sm-profile__caret {
  font-size: .7rem;
  opacity: .7;
  margin-inline-start: .05rem;
  transition: transform .2s ease;
}
.sm-profile.show .sm-profile__caret {
  transform: rotate(180deg);
}
.sm-profile__menu {
  --bs-position: unset;
  position: absolute !important;
  inset: auto !important;
  inset-inline-end: 0 !important;
  inset-inline-start: auto !important;
  top: calc(100% + .45rem) !important;
  right: auto;
  left: auto;
  margin: 0 !important;
  transform: none !important;
  min-width: 14rem;
  padding: .45rem 0;
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-sm);
  background: #fff;
  box-shadow: var(--sm-shadow);
  z-index: 1060;
}
[dir="rtl"] .sm-profile__menu {
  right: auto !important;
  left: 0 !important;
}
[dir="ltr"] .sm-profile__menu {
  left: auto !important;
  right: 0 !important;
}
.sm-profile__item {
  display: flex !important;
  align-items: center;
  gap: .7rem;
  width: 100%;
  font-size: .9rem;
  font-weight: 600;
  color: var(--sm-ink) !important;
  padding: .7rem 1rem;
  background: transparent;
  border: 0;
  text-align: start;
}
.sm-profile__item > i {
  font-size: 1.05rem;
  color: var(--sm-muted);
  flex: 0 0 auto;
}
.sm-profile__item:hover,
.sm-profile__item:focus {
  background: var(--sm-emerald-soft);
  color: var(--sm-emerald) !important;
}
.sm-profile__item:hover > i,
.sm-profile__item:focus > i {
  color: var(--sm-emerald);
}
.sm-profile__item--danger,
.sm-profile__item--danger > i {
  color: #c15b5b !important;
}
.sm-profile__item--danger:hover,
.sm-profile__item--danger:focus {
  background: #fdeeee;
  color: #a94444 !important;
}
.sm-profile__item--danger:hover > i,
.sm-profile__item--danger:focus > i {
  color: #a94444 !important;
}
.sm-profile__divider {
  margin: .35rem .85rem;
  border-color: var(--sm-line);
  opacity: 1;
}
.sm-mobile-panel .sm-profile__mobile-logout {
  color: #c15b5b !important;
  border-color: rgba(193, 91, 91, 0.35);
}
.sm-mobile-panel .sm-profile__mobile-logout:hover {
  background: #fdeeee;
  border-color: rgba(193, 91, 91, 0.5);
  color: #a94444 !important;
}
@media (max-width: 1199.98px) and (min-width: 992px) {
  .sm-profile__meta { display: none; }
  .sm-profile__toggle {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }
  .sm-profile__caret { display: none; }
}

/* Hero — full-bleed under transparent fixed header */
.sm-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 22rem;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  background: #071f33;
}
@supports (height: 100dvh) {
  .sm-hero {
    height: 100dvh;
  }
}
.sm-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sm-hero__media .carousel,
.sm-hero__media .carousel-inner,
.sm-hero__media .carousel-item {
  height: 100%;
  width: 100%;
}
.sm-hero__media .carousel-item {
  position: relative;
}
.sm-hero__media picture {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sm-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.sm-hero__media > div {
  width: 100%;
  height: 100%;
}
.sm-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,31,51,.22) 0%, rgba(7,31,51,.52) 48%, rgba(7,31,51,.92) 100%),
    radial-gradient(circle at 70% 20%, rgba(181,150,94,.2), transparent 42%);
  pointer-events: none;
}
.sm-hero > .sm-container {
  position: relative;
  z-index: 2;
  width: min(100% - var(--sm-container-gutter), var(--sm-container));
  align-self: center;
  justify-self: center;
}
.sm-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 3vh, 2.5rem) 0;
  color: #fff;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.sm-hero__brand {
  font-family: var(--sm-font-body);
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin: 0 0 .6rem;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
  animation: sm-fade-up .8s ease both;
}
.sm-hero__lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.88);
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  animation: sm-fade-up .9s ease .1s both;
}
.sm-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  animation: sm-fade-up 1s ease .18s both;
}
.sm-hero .carousel-control-prev,
.sm-hero .carousel-control-next {
  width: 8%;
  z-index: 3;
  opacity: .85;
}
.sm-hero .carousel-indicators {
  z-index: 3;
  margin: 0;
  margin-bottom: clamp(0.85rem, 2.2vh, 1.35rem);
  gap: 0.45rem;
  align-items: center;
  /* Keep dots near the bottom edge while content stays vertically centered */
  bottom: 1.1rem;
}
.sm-hero .carousel-indicators [data-bs-target] {
  width: 0.55rem;
  height: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: width .28s ease, background-color .28s ease, opacity .28s ease;
}
.sm-hero .carousel-indicators .active {
  width: 1.85rem;
  background-color: var(--sm-gold-bright);
  opacity: 1;
}
@media (max-width: 767.98px) {
  .sm-hero {
    min-height: 20rem;
  }
  .sm-hero .carousel-control-prev,
  .sm-hero .carousel-control-next {
    width: 12%;
  }
  .sm-hero__content {
    max-width: none;
  }
}

@keyframes sm-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stats */
.sm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.sm-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--sm-radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--sm-line);
  box-shadow: var(--sm-shadow-soft);
  backdrop-filter: blur(6px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sm-stat:hover {
  transform: translateY(-6px);
  border-color: rgba(181, 150, 94, 0.4);
  box-shadow: var(--sm-shadow);
}
.sm-stat__value {
  font-family: var(--sm-font-body);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--sm-emerald);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.sm-stat__label {
  margin: .35rem 0 0;
  color: var(--sm-muted);
  font-size: .95rem;
}
.sm-stat__icon,
.sm-stat img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: .5rem;
  filter: none;
  animation: sm-stat-bob 3.6s ease-in-out infinite;
}
.sm-stat:nth-child(2) .sm-stat__icon,
.sm-stat:nth-child(2) img { animation-delay: .35s; }
.sm-stat:nth-child(3) .sm-stat__icon,
.sm-stat:nth-child(3) img { animation-delay: .7s; }
.sm-stat:nth-child(4) .sm-stat__icon,
.sm-stat:nth-child(4) img { animation-delay: 1.05s; }
.sm-stat:nth-child(5) .sm-stat__icon,
.sm-stat:nth-child(5) img { animation-delay: 1.4s; }
.sm-stat:nth-child(6) .sm-stat__icon,
.sm-stat:nth-child(6) img { animation-delay: 1.75s; }
@keyframes sm-stat-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .sm-section--surface.sm-section--pattern::before,
  .sm-section--surface.sm-section--pattern::after,
  .sm-section--muted.sm-section--pattern::before,
  .sm-stat__icon,
  .sm-stat img {
    animation: none !important;
  }
}
.sm-section--emerald .sm-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
  backdrop-filter: none;
}
.sm-section--emerald .sm-stat:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
  box-shadow: none;
}
.sm-section--emerald .sm-stat__value { color: var(--sm-gold-bright); }
.sm-section--emerald .sm-stat__label { color: rgba(255,255,255,.8); }
.sm-section--emerald .sm-stat img,
.sm-section--emerald .sm-stat__icon {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}

@media (max-width: 767.98px) {
  .sm-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Media cards — interaction containers */
.sm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.sm-grid--reciters {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 991.98px) {
  .sm-grid { grid-template-columns: repeat(2, 1fr); }
  .sm-grid--reciters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .sm-grid { grid-template-columns: 1fr; }
  .sm-grid--reciters { grid-template-columns: 1fr; }
}

/* Reciter cards */
.sm-reciter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 10px 28px rgba(10, 47, 74, .06);
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sm-reciter-card:hover {
  transform: translateY(-6px);
  border-color: rgba(181, 150, 94, .5);
  box-shadow: 0 18px 40px rgba(10, 47, 74, .12);
  color: inherit !important;
  text-decoration: none !important;
}
.sm-reciter-card__banner {
  flex: 0 0 auto;
  height: 5.25rem;
  background:
    linear-gradient(120deg, rgba(181, 150, 94, .22), transparent 48%),
    linear-gradient(160deg, #0a2f4a 0%, #123f5f 58%, #163a54 100%);
  border-bottom: 2px solid var(--sm-gold, #b5965e);
}
.sm-reciter-card__avatar {
  position: relative;
  z-index: 1;
  width: 6.75rem;
  height: 6.75rem;
  margin: -3.35rem auto 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  background: linear-gradient(145deg, #0a2f4a, #163a54);
  box-shadow: 0 10px 24px rgba(10, 47, 74, .18);
  outline: 2px solid rgba(181, 150, 94, .55);
  outline-offset: 2px;
}
.sm-reciter-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .4s ease;
  pointer-events: none;
}
.sm-reciter-card:hover .sm-reciter-card__avatar img {
  transform: scale(1.05);
}
.sm-reciter-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  width: 100%;
  flex: 1 1 auto;
  padding: .95rem 1.15rem 1.2rem;
  text-align: center;
}
.sm-reciter-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--sm-gold, #b5965e);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.sm-reciter-card__name {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
}
.sm-reciter-card__role {
  margin: .15rem 0 0;
  color: var(--sm-muted, #64748b);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.55;
  min-height: 2.8em;
}
.sm-reciter-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: auto;
  padding: .6rem 1.15rem;
  border-radius: var(--radius-control, 6px);
  background: var(--sm-ink, #0a2f4a);
  color: #fff !important;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background .2s ease, gap .2s ease;
}
.sm-reciter-card:hover .sm-reciter-card__cta {
  background: var(--sm-gold, #b5965e);
  gap: .55rem;
}
.sm-reciter-card__cta > i {
  font-size: .85rem;
}

/* =========================================================
   Track cards
   ========================================================= */
.sm-track-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--sm-surface-alt);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: var(--sm-shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sm-track-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sm-shadow);
  border-color: rgba(181, 150, 94, 0.55);
}
.sm-track-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, var(--sm-emerald), var(--sm-emerald-mid));
}
.sm-track-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .45s ease;
}
.sm-track-card:hover .sm-track-card__media img {
  transform: scale(1.06);
}
.sm-track-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(7, 31, 51, 0.45) 100%),
    linear-gradient(135deg, rgba(10, 47, 74, 0.12), rgba(181, 150, 94, 0.1));
  pointer-events: none;
}
.sm-track-card__accent {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sm-gold), var(--sm-gold-bright), transparent);
  z-index: 1;
}
.sm-track-card__index {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--sm-emerald);
  font-family: var(--sm-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(7, 31, 51, 0.18);
}
.sm-track-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  padding: 1.15rem 1.2rem 1.3rem;
}
.sm-track-card__title {
  margin: 0;
  font-family: var(--sm-font-body);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sm-emerald);
}
.sm-track-card__text {
  margin: 0;
  flex: 1;
  color: var(--sm-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
.sm-track-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  color: var(--sm-gold);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap .25s ease, color .25s ease;
}
.sm-track-card__cta .fas,
.sm-track-card__cta .hgi {
  font-size: 0.65rem;
  transition: transform .25s ease;
}
.sm-track-card:hover .sm-track-card__cta {
  color: var(--sm-gold-bright);
  gap: 0.65rem;
}
.sm-track-card:hover .sm-track-card__cta .fas,
.sm-track-card:hover .sm-track-card__cta .hgi {
  transform: translateX(-3px);
}

.sm-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--sm-surface-alt);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius);
  overflow: hidden;
  box-shadow: var(--sm-shadow-soft);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.sm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sm-shadow);
  border-color: rgba(196,165,64,.45);
}
.sm-card__media {
  aspect-ratio: 16 / 10;
  background: var(--sm-emerald-soft) center/cover no-repeat;
}
.sm-card__body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.sm-card__title {
  font-family: var(--sm-font-body);
  font-size: 1.25rem;
  color: var(--sm-emerald);
  margin: 0;
}
.sm-card__text {
  color: var(--sm-muted);
  font-size: .92rem;
  margin: 0;
  flex: 1;
}
.sm-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .35rem;
  color: var(--sm-gold);
  font-weight: 600;
  font-size: .9rem;
}
.sm-card--row {
  flex-direction: row;
  align-items: stretch;
}
.sm-card--row .sm-card__media {
  width: 38%;
  min-width: 120px;
  aspect-ratio: auto;
  position: relative;
  background-size: cover;
  background-position: center;
}
.sm-card--row .sm-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 47, 74, 0.18), rgba(181, 150, 94, 0.12));
  pointer-events: none;
}
.sm-card--row .sm-card__body { width: 62%; }
@media (max-width: 575.98px) {
  .sm-card--row { flex-direction: column; }
  .sm-card--row .sm-card__media,
  .sm-card--row .sm-card__body { width: 100%; }
  .sm-card--row .sm-card__media { aspect-ratio: 16 / 10; }
}

.sm-section--muted.sm-section--pattern {
  background: linear-gradient(180deg, #f7f8fa 0%, #eef1f5 100%);
  overflow: hidden;
}
.sm-section--muted.sm-section--pattern::before {
  opacity: 1;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(181, 150, 94, 0.1), transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(10, 47, 74, 0.05), transparent 42%),
    var(--sm-pattern);
  animation: sm-pattern-drift 32s linear infinite;
}

.sm-card--program .sm-card__media {
  aspect-ratio: 4 / 3;
}
.sm-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--sm-gold-soft);
  color: var(--sm-emerald);
}
.sm-badge--danger {
  background: #fde8e8;
  color: #9b1c1c;
}

/* Program cards */
.sm-grid--programs {
  gap: 1.5rem;
}
.sm-program-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--sm-line);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 10px 28px rgba(10, 47, 74, 0.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sm-program-card:hover {
  transform: translateY(-8px);
  border-color: rgba(181, 150, 94, 0.45);
  box-shadow: 0 22px 44px rgba(10, 47, 74, 0.12);
}
.sm-program-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background:
    linear-gradient(145deg, #0a2f4a, #123f5f 55%, #b5965e);
}
.sm-program-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .55s ease;
}
.sm-program-card:hover .sm-program-card__media img {
  transform: scale(1.06);
}
.sm-program-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 31, 51, 0.05) 0%, rgba(7, 31, 51, 0.55) 100%);
  pointer-events: none;
}
.sm-program-card__badge {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(7, 31, 51, 0.16);
}
.sm-program-card__badge.is-open {
  background: rgba(232, 245, 233, 0.95);
  color: #1b5e20;
}
.sm-program-card__badge.is-closed {
  background: rgba(253, 232, 232, 0.95);
  color: #9b1c1c;
}
.sm-program-card__body {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1;
  padding: 1.35rem 1.35rem 1.4rem;
}
.sm-program-card__title {
  margin: 0;
  font-family: var(--sm-font-body);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--sm-navy);
}
.sm-program-card__text {
  margin: 0;
  flex: 1;
  color: var(--sm-muted);
  font-size: .95rem;
  line-height: 1.7;
}
.sm-program-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .35rem;
  padding-top: .95rem;
  border-top: 1px solid var(--sm-line);
}
.sm-program-card__meta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--sm-gold);
  font-size: .88rem;
  font-weight: 600;
  min-width: 0;
}
.sm-program-card__meta i {
  color: var(--sm-navy);
  opacity: .55;
}
.sm-program-card__cta {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--sm-emerald-soft);
  color: var(--sm-navy);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.sm-program-card:hover .sm-program-card__cta {
  background: var(--sm-emerald);
  color: #fff;
  transform: translateX(-3px);
}
@media (max-width: 575.98px) {
  .sm-program-card__body { padding: 1.15rem 1.1rem 1.2rem; }
  .sm-program-card__title { font-size: 1.12rem; }
}

.sm-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--sm-muted);
  border: 1px dashed var(--sm-line);
  border-radius: var(--sm-radius);
  background: rgba(255,255,255,.5);
}

.sm-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Newsletter */
.sm-newsletter {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--sm-radius);
  background:
    linear-gradient(135deg, rgba(10,47,74,.97), rgba(18,63,95,.94)),
    var(--sm-pattern);
  color: #fff;
  box-shadow: var(--sm-shadow);
}
.sm-newsletter h3 {
  font-family: var(--sm-font-body);
  margin: 0 0 .4rem;
  font-size: 1.8rem;
}
.sm-newsletter p { margin: 0; color: rgba(255,255,255,.8); }
.sm-newsletter form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
}
.sm-newsletter input {
  min-height: 48px;
  border-radius: 999px;
  border: 0;
  padding: .6rem 1.1rem;
  text-align: center;
}
@media (max-width: 767.98px) {
  .sm-newsletter { grid-template-columns: 1fr; }
  .sm-newsletter form { grid-template-columns: 1fr; }
}

/* Footer */
.sm-footer {
  background:
    radial-gradient(circle at 10% 0%, rgba(181,150,94,.16), transparent 35%),
    linear-gradient(180deg, #0a2f4a, #071f33);
  color: rgba(255,255,255,.85);
  padding-top: 3.5rem;
}
.sm-footer__brand {
  max-width: 17.5rem;
}
.sm-footer__brand img {
  max-width: 150px;
  width: 150px;
  height: auto;
  margin-bottom: .85rem;
  border-radius: 50%;
  background: #fff;
  padding: .35rem;
  box-shadow: 0 0 0 3px rgba(181,150,94,.35);
}
.sm-footer__brand p {
  max-width: 16.5rem;
  margin: 0;
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
}
.sm-footer a { color: rgba(255,255,255,.85) !important; text-decoration: none !important; }
.sm-footer a:hover { color: var(--sm-gold-bright) !important; }
.sm-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 17.5rem) 1fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}
.sm-footer__title {
  font-family: var(--sm-font-body);
  color: var(--sm-gold-bright);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.sm-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.sm-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
}
.sm-footer .hgi,
.sm-footer .hgi::before {
  font-size: 1em !important;
  line-height: 1 !important;
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  overflow: hidden;
}
.sm-footer__links .hgi {
  margin-inline-end: .35rem;
}
.sm-social {
  display: flex;
  gap: .55rem;
}
.sm-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.sm-social .hgi,
.sm-social .hgi::before {
  font-size: 1.05rem !important;
}
@media (max-width: 991.98px) {
  .sm-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .sm-footer__grid { grid-template-columns: 1fr; }
}

/* Floating support dock + back-to-top — end side follows dir (RTL=right, LTR=left) */
.sm-support {
  position: fixed;
  z-index: 1045;
  inset-inline-end: 1.15rem;
  inset-inline-start: auto;
  bottom: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.sm-support li {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 0;
}
.sm-support a,
.sm-totop,
#ToTop {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sm-emerald);
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(7, 31, 51, 0.28);
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1;
}
.sm-support a i,
.sm-totop i,
#ToTop i {
  font-size: 1.05rem;
  line-height: 1;
  color: #fff !important;
  display: block;
}
.sm-support a:hover,
.sm-support a:focus-visible,
.sm-totop:hover,
.sm-totop:focus-visible,
#ToTop:hover,
#ToTop:focus-visible {
  background: var(--sm-gold);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 28px rgba(7, 31, 51, 0.32);
  outline: none;
  color: #fff !important;
}

/* ToTop lives in the dock — no separate fixed offsets */
.sm-totop,
#ToTop {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  display: none !important;
}
.sm-support__totop[hidden] {
  display: none !important;
}
.sm-totop.is-visible,
#ToTop.is-visible {
  display: inline-flex !important;
}

@media (max-width: 575.98px) {
  .sm-support {
    inset-inline-end: 0.85rem;
    bottom: 1rem;
    gap: 0.65rem;
  }
  .sm-support a,
  .sm-totop,
  #ToTop {
    width: 2.85rem;
    height: 2.85rem;
  }
  .sm-support a i,
  .sm-totop i,
  #ToTop i {
    font-size: 0.95rem;
  }
}

.alert-fly {
  position: fixed !important;
  top: 90px;
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  width: min(92vw, 420px);
  height: auto;
  pointer-events: none;
}
.alert-fly > * {
  pointer-events: auto;
}


/* Compatibility: hide old dual menus when new header present */
.sm-site .MENU-UPPER,
.sm-site .MENU-LOWER,
.sm-site .FOOTER-UPPER,
.sm-site .FOOTER-LOWER {
  display: none !important;
}

/* =========================================================
   Breadcrumb / page path strip
   ========================================================= */
.sm-breadcrumb {
  position: relative;
  z-index: 20;
  isolation: isolate;
  background:
    linear-gradient(105deg, rgba(181, 150, 94, 0.16), transparent 42%),
    linear-gradient(90deg, var(--sm-emerald) 0%, var(--sm-emerald-mid) 55%, #163a54 100%);
  border-bottom: 2px solid var(--sm-gold);
  box-shadow: 0 8px 22px rgba(10, 47, 74, 0.18);
}

.sm-breadcrumb__inner {
  position: relative;
  z-index: 1;
  width: min(100% - var(--sm-container-gutter), var(--sm-container));
  margin-inline: auto;
  padding-block: 0.7rem;
}

.sm-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.sm-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  z-index: 1;
}

.sm-breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1.2em;
  color: rgba(255, 255, 255, 0.55);
  line-height: 0;
  flex: 0 0 auto;
  pointer-events: none;
  translate: 0 0.06em;
}

.sm-breadcrumb__sep .fas,
.sm-breadcrumb__sep .fa,
.sm-breadcrumb__sep .hgi {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 0.7em;
  height: 0.7em;
  font-size: 0.7rem;
  line-height: 1;
  transform: none;
}

.sm-breadcrumb__link {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto !important;
  transition: color 0.2s ease;
}

.sm-breadcrumb__link:hover,
.sm-breadcrumb__link:focus-visible {
  color: var(--sm-gold-bright) !important;
  text-decoration: underline !important;
  text-underline-offset: 0.2em;
}

.sm-breadcrumb__current {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

.sm-breadcrumb__item.is-current .sm-breadcrumb__current {
  color: var(--sm-gold-bright);
}

@media (max-width: 575.98px) {
  .sm-breadcrumb__inner { padding-block: 0.65rem; }
  .sm-breadcrumb__item { font-size: 0.84rem; }
  .sm-breadcrumb__current { white-space: normal; }
}

/* Legacy .sub-menu bars (BS5 .row > * width:100% caused stacking) */
.sm-site .bg-dark:has(.sub-menu) {
  background:
    linear-gradient(105deg, rgba(181, 150, 94, 0.16), transparent 42%),
    linear-gradient(90deg, var(--sm-emerald) 0%, var(--sm-emerald-mid) 55%, #163a54 100%) !important;
  border-bottom: 2px solid var(--sm-gold);
  box-shadow: 0 8px 22px rgba(10, 47, 74, 0.18);
}

.sm-site .bg-dark:has(.sub-menu) > .row {
  margin: 0;
}

.sm-site .bg-dark:has(.sub-menu) > .row > .container {
  background: transparent !important;
  max-width: var(--sm-container);
  width: min(100% - var(--sm-container-gutter), var(--sm-container));
  margin-inline: auto;
  padding-inline: 0;
}

.sm-site .sub-menu {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem 0.15rem;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-block: 0.7rem !important;
  padding-inline: 0 !important;
  float: none !important;
}

.sm-site .sub-menu.row > *,
.sm-site .sub-menu > * {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto;
  padding-inline: 0.35rem !important;
  margin-top: 0 !important;
}

.sm-site .sub-menu a {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto !important;
  transition: color 0.2s ease;
}

.sm-site .sub-menu a:hover,
.sm-site .sub-menu a:focus-visible {
  color: var(--sm-gold-bright) !important;
  text-decoration: none !important;
}

.sm-site .sub-menu a.cursor-context,
.sm-site .sub-menu a:not([href]),
.sm-site .sub-menu a[href=""],
.sm-site .sub-menu a[href="#"] {
  color: var(--sm-gold-bright) !important;
  font-weight: 600;
  text-decoration: none;
  pointer-events: none !important;
  cursor: default;
}

.sm-site .sub-menu .fa-chevron-left,
.sm-site .sub-menu .fas.fa-chevron-left,
.sm-site .sub-menu .hgi-arrow-left-01 {
  font-size: 0.62rem;
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.7) !important;
  margin-inline: 0.1rem !important;
}

.sm-grid--2{grid-template-columns:repeat(2,1fr)}@media (max-width:767.98px){.sm-grid--2{grid-template-columns:1fr}}

/* Login modal — MT layout, Maqrah navy/gold */
.sm-login-dialog {
  max-width: 460px;
  width: calc(100% - 1.5rem);
}
.sm-login-modal {
  border: 0;
  border-radius: var(--radius-card, 8px);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(10, 47, 74, .18);
}
.sm-login-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.2rem;
  background: #fff;
  border-bottom: 1px solid rgba(10, 47, 74, .1);
}
.sm-login-modal__title {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--sm-ink, #0a2f4a);
}
.sm-login-modal__title > i {
  color: var(--sm-ink, #0a2f4a);
  font-size: 1rem;
}
.sm-login-modal__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #94a3b8 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: color .2s ease;
}
.sm-login-modal__close i {
  color: inherit !important;
  font-size: 1.15rem;
  line-height: 1;
}
.sm-login-modal__close:hover {
  color: var(--sm-ink, #0a2f4a) !important;
}
.sm-login-modal__body {
  padding: 1.25rem 1.25rem 1.1rem;
  background: #fff;
}
.sm-login-modal__alerts:not(:empty) {
  margin-bottom: .9rem;
}
.sm-login-modal__alerts .alert {
  margin: 0;
  padding: .8rem 1rem;
  border: 0;
  border-radius: var(--radius-control, 6px);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.55;
}
.sm-login-modal__alerts .alert-warning {
  background: rgba(181, 150, 94, .16);
  color: #7a5f2e;
}
.sm-login-modal__alerts .alert-danger {
  background: rgba(185, 28, 28, .08);
  color: #991b1b;
}
.sm-login-modal__alerts .alert-success {
  background: rgba(22, 101, 52, .08);
  color: #166534;
}
.sm-login-modal__alerts .alert a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
}
.sm-login-modal__float {
  position: relative;
  margin-bottom: .9rem;
}
.sm-login-modal__float input {
  width: 100%;
  min-height: 58px;
  padding: 1.35rem .95rem .55rem;
  border: 1px solid rgba(10, 47, 74, .12);
  border-radius: var(--radius-control, 6px);
  background: #eef3f7;
  color: var(--sm-ink, #0a2f4a);
  font-family: inherit;
  font-size: .98rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.sm-login-modal__float--password input {
  padding-left: 2.75rem;
}
.sm-login-modal__float input:focus {
  background: #fff;
  border-color: var(--field-select-border-focus, #94a3b8);
  box-shadow: 0 0 0 3px var(--field-select-ring, rgba(148, 163, 184, .28));
}
.sm-login-modal__float label {
  position: absolute;
  inset-inline-start: .95rem;
  top: .7rem;
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  color: var(--sm-muted, #64748b);
  pointer-events: none;
  transition: top .15s ease, font-size .15s ease, color .15s ease, opacity .15s ease;
}
.sm-login-modal__float input:placeholder-shown:not(:focus) + label {
  top: 50%;
  transform: translateY(-50%);
  font-size: .95rem;
  font-weight: 600;
  opacity: .85;
}
.sm-login-modal__float input:focus + label,
.sm-login-modal__float input:not(:placeholder-shown) + label {
  top: .7rem;
  transform: none;
  font-size: .78rem;
  opacity: 1;
  color: var(--sm-ink, #0a2f4a);
}
.sm-login-modal__toggle-pass {
  position: absolute;
  left: .55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: color .2s ease;
}
.sm-login-modal__toggle-pass:hover,
.sm-login-modal__toggle-pass[aria-pressed="true"] {
  color: var(--sm-ink, #0a2f4a);
}
.sm-login-modal__toggle-pass i {
  color: inherit !important;
  font-size: 1.15rem;
  width: auto;
}
.sm-login-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: .15rem;
  padding: .7rem 1.15rem;
  border: 0;
  border-radius: var(--radius-control, 6px);
  background: var(--primary, #0a2f4a);
  color: #fff !important;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}
.sm-login-modal__submit:hover {
  background: #0d3a5a;
}
.sm-login-modal__submit:disabled {
  opacity: .75;
  cursor: not-allowed;
}
.sm-login-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.2rem 1.1rem;
  background: #fff;
  border-top: 1px solid rgba(10, 47, 74, .1);
}
.sm-login-modal__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  min-width: 0;
  flex: 1;
}
.sm-login-modal__links a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--primary, #0a2f4a) !important;
  text-decoration: none !important;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.35;
}
.sm-login-modal__links a i {
  color: inherit !important;
  font-size: .95rem;
  flex-shrink: 0;
}
.sm-login-modal__links a:hover {
  color: var(--sm-gold, #b5965e) !important;
}
.sm-login-modal__cancel {
  flex-shrink: 0;
  min-width: 96px;
  min-height: 40px;
  padding: .55rem 1.1rem;
  border: 0;
  border-radius: var(--radius-control, 6px);
  background: var(--brand, #b5965e);
  color: #fff !important;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, filter .2s ease;
}
.sm-login-modal__cancel:hover {
  filter: brightness(1.05);
  background: var(--sm-gold-bright, #c9ab72);
}
@media (max-width: 480px) {
  .sm-login-modal__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .sm-login-modal__cancel {
    width: 100%;
  }
}


/* Contact page */
.sm-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr);
  gap: 1.25rem;
  align-items: start;
}
.sm-contact__alerts {
  margin-bottom: 1rem;
}
.sm-contact__flash {
  margin: 0;
  padding: .9rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}
.sm-contact__flash--success {
  background: rgba(11, 61, 46, .08);
  color: var(--sm-emerald, #0b3d2e);
  border: 1px solid rgba(11, 61, 46, .18);
}
.sm-contact__flash--danger {
  background: rgba(176, 48, 48, .08);
  color: #8a1f1f;
  border: 1px solid rgba(176, 48, 48, .18);
}
.sm-contact__panel {
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(10, 47, 74, .06);
  overflow: hidden;
}
.sm-contact__panel-head {
  padding: 1.15rem 1.25rem .35rem;
}
.sm-contact__panel-title {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}
.sm-contact__panel-sub {
  margin: .35rem 0 0;
  color: var(--sm-muted, #64748b);
  font-size: .92rem;
  line-height: 1.5;
}
.sm-contact__panel .access-form-grid {
  padding-top: .5rem;
}
.sm-contact__mobile {
  display: flex;
  align-items: stretch;
  gap: .65rem;
}
.sm-contact__mobile-key {
  width: 170px;
  flex: 0 0 170px;
}
.sm-contact__mobile > input {
  flex: 1 1 auto;
  min-width: 0;
}
.sm-contact__actions {
  justify-content: stretch;
}
.sm-contact__submit {
  width: 100%;
}
.sm-contact__channels {
  display: grid;
  gap: .75rem;
  padding: .35rem 1.25rem 1rem;
}
.sm-contact__channel {
  width: 100%;
  justify-content: flex-start;
  border-radius: 8px !important;
}
.sm-contact__facts {
  list-style: none;
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  display: grid;
  gap: .75rem;
}
.sm-contact__fact {
  display: grid;
  gap: .2rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: 8px;
  background: rgba(10, 47, 74, .02);
}
.sm-contact__fact-label {
  color: var(--sm-muted, #64748b);
  font-size: .82rem;
  font-weight: 600;
}
.sm-contact__fact-value {
  color: var(--sm-ink, #0a2f4a);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}
@media (max-width: 991.98px) {
  .sm-contact {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575.98px) {
  .sm-contact__mobile {
    flex-direction: column;
  }
  .sm-contact__mobile-key {
    width: 100%;
    flex-basis: auto;
  }
}

/* News / listing pagination */
.sm-pagination {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2rem;
}
.sm-pagination > nav {
  display: flex;
  justify-content: center;
  width: 100%;
}
.sm-pagination .pagination {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem;
  width: auto;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.sm-pagination .page-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  float: none !important;
}
.sm-pagination .page-link {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 8px !important;
  border-color: rgba(10, 47, 74, .12);
  color: var(--sm-ink, #0a2f4a);
  text-align: center;
  text-decoration: none !important;
}
.sm-pagination .page-link__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transform: none;
}
.sm-pagination .page-link > i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: 0;
  font-family: "hugeicons-stroke-rounded", "hgi-stroke-rounded" !important;
  font-size: 16px;
  font-style: normal !important;
  font-weight: normal !important;
  line-height: 1 !important;
}
.sm-pagination .page-item.active .page-link {
  background: var(--sm-emerald, #0b3d2e);
  border-color: var(--sm-emerald, #0b3d2e);
  color: #fff;
}
.sm-pagination .page-item.disabled .page-link {
  color: #94a3b8;
  pointer-events: none;
}

/* Legal / policy pages */
.sm-legal {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 12px 32px rgba(10, 47, 74, .06);
  overflow: hidden;
}
.sm-legal__header {
  padding: 1.5rem 1.5rem 1.2rem;
  border-bottom: 1px solid rgba(10, 47, 74, .08);
  background:
    linear-gradient(120deg, rgba(181, 150, 94, .12), transparent 42%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  text-align: start;
}
.sm-legal__title {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.4;
}
.sm-legal__subtitle {
  margin: .45rem 0 0;
  color: var(--sm-muted, #64748b);
  font-size: .98rem;
  line-height: 1.65;
  max-width: 48rem;
}
.sm-legal__body {
  padding: .35rem 1.5rem 1.5rem;
}
.sm-legal__block {
  padding: 1.15rem 0 0;
  border-bottom: 1px solid rgba(10, 47, 74, .06);
}
.sm-legal__block:last-child {
  border-bottom: 0;
  padding-bottom: .35rem;
}
.sm-legal__section-title {
  margin: 0 0 .75rem;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
}
.sm-legal__p {
  margin: 0 0 .7rem;
  color: #475569;
  font-size: .96rem;
  line-height: 1.85;
  text-align: justify;
}
.sm-legal__p--emphasis {
  color: var(--sm-ink, #0a2f4a);
  font-weight: 600;
}
.sm-legal__p:last-child {
  margin-bottom: 1.05rem;
}
@media (max-width: 767.98px) {
  .sm-legal__header,
  .sm-legal__body {
    padding-inline: 1rem;
  }
}

/* Reciter profile detail */
.sm-reciter-profile {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 12px 32px rgba(10, 47, 74, .06);
  overflow: hidden;
}
.sm-reciter-profile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(10, 47, 74, .08);
  background:
    linear-gradient(120deg, rgba(181, 150, 94, .12), transparent 42%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.sm-reciter-profile__identity {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
  flex: 1 1 18rem;
}
.sm-reciter-profile__avatar {
  flex: 0 0 auto;
  width: 7.25rem;
  height: 7.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  background: linear-gradient(145deg, #0a2f4a, #163a54);
  box-shadow: 0 10px 24px rgba(10, 47, 74, .16);
  outline: 2px solid rgba(181, 150, 94, .55);
  outline-offset: 2px;
}
.sm-reciter-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.sm-reciter-profile__intro {
  min-width: 0;
}
.sm-reciter-profile__eyebrow {
  display: inline-flex;
  color: var(--sm-gold, #b5965e);
  font-size: .8rem;
  font-weight: 700;
}
.sm-reciter-profile__name {
  margin: .2rem 0 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.4;
}
.sm-reciter-profile__role {
  margin: .45rem 0 0;
  color: var(--sm-muted, #64748b);
  font-size: .98rem;
  line-height: 1.6;
}
.sm-reciter-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.sm-reciter-profile__slots,
.sm-reciter-profile__bio {
  padding: 1.35rem 1.5rem 0;
}
.sm-reciter-profile__section-head {
  margin-bottom: .95rem;
}
.sm-reciter-profile__section-title {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.15rem;
  font-weight: 800;
}
.sm-reciter-profile__section-sub {
  margin: .3rem 0 0;
  color: var(--sm-muted, #64748b);
  font-size: .92rem;
}
.sm-reciter-profile__slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}
.sm-reciter-slot {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  background: #f8fafc;
}
.sm-reciter-slot__date,
.sm-reciter-slot__time {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--sm-ink, #0a2f4a);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
}
.sm-reciter-slot__time {
  color: var(--sm-muted, #64748b);
  font-weight: 600;
}
.sm-reciter-slot__date > i,
.sm-reciter-slot__time > i {
  color: var(--sm-gold, #b5965e);
  font-size: .95rem;
}
.sm-reciter-profile__rich {
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.02rem;
  line-height: 1.9;
}
.sm-reciter-profile__rich p {
  margin-bottom: 1rem;
}
.sm-reciter-profile__footer {
  display: flex;
  justify-content: center;
  padding: 1.35rem 1.5rem 1.5rem;
}
.sm-reciter-book .modal-content {
  border: 0;
  border-radius: var(--radius-card, 8px);
  overflow: hidden;
}
.sm-reciter-book .modal-header,
.sm-reciter-book .modal-footer {
  border-color: rgba(10, 47, 74, .08);
}
.sm-reciter-book .modal-title {
  color: var(--sm-ink, #0a2f4a);
  font-weight: 800;
}
@media (max-width: 991.98px) {
  .sm-reciter-profile__slot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .sm-reciter-profile__header,
  .sm-reciter-profile__slots,
  .sm-reciter-profile__bio,
  .sm-reciter-profile__footer {
    padding-inline: 1rem;
  }
  .sm-reciter-profile__identity {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }
  .sm-reciter-profile__slot-grid { grid-template-columns: 1fr; }
}

/* News article detail */
.sm-news-article {
  width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 12px 32px rgba(10, 47, 74, .06);
  overflow: hidden;
}
.sm-news-article__header {
  padding: 1.35rem 1.5rem 1.15rem;
  border-bottom: 1px solid rgba(10, 47, 74, .08);
}
.sm-news-article__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
}
.sm-news-article__title {
  flex: 1 1 14rem;
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.45;
  text-align: start;
}
.sm-news-article__date {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
  max-width: 100%;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: var(--sm-ink, #0a2f4a);
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.sm-news-article__date > i {
  flex: 0 0 auto;
  font-size: .95rem;
  color: var(--sm-gold, #b5965e);
}
.sm-news-article__lead {
  margin: 1rem 0 0;
  color: var(--sm-muted, #64748b);
  font-size: 1.02rem;
  line-height: 1.8;
  text-align: justify;
  white-space: pre-line;
}
.sm-news-article__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}
.sm-news-article__cover,
.sm-news-carousel__slide {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eef2f6 center / cover no-repeat;
}
.sm-news-article__gallery {
  border-block: 1px solid rgba(10, 47, 74, .06);
}
.sm-news-carousel {
  position: relative;
}
.sm-news-carousel .carousel-control-prev,
.sm-news-carousel .carousel-control-next {
  width: 48px;
  opacity: 1;
  color: var(--sm-ink, #0a2f4a);
}
.sm-news-carousel .carousel-control-prev > i,
.sm-news-carousel .carousel-control-next > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 20px rgba(10, 47, 74, .16);
  font-size: 18px;
}
.sm-news-carousel .carousel-indicators {
  margin-bottom: .75rem;
}
.sm-news-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(10, 47, 74, .35);
}
.sm-news-carousel .carousel-indicators .active {
  background-color: var(--sm-gold, #b5965e);
}
.sm-news-article__body {
  padding: 1.35rem 1.5rem 0.5rem;
}
.sm-news-article__paragraph {
  margin: 0 0 1rem;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.02rem;
  line-height: 1.9;
  text-align: justify;
  white-space: pre-line;
}
.sm-news-article__body--rich {
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.02rem;
  line-height: 1.9;
}
.sm-news-article__body--rich img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.sm-news-article__body--rich p {
  margin-bottom: 1rem;
}
.sm-news-article__footer {
  display: flex;
  justify-content: center;
  padding: 1rem 1.5rem 1.5rem;
}
@media (max-width: 767.98px) {
  .sm-news-article__header,
  .sm-news-article__body,
  .sm-news-article__footer {
    padding-inline: 1rem;
  }
  .sm-news-article__heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .sm-news-article__date {
    white-space: normal;
  }
}

/* Program detail */
.sm-program-detail {
  width: min(100%, 1100px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sm-program-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--sm-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(10, 47, 74, 0.08);
}
.sm-program-detail__media {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(145deg, #0a2f4a, #123f5f 55%, #b5965e);
}
.sm-program-detail__carousel,
.sm-program-detail__carousel .carousel-inner,
.sm-program-detail__carousel .carousel-item {
  height: 100%;
}
.sm-program-detail__image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.sm-program-detail__placeholder {
  min-height: 320px;
  height: 100%;
}
.sm-program-detail__carousel .carousel-control-prev,
.sm-program-detail__carousel .carousel-control-next {
  width: 2.75rem;
  height: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  border-radius: 50%;
  background: rgba(10, 47, 74, 0.55);
  opacity: 1;
}
.sm-program-detail__carousel .carousel-control-prev { inset-inline-start: .85rem; left: auto; }
.sm-program-detail__carousel .carousel-control-next { inset-inline-end: .85rem; right: auto; }
.sm-program-detail__carousel .carousel-control-prev i,
.sm-program-detail__carousel .carousel-control-next i {
  color: #fff;
  font-size: 1.1rem;
}
.sm-program-detail__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.6rem;
}
.sm-program-detail__status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sm-program-detail__badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}
.sm-program-detail__badge.is-open {
  background: rgba(232, 245, 233, 0.95);
  color: #1b5e20;
}
.sm-program-detail__badge.is-closed {
  background: rgba(253, 232, 232, 0.95);
  color: #9b1c1c;
}
.sm-program-detail__datechip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  padding: .55rem .7rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #0a2f4a, #163a54);
  color: #fff;
  box-shadow: 0 10px 22px rgba(10, 47, 74, 0.18);
}
.sm-program-detail__day {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}
.sm-program-detail__month {
  margin-top: .2rem;
  font-size: .78rem;
  opacity: .85;
}
.sm-program-detail__title {
  margin: 0;
  font-family: var(--sm-font-body);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--sm-navy);
}
.sm-program-detail__lead {
  margin: 0;
  color: var(--sm-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  white-space: pre-line;
}
.sm-program-detail__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.sm-program-detail__facts li {
  display: inline-flex;
  align-items: flex-start;
  gap: .55rem;
  color: var(--sm-navy);
  font-weight: 500;
  line-height: 1.5;
}
.sm-program-detail__facts i {
  color: var(--sm-gold);
  margin-top: .15rem;
}
.sm-program-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .35rem;
}
.sm-program-detail__panel {
  background: #fff;
  border: 1px solid var(--sm-line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 10px 28px rgba(10, 47, 74, 0.06);
}
.sm-program-detail__panel--soft {
  background: var(--sm-surface);
}
.sm-program-detail__panel-title {
  margin: 0 0 .85rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sm-navy);
}
.sm-program-detail__panel-body {
  color: var(--sm-muted);
  line-height: 1.85;
  font-size: 1rem;
}
.sm-program-detail__panel-body p:last-child {
  margin-bottom: 0;
}
.sm-program-detail__footer {
  display: flex;
  justify-content: center;
  padding-top: .25rem;
}
@media (max-width: 991.98px) {
  .sm-program-detail__grid {
    grid-template-columns: 1fr;
  }
  .sm-program-detail__image,
  .sm-program-detail__placeholder {
    min-height: 240px;
  }
}
@media (max-width: 575.98px) {
  .sm-program-detail__info {
    padding: 1.25rem 1.1rem 1.35rem;
  }
  .sm-program-detail__status-row {
    align-items: flex-start;
  }
}

/* Maqrah course detail — slot booking */
.sm-maqrah-slots {
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(10, 47, 74, .08);
}
.sm-maqrah-slots__head {
  margin-bottom: 1rem;
}
.sm-maqrah-slots__title {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.15rem;
  font-weight: 800;
}
.sm-maqrah-slots__sub {
  margin: .3rem 0 0;
  color: var(--sm-muted, #64748b);
  font-size: .92rem;
}
.sm-maqrah-slots__message {
  min-height: 0;
  margin-bottom: .75rem;
}
.sm-maqrah-slots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}
.sm-maqrah-slot {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  width: 100%;
  padding: .95rem 1rem;
  border: 1px solid rgba(10, 47, 74, .1);
  border-radius: var(--radius-card, 8px);
  background: #f8fafc;
  text-align: start;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.sm-maqrah-slot:hover,
.sm-maqrah-slot.cube-hover {
  border-color: rgba(181, 150, 94, .55);
  background: #fffdf8;
}
.sm-maqrah-slot.cube-active {
  border-color: var(--sm-gold, #b5965e);
  background: rgba(181, 150, 94, .12);
  box-shadow: 0 0 0 2px rgba(181, 150, 94, .25);
}
.sm-maqrah-slot__hall,
.sm-maqrah-slot__date,
.sm-maqrah-slot__time {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--sm-ink, #0a2f4a);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
}
.sm-maqrah-slot__time {
  color: var(--sm-muted, #64748b);
  font-weight: 600;
}
.sm-maqrah-slot__hall > i,
.sm-maqrah-slot__date > i,
.sm-maqrah-slot__time > i {
  color: var(--sm-gold, #b5965e);
  font-size: .95rem;
  flex-shrink: 0;
}
.sm-maqrah-slots__actions {
  display: flex;
  justify-content: center;
  margin-top: 1.15rem;
}
.sm-maqrah-note {
  margin: 0 0 .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-control, 6px);
  background: rgba(10, 47, 74, .05);
  color: var(--sm-ink, #0a2f4a);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.6;
}
.sm-maqrah-note--warn {
  background: rgba(181, 150, 94, .12);
  color: #7a5f2e;
}
.sm-maqrah-note--danger {
  background: rgba(185, 28, 28, .08);
  color: #991b1b;
}
.sm-maqrah-note--success {
  background: rgba(22, 101, 52, .08);
  color: #166534;
}
@media (max-width: 991.98px) {
  .sm-maqrah-slots__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .sm-maqrah-slots {
    padding-inline: 1rem;
  }
  .sm-maqrah-slots__grid { grid-template-columns: 1fr; }
}

/* About page */
.sm-about-intro {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 10px 28px rgba(10, 47, 74, .06);
}
.sm-about-intro__media {
  border-radius: var(--radius-card, 8px);
  overflow: hidden;
  background: linear-gradient(145deg, #0a2f4a 0%, #163f5c 55%, #b5965e 160%);
  min-height: 240px;
}
.sm-about-intro__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
.sm-about-intro__placeholder {
  min-height: 240px;
}
.sm-about-intro__eyebrow {
  margin: 0 0 .35rem;
  color: var(--sm-gold, #b5965e);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.sm-about-intro__title {
  margin: 0 0 .85rem;
  color: var(--sm-ink, #0a2f4a);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
}
.sm-about-intro__text {
  color: var(--sm-muted, #64748b);
  font-size: 1.02rem;
  line-height: 1.9;
  white-space: pre-line;
}
.sm-about-intro__text p {
  margin: 0 0 .85rem;
}
.sm-about-intro__text p:last-child {
  margin-bottom: 0;
}
.sm-about-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.sm-about-panel {
  padding: 1.25rem 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 8px 22px rgba(10, 47, 74, .05);
}
.sm-about-panel__head {
  margin: 0 0 .85rem;
  padding: .75rem 1rem;
  background: rgba(10, 47, 74, .04);
  border-radius: var(--radius-control, 6px);
}
.sm-about-panel__title {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
.sm-about-panel__text {
  margin: 0;
  color: var(--sm-muted, #64748b);
  font-size: .98rem;
  line-height: 1.85;
  white-space: pre-line;
}
.sm-about-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  padding: 1.5rem 1.35rem;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(181, 150, 94, .35);
  border-radius: var(--radius-card, 8px);
}
.sm-about-pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(181, 150, 94, .12);
  color: var(--sm-gold, #b5965e);
  font-size: 1.35rem;
}
.sm-about-pillar__title {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.15rem;
  font-weight: 800;
}
.sm-about-pillar__text {
  margin: 0;
  color: var(--sm-muted, #64748b);
  font-size: .98rem;
  line-height: 1.85;
  white-space: pre-line;
}
.sm-about-goals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.sm-about-goal {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 6px 18px rgba(10, 47, 74, .04);
}
.sm-about-goal__num {
  flex-shrink: 0;
  min-width: 2.35rem;
  color: var(--sm-gold, #b5965e);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.sm-about-goal__text {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.75;
}
@media (max-width: 991.98px) {
  .sm-about-intro {
    grid-template-columns: 1fr;
  }
  .sm-about-goals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .sm-about-intro {
    padding: 1.1rem;
  }
  .sm-about-pair,
  .sm-about-goals {
    grid-template-columns: 1fr;
  }
}

/* Auth pages */
.sm-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 1.25rem;
  align-items: start;
}
.sm-auth--solo {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}
.sm-auth--wide {
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .75fr);
}
.sm-auth__panel {
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 10px 28px rgba(10, 47, 74, .06);
  overflow: hidden;
}
/* Solo auth cards — mt-style centered floating card */
.sm-auth--solo .sm-auth__panel {
  box-shadow: 0 18px 48px rgba(10, 47, 74, .12);
}
.sm-auth--solo .sm-auth__panel-head {
  padding: 2.25rem 2rem .65rem;
  text-align: center;
}
.sm-auth--solo .sm-auth__panel-title {
  font-size: 1.15rem;
}
.sm-auth--solo .sm-auth__panel-sub {
  max-width: 38ch;
  margin-inline: auto;
}
.sm-auth--solo .sm-auth__panel-body {
  padding: 1rem 2rem 2.25rem;
}
.sm-auth--solo .sm-auth__actions {
  gap: 1rem;
}
.sm-auth--solo .sm-auth__links {
  order: -1;
  justify-content: space-between;
}
.sm-auth--solo .sm-auth__links:has(> :only-child) {
  justify-content: center;
}
.sm-auth__panel-head {
  padding: 1.25rem 1.35rem .35rem;
}
.sm-auth__panel-title {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
}
.sm-auth__panel-sub {
  margin: .35rem 0 0;
  color: var(--sm-muted, #64748b);
  font-size: .95rem;
  line-height: 1.6;
}
.sm-auth__panel-body {
  padding: 1rem 1.35rem 1.45rem;
}
.sm-auth__alerts:not(:empty) {
  margin-bottom: .9rem;
}
.sm-auth__alerts .alert,
.sm-auth-alert {
  margin: 0;
  padding: .85rem 1rem;
  border: 0;
  border-radius: var(--radius-control, 6px);
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.65;
}
.sm-auth__alerts .alert-success,
.sm-auth-alert--success {
  background: rgba(22, 101, 52, .08);
  color: #166534;
}
.sm-auth__alerts .alert-danger,
.sm-auth-alert--danger {
  background: rgba(185, 28, 28, .08);
  color: #991b1b;
}
.sm-auth__alerts .alert-warning,
.sm-auth-alert--warn {
  background: rgba(181, 150, 94, .14);
  color: #7a5f2e;
}
.sm-auth__alerts a {
  color: var(--sm-ink, #0a2f4a);
  font-weight: 800;
  text-decoration: underline;
}
.sm-auth__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1rem;
}
.sm-auth__grid > .sm-auth-field--full,
.sm-auth__grid > .form-field--full {
  grid-column: 1 / -1;
}
.sm-auth-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-align: start;
}
.sm-auth-field__label {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: .9rem;
  font-weight: 700;
}
.sm-auth-field__req {
  color: #b91c1c;
  font-weight: 600;
  font-size: .82rem;
}
.sm-auth input.form-control,
.sm-auth select.form-select,
.sm-auth .sm-auth-input {
  width: 100%;
  min-height: 44px;
  padding: .55rem .85rem;
  border: 1px solid rgba(10, 47, 74, .14);
  border-radius: var(--radius-control, 6px) !important;
  background: #fff;
  color: var(--sm-ink, #0a2f4a);
  font-size: .95rem;
  box-shadow: none;
}
.sm-auth input.form-control:focus,
.sm-auth select.form-select:focus,
.sm-auth .sm-auth-input:focus {
  border-color: var(--field-select-border-focus, #cbd5e1);
  outline: 0;
  box-shadow: 0 0 0 3px var(--field-select-ring, rgba(148, 163, 184, .28));
}
.sm-auth-pass {
  position: relative;
}
.sm-auth-pass input.form-control {
  padding-left: 2.75rem;
}
.sm-auth-pass__toggle {
  position: absolute;
  left: .45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: color .2s ease;
}
.sm-auth-pass__toggle:hover,
.sm-auth-pass__toggle[aria-pressed="true"] {
  color: var(--sm-ink, #0a2f4a);
}
.sm-auth-pass__toggle i {
  color: inherit !important;
  font-size: 1.1rem;
  width: auto;
}
.sm-auth__mobile {
  display: flex;
  gap: .5rem;
  direction: ltr;
}
.sm-auth__mobile-key {
  flex: 0 0 118px;
}
.sm-auth__mobile-key--wide {
  flex: 0 0 min(220px, 42%);
}
.sm-auth__mobile > input {
  flex: 1 1 auto;
}
.sm-auth__verify {
  display: flex;
  align-items: stretch;
  gap: .5rem;
  width: 100%;
}
.sm-auth__verify > input {
  flex: 1 1 auto;
  min-width: 0;
}
.sm-auth__verify-btn {
  flex: 0 0 auto;
  min-width: 6.5rem;
  align-self: stretch;
}
.sm-auth .searchable-select {
  width: 100%;
}
.sm-auth .searchable-select__trigger {
  min-height: 44px;
  border-radius: var(--radius-control, 6px);
}
.sm-auth__actions {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: .35rem;
}
.sm-auth__submit {
  width: 100%;
  min-height: 46px;
}
.sm-auth__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .65rem 1rem;
}
.sm-auth__links a {
  color: var(--sm-gold, #b5965e);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.sm-auth__links a:hover {
  color: var(--sm-ink, #0a2f4a);
}
.sm-auth__terms {
  margin: .35rem 0 0;
  color: var(--sm-muted, #64748b);
  font-size: .9rem;
  text-align: center;
  line-height: 1.7;
}
.sm-auth__terms a {
  color: var(--sm-ink, #0a2f4a);
  font-weight: 700;
}
.sm-auth__aside {
  padding: 1.35rem 1.4rem;
  background: linear-gradient(165deg, #0a2f4a 0%, #123a56 55%, #1a4663 100%);
  border-radius: var(--radius-card, 8px);
  color: #fff;
  box-shadow: 0 12px 28px rgba(10, 47, 74, .18);
}
.sm-auth__aside-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .65rem;
  margin-bottom: 1.15rem;
}
.sm-auth__aside-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.sm-auth__aside-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
}
.sm-auth__aside-sub {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
  line-height: 1.7;
}
.sm-auth__aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.sm-auth__aside-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .7rem .8rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-control, 6px);
  color: rgba(255, 255, 255, .92);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.55;
}
.sm-auth__aside-list i {
  flex-shrink: 0;
  margin-top: .1rem;
  color: var(--sm-gold, #b5965e);
  font-size: 1.05rem;
}
@media (max-width: 991.98px) {
  .sm-auth,
  .sm-auth--wide {
    grid-template-columns: 1fr;
  }
  .sm-auth__aside {
    order: -1;
  }
}
@media (max-width: 575.98px) {
  .sm-auth__grid {
    grid-template-columns: 1fr;
  }
  .sm-auth__panel-head,
  .sm-auth__panel-body {
    padding-inline: 1.1rem;
  }
  .sm-auth--solo .sm-auth__panel-head,
  .sm-auth--solo .sm-auth__panel-body {
    padding-inline: 1.25rem;
  }
  .sm-auth__mobile {
    flex-direction: column;
  }
  .sm-auth__mobile-key {
    flex-basis: auto;
    width: 100%;
  }
  .sm-auth__verify {
    flex-direction: column;
  }
  .sm-auth__verify-btn {
    width: 100%;
  }
}

/* Support / help page */
.sm-help-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.sm-help-action {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 8px 22px rgba(10, 47, 74, .05);
  text-decoration: none !important;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sm-help-action:hover {
  border-color: rgba(181, 150, 94, .45);
  box-shadow: 0 12px 28px rgba(10, 47, 74, .08);
  transform: translateY(-2px);
}
.sm-help-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(181, 150, 94, .12);
  color: var(--sm-gold, #b5965e);
  font-size: 1.15rem;
}
.sm-help-action__body {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
  flex: 1 1 auto;
}
.sm-help-action__title {
  color: var(--sm-ink, #0a2f4a);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}
.sm-help-action__text {
  color: var(--sm-muted, #64748b);
  font-size: .9rem;
  line-height: 1.65;
}
.sm-help-action__arrow {
  color: var(--sm-gold, #b5965e);
  margin-top: .35rem;
  flex-shrink: 0;
}
.sm-help-guide {
  padding: 1.5rem 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 10px 28px rgba(10, 47, 74, .06);
}
.sm-help-guide__head {
  margin-bottom: 1.15rem;
}
.sm-help-guide__title {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.25rem;
  font-weight: 800;
}
.sm-help-guide__sub {
  margin: .35rem 0 0;
  color: var(--sm-muted, #64748b);
  font-size: .95rem;
  line-height: 1.6;
}
.sm-help-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}
.sm-help-step {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .95rem 1rem;
  background: #f8fafc;
  border: 1px solid rgba(10, 47, 74, .06);
  border-radius: var(--radius-card, 8px);
}
.sm-help-step__num {
  flex-shrink: 0;
  min-width: 2.1rem;
  color: var(--sm-gold, #b5965e);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}
.sm-help-step__text {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.75;
}
.sm-help-guide__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}
.sm-help-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.sm-help-topic {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.25rem 1.3rem;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 8px 22px rgba(10, 47, 74, .05);
}
.sm-help-topic__title {
  margin: 0;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
}
.sm-help-topic__text {
  margin: 0;
  color: var(--sm-muted, #64748b);
  font-size: .95rem;
  line-height: 1.8;
  flex: 1 1 auto;
}
.sm-help-topic__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .25rem;
  color: var(--sm-gold, #b5965e);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.sm-help-topic__link:hover {
  color: var(--sm-ink, #0a2f4a);
}
@media (max-width: 991.98px) {
  .sm-help-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .sm-help-actions,
  .sm-help-topics {
    grid-template-columns: 1fr;
  }
  .sm-help-guide {
    padding-inline: 1.1rem;
  }
}

/* Library page */
.sm-library {
  display: grid;
  gap: 1.25rem;
}
.sm-library__intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 10px 28px rgba(10, 47, 74, .06);
}
.sm-library__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(181, 150, 94, .12);
  color: var(--sm-gold, #b5965e);
  font-size: 1.35rem;
}
.sm-library__intro-title {
  margin: 0 0 .4rem;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.15rem;
  font-weight: 800;
}
.sm-library__intro-text {
  margin: 0;
  color: var(--sm-muted, #64748b);
  font-size: .98rem;
  line-height: 1.85;
}
.sm-library__empty {
  background: #fff;
  border-radius: var(--radius-card, 8px);
}
.sm-library__related-title {
  margin: 0 0 .85rem;
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.05rem;
  font-weight: 800;
}
.sm-library__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.sm-library-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 8px 22px rgba(10, 47, 74, .05);
  text-decoration: none !important;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sm-library-card:hover {
  border-color: rgba(181, 150, 94, .45);
  box-shadow: 0 12px 28px rgba(10, 47, 74, .08);
  transform: translateY(-2px);
}
.sm-library-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(10, 47, 74, .06);
  color: var(--sm-ink, #0a2f4a);
  font-size: 1.1rem;
}
.sm-library-card:hover .sm-library-card__icon {
  background: rgba(181, 150, 94, .12);
  color: var(--sm-gold, #b5965e);
}
.sm-library-card__body {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
  flex: 1 1 auto;
}
.sm-library-card__title {
  color: var(--sm-ink, #0a2f4a);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}
.sm-library-card__text {
  color: var(--sm-muted, #64748b);
  font-size: .9rem;
  line-height: 1.65;
}
.sm-library-card__arrow {
  color: var(--sm-gold, #b5965e);
  margin-top: .35rem;
  flex-shrink: 0;
}
@media (max-width: 767.98px) {
  .sm-library__intro {
    padding-inline: 1.1rem;
  }
  .sm-library__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Account / trainee area (MT layout, Maqrah navy/gold)
   ========================================================= */
.sm-account {
  background:
    radial-gradient(circle at 12% 0%, rgba(181, 150, 94, .08), transparent 42%),
    linear-gradient(180deg, #f4f7fa 0%, #eef3f7 100%);
  padding: 1.5rem 0 3rem;
  min-height: 52vh;
}
.sm-account__inner {
  width: min(100% - var(--sm-container-gutter), var(--sm-container));
  margin-inline: auto;
}
.sm-account__alerts {
  margin-bottom: 1rem;
}
.sm-account__alerts .alert {
  border: 0;
  border-radius: var(--radius-card, 8px);
  font-weight: 700;
}
.sm-account__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 767.98px) {
  .sm-account__grid {
    grid-template-columns: 1fr;
  }
}
.sm-account-card {
  display: block;
  text-decoration: none !important;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 10px 28px rgba(10, 47, 74, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .25s ease;
  overflow: hidden;
}
.sm-account-card:hover {
  transform: translateY(-2px);
  border-color: rgba(181, 150, 94, .35);
  box-shadow: 0 16px 36px rgba(10, 47, 74, .1);
}
.sm-account-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  min-height: 7.25rem;
}
.sm-account-card__text {
  min-width: 0;
  flex: 1;
  text-align: start;
}
.sm-account-card__title {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary, #0a2f4a);
}
.sm-account-card__desc {
  margin: 0;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--sm-muted, #64748b);
}
.sm-account-card__icon {
  flex-shrink: 0;
  width: 3.75rem;
  height: 3.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 47, 74, .05);
  color: var(--brand, #b5965e);
}
.sm-account-card__icon i {
  font-size: 1.85rem !important;
  color: inherit !important;
  width: auto;
}
.sm-account-card__avatar {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(181, 150, 94, .55);
  background: #fff;
}
.sm-account-card--profile {
  background:
    linear-gradient(33deg, #0a2f4a 0%, #16486c 100%);
  border-color: transparent;
}
.sm-account-card--profile .sm-account-card__title {
  color: #fff;
}
.sm-account-card--profile .sm-account-card__desc {
  color: rgba(255, 255, 255, .78);
}
.sm-account-card--profile .sm-account-card__icon {
  background: rgba(255, 255, 255, .12);
  color: var(--sm-gold-bright, #c9ab72);
}
.sm-account-card--profile:hover {
  background: #fff;
  border-color: rgba(10, 47, 74, .1);
}
.sm-account-card--profile:hover .sm-account-card__title {
  color: var(--primary, #0a2f4a);
}
.sm-account-card--profile:hover .sm-account-card__desc {
  color: var(--sm-muted, #64748b);
}
.sm-account-card--profile:hover .sm-account-card__icon {
  background: rgba(10, 47, 74, .05);
  color: var(--brand, #b5965e);
}

.sm-account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.15rem;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 8px 24px rgba(10, 47, 74, .05);
}
.sm-account-hero__text {
  min-width: 0;
  text-align: start;
}
.sm-account-hero__title {
  margin: 0 0 .3rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary, #0a2f4a);
  line-height: 1.35;
}
.sm-account-hero__sub {
  margin: 0;
  font-size: .92rem;
  color: var(--sm-muted, #64748b);
  line-height: 1.5;
}
.sm-account-hero__icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 47, 74, .06);
  color: var(--brand, #b5965e);
}
.sm-account-hero__icon i {
  font-size: 1.45rem !important;
  color: inherit !important;
}

.sm-account-panel {
  max-width: none;
  width: 100%;
  margin-inline: auto;
}
.sm-account-panel--wide,
.sm-account-panel--full {
  max-width: none;
  width: 100%;
}
.sm-account-section-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: stretch;
}
.sm-account-section-row > .sm-account-section,
.sm-account-section-row > .sm-account-section:first-of-type {
  margin-top: 0 !important;
  height: 100%;
  align-self: stretch;
}
.sm-account-section-grid--stack {
  grid-template-columns: 1fr !important;
}
.sm-account-section {
  margin-top: 1.25rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(10, 47, 74, .08);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 8px 22px rgba(10, 47, 74, .05);
}
.sm-account-section:first-of-type {
  margin-top: 1rem;
}
.sm-account-section__head {
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(10, 47, 74, .08);
}
.sm-account-section__title {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sm-navy, #0a2f4a);
}
.sm-account-section__sub {
  margin: 0;
  font-size: .86rem;
  font-weight: 500;
  color: var(--sm-muted, #5a6672);
}
.sm-account-section .access-form-grid {
  margin: 0;
}
.sm-account-media-grid .ui-file-input__surface {
  min-height: 52px;
  padding: .55rem .75rem;
  gap: .65rem;
  grid-template-columns: 34px minmax(0, 1fr);
}
.sm-account-media-grid .ui-file-input__icon {
  width: 34px;
  height: 34px;
  font-size: .95rem;
}
.sm-account-media-grid .ui-file-input__button {
  font-size: .88rem;
}
.sm-account-media-grid .ui-file-input__status {
  font-size: .78rem;
}
.sm-account-sign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.sm-account-sign-card {
  border: 1px solid rgba(10, 47, 74, .1);
  border-radius: var(--radius-card, 8px);
  background: #fff;
  padding: .85rem .9rem;
}
.sm-account-sign-card__title {
  margin: 0 0 .65rem;
  font-size: .92rem;
  font-weight: 800;
  color: var(--sm-navy, #0a2f4a);
  text-align: start;
}
.sm-sign {
  width: 100%;
}
.sm-sign__box {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(10, 47, 74, .14);
  border-radius: var(--radius-card, 8px);
  background: #fff;
  overflow: hidden;
}
.sm-sign__pad.sign-wrapper {
  position: relative;
  width: 100%;
  height: 140px !important;
  flex: 0 0 auto;
}
.sm-sign__canvas,
.sm-sign .signature-pad {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff;
  cursor: crosshair;
}
.sm-sign__actions {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
  padding: .65rem .7rem;
  border-top: 1px solid rgba(10, 47, 74, .08);
  background: #f8fafc;
}
.sm-sign__actions-inner {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  width: max-content;
  max-width: 100%;
}
.sm-sign__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  min-width: max-content;
  min-height: 38px;
  padding-inline: 1.1rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  visibility: visible !important;
  opacity: 1 !important;
}
.sm-sign__btn--reset {
  background: #64748b;
  color: #fff !important;
}
.sm-sign__btn--reset:hover {
  background: #526074;
  color: #fff !important;
}
.sm-sign__btn--save {
  background: var(--brand, #b5965e);
  color: #fff !important;
}
.sm-sign__btn--save:hover {
  background: #a6854f;
  color: #fff !important;
}
.sm-account-sign-card .sm-sign__pad.sign-wrapper {
  height: 120px !important;
}
/* Match preview box to signature box: pad 120 + actions bar (~52) + borders */
.sm-account-sign-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(120px + 52px);
  min-height: calc(120px + 52px);
  max-height: calc(120px + 52px);
  padding: .5rem;
  border: 1px dashed rgba(10, 47, 74, .14);
  border-radius: var(--radius-control, 6px);
  background: #f8fafc;
  overflow: hidden;
  box-sizing: border-box;
}
.sm-account-sign-preview img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sm-account-sign-preview__empty {
  font-size: .84rem;
  font-weight: 600;
  color: var(--sm-muted, #5a6672);
}
.sm-account-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
  margin-top: 1.15rem;
}
@media (max-width: 991.98px) {
  .sm-account-section-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px) {
  .sm-account-section {
    padding: 1rem;
  }
  .sm-account-sign-grid {
    grid-template-columns: 1fr;
  }
}
.sm-account .note-text {
  margin: 0 0 .85rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-control, 6px);
  background: rgba(181, 150, 94, .1);
  color: var(--sm-ink, #0a2f4a);
  font-size: .92rem;
}
.sm-account .btn-good,
.sm-account a.btn-good {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .55rem 1.1rem;
  border: 0 !important;
  border-radius: var(--radius-control, 6px) !important;
  background: var(--primary, #0a2f4a) !important;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}
.sm-account .btn-good:hover,
.sm-account a.btn-good:hover {
  background: #0d3a5a !important;
}
.sm-account .card.card-profile,
.sm-account .card {
  border: 1px solid rgba(10, 47, 74, .08) !important;
  border-radius: var(--radius-card, 8px) !important;
  box-shadow: 0 8px 22px rgba(10, 47, 74, .05);
  overflow: hidden;
  background: #fff;
}
.sm-account .card-profile .card-body {
  padding: 1.1rem 1.2rem !important;
}
.sm-account .card-profile h6,
.sm-account .card-profile .text-major {
  color: var(--primary, #0a2f4a) !important;
}
.sm-account .access-form,
.sm-account .access-form-grid,
.sm-account .ui-form-grid {
  gap: .85rem;
}
.sm-account input.form-control,
.sm-account select.form-select,
.sm-account textarea.form-control {
  border-radius: var(--radius-control, 6px) !important;
  border-color: rgba(10, 47, 74, .14);
}
.sm-account input.form-control:focus,
.sm-account select.form-select:focus,
.sm-account textarea.form-control:focus {
  border-color: var(--field-select-border-focus, #94a3b8);
  box-shadow: 0 0 0 3px var(--field-select-ring, rgba(148, 163, 184, .28));
}
@media (max-width: 575.98px) {
  .sm-account-card__body {
    flex-direction: column-reverse;
    text-align: center;
    padding: 1.25rem 1.1rem;
  }
  .sm-account-card__text {
    text-align: center;
  }
  .sm-account-hero {
    flex-direction: column-reverse;
    text-align: center;
  }
  .sm-account-hero__text {
    text-align: center;
  }
}
