/* Markaz Qurrota A'yun — Design System
   Navy: #1B2F6E · Orange: #E8912A · White: #FFFFFF
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1B2F6E;
  --navy-dark:  #112054;
  --navy-light: #243A82;
  --orange:     #E8912A;
  --orange-dark:#C97820;
  --orange-tint:#FDF3E3;
  --white:      #FFFFFF;
  --bg:         #F7F8FC;
  --bg2:        #EEF0F8;
  --text:       #111827;
  --muted:      #6B7280;
  --faint:      #9CA3AF;
  --border:     #E5E7EB;
  --font-ui:    'Plus Jakarta Sans', sans-serif;
  --font-d:     'Sora', sans-serif;
  --font-ar:    'Amiri', serif;
  --r:          14px;
  --r-sm:       9px;
  --shadow:     0 2px 12px rgba(27,47,110,.08);
  --shadow-lg:  0 8px 32px rgba(27,47,110,.14);
}

html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font-ui); color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.mqa-header {
  background: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(27,47,110,.12);
  width: 100%; max-width: 100%;
  border-bottom: 1px solid #E8EBF5;
}
.mqa-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px; overflow: hidden;
}
.mqa-logo {
  display: flex; align-items: center; gap: 0;
  flex-shrink: 0;
}
.mqa-logo img {
  height: 52px; width: auto; display: block; object-fit: contain;
}
.mqa-logo-mark {
  width: 42px; height: 42px; background: var(--orange);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 900; color: var(--white);
  flex-shrink: 0;
}
.mqa-logo-text { line-height: 1.1; font-family: var(--font-d); font-size: 16px; font-weight: 800; color: var(--navy); margin-left: 10px; }
.mqa-logo-text span { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.mqa-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.mqa-nav-item {
  padding: 8px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; border: none; background: transparent;
  transition: all .15s; white-space: nowrap;
}
.mqa-nav-item:hover { color: var(--navy); background: var(--bg); }
.mqa-nav-item.active { color: var(--navy); background: var(--bg2); border-left: 2px solid var(--orange); }
.mqa-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mqa-btn-daftar {
  padding: 9px 20px; background: var(--orange); color: var(--white);
  border: none; border-radius: 9px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.mqa-btn-daftar:hover { background: var(--orange-dark); transform: translateY(-1px); }
.mqa-btn-masuk {
  padding: 9px 18px; background: var(--bg2); color: var(--navy);
  border: 1.5px solid var(--border); border-radius: 9px; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: all .15s; font-family: inherit;
}
.mqa-btn-masuk:hover { background: var(--bg); border-color: var(--navy); }

/* ══════════════════════════════════════
   BUTTONS (general)
══════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; font-family: inherit; font-weight: 600; cursor: pointer; border: none; transition: all .15s; }
.btn-primary { background: var(--orange); color: #fff; padding: 11px 24px; font-size: 14px; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,145,42,.35); }
.btn-navy { background: var(--navy); color: #fff; padding: 11px 24px; font-size: 14px; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); padding: 10px 22px; font-size: 14px; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 8px; }
.btn-ghost { background: var(--bg2); color: var(--text); padding: 9px 18px; font-size: 13px; }
.btn-ghost:hover { background: var(--border); }

/* ══════════════════════════════════════
   BADGES
══════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.badge-orange { background: var(--orange-tint); color: var(--orange-dark); }
.badge-navy { background: #E8EBF5; color: var(--navy); }
.badge-green { background: #DCFCE7; color: #16A34A; }
.badge-blue { background: #DBEAFE; color: #2563EB; }
.badge-gray { background: #F3F4F6; color: #6B7280; }
.badge-purple { background: #F3E8FF; color: #7C3AED; }

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.card { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-family: var(--font-d); font-size: 14.5px; font-weight: 700; color: var(--text); }

/* ══════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════ */
.sec-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.sec-label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--orange); border-radius: 1px; }
.sec-title { font-family: var(--font-d); font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -.02em; }
.sec-sub { font-size: 15px; color: var(--muted); margin-top: 10px; max-width: 520px; line-height: 1.7; }

