/* englishpanel.com — styles */
:root {
  --blue: #123C7A;
  --blue-hover: #1E55A8;
  --accent: #2F7DE1;
  --soft: #EEF3FB;
  --soft-2: #E6F0FF;
  --line: #D6DEEA;
  --line-2: #A7B6CF;
  --text: #1B2433;
  --text-2: #3D4759;
  --muted: #5A6478;
  --on-dark: #D6DFF0;
  --on-dark-2: #B9C8E6;
  --yellow: #FFC857;
  --radius: 12px;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}
html[lang="ar"] { --font-display: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 10;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 96px; }
.section-inner { padding-block: 96px; }
.band-soft { background: var(--soft); }
.band-dark { background: var(--blue); color: #fff; }
.has-deco { position: relative; overflow: hidden; }
.has-deco > .wrap { position: relative; }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-weight: 600; color: var(--blue); }
h1.display { font-size: clamp(38px, 5.2vw, 70px); line-height: 1.12; letter-spacing: -0.01em; }
.h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.18; }
.h3 { font-size: 22px; line-height: 1.3; }
.band-dark .display { color: #fff; }
.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.eyebrow-accent { color: var(--accent); }
.eyebrow-light { color: var(--on-dark-2); }
.lead { font-size: 19px; color: var(--text-2); max-width: 560px; }
.lead-light { font-size: 18px; color: var(--on-dark); max-width: 540px; }
.rule { display: block; width: 72px; height: 3px; background: var(--accent); margin-block: 28px; }
.narrow { max-width: 700px; }
.crumb { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.crumb a { color: var(--muted); }

.section-head { margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--text-2); max-width: 640px; }
.section-head.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.section-head.split .h2 { flex: 1 1 380px; }
.section-head.split p { flex: 1 1 320px; max-width: 440px; margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 6px; border: 1px solid transparent;
  font: 500 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--soft); color: var(--blue); }
