/* mu-pages.css — Almadain University College shared styles */
:root {
  --mu-teal: #0d9488;
  --mu-teal-dark: #0f766e;
  --mu-teal-light: #f0fdf9;
  --mu-teal-border: #ccfbf1;
  --mu-text: #1a1a1a;
  --mu-text-muted: #555;
  --mu-text-light: #888;
  --mu-radius: 12px;
  --mu-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --mu-shadow-hover: 0 8px 32px rgba(13,148,136,0.15);
}

/* Hero shared */
.mu-hero {
  background: linear-gradient(135deg, var(--mu-teal) 0%, var(--mu-teal-dark) 100%);
  color: white;
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.mu-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.mu-breadcrumb {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.mu-breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

/* Section containers */
.mu-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.mu-section-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.mu-section-alt {
  background: var(--mu-teal-light);
  padding: 4rem 2rem;
}

/* Section headings */
.mu-section-title {
  color: var(--mu-teal);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.mu-section-sub {
  color: var(--mu-text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* Cards */
.mu-card {
  background: white;
  border-radius: var(--mu-radius);
  padding: 1.5rem;
  box-shadow: var(--mu-shadow);
}
.mu-card:hover {
  box-shadow: var(--mu-shadow-hover);
}

/* Buttons */
.mu-btn {
  display: inline-block;
  background: var(--mu-teal);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.mu-btn:hover {
  background: var(--mu-teal-dark);
  color: white;
  text-decoration: none;
}
.mu-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--mu-teal);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--mu-teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.mu-btn-outline:hover {
  background: var(--mu-teal);
  color: white;
  text-decoration: none;
}

/* Info badge / status */
.mu-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.mu-badge-green {
  background: #d1fae5;
  color: #065f46;
}
.mu-badge-yellow {
  background: #fef3c7;
  color: #92400e;
}
.mu-badge-teal {
  background: var(--mu-teal-light);
  color: var(--mu-teal-dark);
  border: 1px solid var(--mu-teal-border);
}

/* Alert info block */
.mu-info-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--mu-teal-light);
  border: 2px solid var(--mu-teal);
  border-radius: var(--mu-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.mu-info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* RTL utilities */
[data-rtl="true"] .mu-hero {
  direction: rtl;
}
[data-rtl="true"] .mu-section,
[data-rtl="true"] .mu-section-narrow {
  direction: rtl;
  text-align: right;
}
[data-rtl="true"] .mu-info-block {
  flex-direction: row-reverse;
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .mu-hero h1 { font-size: 1.7rem; }
  .mu-section, .mu-section-narrow { padding: 2.5rem 1.25rem; }
}
@media (max-width: 480px) {
  .mu-hero h1 { font-size: 1.4rem; }
  .mu-hero { padding: 2.5rem 1.25rem 2rem; }
}

/* ─── WCAG AA contrast fix ─── */
.mu-body-text, .mu-body-text p, .mu-body-text li,
.timeline-text, .location-value, .step-body,
.program-card-desc, .mu-modal-section p {
  color: #1f2937 !important;
}
/* Footer link contrast on dark background */
footer a, .mu-footer a, .mu-footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a:hover, .mu-footer a:hover, .mu-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.mu-section-heading, .vmv-card h3,
.step-title, .timeline-year {
  color: #0B7B71 !important;
}

/* =====================================================================
   MU PREMIUM POLISH LAYER (2026-05-10)
   System-wide visual uplift across heroes, Final CTAs, Phoenix sections,
   cards, and typography. Uses attribute selectors to upgrade dedicated
   page templates (cp-, vm-, pm-, ad-, rd-, fq-, ca-, mr-, dc-) without
   modifying each template file.

   Target: premium institutional brand presence (vs. enterprise-portal).
   ===================================================================== */

/* ── Editorial typography upgrade for dedicated-template heroes ── */
section[class$="-hero"] {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7rem) 1.5rem clamp(3.6rem, 6vw, 5.2rem) !important;
  isolation: isolate;
}

/* Subtle dot-grid pattern over hero */
section[class$="-hero"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.18) 1px, transparent 0);
  background-size: 28px 28px;
  background-position: 0 0;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 65%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 65%);
  pointer-events: none;
  z-index: 0;
}

/* Off-axis decorative gold orb on the right edge of hero */
section[class$="-hero"]::after {
  content: "";
  position: absolute;
  top: -120px; right: -160px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,170,0,0.22) 0%, rgba(255,170,0,0.05) 45%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
[dir="rtl"] section[class$="-hero"]::after {
  right: auto; left: -160px;
}

/* Hero contents above decoration */
section[class$="-hero"] > * { position: relative; z-index: 1; }

/* Larger, more editorial hero H1 */
section[class$="-hero"] h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-left: auto !important;
  margin-right: auto !important;
}
[dir="rtl"] section[class$="-hero"] h1 { letter-spacing: 0; }