/* ══════════════════════════════════════
   ARTICLE CARD
══════════════════════════════════════ */
.article-card {
  background: var(--white); border-radius: var(--r); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: all .2s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card-img {
  width: 100%; aspect-ratio: 16/9; background: var(--bg2);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.article-card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 40px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.article-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.article-card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.article-card-title { font-family: var(--font-d); font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.35; flex: 1; }
.article-card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--faint); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.article-card-author { display: flex; align-items: center; gap: 6px; }
.article-card-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; }

/* ══════════════════════════════════════
   PROGRAM CARD
══════════════════════════════════════ */
.program-card {
  background: var(--white); border-radius: var(--r); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: all .2s;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.program-card-header { padding: 28px 24px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); position: relative; overflow: hidden; }
.program-card-header.has-banner { padding: 28px 24px; background: var(--navy); }
.program-card-header.has-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,23,66,.45) 0%, rgba(11,23,66,.82) 100%); z-index: 1; }
.program-card-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.program-card-header > :not(.program-card-banner-img) { position: relative; z-index: 2; }
.program-card-header::after { content: ''; position: absolute; right: -20px; bottom: -20px; width: 100px; height: 100px; background: rgba(255,255,255,.05); border-radius: 50%; z-index: 1; }
.program-card-icon { font-size: 36px; margin-bottom: 12px; }
.program-card-name { font-family: var(--font-d); font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.program-card-ar { font-family: var(--font-ar); font-size: 16px; color: rgba(255,255,255,.65); }
.program-card-body { padding: 20px 24px; }
.program-card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.program-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Program detail banner (left panel) */
.prog-detail-panel { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); padding: 32px 28px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.prog-detail-panel.has-banner { background: var(--navy-dark); }
.prog-detail-panel.has-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,23,66,.5) 0%, rgba(11,23,66,.88) 100%); z-index: 1; }
.prog-detail-panel > * { position: relative; z-index: 2; }
.prog-detail-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.mqa-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  padding: 80px 0 90px; position: relative; overflow: hidden;
}
.mqa-hero[style*="backgroundImage"]::before {
  background: rgba(11, 23, 66, 0.72) !important;
}
.mqa-hero::before {
  content: ''; position: absolute; inset: 0;
  background: 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='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.mqa-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.mqa-hero-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--orange); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.mqa-hero-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--orange); }
.mqa-hero-title { font-family: var(--font-d); font-size: 46px; font-weight: 900; color: #fff; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 16px; }
.mqa-hero-title span { color: var(--orange); }
.mqa-hero-ar { font-family: var(--font-ar); font-size: 22px; color: rgba(255,255,255,.6); margin-bottom: 20px; direction: rtl; text-align: right; }
.mqa-hero-sub { font-size: 15.5px; color: rgba(255,255,255,.75); line-height: 1.75; margin-bottom: 32px; max-width: 480px; }
.mqa-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mqa-hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 40px; }
.mqa-hero-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 16px; text-align: center; }
.mqa-hero-stat-num { font-family: var(--font-d); font-size: 28px; font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: 4px; }
.mqa-hero-stat-label { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 600; }
.mqa-hero-visual { display: flex; flex-direction: column; gap: 12px; }
.mqa-hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 18px 20px; backdrop-filter: blur(8px); }
.mqa-hero-card-icon { font-size: 28px; margin-bottom: 8px; }
.mqa-hero-card-title { font-family: var(--font-d); font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.mqa-hero-card-sub { font-size: 12px; color: rgba(255,255,255,.6); }
.mqa-hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ══════════════════════════════════════
   STAT STRIP
══════════════════════════════════════ */
.mqa-strip { background: var(--navy); padding: 32px 0; }
.mqa-strip-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.mqa-strip-item { text-align: center; padding: 0 24px; border-right: 1px solid rgba(255,255,255,.1); }
.mqa-strip-item:last-child { border-right: none; }
.mqa-strip-num { font-family: var(--font-d); font-size: 34px; font-weight: 900; color: var(--orange); line-height: 1; }
.mqa-strip-label { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 600; margin-top: 4px; }

/* ══════════════════════════════════════
   TEACHER CARD
══════════════════════════════════════ */
.teacher-card { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); padding: 28px 24px; text-align: center; box-shadow: var(--shadow); transition: all .2s; }
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.teacher-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-family: var(--font-d); font-size: 26px; font-weight: 800; color: #fff; }
.teacher-name { font-family: var(--font-d); font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.teacher-title { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.teacher-tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }

/* ══════════════════════════════════════
   TESTIMONIAL CARD
══════════════════════════════════════ */
.testi-card { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow); }
.testi-stars { display: flex; gap: 2px; margin-bottom: 12px; color: var(--orange); font-size: 14px; }
.testi-text { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0; }
.testi-name { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.testi-role { font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.form-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; background: var(--white); }
.form-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,47,110,.1); }
.form-select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-size: 14px; font-family: inherit; outline: none; background: var(--white); cursor: pointer; }
.form-textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-size: 14px; font-family: inherit; outline: none; resize: vertical; min-height: 100px; }
.form-error { padding: 10px 14px; border-radius: var(--r-sm); background: #FEE2E2; color: #DC2626; font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }
.form-success { padding: 10px 14px; border-radius: var(--r-sm); background: #DCFCE7; color: #16A34A; font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }

/* ══════════════════════════════════════
   TABLE
══════════════════════════════════════ */
.mqa-table { width: 100%; border-collapse: collapse; }
.mqa-table thead tr { background: #FAFAF9; }
.mqa-table th { padding: 10px 16px; text-align: left; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #999; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mqa-table td { padding: 13px 16px; border-bottom: 1px solid #F5F5F3; font-size: 13.5px; }
.mqa-table tbody tr:last-child td { border-bottom: none; }
.mqa-table tbody tr:hover { background: #FAFAF9; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.mqa-footer { background: linear-gradient(160deg, #11214E 0%, var(--navy-dark) 55%, #0A1124 100%); padding: 56px 0 28px; position: relative; }
.mqa-footer::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.4'%3E%3Crect x='15' y='15' width='30' height='30'/%3E%3Crect x='15' y='15' width='30' height='30' transform='rotate(45 30 30)'/%3E%3C/g%3E%3C/svg%3E"); background-size: 60px 60px; }
.mqa-footer::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--sage), var(--orange), var(--sage)); }
.mqa-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.mqa-footer-brand-name { font-family: var(--font-d); font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.mqa-footer-brand-ar { font-family: var(--font-ar); font-size: 16px; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.mqa-footer-brand-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 20px; }
.mqa-footer-social { display: flex; gap: 8px; }
.mqa-footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); transition: all .15s; font-size: 14px; }
.mqa-footer-social a:hover { background: var(--orange); color: #fff; }
.mqa-footer-col-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); margin-bottom: 16px; }
.mqa-footer-link { display: block; font-size: 13.5px; color: rgba(255,255,255,.55); margin-bottom: 10px; cursor: pointer; transition: color .15s; }
.mqa-footer-link:hover { color: var(--white); }
.mqa-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; }
.mqa-footer-copy { font-size: 13px; color: rgba(255,255,255,.3); }

