/* =============================================================
   موقع جامعة بوابة المستقبل — Future Gate University (F.G.U)
   ورقة أنماط أصلية بالكامل، اتجاه RTL، بدون أي مكتبة خارجية
   ============================================================= */

/* ---------- 1. Design tokens ---------- */
/* الألوان مستخرجة من شعار جامعة بوابة المستقبل الرسمي (كحلي + ذهبي) */
:root {
  --navy: #0d2242;
  --navy-2: #16375f;
  --navy-3: #205070;
  --gold: #a8834f;
  --gold-2: #e0c48c;
  --gold-pale: #f7f0e3;
  --ink: #16202e;
  --muted: #61708a;
  --line: #e2e8f0;
  --paper: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef2f7;
  --success: #1f7a5c;
  --danger: #c0392b;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 8px rgba(13, 34, 66, .06);
  --shadow-sm: 0 6px 18px rgba(13, 34, 66, .08);
  --shadow-md: 0 14px 36px rgba(13, 34, 66, .12);
  --shadow-lg: 0 24px 60px rgba(13, 34, 66, .18);

  --font: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s var(--ease);
}

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-weight: 800;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: -.2px;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

p { margin: 0 0 1.1em; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--gold);
  color: #fff;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow { max-width: 900px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tight { padding-block: 0 96px; }