/* Hero subtitle gets calmer color and slightly tighter line-height */
section[class$="-hero"] > p,
section[class$="-hero"] p {
  font-size: clamp(1rem, 1.4vw, 1.15rem) !important;
  line-height: 1.7 !important;
  max-width: 60ch !important;
  color: rgba(255,255,255,0.88) !important;
  font-weight: 400;
}

/* Hero eyebrow pill — add gold accent dot before label */
section[class$="-hero"] [class$="-hero-eyebrow"] {
  display: inline-flex !important;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.05rem !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.14em !important;
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 1.4rem !important;
}
section[class$="-hero"] [class$="-hero-eyebrow"]::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mu-gold-500, #FFAA00);
  box-shadow: 0 0 0 4px rgba(255,170,0,0.18);
}

/* ── Section heading — add gold accent underline beneath section H2s ── */
[class$="-section"] > h2,
[class$="-section--alt"] .dc-inner > h2,
section[class$="-section"] h2 {
  position: relative;
  padding-bottom: 0.85rem;
}
[class$="-section"] > h2::after,
[class$="-section--alt"] .dc-inner > h2::after,
section[class$="-section"] h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--mu-teal-500, #009996), var(--mu-gold-500, #FFAA00));
  border-radius: 2px;
}
/* Don't add underline to in-card H2s where text-align is start */
[class*="-card"] > h2::after,
[class*="-notes"] > h2::after,
[class*="-docs"] > h2::after,
[class*="-official"] > h2::after,
[class*="-framework"] > h2::after,
[class*="-founding"] > h2::after,
[class*="-intro"] > h2::after,
[class*="-support"] > h2::after { display: none; }