/* ══════════════════════════════════════
   ADMIN / WRITER SIDEBAR
══════════════════════════════════════ */
.mqa-admin-wrap { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 66px); }
.mqa-sidebar { background: #0E1C4A; display: flex; flex-direction: column; padding: 20px 12px; gap: 2px; }
.mqa-sidebar-brand { padding: 8px 10px 20px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 8px; }
.mqa-sidebar-brand-label { font-size: 10px; color: rgba(255,255,255,.25); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 4px; }
.mqa-sidebar-brand-name { font-family: var(--font-d); font-size: 15px; font-weight: 800; color: #fff; }
.mqa-sidebar-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; color: rgba(255,255,255,.45); font-size: 13px;
  font-weight: 500; cursor: pointer; border: none; background: transparent;
  text-align: left; transition: all .15s; width: 100%;
  border-left: 2px solid transparent;
}
.mqa-sidebar-nav-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); }
.mqa-sidebar-nav-item.active { background: rgba(255,255,255,.1); color: #fff; font-weight: 700; border-left-color: var(--orange); }
.mqa-sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.mqa-main { background: var(--bg); padding: 28px; }
.mqa-page-header { margin-bottom: 24px; }
.mqa-page-eyebrow { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.mqa-page-title { font-family: var(--font-d); font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }

/* ══════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════ */
.mqa-login-page { min-height: 100vh; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.mqa-login-box { background: var(--white); border-radius: 20px; padding: 44px 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.mqa-login-logo { text-align: center; margin-bottom: 28px; }
.mqa-login-logo-mark { width: 60px; height: 60px; background: var(--orange); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 28px; font-weight: 900; color: #fff; font-family: var(--font-d); }
.mqa-login-title { font-family: var(--font-d); font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.mqa-login-sub { font-size: 13px; color: var(--muted); }

/* ══════════════════════════════════════
   GALLERY
══════════════════════════════════════ */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.gallery-item { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg2); cursor: pointer; transition: all .2s; position: relative; display: flex; align-items: center; justify-content: center; }
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item-emoji { font-size: 48px; }
.gallery-item-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27,47,110,.7) 0%, transparent 60%); opacity: 0; transition: opacity .2s; display: flex; align-items: flex-end; padding: 14px; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption { color: #fff; font-size: 12.5px; font-weight: 600; }

/* ══════════════════════════════════════
   WHATSAPP FLOAT
══════════════════════════════════════ */
.mqa-wa-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4); transition: all .2s;
  font-size: 24px;
}
.mqa-wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,.5); }

