/* ── MERIDIAN Academy — shared styles ── */
:root {
  --blue:   #1e3a8a;
  --sky:    #2563eb;
  --light-blue: #eff6ff;
  --amber:  #f59e0b;
  --amber-dark: #b45309;
  --green:  #059669;
  --red:    #dc2626;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; background: var(--gray-50); color: var(--gray-800); overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }

/* Alert bar */
.ms-alert { background: var(--red); color: #fff; padding: 9px 16px; font-size: 13px; font-weight: 600; text-align: center; position: relative; z-index: 200; }
.ms-alert a { color: #fde68a; text-decoration: underline; }
.ms-alert-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; cursor: pointer; font-size: 18px; line-height: 1; }

/* Nav */
.ms-nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.ms-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; justify-content: space-between; }
.ms-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.ms-logo-badge { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--sky)); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; box-shadow: 0 2px 8px rgba(30,58,138,.3); }
.ms-logo-name { font-size: 16px; font-weight: 800; color: var(--blue); letter-spacing: -.01em; }
.ms-logo-name span { color: var(--amber); }
.ms-logo-tag { font-size: 10px; color: var(--gray-400); font-weight: 500; margin-top: 1px; }
.ms-nav-links { display: flex; align-items: center; gap: 4px; }
.ms-nav-links a { padding: 7px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--gray-600); text-decoration: none; transition: background .15s, color .15s; white-space: nowrap; }
.ms-nav-links a:hover { background: var(--light-blue); color: var(--sky); }
.ms-nav-links a.active { background: var(--light-blue); color: var(--blue); font-weight: 700; }
.ms-nav-cta { padding: 9px 20px; border-radius: 8px; background: var(--sky); color: #fff !important; font-weight: 700 !important; font-size: 13px; transition: background .15s !important; }
.ms-nav-cta:hover { background: var(--blue) !important; }
.ms-hamburger { display: none; background: none; border: 1px solid var(--gray-200); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--gray-600); }
@media (max-width: 900px) {
  .ms-nav-links { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--gray-200); padding: 10px 16px; gap: 2px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
  .ms-nav-links.open { display: flex; }
  .ms-nav-links a { display: block; }
  .ms-hamburger { display: flex; align-items: center; }
}

/* Hero */
.ms-hero { background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 60%, #0369a1 100%); color: #fff; padding: 80px 24px; position: relative; overflow: hidden; }
.ms-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.04); pointer-events: none; }
.ms-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.ms-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 9999px; padding: 5px 16px; font-size: 12px; font-weight: 600; color: #bfdbfe; margin-bottom: 20px; }
.ms-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 16px; }
.ms-hero h1 span { color: var(--amber); }
.ms-hero p { font-size: 17px; color: rgba(255,255,255,.75); line-height: 1.75; max-width: 600px; margin-bottom: 32px; }

/* Page inner hero */
.ms-page-hero { background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%); color: #fff; padding: 64px 24px 56px; }
.ms-page-hero-inner { max-width: 1200px; margin: 0 auto; }
.ms-page-hero h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 10px; }
.ms-page-hero p { font-size: 15px; color: rgba(255,255,255,.7); max-width: 560px; line-height: 1.7; }
.ms-breadcrumb { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.ms-breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.ms-breadcrumb a:hover { color: #fff; }

/* Section */
.ms-section { padding: 80px 24px; }
.ms-container { max-width: 1200px; margin: 0 auto; }
.ms-section-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 8px; }
.ms-section-title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; color: var(--gray-900); letter-spacing: -.01em; margin-bottom: 12px; line-height: 1.15; }
.ms-section-desc { font-size: 15px; color: var(--gray-600); line-height: 1.75; max-width: 560px; }

/* Cards */
.ms-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.ms-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.09); transform: translateY(-3px); }

/* Buttons */
.ms-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 9px; font-size: 14px; font-weight: 700; text-decoration: none; transition: all .15s; border: none; cursor: pointer; font-family: inherit; }
.ms-btn-primary { background: var(--sky); color: #fff; }
.ms-btn-primary:hover { background: var(--blue); }
.ms-btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.4); color: #fff; }
.ms-btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.ms-btn-amber { background: var(--amber); color: #fff; }
.ms-btn-amber:hover { background: var(--amber-dark); }
.ms-btn-ghost { background: var(--gray-100); color: var(--gray-700); }
.ms-btn-ghost:hover { background: var(--gray-200); }
.ms-btn-sm { padding: 8px 18px; font-size: 13px; }

/* Tags/badges */
.ms-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 9999px; font-size: 11px; font-weight: 700; }
.ms-badge-blue { background: #eff6ff; color: var(--blue); border: 1px solid #bfdbfe; }
.ms-badge-amber { background: #fffbeb; color: var(--amber-dark); border: 1px solid #fde68a; }
.ms-badge-green { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }
.ms-badge-red { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.ms-badge-gray { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); }

/* Form elements */
.ms-input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-200); border-radius: 9px; font-size: 14px; font-family: inherit; color: var(--gray-800); background: #fff; outline: none; transition: border-color .15s; }
.ms-input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.ms-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.ms-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* Footer */
.ms-footer { background: var(--gray-900); color: #fff; padding: 64px 24px 32px; }
.ms-footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 32px; }
@media (max-width: 768px) { .ms-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ms-footer-grid { grid-template-columns: 1fr; } }
.ms-footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 280px; margin-top: 12px; }
.ms-footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.ms-footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none; margin-bottom: 9px; transition: color .15s; }
.ms-footer-col a:hover { color: #fff; }
.ms-footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ms-footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); }