.bg-surface { background: var(--surface); }
.bg-navy { background: var(--navy); color: #dbe4f0; }
.bg-navy h2,
.bg-navy h3,
.bg-navy h4 { color: #fff; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap { gap: 24px; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 44px; }

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 22px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { inset-inline-start: 12px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}

.btn:hover {
  background: var(--navy-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #8f6e40; }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-light {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-light:hover { background: #fff; color: var(--navy); }

.btn-sm { padding: 10px 22px; font-size: .85rem; }
.btn-block { width: 100%; }

.btn .icon { width: 18px; height: 18px; fill: currentColor; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--gold);
}
.link-arrow svg { width: 16px; height: 16px; fill: currentColor; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(-5px); }

/* ---------- 5. Section headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 6px 18px;
  border: 1px solid rgba(168, 131, 79, .38);
  border-radius: var(--radius-pill);
  background: var(--gold-pale);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.eyebrow svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.bg-navy .eyebrow {
  background: rgba(224, 196, 140, .12);
  border-color: rgba(224, 196, 140, .35);
  color: var(--gold-2);
}

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.bg-navy .section-head p { color: #b7c5d9; }

.title-underline {
  position: relative;
  padding-bottom: 18px;
}
.title-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 68px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.center .title-underline::after { inset-inline-start: 50%; transform: translateX(50%); }

/* ---------- 6. Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #c3d1e4;
  font-size: .84rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 46px;
}
.topbar-info { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar-info li { display: flex; align-items: center; gap: 8px; }
.topbar-info svg { width: 15px; height: 15px; fill: var(--gold-2); flex: none; }
.topbar a:hover { color: #fff; }

.topbar-social { display: flex; align-items: center; gap: 8px; }
.topbar-social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.topbar-social svg { width: 14px; height: 14px; fill: #dbe4f0; }
.topbar-social a:hover { background: var(--gold); transform: translateY(-2px); }

/* ---------- 7. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand img { width: 52px; height: 52px; }
.brand-text strong {
  display: block;
  font-size: .98rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--navy);
  line-height: 1.4;
}
.brand-text span {
  display: block;
  font-size: .62rem;
  letter-spacing: 1.4px;
  white-space: nowrap;
  color: var(--gold);
  font-weight: 700;
}

.main-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 11px;
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--navy);
  border-radius: var(--radius-sm);
}

@media (min-width: 993px) and (max-width: 1320px) {
  .nav-list > li > a { padding: 12px 8px; font-size: .86rem; }
  .brand-text strong { font-size: .9rem; }
  .header-actions .btn { padding: 10px 16px; }
}
.nav-list > li > a:hover,
.nav-list > li.current > a { color: var(--gold); }
.nav-list .caret { width: 11px; height: 11px; fill: currentColor; opacity: .7; }

.submenu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  min-width: 232px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav-list > li:hover > .submenu,
.nav-list > li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.submenu a:hover {
  background: var(--gold-pale);
  color: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; fill: var(--navy); transition: fill .25s var(--ease); }
.icon-btn:hover { border-color: var(--gold); background: var(--gold-pale); }
.icon-btn:hover svg { fill: var(--gold); }

.nav-toggle { display: none; }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Search panel */
.search-panel {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  padding: 22px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: none;
}
.search-panel.is-open { display: block; }
.search-panel form { display: flex; gap: 10px; }
.search-panel input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero-slide {
  position: relative;
  display: none;
  min-height: 640px;
  padding: 110px 0;
}
.hero-slide.is-active { display: block; animation: heroFade .8s var(--ease) both; }

@keyframes heroFade {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(13, 34, 66, .94) 8%, rgba(13, 34, 66, .74) 48%, rgba(13, 34, 66, .35) 100%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-content { max-width: 660px; }
.hero-content h1 { color: #fff; margin-bottom: .35em; }
.hero-content h1 em {
  font-style: normal;
  color: var(--gold-2);
}
.hero-content p {
  font-size: 1.08rem;
  color: #c8d5e6;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 20px;
  border: 1px solid rgba(224, 196, 140, .45);
  border-radius: var(--radius-pill);
  background: rgba(224, 196, 140, .12);
  color: var(--gold-2);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  white-space: nowrap;
}
.hero-badge svg {
  flex: none;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.hero-dots {
  position: absolute;
  bottom: 38px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background-color .3s var(--ease), width .3s var(--ease);
}
.hero-dots button.is-active { background: var(--gold); width: 52px; }

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: background-color .25s var(--ease);
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); }
.hero-arrow svg { width: 18px; height: 18px; fill: #fff; }
.hero-prev { inset-inline-end: 28px; }
.hero-next { inset-inline-start: 28px; }

/* ---------- 9. Quick info cards ---------- */
.quick-cards {
  position: relative;
  z-index: 6;
  margin-top: -70px;
}
.quick-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quick-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .35s var(--ease);
}
.quick-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.quick-card:hover::before { transform: scaleX(1); }
.quick-card .icon-circle { margin-bottom: 18px; }
.quick-card h3 { margin-bottom: .4em; }
.quick-card p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

.icon-circle {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--gold-pale);
  color: var(--gold);
}
.icon-circle svg { width: 28px; height: 28px; fill: currentColor; }
.icon-circle.navy { background: rgba(22, 55, 95, .1); color: var(--navy-2); }

/* ---------- 10. About / media blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split-media .badge-float {
  position: absolute;
  inset-block-end: -28px;
  inset-inline-start: -22px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.badge-float strong { display: block; font-size: 2rem; line-height: 1.2; }
.badge-float span { font-size: .85rem; opacity: .9; }

.check-list { display: grid; gap: 12px; margin-bottom: 30px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
}
.check-list svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 6px;
  fill: var(--gold);
}

/* ---------- 11. Counters ---------- */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.counter {
  padding: 34px 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, .04);
}
.counter strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold-2);
  line-height: 1.2;
}
.counter span { font-size: .95rem; color: #c3d1e4; }
.counters.on-light .counter {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.counters.on-light .counter strong { color: var(--navy); }
.counters.on-light .counter span { color: var(--muted); }

/* ---------- 12. Cards (programs / news / events) ---------- */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card-media img { transform: scale(1.07); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: .5em; }
.card-body h3 a:hover { color: var(--gold); }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
}
.card-tag {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-start: 16px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  font-size: .85rem;
  color: var(--muted);
}
.card-meta li { display: flex; align-items: center; gap: 6px; }
.card-meta svg { width: 15px; height: 15px; fill: var(--gold); }

.price-tag { font-weight: 800; color: var(--navy); }

/* Event card variant */
.event-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.event-date {
  display: grid;
  place-content: center;
  text-align: center;
  padding: 18px 10px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}
.event-date strong { display: block; font-size: 2rem; line-height: 1; color: var(--gold-2); }
.event-date span { font-size: .82rem; letter-spacing: 1px; }
.event-card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.event-card .card-meta { margin-bottom: 0; }

/* Staff card */
.staff-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.staff-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.staff-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-social {
  position: absolute;
  inset-block-end: 14px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.staff-card:hover .staff-social { opacity: 1; transform: translateY(0); }
.staff-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.staff-social svg { width: 15px; height: 15px; fill: var(--navy); }
.staff-social a:hover { background: var(--gold); }
.staff-social a:hover svg { fill: #fff; }
.staff-info { padding: 22px 18px 26px; }
.staff-info h3 { font-size: 1.1rem; margin-bottom: .2em; }
.staff-info span { color: var(--gold); font-size: .9rem; font-weight: 700; }

/* ---------- 13. Feature blocks ---------- */
.feature {
  display: flex;
  gap: 20px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.feature h3 { font-size: 1.12rem; margin-bottom: .35em; }
.feature p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.bg-navy .feature {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
}
.bg-navy .feature p { color: #b7c5d9; }
.bg-navy .icon-circle { background: rgba(224, 196, 140, .16); color: var(--gold-2); }

/* ---------- 14. CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: #fff;
}
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(224, 196, 140, .12);
}
.cta-banner::before { width: 320px; height: 320px; top: -120px; inset-inline-start: -80px; }
.cta-banner::after { width: 220px; height: 220px; bottom: -110px; inset-inline-end: 8%; }
.cta-banner .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: .3em; }
.cta-banner p { color: #c8d5e6; margin-bottom: 0; max-width: 620px; }

/* ---------- 15. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 96px 0;
  background: var(--navy) center/cover;
  color: #fff;
  text-align: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 34, 66, .85), rgba(13, 34, 66, .93));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.breadcrumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .92rem;
  color: #c8d5e6;
}
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-inline-start: 10px; opacity: .5; }
.breadcrumb [aria-current] { color: var(--gold-2); font-weight: 700; }

/* ---------- 16. Filters & pagination ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 42px;
}
.filter-bar button {
  padding: 10px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.filter-bar button:hover { border-color: var(--gold); color: var(--gold); }
.filter-bar button.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 54px;
}
.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 700;
  background: #fff;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- 17. Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 700; color: var(--navy); }
.field label .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(168, 131, 79, .14);
}
.field .error-msg { display: none; font-size: .84rem; color: var(--danger); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .error-msg { display: block; }

.form-note { font-size: .88rem; color: var(--muted); }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: rgba(31, 122, 92, .1);
  border: 1px solid rgba(31, 122, 92, .3);
  color: var(--success);
  font-weight: 700;
}
.form-status.is-visible { display: block; }

.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 240px;
  padding: 15px 22px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.newsletter-form input::placeholder { color: #a9bbd2; }

/* ---------- 18. Tabs & accordion ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tabs button {
  padding: 14px 24px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.tabs button.is-active { color: var(--navy); border-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .4s var(--ease) both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.accordion { display: grid; gap: 14px; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  border: 0;
  background: none;
  text-align: start;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.acc-head svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: var(--gold);
  transition: transform .3s var(--ease);
}
.acc-item.is-open .acc-head svg { transform: rotate(180deg); }
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- 19. Timeline & steps ---------- */
.timeline { position: relative; display: grid; gap: 34px; padding-inline-start: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 6px;
  inset-inline-start: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(168, 131, 79, .15));
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -34px;
  top: 8px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: #fff;
}
.timeline h4 { margin-bottom: .2em; }
.timeline span { display: block; font-size: .85rem; font-weight: 800; color: var(--gold); margin-bottom: 6px; }
.timeline p { color: var(--muted); margin-bottom: 0; }

.steps { counter-reset: step; display: grid; gap: 26px; }
.step {
  position: relative;
  padding: 30px 30px 30px 30px;
  padding-inline-start: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 28px;
  top: 28px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--gold);
  font-weight: 800;
}
.step h3 { font-size: 1.12rem; margin-bottom: .3em; }
.step p { margin-bottom: 0; color: var(--muted); }

/* ---------- 20. Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}
table.data th,
table.data td {
  padding: 16px 20px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
table.data thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface); }

/* ---------- 21. Sidebar widgets ---------- */
.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}
.widget {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.widget + .widget { margin-top: 26px; }
.widget h3 {
  font-size: 1.12rem;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.widget-list li + li { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.widget-list a { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.widget-list a:hover { color: var(--gold); }
.widget-list .count { color: var(--muted); font-size: .88rem; }

.recent-item { display: flex; gap: 14px; align-items: center; }
.recent-item + .recent-item { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.recent-item img { width: 76px; height: 66px; border-radius: var(--radius-sm); object-fit: cover; flex: none; }
.recent-item h4 { font-size: .95rem; margin-bottom: 2px; line-height: 1.6; }
.recent-item h4 a:hover { color: var(--gold); }
.recent-item time { font-size: .82rem; color: var(--muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
}
.tag-cloud a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.info-list li:last-child { border-bottom: 0; }
.info-list strong { color: var(--navy); }
.info-list span { color: var(--muted); }

/* ---------- 22. Article body ---------- */
.article-body { font-size: 1.03rem; }
.article-body h2 { margin-top: 1.4em; }
.article-body h3 { margin-top: 1.2em; }
.article-body img { border-radius: var(--radius-lg); margin: 28px 0; }
.article-body ul:not(.check-list):not(.card-meta) {
  display: grid;
  gap: 10px;
  margin: 0 0 1.4em;
  padding-inline-start: 6px;
}
.article-body ul:not(.check-list):not(.card-meta) li {
  position: relative;
  padding-inline-start: 24px;
  color: var(--muted);
}
.article-body ul:not(.check-list):not(.card-meta) li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
blockquote {
  margin: 30px 0;
  padding: 28px 32px;
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold-pale);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
}
blockquote footer { margin-top: 10px; font-size: .9rem; font-weight: 700; color: var(--gold); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  font-size: .9rem;
  color: var(--muted);
}
.post-meta li { display: flex; align-items: center; gap: 7px; }
.post-meta svg { width: 16px; height: 16px; fill: var(--gold); }

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.share-links { display: flex; gap: 8px; }
.share-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.share-links svg { width: 15px; height: 15px; fill: var(--navy); }
.share-links a:hover { background: var(--gold); border-color: var(--gold); }
.share-links a:hover svg { fill: #fff; }

.author-box {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 36px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }

/* ---------- 23. Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 34, 66, 0) 40%, rgba(13, 34, 66, .82));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery-item figcaption {
  position: absolute;
  inset-block-end: 20px;
  inset-inline: 22px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  text-align: start;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover figcaption { opacity: 1; transform: none; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 4 / 6.4; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 30px;
  background: rgba(8, 20, 38, .93);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1080px, 92vw); max-height: 82vh; border-radius: var(--radius); }
.lightbox p { margin-top: 16px; color: #dbe4f0; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 26px;
  inset-inline-start: 26px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--gold); border-color: var(--gold); }

/* ---------- 24. Partners strip ---------- */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; align-items: center; }
.partners img {
  width: 100%;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.partners a:hover img { filter: none; opacity: 1; transform: translateY(-4px); }

/* ---------- 25. Contact cards & map ---------- */
.contact-card {
  padding: 32px 26px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card .icon-circle { margin: 0 auto 18px; }
.contact-card h3 { font-size: 1.1rem; }
.contact-card p { color: var(--muted); margin-bottom: 0; font-size: .96rem; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.map-embed img { width: 100%; }

/* ---------- 26. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b7c5d9;
  padding-top: 78px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 56px;
}
.site-footer h4 {
  position: relative;
  margin-bottom: 26px;
  padding-bottom: 12px;
  color: #fff;
  font-size: 1.08rem;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}
.site-footer p { font-size: .95rem; }
.site-footer a:hover { color: var(--gold-2); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-logo {
  display: grid;
  place-items: center;
  flex: none;
  padding: 7px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.footer-brand img { width: 54px; height: 54px; object-fit: contain; }
.footer-brand strong { display: block; color: #fff; font-size: 1.05rem; }
.footer-brand span { font-size: .74rem; letter-spacing: 2px; color: var(--gold-2); }

.footer-links li + li { margin-top: 11px; }
.footer-links a { display: inline-flex; align-items: center; gap: 9px; font-size: .95rem; }
.footer-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  font-size: .95rem;
}
.footer-contact li + li { margin-top: 16px; }
.footer-contact svg { width: 18px; height: 18px; fill: var(--gold-2); flex: none; margin-top: 6px; }

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .88rem;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom nav { display: flex; gap: 22px; }

/* ---------- 27. Back to top ---------- */
.to-top {
  position: fixed;
  inset-block-end: 28px;
  inset-inline-start: 28px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- 28. Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 29. 404 ---------- */
.error-page { padding: 120px 0; text-align: center; }
.error-page .code {
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 30. Responsive ---------- */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .layout-sidebar { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .section { padding: 72px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .quick-cards { margin-top: 0; padding-top: 72px; }
  .hero-slide { min-height: 520px; padding: 84px 0; }
  .topbar-info li:nth-child(3) { display: none; }

  .nav-toggle { display: grid; }
  /* الدرج الجانبي: يُخفى بـ transform ناحية بداية السطر (اليمين في RTL)
     حتى لا يُحدث تمريرًا أفقيًا في الصفحة */
  .main-nav {
    position: fixed;
    inset-block: 0;
    right: 0;
    z-index: 120;
    width: min(300px, 84vw);
    padding: 26px 22px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
  }
  body.nav-open .main-nav { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a { padding: 14px 12px; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; }
  .submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 10px;
    background: var(--surface);
    border-radius: var(--radius-sm);
  }
  .nav-list > li.is-expanded > .submenu { display: block; }
  .nav-list > li.is-expanded > a .caret { transform: rotate(180deg); }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(8, 20, 38, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .section { padding: 60px 0; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.tall { grid-row: auto; aspect-ratio: 4 / 3; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-social { display: none; }
  .hero-arrow { display: none; }
  .event-card { grid-template-columns: 1fr; }
  .event-date { max-width: 118px; }
  .cta-banner .container { flex-direction: column; text-align: center; }
  .author-box { flex-direction: column; text-align: center; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .header-actions .btn { display: none; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .counters { grid-template-columns: 1fr; }
  .brand-text strong { font-size: .92rem; }
  .brand img { width: 44px; height: 44px; }
  .step { padding-inline-start: 24px; padding-top: 86px; }
  .step::before { top: 26px; }
}

/* ---------- 31. Print ---------- */
@media print {
  .topbar, .site-header, .site-footer, .to-top, .hero-dots, .hero-arrow { display: none !important; }
  body { color: #000; }
  .section { padding: 20px 0; }
}
