/* ESQ Egypt — main stylesheet. RTL first; logical properties throughout. */

@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url("../fonts/cairo-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 600; font-display: swap; src: url("../fonts/cairo-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url("../fonts/cairo-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 800; font-display: swap; src: url("../fonts/cairo-arabic-800.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url("../fonts/cairo-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-weight: 600; font-display: swap; src: url("../fonts/cairo-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url("../fonts/cairo-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-weight: 800; font-display: swap; src: url("../fonts/cairo-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #1b4962;
  --navy-dark: #102b3a;
  --navy-deep: #0b1f2a;
  --gold: #8d7342;
  --gold-light: #b49a68;
  --ink: #191919;
  --muted: #5d6870;
  --line: #e7e7e7;
  --tint: #f5f5f5;
  --white: #fff;
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 2px;
  --shadow: 0 18px 40px rgb(16 43 58 / .12);
  --header-h: 92px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.85 var(--font);
  text-rendering: optimizeLegibility;
}
:where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote) { margin: 0; }
:where(h1, h2, h3, h4, h5, h6) { color: var(--navy); font-weight: 800; line-height: 1.35; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .icon-flip, .link-arrow .icon { transform: scaleX(1); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { --container: 860px; }
.screen-reader-text, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; inset-inline-start: 8px; inset-block-start: -60px; z-index: 1000; padding: 8px 16px; background: var(--gold); color: #fff; }
.skip-link:focus { inset-block-start: 8px; }

/* ---------- Buttons & labels ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 10px 28px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--outline { background: transparent; border-color: rgb(255 255 255 / .8); }
.btn--outline:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn--outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--block { display: flex; width: 100%; }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold); flex: none; }

.section { padding-block: clamp(56px, 8vw, 100px); }
.section--tint { background: var(--tint); }
.section-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.25; margin-block-end: 20px; }
.section-title .accent { display: block; color: var(--gold); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-block-end: 40px; }
.section-head .section-title { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold); text-decoration: none; }
.link-arrow:hover { color: var(--navy); gap: 12px; }
.empty { color: var(--muted); text-align: center; padding-block: 24px; }
.note { margin-block-start: 40px; padding: 18px 22px; border-inline-start: 3px solid var(--gold); background: var(--tint); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: rgb(255 255 255 / .85); font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 0; list-style: none; }
.topbar__info li, .topbar__social { display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { color: var(--gold-light); }
.topbar__social { color: #fff; text-decoration: none; }
.topbar__social:hover { color: var(--gold-light); }

.site-header { position: sticky; inset-block-start: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); transition: box-shadow .25s; }
.admin-bar .site-header { inset-block-start: 32px; }
.site-header.is-stuck { box-shadow: 0 8px 24px rgb(16 43 58 / .1); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; flex: none; }
.brand .esq-img { display: contents; }
.brand__logo { width: 64px; height: 64px; object-fit: contain; }
.brand__name { font-weight: 800; font-size: 17px; line-height: 1.3; max-width: 9.5em; }

.main-nav { margin-inline-start: auto; }
.menu { display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
.menu > li { position: relative; }
.menu a {
  display: block;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.menu > li > a { position: relative; }
.menu > li > a::after {
  content: ""; position: absolute; inset-inline: 12px; inset-block-end: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.menu > li:hover > a::after, .menu > .current-menu-item > a::after, .menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.menu a:hover, .menu .current-menu-item > a { color: var(--navy); }
.menu .sub-menu {
  position: absolute; inset-inline-start: 0; inset-block-start: 100%; z-index: 5;
  min-width: 220px; padding: 8px 0; margin: 0; list-style: none;
  background: #fff; border-block-start: 3px solid var(--gold); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu .sub-menu a { padding: 8px 18px; font-weight: 600; }
.menu .sub-menu a:hover { background: var(--tint); }

.header-cta {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 12px 18px; background: var(--gold); color: #fff; font-weight: 700; text-decoration: none;
}
.header-cta:hover { background: var(--navy); color: #fff; }
.nav-toggle { display: none; margin-inline-start: auto; padding: 10px; border: 0; background: none; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: clamp(520px, 78vh, 760px); overflow: hidden; background: var(--navy-deep); color: #fff; isolation: isolate; }
.hero__slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__media, .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__bg { object-fit: cover; object-position: center; transform: scale(1.06); transition: transform 7s ease-out; }
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, rgb(11 31 42 / .92) 0%, rgb(16 43 58 / .78) 45%, rgb(16 43 58 / .2) 100%);
}
.hero__content { padding-block: 80px 140px; }
.hero__content > * { max-width: 640px; }
.hero .kicker { color: rgb(255 255 255 / .85); }
.hero__title { color: #fff; font-size: clamp(32px, 5vw, 58px); line-height: 1.2; margin-block-end: 18px; }
.hero__text { color: rgb(255 255 255 / .88); font-size: 17px; margin-block-end: 32px; }
.hero__text p + p { margin-block-start: .6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__dots { position: absolute; inset-block-end: 120px; inset-inline-start: max(var(--gutter), calc((100% - var(--container)) / 2)); z-index: 2; display: flex; gap: 10px; }
.hero__dot { width: 34px; height: 4px; padding: 0; border: 0; background: rgb(255 255 255 / .35); cursor: pointer; transition: background .3s, width .3s; }
.hero__dot.is-active { width: 56px; background: var(--gold); }
.hero__add { position: absolute; inset-block-start: 12px; inset-inline: 0; z-index: 3; }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 30px; }
.card { padding: clamp(28px, 3vw, 40px); background: #fff; border: 1px solid var(--line); }
.card--raised { border: 0; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.card--raised:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgb(16 43 58 / .16); }
.card--raised .btn { align-self: flex-start; margin-block-start: auto; }
.card__title { font-size: 24px; margin-block-end: 12px; }
.card__title a { color: inherit; text-decoration: none; }
.card__text { color: var(--muted); margin-block-end: 24px; }
.section--overlap { position: relative; z-index: 5; padding-block-start: 0; margin-block-start: -80px; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.services__intro { position: sticky; inset-block-start: calc(var(--header-h) + 32px); }
.services__intro p { color: var(--muted); margin-block-end: 28px; }
.services__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.service { padding: 32px 28px; border-block-end: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background .3s; }
.service:hover { background: var(--tint); }
.service__icon { display: inline-grid; place-items: center; width: 58px; height: 58px; margin-block-end: 16px; background: var(--navy); color: #fff; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background .3s; }
.service:hover .service__icon { background: var(--gold); }
.service__icon .icon { width: 26px; height: 26px; }
.service__title { font-size: 20px; margin-block-end: 8px; }
.service p { color: var(--muted); font-size: 15px; }

/* ---------- Experience & president ---------- */
.services { padding-block-end: clamp(24px, 4vw, 48px); }
.experience { background: linear-gradient(to bottom, #fff 0 22%, var(--tint) 22%); padding-block-start: 0; }
.experience__grid, .president__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.experience__grid > .esq-img, .experience__img { width: 100%; max-width: 560px; }
.experience p { color: var(--muted); margin-block-end: 28px; }
.president { background: var(--navy); color: rgb(255 255 255 / .85); position: relative; overflow: hidden; }
.president::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 38%; background: var(--navy-dark); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.president__grid { position: relative; z-index: 1; grid-template-columns: 7fr 5fr; }
.president .kicker { color: rgb(255 255 255 / .75); }
.president .section-title { color: #fff; margin-block-end: 6px; }
.president__role { color: var(--gold-light); font-weight: 700; margin-block-end: 18px; }
.president__bio { margin-block-end: 30px; max-width: 60ch; }
.president__photo { justify-self: center; position: relative; }
.president__photo img { width: min(100%, 380px); aspect-ratio: 15 / 16; object-fit: cover; box-shadow: 18px 18px 0 var(--gold); }

/* ---------- Magazines ---------- */
.magazines { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 36px 28px; }
.magazine__link { display: block; text-decoration: none; }
.magazine__cover { display: block; aspect-ratio: 35 / 48; overflow: hidden; background: var(--line); box-shadow: 0 10px 26px rgb(16 43 58 / .14); }
.magazine__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.magazine__link:hover .magazine__cover img { transform: scale(1.04); }
.magazine__title { margin-block-start: 14px; font-size: 18px; text-align: center; }
.magazine__link:hover .magazine__title { color: var(--gold); }
.magazine-single { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.magazine-single__aside { position: sticky; inset-block-start: calc(var(--header-h) + 24px); display: grid; gap: 12px; }
.magazine-single__aside .magazine__cover { margin-block-end: 8px; }
.pdf-frame { display: block; width: 100%; height: min(85vh, 1100px); border: 1px solid var(--line); background: var(--tint); }

/* ---------- Inner pages ---------- */
.page-hero {
  position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px);
  background: var(--navy-dark) url("../img/hero-pattern.jpg") center / cover no-repeat;
  color: #fff;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgb(11 31 42 / .95), rgb(16 43 58 / .75)); }
.page-hero .container { position: relative; }
.page-hero__title { color: #fff; font-size: clamp(30px, 4.5vw, 50px); }
.page-hero__lead { max-width: 760px; margin-block-start: 12px; color: rgb(255 255 255 / .85); font-size: 17px; }
.breadcrumb { display: flex; gap: 10px; margin-block-end: 10px; color: var(--gold-light); font-size: 14px; font-weight: 600; }
.breadcrumb a { color: rgb(255 255 255 / .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

.entry-content { max-width: 100%; }
.entry-content > * + * { margin-block-start: 1.1em; }
.entry-content :where(h2) { font-size: clamp(24px, 3vw, 32px); margin-block-start: 1.6em; }
.entry-content :where(h3) { font-size: 22px; margin-block-start: 1.4em; }
.entry-content :where(h4) { font-size: 19px; margin-block-start: 1.3em; }
.entry-content :where(ul, ol) { padding-inline-start: 1.4em; }
.entry-content li + li { margin-block-start: .4em; }
.entry-content li::marker { color: var(--gold); }
.entry-content img { margin-inline: auto; }
.entry-content a:not(.btn, .wp-block-button__link) { color: var(--gold); font-weight: 600; }
.entry-content .wp-block-button__link, .entry-content .btn {
  display: inline-flex; align-items: center; gap: .5em; padding: 12px 28px; border-radius: var(--radius);
  background: var(--gold); color: #fff; font-weight: 700; text-decoration: none;
}
.entry-content .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.entry-content blockquote { padding: 18px 24px; border-inline-start: 3px solid var(--gold); background: var(--tint); }

/* Two-column feature blocks used on the about page */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-block-start: clamp(48px, 7vw, 90px); }
.feature:nth-of-type(even) > figure { order: 2; }
.feature figure img { width: 100%; box-shadow: var(--shadow); }
.feature h2 { margin-block-start: 0; font-size: clamp(28px, 3.6vw, 40px); }
.feature ul { list-style: none; padding: 0; }
.feature li { position: relative; padding-inline-start: 26px; }
.feature li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .75em; width: 12px; height: 2px; background: var(--gold); }
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; margin-block-start: 32px !important; padding: 0 !important; list-style: none; }
.goals li { margin: 0 !important; padding: 28px; background: var(--tint); border-block-start: 3px solid var(--gold); }
.goals li::before { display: none; }
.goals strong { display: block; color: var(--navy); font-size: 19px; margin-block-end: 6px; }

/* Membership application pages: text beside a preview of the form */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split > div > :first-child { margin-block-start: 0; }
.split > div > * + * { margin-block-start: 1.1em; }
.split > figure { margin: 0 !important; position: sticky; inset-block-start: calc(var(--header-h) + 24px); }
.split .btn { display: flex; width: fit-content; }
.form-preview { width: 100%; max-width: 460px; margin-inline: auto; border: 1px solid var(--line); box-shadow: var(--shadow); }
/* Plain text pages read best at a limited line length. */
.entry-content:not(:has(.feature, .split, .goals)) { max-width: 880px; }
.feature figure img { max-height: 560px; object-fit: cover; }
.fees { display: grid; gap: 12px; padding: 24px 28px !important; list-style: none; background: var(--tint); border-inline-start: 3px solid var(--gold); }

/* ---------- Board ---------- */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 30px; }
.member { display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow); }
.member:first-child { grid-column: 1 / -1; flex-direction: row; }
.member:first-child .member__photo { flex: 0 0 min(40%, 360px); }
.member__photo { position: relative; aspect-ratio: 15 / 16; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.member__photo .esq-img, .member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member__initial { display: grid; place-items: center; width: 100%; height: 100%; color: rgb(255 255 255 / .9); font-size: 88px; font-weight: 800; }
.member__body { padding: 26px 28px 30px; }
.member__name { font-size: 21px; }
.member__role { color: var(--gold); font-weight: 700; margin-block: 4px 10px; }
.member__bio { color: var(--muted); font-size: 15px; }
.member__bio p + p { margin-block-start: .4em; }

/* ---------- Courses ---------- */
.courses-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-end: 20px; }
.courses-tools__search { flex: 1 1 320px; max-width: 480px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.courses-tools__search:focus { outline: 2px solid var(--gold); border-color: transparent; }
.courses-tools__count { color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; box-shadow: var(--shadow); }
.courses { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.courses th { position: sticky; inset-block-start: 0; padding: 16px; background: var(--navy); color: #fff; font-weight: 700; text-align: start; white-space: nowrap; }
.courses td { padding: 14px 16px; border-block-end: 1px solid var(--line); vertical-align: middle; }
.courses tbody tr:nth-child(even) { background: #fafafa; }
.courses tbody tr:hover { background: #f3efe6; }
.courses__num { width: 56px; color: var(--gold); font-weight: 800; text-align: center; }
.courses__title { font-weight: 700; color: var(--navy); }
.courses__price { color: var(--gold); font-weight: 800; white-space: nowrap; }
.courses td[data-label="المدة"] { white-space: nowrap; }
.courses-notes { margin-block-start: 48px; padding: 32px; background: var(--tint); border-inline-start: 3px solid var(--gold); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 16px; padding: 0; list-style: none; }
.contact-card { display: flex; gap: 18px; padding: 22px; background: var(--tint); }
.contact-card h2 { font-size: 17px; margin-block-end: 4px; }
.contact-card p { color: var(--muted); }
.contact-card a { color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--gold); }
.contact-card__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; background: var(--gold); color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block-end: 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid label { display: block; margin-block-end: 6px; font-weight: 700; font-size: 14px; }
.form-grid input, .form-grid textarea { width: 100%; padding: 12px 14px; border: 1px solid #d9d9d9; border-radius: var(--radius); background: #fff; }
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.notice { margin-block-end: 18px; padding: 12px 16px; font-weight: 600; }
.notice--ok { background: #e7f5ec; color: #1d6b3c; }
.notice--error { background: #fdecea; color: #a12d22; }
.map { display: block; width: 100%; height: 420px; margin-block-start: 48px; border: 0; }

/* ---------- Contact band & footer ---------- */
.contact-band { background: var(--gold); color: #fff; }
.contact-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-block: 44px; }
.contact-band .kicker { color: rgb(255 255 255 / .85); }
.contact-band .kicker::before { background: #fff; }
.contact-band__title { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.contact-band__actions { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.contact-band__phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 20px; font-weight: 800; text-decoration: none; }
.contact-band__phone:hover { color: var(--navy-deep); }

.site-footer { background: var(--navy-deep); color: rgb(255 255 255 / .72); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-block: 70px 50px; }
.site-footer .brand { color: #fff; margin-block-end: 18px; }
.site-footer .brand__logo { background: #fff; border-radius: 50%; padding: 4px; }
.site-footer__reg { margin-block-start: 12px; color: var(--gold-light); font-size: 14px; }
.site-footer__title { color: #fff; font-size: 18px; margin-block-end: 18px; }
.site-footer__title::after { content: ""; display: block; width: 34px; height: 2px; margin-block-start: 10px; background: var(--gold); }
.footer-menu, .contact-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.site-footer a { color: rgb(255 255 255 / .8); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { margin-block-start: 5px; color: var(--gold-light); }
.social { display: flex; gap: 10px; margin-block-start: 16px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / .2); color: #fff; transition: .2s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.site-footer__bottom { border-block-start: 1px solid rgb(255 255 255 / .1); font-size: 14px; }
.site-footer__bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Pagination ---------- */
.pagination { margin-block-start: 48px; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.page-numbers.current, .page-numbers:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.post-card { display: flex; flex-direction: column; padding: 0; }
.post-card > *:not(.post-card__img) { margin-inline: 28px; }
.post-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__meta { margin-block: 22px 6px; color: var(--gold); font-size: 14px; font-weight: 700; }
.post-card .link-arrow { margin-block: auto 28px; }
.entry-image { margin-block-end: 28px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .brand__name { display: none; }
  .menu a { padding-inline: 9px; font-size: 14.5px; }
  .header-cta span { display: none; }
}
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .brand__logo { width: 54px; height: 54px; }
  .brand__name { display: block; }
  .nav-toggle { display: block; }
  .header-cta { margin-inline-start: 0; padding: 10px 12px; }
  .main-nav {
    position: fixed; inset: 0; inset-block-start: var(--nav-top, var(--header-h)); z-index: 40;
    margin: 0; padding: 16px var(--gutter) 40px; overflow-y: auto; background: #fff;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .nav-toggle__open { display: none; }
  .nav-open .nav-toggle__close { display: block; }
  .nav-open { overflow: hidden; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu a { padding: 14px 4px; font-size: 17px; border-block-end: 1px solid var(--line); white-space: normal; }
  .menu > li > a::after { display: none; }
  .menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 16px 0 0; }
  .services__grid, .experience__grid, .president__grid, .contact-grid, .magazine-single, .feature, .split { grid-template-columns: 1fr; }
  .split > figure { position: static; }
  .services__intro, .magazine-single__aside { position: static; }
  .feature:nth-of-type(even) > figure { order: 0; }
  .president::after { display: none; }
  .president__photo { order: -1; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .magazine-single__aside { max-width: 320px; }
}
@media (max-width: 782px) {
  .admin-bar .site-header { inset-block-start: 0; }
  .topbar__info li:last-child { display: none; }
}
@media (max-width: 640px) {
  .topbar__social span { display: none; }
  .header-cta { display: none; }
  .brand__name { font-size: 15px; }
  .hero__content { padding-block: 60px 130px; }
  .hero__dots { inset-block-end: 105px; }
  .services__list { grid-template-columns: 1fr; }
  .member:first-child { flex-direction: column; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom .container { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-band__phone { font-size: 18px; }
  /* Course table becomes stacked cards */
  .table-wrap { box-shadow: none; overflow: visible; }
  .courses thead { display: none; }
  .courses, .courses tbody, .courses tr, .courses td { display: block; }
  .courses tr { position: relative; margin-block-end: 14px; padding: 16px 18px; background: #fff !important; box-shadow: 0 6px 18px rgb(16 43 58 / .08); border-inline-start: 3px solid var(--gold); }
  .courses td { padding: 0; border: 0; }
  .courses__num { display: none !important; }
  .courses__title { margin-block-end: 8px; }
  .courses td[data-label] { display: inline-flex; gap: 6px; margin-inline-end: 20px; }
  .courses td[data-label]::before { content: attr(data-label) ":"; color: var(--muted); font-weight: 600; }
}

@media print {
  .topbar, .site-header, .contact-band, .site-footer, .hero__dots { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 16px; }
  .page-hero::before { display: none; }
  .page-hero__title { color: #000; }
}