.btn-ghost { border-color: var(--line-2); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--soft); }
.btn-white { background: #fff; color: var(--blue); font-weight: 600; }
.btn-white:hover { background: var(--soft); color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--blue); font-family: "Fraunces", Georgia, serif; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.logo em { font-weight: 500; color: var(--accent); }
.logo-light { color: #fff; }
.logo-light em { color: #8FC1FF; }
.logo-lg { font-size: 34px; justify-content: center; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0 22px; align-items: center; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  font-size: 15px; font-weight: 500; color: var(--text); border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); font-weight: 600; border-bottom-color: var(--accent); }
.header-actions { display: flex; gap: 8px; align-items: center; }

@media (max-width: 960px) {
  .site-header { position: static; }
  .header-row { gap: 4px 12px; }
  .main-nav {
    order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 0 18px;
    padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  .main-nav a { white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-block: 80px 96px; }
.hero-text { flex: 1 1 500px; min-width: 0; }
.hero-text h1 { margin-top: 22px; }
.hero-text .rule { margin-bottom: 0; }
.hero-text .lead { margin-top: 28px; }
.hero-art { flex: 1 1 380px; max-width: 540px; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* ---------- Icon tiles ---------- */
.icon-tile {
  flex: none; width: 76px; height: 76px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 20px; background: #fff; border: 1px solid var(--line);
}
.icon-tile-white { width: 64px; height: 64px; border-radius: 18px; border: 0; margin-bottom: 20px; }
.icon-tile-sm { width: 56px; height: 56px; border-radius: 16px; }

/* ---------- Course list (home) ---------- */
.course-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--blue); }
.course-list li { border-bottom: 1px solid var(--line-2); }
.course-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; padding: 26px 4px; text-decoration: none; color: var(--text); }
.course-list a:hover .cl-name { color: var(--blue-hover); }
.course-list a:hover .arrow-circle { background: var(--blue); color: #fff; }
.cl-name { flex: 1 1 220px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.cl-desc { flex: 2 1 320px; color: var(--text-2); font-size: 16px; }
.arrow-circle {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--blue); color: var(--blue); font-size: 20px; transition: background-color .15s, color .15s;
}

/* ---------- Grids & cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.section .narrow + .grid-3 { margin-top: 48px; }
.band .h2 + .grid-4 { margin-top: 44px; }
.method-card { padding: 28px; border-radius: 16px; background: var(--soft); }
.method-card p, .learn-item p { margin-top: 12px; color: var(--text-2); font-size: 16px; }
.learn-item { padding-top: 22px; border-top: 3px solid var(--accent); }
.learn-item .num { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500; font-size: 20px; color: var(--accent); margin-bottom: 8px; text-align: start; }

/* ---------- Library band (home) ---------- */
.lib-band { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.lib-band-text { flex: 1 1 460px; min-width: 0; }
.lib-band-text .h2 { margin-top: 18px; }
.lib-band-text .lead-light { margin-top: 18px; }
.lib-band-text .btn { margin-top: 32px; }
.type-tiles { flex: 1 1 340px; max-width: 460px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.type-tiles li { padding: 20px; border: 1px solid #3A5E9A; border-radius: 10px; background: #18478C; }
.type-badge { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: #8FC1FF; }
.type-tiles p { margin-top: 6px; font-weight: 600; font-size: 17px; color: #fff; }
.deco { position: absolute; pointer-events: none; }
.deco-rings { width: 420px; height: 420px; top: -140px; inset-inline-end: -120px; opacity: .5; }
.deco-star { width: 36px; height: 36px; bottom: 48px; inset-inline-start: 6%; }

/* ---------- Course page ---------- */
.page-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 64px 96px; }
.page-hero-text { flex: 1 1 520px; min-width: 0; }
.page-hero-text .eyebrow + h1 { margin-top: 14px; }
.page-hero-simple { padding-bottom: 72px; }
.page-hero-simple .page-hero-text { max-width: 820px; }
.glance {
  flex: 1 1 320px; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(18, 60, 122, .08); overflow: hidden;
}
.glance-art { background: var(--soft-2); }
.glance-art svg { display: block; width: 100%; height: auto; }
.glance-title { margin: 22px 30px 4px; font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .glance-title { letter-spacing: 0; }
.glance dl { margin: 0 30px 20px; }
.glance dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.glance dt { color: var(--muted); font-size: 15px; }
.glance dd { margin: 0; font-weight: 500; color: var(--blue); text-align: end; }

.mat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--blue); }
.mat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.mat-text { flex: 1 1 280px; min-width: 0; }
.mat-text h3 { font-size: 18px; font-weight: 600; }
.mat-text p { margin-top: 2px; font-size: 15px; color: var(--muted); }
.badge {
  min-width: 76px; text-align: center; padding: 4px 10px; border: 1px solid var(--blue); border-radius: 4px;
  background: var(--soft); color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .08em;
}
.badge-white { background: #fff; min-width: 0; }
.soon { font-size: 14px; color: var(--muted); padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: 6px; }
.more-link { margin-top: 24px; font-weight: 500; }
.empty-note { padding: 40px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }

.cta-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.cta-text { flex: 1 1 460px; min-width: 0; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; color: var(--on-dark); }
.checks .check { flex: none; margin-top: 5px; color: #8FC1FF; }
.checks-dark li { color: var(--text); font-size: 17px; }
.checks-dark .check { color: var(--accent); }
.cta-card { flex: 0 1 380px; background: #fff; color: var(--text); border-radius: var(--radius); padding: 32px; }
.cta-card .display { color: var(--blue); }
.cta-card p { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.cta-card .btn { margin-top: 22px; }

/* ---------- Library page ---------- */
.filter-band { border-block: 1px solid var(--line); }
.filter-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; padding-block: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--blue);
  font: 500 15px/1 var(--font-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.search { flex: 0 1 340px; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.search label, .field label { font-size: 14px; font-weight: 500; color: var(--text-2); }
input, select, textarea {
  font: 400 16px/1.4 var(--font-body); color: var(--text); background: #fff;
  border: 1px solid var(--line-2); border-radius: 6px; padding: 12px 14px; min-height: 48px; width: 100%;
}
textarea { resize: vertical; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.lib-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lib-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--soft); border-bottom: 1px solid var(--line); }
.lib-course { font-size: 14px; font-weight: 500; color: var(--text-2); }
.lib-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; }
.lib-card-body .h3 { font-size: 21px; }
.lib-card-body p { font-size: 15px; color: var(--muted); }
.lib-card-body .btn, .lib-card-body .soon { margin-top: auto; }
.lib-card-body p + .btn, .lib-card-body p + .soon { margin-top: 12px; }
#lib-empty { margin-top: 20px; }
.res-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.res-card:hover { border-color: var(--accent); }
.res-card p { font-size: 15px; color: var(--muted); }
.res-domain { margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--blue-hover); text-align: start; }
.book { display: flex; gap: 18px; align-items: flex-start; }
.book-cover { flex: none; width: 96px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: #E3EAF6; }
.book-cover-empty { display: flex; align-items: center; justify-content: center; }
.book-cat { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.book .h3 { font-size: 20px; margin-top: 4px; }
.book-author { margin-top: 2px; font-size: 14px; color: var(--muted); }
.book-why { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.book-buy { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 15px; }

/* ---------- About & contact ---------- */
.role { margin-top: 12px; font-size: 18px; font-weight: 500; color: var(--accent); }
.prose p { font-size: 18px; color: var(--text-2); }
.prose p + p { margin-top: 16px; }
.prose + .checks { margin-top: 32px; }
.course-link {
  display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 16px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--blue);
}
.course-link .display { flex: 1; font-size: 21px; }
.course-link:hover { border-color: var(--accent); }
.contact-row { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.contact-info { flex: 1 1 380px; min-width: 0; }
.contact-info .lead { margin-top: 16px; }
.contact-info .actions { margin-top: 28px; }
.channels { margin: 32px 0 0; border-top: 1px solid var(--blue); }
.channels div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.channels dt { color: var(--muted); font-size: 15px; }
.channels dd { margin: 0; font-weight: 500; color: var(--blue); }
.contact-info .empty-note { margin-top: 28px; }
.contact-form {
  flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 12px 32px rgba(18, 60, 122, .08);
}
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.contact-form .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: var(--on-dark); }
.footer-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-block: 56px 36px; }
.footer-brand { flex: 1 1 280px; max-width: 400px; }
.footer-brand p { margin-top: 12px; font-size: 15px; }
.footer-links { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: var(--on-dark); text-decoration: none; font-size: 15px; min-height: 32px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-title { font-weight: 600; color: #fff; margin-bottom: 4px; }
.footer-bottom { padding-block: 20px 28px; border-top: 1px solid #33589A; font-size: 14px; color: var(--on-dark-2); }

/* ---------- Language chooser ---------- */
.splash { background: var(--soft); min-height: 100vh; }
.splash-main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.splash-card {
  width: 100%; max-width: 620px; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 40px 32px 44px; text-align: center; box-shadow: 0 20px 48px rgba(18, 60, 122, .10);
}
.splash-art { max-width: 340px; margin: 12px auto 8px; }
.splash-art svg { display: block; width: 100%; height: auto; }
.splash-q { display: flex; flex-direction: column; gap: 2px; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 28px; color: var(--blue); }
.splash-q [lang="ar"] { font-family: "Noto Naskh Arabic", serif; }
.splash-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.lang-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border-radius: 14px;
  background: var(--blue); color: #fff; text-decoration: none; transition: background-color .15s, transform .15s;
}
.lang-btn:hover { background: var(--blue-hover); color: #fff; transform: translateY(-2px); }
.lang-btn + .lang-btn { background: var(--accent); }
.lang-btn + .lang-btn:hover { background: var(--blue-hover); }
.lang-name { font-size: 26px; font-weight: 600; font-family: "Fraunces", Georgia, serif; }
.lang-btn[lang="ar"] .lang-name { font-family: "Noto Naskh Arabic", serif; }
.lang-sub { font-size: 15px; color: #E3ECFB; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section, .section-inner { padding-block: 64px; }
  .hero { padding-block: 48px 64px; }
  .page-hero { padding-block: 40px 64px; }
  .cta-card, .contact-form { padding: 24px; }
  .type-tiles { grid-template-columns: 1fr 1fr; }
  .btn { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