/* ══════════════════════════════════════
   LOADER
══════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
.loader { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px; gap: 14px; }
.loader-spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--navy); border-radius: 50%; animation: spin .7s linear infinite; }

/* ══════════════════════════════════════
   RESPONSIVE (basic)
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* CSS grid variables — override all inline grids */
  :root {
    --article-grid: 1fr;
    --art3-grid: 1fr;
    --prog-grid: 1fr 1fr;
    --prog-detail-grid: 1fr;
    --keg-grid: 1fr;
    --keg-admin-grid: 1fr;
    --buku-grid: 1fr 1fr;
    --buku-detail-grid: 1fr;
    --prog-info-grid: 1fr 1fr;
    --teacher-grid: 1fr 1fr;
    --testi-grid: 1fr;
    --why-grid: 1fr;
    --contact-grid: 1fr;
    --reg-grid: 1fr;
    --form2-grid: 1fr;
    --gal2-grid: 1fr 1fr;
  }

  /* Header */
  .mqa-nav { display: none; }
  .mqa-header-actions { display: none; }
  .mqa-hamburger { display: flex; align-items: center; justify-content: center; }
  .mqa-hide-sm { display: none !important; }
  .mqa-header-inner { height: 54px; }
  .mqa-logo-text { font-size: 13px; }
  .mqa-logo-text span { display: none; }
  .mqa-logo-mark { width: 34px; height: 34px; font-size: 16px; border-radius: 8px; }
  .mqa-btn-daftar { padding: 7px 12px; font-size: 12px; }

  /* Nav strip — scrollable, compact */
  .mqa-nav-strip { top: 54px; border-bottom: 1.5px solid #E8EBF5; }
  .mqa-nav-strip-item { padding: 9px 14px; font-size: 12.5px; }

  /* Hero */
  .mqa-hero { padding: 44px 0 52px; }
  .mqa-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .mqa-hero-visual { display: none; }
  .mqa-hero-title { font-size: 26px; letter-spacing: -.02em; margin-bottom: 12px; }
  .mqa-hero-ar { font-size: 16px; margin-bottom: 14px; }
  .mqa-hero-sub { font-size: 13.5px; margin-bottom: 22px; }
  .mqa-hero-label { font-size: 11px; margin-bottom: 10px; }
  .mqa-hero-actions { flex-direction: column; gap: 10px; }
  .mqa-hero-actions .btn { width: 100%; justify-content: center; padding: 13px 20px; }
  .mqa-hero-stats { grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 24px; }
  .mqa-hero-stat { padding: 12px 8px; }
  .mqa-hero-stat-num { font-size: 20px; }
  .mqa-hero-stat-label { font-size: 9.5px; }

  /* Strip */
  .mqa-strip { padding: 20px 0; }
  .mqa-strip-inner { grid-template-columns: repeat(2,1fr); gap: 0; }
  .mqa-strip-item { padding: 12px 12px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .mqa-strip-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .mqa-strip-item:nth-child(3), .mqa-strip-item:nth-child(4) { border-bottom: none; }
  .mqa-strip-num { font-size: 24px; }
  .mqa-strip-label { font-size: 11px; }

  /* Sections */
  .section { padding: 40px 0; }
  .section-sm { padding: 28px 0; }
  .sec-title { font-size: 21px; }
  .sec-sub { font-size: 13.5px; }
  .container { padding: 0 16px; }

  /* Section header layout */
  div[style*="flex"][style*="space-between"] { flex-direction: column; align-items: flex-start !important; gap: 12px !important; }

  /* Program cards */
  .program-card-header { padding: 20px 18px; }
  .program-card-name { font-size: 16px; }
  .program-card-body { padding: 14px 18px; }
  .program-card-desc { font-size: 13px; }

  /* Program detail page - stack sidebar left panel */
  .card > div[style*="280px"] > div:first-child {
    padding: 22px 20px !important;
    min-height: auto !important;
  }

  /* Articles */
  .article-card { flex-direction: column !important; }
  .article-card-title { font-size: 14px; }

  /* Teacher cards */
  .teacher-card { padding: 18px 14px; }
  .teacher-avatar { width: 64px; height: 64px; font-size: 20px; }
  .teacher-name { font-size: 13.5px; }

  /* Testimonials */
  .testi-card { padding: 16px; }
  .testi-text { font-size: 13px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .gallery-item-emoji { font-size: 36px; }

  /* Footer */
  .mqa-footer { padding: 36px 0 20px; }
  .mqa-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .mqa-footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .mqa-footer-brand-name { font-size: 16px; }

  /* Login */
  .mqa-login-page { padding: 16px; align-items: flex-start; padding-top: 40px; }
  .mqa-login-box { padding: 28px 20px; border-radius: 16px; }

  /* Admin */
  .mqa-admin-wrap { grid-template-columns: 1fr; }
  .mqa-sidebar { display: none; }
  .mqa-main { padding: 16px; }

  /* WA Button */
  .mqa-wa-btn { bottom: 16px; right: 16px; width: 46px; height: 46px; font-size: 20px; }

  /* Forms — prevent iOS auto-zoom (public pages only) */
  body:not(.dashboard-active) .form-input,
  body:not(.dashboard-active) .form-select,
  body:not(.dashboard-active) .form-textarea { font-size: 16px; } /* prevent iOS zoom */
  .form-group { margin-bottom: 14px; }

  /* Buttons */
  .btn { padding: 10px 18px; }
  .mqa-btn-daftar, .mqa-btn-masuk { padding: 8px 14px; font-size: 12.5px; }

  /* CTA section */
  div.section[style*="orange-tint"] > div > div { flex-direction: column !important; }
}
.mqa-mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy-dark);
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}
.mqa-mobile-menu.open { display: flex; }
.mqa-mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mqa-mobile-menu-logo { font-family: var(--font-d); font-size: 16px; font-weight: 800; color: #fff; }
.mqa-mobile-menu-close { background: none; border: none; color: #fff; cursor: pointer; padding: 6px; }
.mqa-mobile-nav-item {
  display: flex; align-items: center; padding: 16px 24px;
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(255,255,255,.06);
  cursor: pointer; background: none; border-left: none; border-right: none;
  border-top: none; width: 100%; text-align: start; font-family: inherit;
  transition: all .15s;
}
.mqa-mobile-nav-item:hover, .mqa-mobile-nav-item.active {
  color: #fff; background: rgba(255,255,255,.06);
  border-left: 3px solid var(--orange);
  padding-left: 21px;
}
.mqa-mobile-nav-footer {
  padding: 20px 24px; display: flex; flex-direction: column; gap: 10px;
  border-top: 1px solid rgba(255,255,255,.08); margin-top: auto;
}
.mqa-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: #fff; padding: 6px; flex-shrink: 0;
}

/* ── NAV STRIP ── */
.mqa-nav-strip {
  background: #fff;
  border-top: 1px solid #E8EBF5;
  border-bottom: 2px solid #E8EBF5;
  position: sticky; top: 66px; z-index: 99;
  box-shadow: 0 2px 8px rgba(27,47,110,.06);
  width: 100%; max-width: 100%;
}
.mqa-nav-strip-inner {
  display: flex; align-items: center;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.mqa-nav-strip-inner::-webkit-scrollbar { display: none; }
.mqa-nav-strip-item {
  padding: 11px 18px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: none; border: none;
  cursor: pointer; white-space: nowrap; transition: all .15s;
  border-bottom: 2.5px solid transparent; font-family: inherit;
  flex-shrink: 0;
}
.mqa-nav-strip-item:hover { color: var(--navy); }
.mqa-nav-strip-item.active { color: var(--orange); border-bottom-color: var(--orange); font-weight: 700; }

/* Utility */
.mqa-hide-sm { display: inline-flex; }

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (max 1024px)
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .mqa-hero-title { font-size: 38px; }
  .mqa-hero-cards { grid-template-columns: 1fr 1fr; }
  .mqa-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (max 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Header */
  .mqa-nav { display: none; }
  .mqa-header-actions { display: none; }
  .mqa-hamburger { display: flex; align-items: center; justify-content: center; }
  .mqa-header-inner { height: 58px; }
  .mqa-logo-text { font-size: 14px; }
  .mqa-logo-text span { display: none; }

  /* Hero */
  .mqa-hero { padding: 48px 0 56px; }
  .mqa-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .mqa-hero-visual { display: none; }
  .mqa-hero-title { font-size: 28px; letter-spacing: -.02em; }
  .mqa-hero-ar { font-size: 17px; }
  .mqa-hero-sub { font-size: 14px; }
  .mqa-hero-actions { flex-direction: column; }
  .mqa-hero-actions .btn { width: 100%; justify-content: center; }
  .mqa-hero-stats { grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 28px; }
  .mqa-hero-stat-num { font-size: 22px; }
  .mqa-hero-stat-label { font-size: 10px; }

  /* Strip */
  .mqa-strip { padding: 24px 0; }
  .mqa-strip-inner { grid-template-columns: repeat(2,1fr); gap: 0; }
  .mqa-strip-item { padding: 12px 16px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .mqa-strip-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .mqa-strip-item:nth-child(3), .mqa-strip-item:nth-child(4) { border-bottom: none; }
  .mqa-strip-num { font-size: 26px; }
  .mqa-strip-label { font-size: 11px; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .sec-title { font-size: 22px; }
  .sec-sub { font-size: 14px; }
  .container { padding: 0 16px; }

  /* Article layout */
  .article-card { flex-direction: column !important; }

  /* Program cards */
  .program-card-header { padding: 20px 18px; }
  .program-card-body { padding: 16px 18px; }

  /* Teacher cards grid */
  .teacher-card { padding: 20px 16px; }

  /* Testimonial */
  .testi-card { padding: 18px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }

  /* Footer */
  .mqa-footer { padding: 40px 0 24px; }
  .mqa-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mqa-footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  /* Login */
  .mqa-login-box { padding: 32px 24px; }

  /* Admin */
  .mqa-admin-wrap { grid-template-columns: 1fr; }
  .mqa-sidebar { display: none; }

  /* WA Button */
  .mqa-wa-btn { bottom: 16px; right: 16px; width: 48px; height: 48px; font-size: 20px; }

  /* Forms — iOS anti-zoom (public only) */
  body:not(.dashboard-active) .form-input,
  body:not(.dashboard-active) .form-select,
  body:not(.dashboard-active) .form-textarea { font-size: 16px; }

  /* Page headers */
  .mqa-page-eyebrow { font-size: 10px; }
  .mqa-page-title { font-size: 18px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — LANDSCAPE MOBILE
   (tinggi layar < 500px, orientasi landscape)
══════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {

  /* Header tetap compact */
  .mqa-header-inner { height: 52px; }
  .mqa-nav { display: none; }
  .mqa-header-actions { display: none; }
  .mqa-hamburger { display: flex; align-items: center; justify-content: center; }

  /* Hero — 2 kolom tapi lebih compact */
  .mqa-hero { padding: 28px 0 36px; }
  .mqa-hero-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .mqa-hero-visual { display: none; }
  .mqa-hero-title { font-size: 22px; }
  .mqa-hero-ar { font-size: 14px; margin-bottom: 10px; }
  .mqa-hero-sub { font-size: 13px; margin-bottom: 16px; display: none; }
  .mqa-hero-label { margin-bottom: 8px; font-size: 10px; }
  .mqa-hero-actions { flex-direction: row; gap: 8px; }
  .mqa-hero-actions .btn { width: auto; padding: 9px 16px; font-size: 13px; }
  .mqa-hero-stats { margin-top: 16px; }
  .mqa-hero-stat { padding: 10px 6px; }
  .mqa-hero-stat-num { font-size: 18px; }
  .mqa-hero-stat-label { font-size: 9px; }

  /* Strip */
  .mqa-strip { padding: 16px 0; }
  .mqa-strip-num { font-size: 20px; }
  .mqa-strip-label { font-size: 10px; }

  /* Sections lebih rapat */
  .section { padding: 32px 0; }
  .sec-title { font-size: 20px; }

  /* Grid landscape — 2 kolom */
  :root {
    --art3-grid: repeat(2, 1fr);
    --prog-grid: repeat(2, 1fr);
    --teacher-grid: repeat(2, 1fr);
    --testi-grid: repeat(2, 1fr);
    --article-grid: 1fr 1fr;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE — LANDSCAPE TABLET
   (lebar 769–1024px, landscape)
══════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Header */
  .mqa-nav { display: flex; gap: 2px; }
  .mqa-nav-item { padding: 6px 10px; font-size: 12.5px; }
  .mqa-header-actions { display: flex; gap: 6px; }
  .mqa-btn-daftar { padding: 7px 14px; font-size: 12px; }
  .mqa-btn-masuk { padding: 7px 12px; font-size: 12px; }
  .mqa-hamburger { display: none; }

  /* Hero */
  .mqa-hero-title { font-size: 34px; }
  .mqa-hero-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mqa-hero-visual { display: flex; }
  .mqa-hero-cards { grid-template-columns: 1fr 1fr; }

  /* Grids */
  :root {
    --art3-grid: repeat(2, 1fr);
    --prog-grid: repeat(2, 1fr);
    --teacher-grid: repeat(2, 1fr);
    --testi-grid: repeat(2, 1fr);
    --article-grid: 1fr 1fr;
    --why-grid: 1fr;
    --contact-grid: 1fr;
    --reg-grid: 1fr;
    --form2-grid: 1fr 1fr;
  }

  .mqa-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .mqa-hero-title { font-size: 24px; }
  .sec-title { font-size: 20px; }
  .mqa-hero-stats { gap: 6px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .mqa-strip-num { font-size: 22px; }
  .testi-card { padding: 14px; }
  .testi-text { font-size: 13px; }
}


/* ══════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════ */
:root {
  --about-grid: 1fr 1fr;
  --values-grid: repeat(4,1fr);
  --team-grid: repeat(3,1fr);
}
@media (max-width: 768px) {
  :root {
    --about-grid: 1fr;
    --values-grid: repeat(2,1fr);
    --team-grid: 1fr;
  }
}

/* ══════════════════════════════════════
   DASHBOARD MOBILE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .mqa-admin-wrap,
  div[style*="grid-template-columns: 240px"],
  div[style*="grid-template-columns: 220px"] {
    grid-template-columns: 1fr !important;
  }
  aside[style*="0E1C4A"] { display: none; }
}

/* ══════════════════════════════════════
   DASHBOARD — MOBILE TOP BAR & TABS
══════════════════════════════════════ */
.mqa-dash-topbar {
  display: none;
  align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  gap: 10px;
}
.mqa-dash-tabs {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.mqa-dash-tabs::-webkit-scrollbar { display: none; }
.mqa-dash-tab {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 8px 6px; flex: 0 0 auto; min-width: 56px;
  background: none; border: none; cursor: pointer;
  font-size: 9px; font-weight: 600; color: var(--muted);
  font-family: inherit; transition: all .15s; white-space: nowrap;
}
.mqa-dash-tab.active { color: var(--orange); }
.mqa-dash-grid { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

/* ══════════════════════════════════════
   DASHBOARD — MOBILE RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --d-grid4: 1fr 1fr;
    --d-grid3: 1fr;
    --d-grid2: 1fr;
  }

  .mqa-dash-topbar { display: flex; }
  .mqa-dash-tabs   { display: flex; }
  .mqa-dash-grid   { grid-template-columns: 1fr !important; }
  .mqa-dash-grid > aside { display: none !important; }

  .mqa-dash-grid > div {
    padding: 14px !important;
    padding-bottom: 86px !important;
  }

  /* Tables scroll */
  .mqa-dash-grid table { min-width: 520px; }

  /* Card padding */
  .mqa-dash-grid div[style*="padding:'22px'"],
  .mqa-dash-grid div[style*="padding: 22px"],
  .mqa-dash-grid div[style*="padding:'20px'"],
  .mqa-dash-grid div[style*="padding: 20px"] { padding: 14px !important; }

  /* Topbar z-index */
  .mqa-dash-topbar { z-index: 60; }

  /* Modal full width on mobile */
  .mqa-modal-inner { max-width: 100% !important; margin: 0 10px !important; }

  /* Flex wrap for action buttons */
  .mqa-dash-grid td div[style*="gap:'5px'"] { flex-wrap: wrap; }
}

/* ── Stat cards 2x2 on small screens ── */
@media (max-width: 480px) {
  :root { --d-grid4: 1fr 1fr; }
}

/* ── Toast animation ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════════════
   DASHBOARD UI CLASSES
   (replaces inline styles for CSS control)
══════════════════════════════════════ */
.dash-field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.dash-card-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  font-family: var(--font-d);
}

/* ══════════════════════════════════════
   DASHBOARD COMPACT MODE (MOBILE)
   Smaller inputs, labels, padding
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Form labels — very compact */
  .mqa-dash-grid .dash-field-label,
  .mqa-dash-grid .form-label {
    font-size: 8px !important;
    letter-spacing: .03em !important;
    margin-bottom: 2px !important;
  }

  /* Card section titles */
  .mqa-dash-grid .dash-card-title { font-size: 12.5px !important; }
  .mqa-dash-grid .dash-card-title + span { font-size: 10px !important; }

  /* Inputs — smaller on dashboard */
  .mqa-dash-grid .form-input,
  .mqa-dash-grid .form-select,
  .mqa-dash-grid .form-textarea {
    font-size: 12.5px !important;
    padding: 6px 8px !important;
    border-radius: 6px !important;
    line-height: 1.3 !important;
  }
  .mqa-dash-grid .form-textarea { min-height: 60px !important; }
  .mqa-dash-grid .form-group { margin-bottom: 8px !important; }

  /* Sub-tab buttons compact */
  .mqa-dash-grid button[style*="padding: '8px 16px'"] {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
}