/* ── Phoenix section — bigger, more deliberate ── */
[class$="-phoenix"] {
  padding: clamp(3.4rem, 6vw, 5rem) 1rem !important;
  position: relative;
}
[class$="-phoenix"] [class$="-phoenix-symbol"] {
  width: 108px !important;
  height: 108px !important;
  background: radial-gradient(circle at center, rgba(255,170,0,0.22) 0%, rgba(255,170,0,0.06) 60%, transparent 100%) !important;
  position: relative;
  margin-bottom: 1.4rem !important;
}
[class$="-phoenix"] [class$="-phoenix-symbol"]::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(255,170,0,0.35);
  animation: mu-phx-rotate 38s linear infinite;
}
[class$="-phoenix"] [class$="-phoenix-symbol"] svg {
  width: 56px !important; height: 56px !important;
  stroke-width: 1.3 !important;
}
@keyframes mu-phx-rotate {
  to { transform: rotate(360deg); }
}
[class$="-phoenix"] h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem) !important;
  font-weight: 800 !important;
  margin-bottom: 0.85rem !important;
}
[class$="-phoenix"] > p {
  font-size: 1.04rem !important;
  line-height: 1.85 !important;
  max-width: 56ch !important;
  margin: 0 auto !important;
  color: var(--mu-stone-600, #4b5563) !important;
}

/* ── Final CTA — radial gradient + decorative shape + bigger H2 ── */
[class$="-finalcta"] [class$="-finalcta-inner"] {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 5vw, 4.4rem) clamp(1.8rem, 4vw, 3rem) !important;
  border-radius: 22px !important;
  box-shadow:
    0 24px 60px rgba(0,153,150,0.25),
    0 8px 24px rgba(0,0,0,0.08) !important;
}
[class$="-finalcta"] [class$="-finalcta-inner"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 88% 18%, rgba(255,170,0,0.22) 0%, transparent 36%),
    radial-gradient(circle at 12% 92%, rgba(255,255,255,0.10) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
[class$="-finalcta"] [class$="-finalcta-inner"]::after {
  content: "";
  position: absolute;
  bottom: -90px; right: -90px;
  width: 240px; height: 240px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
[dir="rtl"] [class$="-finalcta"] [class$="-finalcta-inner"]::after {
  right: auto; left: -90px;
}
[class$="-finalcta"] [class$="-finalcta-inner"] > * { position: relative; z-index: 1; }

[class$="-finalcta"] [class$="-finalcta-inner"] h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.005em;
  margin-bottom: 1rem !important;
}
[class$="-finalcta"] [class$="-finalcta-inner"] > p {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  max-width: 56ch !important;
  margin: 0 auto 2rem !important;
}
[class$="-finalcta-row"] { gap: 0.85rem !important; }
[class$="-finalcta-primary"], [class$="-finalcta-secondary"] {
  padding: 0.95rem 1.85rem !important;
  font-size: 0.98rem !important;
  border-radius: 10px !important;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease !important;
}
[class$="-finalcta-primary"] { box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
[class$="-finalcta-primary"]:hover { transform: translateY(-2px) !important; box-shadow: 0 10px 28px rgba(255,170,0,0.4) !important; }

/* ── Card system — multi-layer shadow + refined hover for all common card classes ── */
[class*="-step"]:not([class*="-step-num"]):not([class*="-steps"]),
[class*="-service-card"],
[class*="-cat"]:not([class*="-cat-h"]):not([class*="-cat-num"]),
[class*="-doc"]:not([class*="-docs-list"]):not([class*="-docs-more"]),
.ad-step, .rd-cat, .dc-service-card,
.fq-item, .mr-branch {
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 4px 12px rgba(15,23,42,0.05) !important;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.24s ease !important;
}
.ad-step:hover, .rd-cat:hover, .dc-service-card:hover,
.fq-item:hover, .mr-branch:hover,
[class*="-step"]:hover, [class*="-cat"]:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 14px 36px rgba(0,153,150,0.14),
    0 6px 16px rgba(15,23,42,0.06) !important;
}

/* FAQ accordion item refinement */
.fq-item[open] {
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 16px 40px rgba(0,153,150,0.16),
    0 8px 20px rgba(15,23,42,0.07) !important;
}

/* ── Body section copy: tighten paragraph readability ── */
[class$="-section"] > p,
[class$="-section--alt"] .dc-inner > p {
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Skip-link enhancement: subtle accent line above section anchors ── */
[class$="-section"] + [class$="-section"]::before {
  content: "";
  display: block;
  width: 32px; height: 2px;
  margin: 0 auto -1.2rem;
  background: linear-gradient(90deg, transparent, var(--mu-gold-500, #FFAA00), transparent);
  opacity: 0.45;
}

/* ── Smooth-scroll site-wide ── */
html { scroll-behavior: smooth; }

/* ── Reduced motion preference respected ── */
@media (prefers-reduced-motion: reduce) {
  [class$="-phoenix"] [class$="-phoenix-symbol"]::before { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ── Mobile polish: keep heroes generous on small screens ── */
@media (max-width: 576px) {
  section[class$="-hero"] { padding: 3.2rem 1.1rem 2.6rem !important; }
  section[class$="-hero"] h1 { font-size: clamp(1.7rem, 7vw, 2.3rem) !important; }
  [class$="-finalcta"] [class$="-finalcta-inner"] { padding: 2.2rem 1.4rem !important; border-radius: 16px !important; }
}

/* End MU PREMIUM POLISH LAYER */
