/* ===========================================================
   Study in Egypt AE 2027 — Pure CSS Theme (No Tailwind)
   Replaces Tailwind CDN + style.css with a single stylesheet.
   Same visual style: white paper, black ink, Egyptian red.
   Fonts: Cairo (display) / Tajawal (body). RTL-ready.
   =========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --brand: #CE1126;
  --brand-dark: #A50E1F;
  --brand-soft: #FDECEE;
  --brand-tint: #FBE3E6;
  --ink: #0B0B0C;
  --ink-soft: #3A3A3D;
  --ink-mute: #6B6B70;
  --line: #E7E7E9;
  --paper: #FFFFFF;
  --sand: #FAFAF9;
  --green-wa: #25D366;
  --green-wa-dark: #20BA5A;
  --radius-sm: .55rem;
  --radius-md: .8rem;
  --radius-lg: 1rem;
  --radius-xl: 1.1rem;
  --radius-xl2: 1.25rem;
  --shadow-card: 0 1px 2px rgba(11, 11, 12, .04), 0 12px 28px -16px rgba(11, 11, 12, .18);
  --shadow-card-lg: 0 1px 2px rgba(11, 11, 12, .04), 0 14px 30px -22px rgba(11, 11, 12, .22);
  --shadow-lift: 0 18px 50px -24px rgba(206, 17, 38, .45);
  --shadow-btn: 0 14px 30px -16px rgba(206, 17, 38, .7);
  --shadow-wa: 0 12px 28px -10px rgba(37, 211, 102, .7);
  --site-w: 1200px;
  --font-display: 'Cairo', system-ui, sans-serif;
  --font-body: 'Tajawal', system-ui, sans-serif;
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {

  html,
  body {
    overflow-x: hidden;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
  line-height: 1.3;
}

img,
picture,
video,
svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 3. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--site-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.grid {
  min-width: 0;
}

.grid>*,
.wrap.grid>* {
  min-width: 0;
  max-width: 100%;
}


/* ---------- 3. Layout helpers (minimal — only what components still need) ---------- */
.text-brand {
  color: var(--brand);
}

.text-ink {
  color: var(--ink);
}

.text-ink-soft {
  color: var(--ink-soft);
}

.text-ink-mute {
  color: var(--ink-mute);
}

.text-white {
  color: #fff;
}

.bg-brand {
  background: var(--brand);
}

.bg-ink {
  background: var(--ink);
}

.bg-sand {
  background: var(--sand);
}

.bg-paper {
  background: var(--paper);
}

.bg-white {
  background: #fff;
}

.bg-brand-soft {
  background: var(--brand-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.border-line {
  border-color: var(--line);
}

.border-brand {
  border-color: var(--brand);
}

/* Borders / radius / shadow */
.border {
  border: 1px solid var(--line);
}

.border-b {
  border-bottom: 1px solid var(--line);
}

.border-t {
  border-top: 1px solid var(--line);
}

.border-y {
  border-block: 1px solid var(--line);
}

.rounded-lg {
  border-radius: .5rem;
}

.rounded-xl {
  border-radius: .75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 999px;
}

.rounded-xl2 {
  border-radius: var(--radius-xl2);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.shadow-lift {
  box-shadow: var(--shadow-lift);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
}

.shadow-sm {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}

.place-items-center {
  place-items: center;
}

.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

.opacity-0 {
  opacity: 0;
}

.opacity-70 {
  opacity: .7;
}

.pointer-events-none {
  pointer-events: none;
}

.transition {
  transition: all .15s ease;
}

.transition-all {
  transition: all .15s ease;
}

.transition-opacity {
  transition: opacity .25s ease;
}

.duration-300 {
  transition-duration: .3s;
}

.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ---------- 4. Headings / eyebrows ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 99px;
  background: var(--brand);
}

.eyebrow.justify-center {
  justify-content: center;
}

.section-title {
  font-weight: 800;
  line-height: 1.18;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  letter-spacing: -.01em;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.4rem;
  border-radius: .85rem;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
  color: #fff;
}

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

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

.btn-ghost {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.btn-ghost:hover {
  background: var(--brand);
  color: #fff;
}

.btn.w-full {
  width: 100%;
}

/* ---------- 6. Cards / tags / chips ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lift);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  padding: .3rem .7rem;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.tag-dark {
  background: var(--ink);
  color: #fff;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .15s ease;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
}

/* ---------- 7. Header / nav / drawer ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.site-header .brand-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.site-header-actions {
  display: none;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
  position: relative;
  padding-block: .35rem;
  transition: color .15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width .2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.menu-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: .75rem;
  border: 1px solid var(--line);
  background: #fff;
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 12, .5);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

#overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  height: 100%;
  width: 82%;
  max-width: 340px;
  background: #fff;
  z-index: 70;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  padding: 1.25rem;
  transition: transform .3s ease, visibility .3s ease;
  transform: translateX(110%);
  visibility: hidden;
  pointer-events: none;
}

.drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

[dir="rtl"] .drawer {
  transform: translateX(-110%);
}

[dir="rtl"] .drawer.open {
  transform: translateX(0);
}

.drawer nav a {
  display: block;
  padding: .75rem .25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.drawer nav a.active,
.drawer nav a.text-brand {
  color: var(--brand);
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 3.5rem;
}

.hero h1 {
  font-weight: 900;
  line-height: 1.12;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
}

.hero h1 .hl {
  position: relative;
  white-space: nowrap;
  color: var(--brand);
}

.hero-lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 36rem;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-stats {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 2rem;
  row-gap: 1rem;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand);
}

.hero-stat-label {
  font-size: .875rem;
  color: var(--ink-mute);
}

.hero-sep {
  width: 1px;
  height: 2.25rem;
  background: var(--line);
}

.hero-media {
  position: relative;
}

.hero-float-accept {
  position: absolute;
  bottom: -1.25rem;
  inset-inline-start: -12px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  padding: 1rem;
  width: 210px;
}

.hero-float-top {
  position: absolute;
  top: -1rem;
  inset-inline-end: -10px;
  background: var(--ink);
  color: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-lift);
  padding: .75rem 1rem;
}

/* ---------- 9. Data tables ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.data-table th,
.data-table td {
  padding: .8rem .9rem;
  text-align: start;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  background: var(--sand);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--brand-soft);
}

.data-table .num {
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
}

/* ---------- 10. Stat boxes / features / majors / steps ---------- */
.stat-box {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
  transition: background .2s ease, color .2s ease;
}

.stat-box:hover {
  background: var(--ink);
  color: #fff;
}

.stat-box .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--brand);
  line-height: 1;
}

.stat-box:hover .stat-num {
  color: #fff;
}

.stat-box .stat-label {
  margin-top: .4rem;
  font-size: .9rem;
  color: var(--ink-mute);
}

.stat-box:hover .stat-label {
  color: rgba(255, 255, 255, .8);
}

.feature-dark {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-xl2);
  padding: 1.5rem;
  transition: background .2s ease;
}

.feature-dark:hover {
  background: rgba(255, 255, 255, .08);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
}

.major-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.check-dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: .875rem;
  font-weight: 700;
  margin-top: .125rem;
  flex-shrink: 0;
}

.step-card {
  display: flex;
  gap: 1rem;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--brand);
  flex-shrink: 0;
  width: 2.5rem;
}

/* Grids used across sections */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  gap: 1.25rem;
}

.grid-hero,
.grid-about,
.grid-conditions,
.grid-contact,
.grid-article,
.grid-category {
  display: grid;
  gap: 3rem;
}

/* ---------- 11. FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease;
}

.faq-item+.faq-item {
  margin-top: .85rem;
}

.faq-item.open {
  border-color: var(--brand);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  text-align: start;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  border: 0;
}

.faq-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform .25s ease, background .2s ease, color .2s ease;
}

.faq-item.open .faq-icon {
  background: var(--brand);
  color: #fff;
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-a-inner {
  padding: 0 1.25rem 1.2rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ---------- 12. Images / duotone ---------- */
.duo {
  position: relative;
  overflow: hidden;
}

.duo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.duo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(206, 17, 38, .78), rgba(11, 11, 12, .62));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.duo.soft::after {
  background: linear-gradient(160deg, rgba(206, 17, 38, .35), rgba(11, 11, 12, .30));
}

.post-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--sand);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.post-thumb:hover img {
  transform: scale(1.05);
}

/* ---------- 13. Breadcrumbs / article ---------- */
.crumbs {
  font-size: .85rem;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

.crumbs a:hover {
  color: var(--brand);
}

.crumbs .sep {
  color: var(--line);
}

.prose-ar {
  line-height: 2;
  color: var(--ink-soft);
  font-size: 1.05rem;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

.prose-ar *,
.entry-content *,
.content-box * {
  max-width: 100%;
  box-sizing: border-box;
}

.prose-ar img,
.entry-content img,
.content-box img {
  max-width: 100% !important;
  height: auto;
}

.prose-ar figure {
  margin-inline: auto;
}

.prose-ar pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.prose-ar h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 2.2rem 0 .9rem;
  scroll-margin-top: 90px;
}

.prose-ar h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 1.6rem 0 .7rem;
  scroll-margin-top: 90px;
}

.prose-ar p {
  margin-bottom: 1.1rem;
}

.prose-ar ul {
  margin: 0 0 1.2rem;
  padding-inline-start: 0;
}

.prose-ar ul li {
  position: relative;
  padding-inline-start: 1.6rem;
  margin-bottom: .6rem;
}

.prose-ar ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .65em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
}

.prose-ar a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-ar blockquote {
  border-inline-start: 4px solid var(--brand);
  background: var(--sand);
  padding: 1rem 1.2rem;
  border-radius: .6rem;
  margin: 1.4rem 0;
  color: var(--ink);
}

.prose-ar table,
.content-box table,
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  margin: 1.4rem 0;
  display: block;
  overflow-x: auto;
}

.prose-ar th,
.prose-ar td,
.content-box th,
.content-box td,
.entry-content th,
.entry-content td {
  padding: .8rem .9rem;
  text-align: start;
  border: 1px solid var(--line);
}

.prose-ar thead th {
  background: var(--sand);
}

/* ToC */
.toc-wrap {
  margin-bottom: 1.5rem;
}

.toc {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--sand);
  padding: 1rem 1.25rem;
  transition: border-color .2s ease;
}

.toc-heading {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: inherit;
  user-select: none;
  -webkit-user-select: none;
}

.toc-heading-text,
.toc-heading-title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.toc-icon {
  color: var(--brand);
  font-size: 1.1rem;
  line-height: 1;
}

.toc-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--ink-mute);
  transition: transform .25s ease, color .2s ease;
  flex-shrink: 0;
}

.toc.open .toc-toggle-icon {
  transform: rotate(180deg);
  color: var(--brand);
}

/* Nav is hidden by default */
.toc #toc,
.toc>nav,
.toc nav {
  display: none;
}

.toc.open #toc,
.toc.open>nav,
.toc.open nav {
  display: block;
}

.toc #toc {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}

.toc #toc nav {
  margin: 0;
  padding: 0;
  border: none;
}

.toc a {
  display: block;
  padding: .45rem .2rem;
  color: var(--ink-soft);
  font-size: .95rem;
  border-radius: .4rem;
  transition: color .15s ease, background .15s ease;
}

.toc a:hover,
.toc a.active {
  color: var(--brand-dark);
  font-weight: 700;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  transition: all .15s ease;
}

.share-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
}

.post-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin: 1.5rem 0;
  border-radius: 1rem;
  overflow: hidden;
}

.post-video iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* ---------- 14. CTA / FAB / to-top / reveal ---------- */
.cta-box {
  background: var(--ink);
  color: #fff;
  border-radius: 1.2rem;
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: -30px;
  width: 160px;
  background: radial-gradient(circle at center, rgba(206, 17, 38, .55), transparent 70%);
  pointer-events: none;
}

.ctapost {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin: 1rem 0;
}

.ctapost a,
.btn-glow {
  min-height: 48px;
  min-width: 48px;
  padding: .75rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: .85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none !important;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

.btn-wa,
.btn-whatsapp,
.wts.btn-glow {
  background: var(--green-wa) !important;
  background-color: var(--green-wa) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-wa);
  border-color: transparent !important;
  text-decoration: none !important;
}

.btn-wa:hover,
.btn-whatsapp:hover,
.wts.btn-glow:hover {
  background: var(--green-wa-dark) !important;
  background-color: var(--green-wa-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* CTA box inside article content overrides */
.entry-content .cta-box,
.prose-ar .cta-box {
  line-height: 1.5;
  margin-block: 2.2rem;
}

.entry-content .cta-box p,
.prose-ar .cta-box p {
  margin-bottom: 0 !important;
}

.entry-content .cta-box a,
.prose-ar .cta-box a,
.cta-box a {
  text-decoration: none !important;
}

.cta-box .btn-wa,
.cta-box .btn-whatsapp,
.cta-box .wts,
.cta-box a[href*="wa.me"],
.cta-box a[href*="whatsapp.com"],
.entry-content .cta-box a[href*="wa.me"],
.entry-content .cta-box a[href*="whatsapp.com"],
.entry-content .cta-box .btn-wa,
.entry-content .cta-box .btn-whatsapp,
.entry-content .cta-box .wts,
.prose-ar .cta-box a[href*="wa.me"],
.prose-ar .cta-box a[href*="whatsapp.com"],
.prose-ar .cta-box .btn-wa,
.prose-ar .cta-box .btn-whatsapp,
.prose-ar .cta-box .wts {
  background: var(--green-wa) !important;
  background-color: var(--green-wa) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: var(--shadow-wa);
  text-decoration: none !important;
}

.cta-box .btn-wa:hover,
.cta-box .btn-whatsapp:hover,
.cta-box .wts:hover,
.cta-box a[href*="wa.me"]:hover,
.cta-box a[href*="whatsapp.com"]:hover,
.entry-content .cta-box a[href*="wa.me"]:hover,
.entry-content .cta-box a[href*="whatsapp.com"]:hover,
.entry-content .cta-box .btn-wa:hover,
.entry-content .cta-box .btn-whatsapp:hover,
.entry-content .cta-box .wts:hover,
.prose-ar .cta-box a[href*="wa.me"]:hover,
.prose-ar .cta-box a[href*="whatsapp.com"]:hover,
.prose-ar .cta-box .btn-wa:hover,
.prose-ar .cta-box .btn-whatsapp:hover,
.prose-ar .cta-box .wts:hover {
  background: var(--green-wa-dark) !important;
  background-color: var(--green-wa-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.cta-box a.bg-white,
.entry-content .cta-box a.bg-white,
.prose-ar .cta-box a.bg-white {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--ink) !important;
  text-decoration: none !important;
}

.cta-box a.bg-white:hover,
.entry-content .cta-box a.bg-white:hover,
.prose-ar .cta-box a.bg-white:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: var(--ink) !important;
}

.phone.btn-glow {
  background: var(--ink);
  color: #fff !important;
}

.phone.btn-glow:hover {
  background: var(--brand);
  transform: translateY(-2px);
}

.fab {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-start: 1.25rem;
  z-index: 45;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-wa);
  color: #fff;
  box-shadow: var(--shadow-wa);
  transition: transform .2s ease;
}

.fab:hover {
  transform: scale(1.08);
}

.to-top {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 45;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 15. Forms ---------- */
.field {
  display: block;
}

.field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .4rem;
  display: block;
  color: var(--ink);
}

.field input,
.field select,
.field textarea,
.contact_form input,
.contact_form select,
.contact_form textarea,
.form-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: .8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea,
.contact_form textarea {
  resize: vertical;
  min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-mute);
  opacity: .8;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.contact_form input:focus,
.contact_form select:focus,
.contact_form textarea:focus,
.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.contact_form {
  display: grid;
  gap: 1rem;
}

/* space-y-* utilities add margins — disable inside grid forms to avoid double gaps */
.contact_form.space-y-4>*+*,
.contact_form.space-y-3>*+*,
.contact_form.space-y-6>*+* {
  margin-top: 0;
}

.navbar-form .form-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.navbar-form .input-group {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-submit {
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: .8rem 1.5rem;
  border-radius: .8rem;
}

.search-submit:hover {
  background: var(--brand-dark);
}

.iti {
  width: 100%;
  max-width: 100%;
}

.relatedbox {
  background: var(--sand);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand);
  border-radius: .85rem;
  padding: 1.1rem 1.25rem;
  margin: 1.8rem 0;
}

.relatedbox .rbtitle {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: .75rem;
}

.relatedbox .linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.relatedbox .link a {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  padding: .4rem .85rem;
  border-radius: .55rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.relatedbox .link a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}

.footer-grid h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-grid ul {
  display: grid;
  gap: .65rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .7);
}

.footer-grid a:hover {
  color: #fff;
}

.social-row {
  display: flex;
  gap: .5rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .1);
  transition: background .15s ease;
}

.social-btn:hover {
  background: var(--brand);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: 1.25rem;
  font-size: .75rem;
  color: rgba(255, 255, 255, .55);
}

/* ---------- 17. Pagination / alerts / misc ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: .75rem;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  padding-inline: .5rem;
}

.pagination .current {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: .8rem;
  margin-bottom: 1rem;
  font-size: .9rem;
}

.alert-failed {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--brand-tint);
}

/* Legacy bootstrap-ish classes still used in page.php */
.container {
  width: 100%;
  max-width: var(--site-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.col-md-8 {
  flex: 1 1 60%;
  min-width: 0;
}

.col-md-4 {
  flex: 0 1 300px;
  min-width: 0;
}

.col-md-12 {
  width: 100%;
}

.entry-header {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding-block: 2.5rem;
  margin-bottom: 2.5rem;
}

.entry-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 480px) {

  .wrap,
  .container {
    padding-inline: 1rem;
  }
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .sm\:block {
    display: block;
  }

  .sm\:justify-start {
    justify-content: flex-start;
  }

  .sm\:text-start {
    text-align: start;
  }

  .sm\:p-6 {
    padding: 1.5rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-box {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:text-3xl {
    font-size: 1.875rem;
  }

  .md\:p-8 {
    padding: 2rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom-inner {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none !important;
  }

  .lg\:block {
    display: block;
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:grid-cols-\[0\.9fr_1\.1fr\] {
    grid-template-columns: .9fr 1.1fr;
  }

  .lg\:grid-cols-\[1\.3fr_0\.7fr\] {
    grid-template-columns: 1.3fr .7fr;
  }

  .lg\:grid-cols-\[1fr_300px\] {
    grid-template-columns: 1fr 300px;
  }

  .lg\:grid-cols-\[64px_1fr_300px\] {
    grid-template-columns: 64px 1fr 300px;
  }

  .lg\:py-16 {
    padding-block: 4rem;
  }

  .lg\:py-20 {
    padding-block: 5rem;
  }

  .lg\:sticky {
    position: sticky;
  }

  .lg\:top-24 {
    top: 6rem;
  }

  .lg\:order-1 {
    order: 1;
  }

  .lg\:order-2 {
    order: 2;
  }

  .lg\:order-3 {
    order: 3;
  }

  .lg\:flex-col {
    flex-direction: column;
  }

  .lg\:justify-start {
    justify-content: flex-start;
  }

  .site-nav,
  .site-header-actions {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .grid-hero,
  .grid-about {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .grid-conditions {
    grid-template-columns: .9fr 1.1fr;
    align-items: start;
  }

  .grid-contact {
    grid-template-columns: 1.3fr .7fr;
  }

  .grid-category {
    grid-template-columns: 1fr 300px;
  }

  .grid-article {
    grid-template-columns: 64px 1fr 300px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 3.5rem 5rem;
  }
}

@media (max-width: 1023px) {

  .grid>*,
  .wrap.grid>* {
    max-width: 100%;
  }

  .hero-grid,
  .grid-hero,
  .grid-about,
  .grid-conditions,
  .grid-contact,
  .grid-category,
  .grid-article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cta-box .btn {
    padding: .7rem 1.1rem;
    font-size: .9rem;
    white-space: normal;
  }
}


/* ---------- 19. Hero semantic classes ---------- */

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-blob--tl {
  top: -6rem;
  inset-inline-start: -120px;
  width: 420px;
  height: 420px;
  background: var(--brand-soft);
  opacity: .7;
}

.hero-blob--br {
  bottom: 0;
  inset-inline-end: -80px;
  width: 300px;
  height: 300px;
  background: rgba(206, 17, 38, .1);
}

/* Hero h1 highlighted word */
.hero h1 .hl {
  position: relative;
  white-space: nowrap;
  color: var(--brand);
  display: inline-block;
}

.hero-underline {
  position: absolute;
  bottom: -.45rem;
  inset-inline-start: 0;
  width: 100%;
  height: 10px;
  display: block;
  pointer-events: none;
}

/* Hero image */
.hero-img {
  aspect-ratio: 4 / 3.5;
  border-radius: var(--radius-xl2);
  box-shadow: var(--shadow-card);
}

/* Hero tag spacing */
.hero-tag {
  margin-bottom: 1.25rem;
}

/* Hero accept badge */
.hero-accept-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .375rem;
}

.hero-accept-icon {
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-accept-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
}

.hero-accept-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.875rem;
  color: var(--ink);
  line-height: 1;
}

.hero-accept-suffix {
  color: var(--brand);
}

.hero-accept-desc {
  font-size: .75rem;
  color: var(--ink-mute);
  margin-top: .125rem;
}

/* Hero float badges */
.hero-float-eyebrow {
  font-size: .75rem;
  color: rgba(255, 255, 255, .7);
}

.hero-float-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
}

@media (max-width: 640px) {
  .hero-float-accept {
    inset-inline-start: 8px;
    bottom: -1rem;
  }

  .hero-float-top {
    inset-inline-end: 8px;
    top: -.75rem;
  }
}

/* ---------- 20. About section ---------- */
.about-subtitle {
  margin-top: .75rem;
}

.about-desc {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.check-list {
  margin-top: 1.5rem;
  display: grid;
  gap: .75rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.about-btn {
  margin-top: 2rem;
}

/* Stats grid (2-col) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* Ribbon / banner stat box */
.stat-ribbon {
  grid-column: 1 / -1;
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: background .2s ease, color .2s ease;
}

.stat-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ribbon-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.ribbon-desc {
  color: rgba(255, 255, 255, .8);
  font-size: .875rem;
  margin-top: .25rem;
}

.ribbon-btn {
  background: #fff;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  padding: .5rem 1rem;
  border-radius: .75rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}

.ribbon-btn:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- 21. Features section ---------- */
.features-section {
  background: var(--ink);
  color: #fff;
}

.features-header {
  max-width: 42rem;
}

.features-title {
  margin-top: .75rem;
}

.features-desc {
  margin-top: 1rem;
  color: rgba(255, 255, 255, .7);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.feature-body {
  color: rgba(255, 255, 255, .65);
  font-size: .875rem;
  margin-top: .5rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- 22. Universities section ---------- */
.section--sand {
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.eyebrow--center {
  justify-content: center;
}

.uni-section-title {
  margin-top: .75rem;
}

.uni-section-desc {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.uni-grid {
  margin-top: 3rem;
}

.uni-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.uni-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}

.uni-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.uni-thumb:hover .uni-thumb-img {
  transform: scale(1.05);
}

.uni-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 2.25rem;
}

.uni-badge {
  position: absolute;
  top: .75rem;
  inset-inline-start: .75rem;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.uni-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.uni-fee {
  font-size: .75rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: .25rem;
}

.uni-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.375;
}

.uni-link {
  transition: color .15s ease;
}

.uni-link:hover {
  color: var(--brand);
}

.uni-excerpt {
  color: var(--ink-soft);
  font-size: .875rem;
  margin-top: .5rem;
  line-height: 1.75;
  flex: 1;
}

.uni-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uni-details {
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  text-decoration: none;
}

.uni-details:hover {
  text-decoration: underline;
}

.uni-enquire {
  font-size: .75rem;
  color: var(--ink-mute);
  transition: color .15s ease;
}

.uni-enquire:hover {
  color: var(--brand);
}

.uni-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding-block: 3rem;
  color: var(--ink-mute);
}

.section-more {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- 23. Conditions section ---------- */
.cond-sticky {}

@media (min-width: 1024px) {
  .cond-sticky {
    position: sticky;
    top: 6rem;
  }
}

.cond-title {
  margin-top: .75rem;
}

.cond-desc {
  margin-top: 1rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.cond-cta {
  margin-top: 2rem;
}

.cta-inner {
  position: relative;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
}

.cta-desc {
  color: rgba(255, 255, 255, .7);
  font-size: .875rem;
  margin-top: .25rem;
  margin-bottom: 1rem;
}

.steps-list {
  display: grid;
  gap: 1rem;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.step-desc {
  color: var(--ink-soft);
  font-size: .875rem;
  margin-top: .25rem;
  line-height: 1.75;
}

/* ---------- 24. Majors section ---------- */
.majors-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.majors-intro {
  max-width: 36rem;
}

.majors-title {
  margin-top: .75rem;
}

.majors-desc {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.majors-grid {}

.major-card {
  padding: 1.5rem;
  display: block;
  text-decoration: none;
}

.major-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.major-img {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  object-fit: contain;
}

.major-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.major-excerpt {
  color: var(--ink-soft);
  font-size: .875rem;
  margin-top: .5rem;
  line-height: 1.75;
}

.major-cta {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  margin-top: 1rem;
}

.majors-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding-block: 3rem;
  color: var(--ink-mute);
}

/* ---------- 25. Blog section ---------- */
.blog-section {
  background: var(--sand);
  border-top: 1px solid var(--line);
}

.section-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.blog-title {
  margin-top: .75rem;
}

.blog-grid {}

/* ---------- 26. Archive pages (category / tag) ---------- */
.archive-hero {
  background: var(--ink);
  color: #fff;
}

.archive-hero-inner {
  padding-block: 3.5rem;
}

@media (min-width: 1024px) {
  .archive-hero-inner {
    padding-block: 4rem;
  }
}

.archive-crumbs {
  color: rgba(255, 255, 255, .6);
}

.archive-crumbs a:hover {
  color: #fff;
}

.archive-crumb-current {
  color: #fff;
}

.archive-title {
  margin-top: .75rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.archive-desc {
  margin-top: 1rem;
  color: rgba(255, 255, 255, .7);
  max-width: 42rem;
}

/* Filter chips row */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

/* Posts grid (2 col on sm) */
.posts-grid {}

@media (min-width: 640px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Pagination page-link — replaces injected Tailwind classes */
.page-link {
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: .75rem;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  padding-inline: .5rem;
  transition: border-color .15s ease, color .15s ease;
}

.page-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.page-link.current {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Sidebar shared */
.sidebar {
  display: grid;
  gap: 1.5rem;
  align-self: flex-start;
}

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 6rem;
  }
}

.sidebar-card {
  padding: 1.25rem;
}

.sidebar-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cat-list {
  display: grid;
  gap: .25rem;
  font-size: .875rem;
}

.cat-list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .5rem;
  border-radius: .5rem;
  transition: background .15s ease;
}

.cat-list-link:hover {
  background: var(--sand);
}

/* Popular posts */
.popular-posts {
  display: grid;
  gap: 1rem;
}

.popular-post-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.popular-thumb {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: .5rem;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
}

.popular-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-title {
  font-size: .875rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.375;
  transition: color .15s ease;
}

.popular-post-title:hover {
  color: var(--brand);
}

/* Full-width button */
.btn--full {
  width: 100%;
  margin-top: 1.25rem;
}

/* ---------- 27. Single article layout ---------- */
.article-header-section {
  border-bottom: 1px solid var(--line);
}

.article-header-wrap {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.article-crumbs {
  margin-bottom: 1.5rem;
}

.article-crumb-current {
  color: var(--ink);
}

.article-cat-tag {
  margin-bottom: 1rem;
}

.article-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.25;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 56rem;
}

.article-meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: .75rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.author-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}

.author-info {
  min-width: 0;
}

.author-label {
  font-size: .75rem;
  color: var(--ink-mute);
}

.author-name {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-meta-sep {
  width: 1px;
  height: 2.25rem;
  background: var(--line);
}

@media (max-width: 639px) {
  .article-meta-sep {
    display: none;
  }
}

.article-date-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.date-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.date-info {
  min-width: 0;
}

.date-label {
  font-size: .75rem;
  color: var(--ink-mute);
}

.date-value {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

/* Article content section */
.article-content-section {
  padding-top: 2rem;
}

/* Article grid columns */
.share-col {
  order: 2;
  min-width: 0;
}

.article-col {
  order: 1;
  min-width: 0;
  width: 100%;
  max-width: min(100%, 48rem);
  overflow: hidden;
}

.sidebar-col {
  order: 3;
  display: grid;
  gap: 1.5rem;
  min-width: 0;
  width: 100%;
}

@media (min-width: 1024px) {
  .share-col {
    order: 1;
  }

  .article-col {
    order: 2;
  }

  .sidebar-col {
    order: 3;
    position: sticky;
    top: 6rem;
    align-self: flex-start;
  }
}

/* Article thumbnail */
.article-thumbnail {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl2);
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}


/* Share label */
.share-label {
  display: none;
  font-size: .75rem;
  color: var(--ink-mute);
  margin-bottom: .25rem;
}

@media (min-width: 1024px) {
  .share-label {
    display: block;
  }
}

/* Article tags */
.article-tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Article FAQs */
.article-faqs {
  margin-top: 3rem;
}

.faqs-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Sidebar card inside article */
.sidebar-card {
  padding: 1.25rem 1.1rem;
}

.sidebar-form-title {
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* Related */
.related-section {
  padding-top: 0;
}

.related-row {
  margin-bottom: 2rem;
}

.related-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.related-grid {}

/* ---------- 28. Contact page ---------- */
.contact-header {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.contact-header-inner {
  padding-block: 3rem;
}

@media (min-width: 1024px) {
  .contact-header-inner {
    padding-block: 4rem;
  }
}

.contact-header-content {
  max-width: 48rem;
}

.contact-title {
  margin-top: .75rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.contact-subtitle {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.contact-form-card {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 2rem;
  }
}

.contact-form-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
}

.contact-form-subtitle {
  color: var(--ink-soft);
  margin-top: .5rem;
  margin-bottom: 1.5rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .contact-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-textarea-field {
  grid-column: 1 / -1;
}

.contact-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.contact-sidebar {
  display: grid;
  gap: 1rem;
  align-self: flex-start;
}

@media (min-width: 1024px) {
  .contact-sidebar {
    position: sticky;
    top: 6rem;
  }
}

.contact-info-card {
  padding: 1.5rem;
}

.contact-info-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.contact-info-list {
  display: grid;
  gap: 1rem;
  font-size: .875rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-info-label {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: .125rem;
}

.contact-info-value {
  color: var(--ink-soft);
}

.contact-info-link {
  color: var(--ink-soft);
  transition: color .15s ease;
}

.contact-info-link:hover {
  color: var(--brand);
}

.contact-map {
  border-radius: var(--radius-xl2);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.contact-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 29. Footer semantic classes ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
}

.footer-site-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
}

.footer-about {
  color: rgba(255, 255, 255, .7);
  line-height: 1.75;
  font-size: .875rem;
}

.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-nav {
  display: grid;
  gap: .625rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .7);
}

.footer-nav a {
  display: block;
  transition: color .15s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-contact-list {
  display: grid;
  gap: .75rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .7);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

.footer-contact-item a {
  transition: color .15s ease;
}

.footer-contact-item a:hover {
  color: #fff;
}

.footer-bullet {
  color: var(--brand);
  margin-top: .125rem;
  flex-shrink: 0;
}

.footer-cta {
  width: 100%;
  margin-top: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: 1.25rem;
  font-size: .75rem;
  color: rgba(255, 255, 255, .55);
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-developed {
  display: flex;
  gap: 1.25rem;
}

/* Drawer active link */
.drawer-link.active {
  color: var(--brand);
}

/* ---------- 30. Header semantic components ---------- */
.header-inner {
  width: 100%;
  max-width: var(--site-w);
  min-height: 72px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.brand-logo {
  width: auto;
  height: 2.5rem;
}

.brand-text {
  line-height: 1.25;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--ink);
}

.brand-tagline {
  display: block;
  margin-top: -.125rem;
  font-size: 11px;
  color: var(--ink-mute);
}

.language-switcher,
.drawer-language-switcher {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.header-phone {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color .15s ease;
}

.header-phone:hover {
  color: var(--brand);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(11, 11, 12, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.drawer-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
}

.drawer-close-btn {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: .75rem;
}

.drawer-language-switcher {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.drawer-navigation {
  margin-bottom: 1.5rem;
}

.drawer-link {
  display: block;
  padding: .75rem .25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.drawer-cta {
  width: 100%;
}

@media (min-width: 1024px) {

  .menu-overlay,
  .drawer {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding-inline: 1rem;
  }
}

/* ---------- 31. Article grid desktop fix ---------- */
@media (min-width: 1024px) {
  .grid-article {
    align-items: start;
  }

  .article-col {
    max-width: 100%;
  }

  #sidebar-form-wrap {
    padding: 1.1rem;
  }

  #sidebar-form-wrap .contact_form {
    gap: .65rem;
  }

  #sidebar-form-wrap .contact_form label {
    font-size: .82rem;
    margin-bottom: .25rem;
  }

  #sidebar-form-wrap .contact_form input,
  #sidebar-form-wrap .contact_form select,
  #sidebar-form-wrap .contact_form textarea {
    padding: .55rem .8rem;
    font-size: .88rem;
    border-radius: .65rem;
    line-height: 1.5;
  }

  #sidebar-form-wrap .contact_form textarea {
    min-height: 80px;
  }

  #sidebar-form-wrap .contact_form button[type="submit"] {
    padding: .65rem 1rem;
    font-size: .9rem;
  }
}


/* ---------- 32. Post box card ---------- */
.post-box {
  overflow: hidden;
}

.post-box-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand);
}

.post-box-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.post-box-thumb:hover img {
  transform: scale(1.04);
}

.post-box-body {
  padding: 1.25rem;
}

.post-box-cat {
  margin-bottom: .75rem;
}

.post-box-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.375;
}

.post-box-link {
  transition: color .15s ease;
}

.post-box-link:hover {
  color: var(--brand);
}

.post-box-excerpt {
  color: var(--ink-soft);
  font-size: .875rem;
  margin-top: .5rem;
  line-height: 1.75;
}

.post-box-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--ink-mute);
  margin-top: 1rem;
}

/* Grid-2 (category / tag pages) */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 33. Site-header-actions (desktop CTA strip) ---------- */
.site-header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .site-header-actions {
    display: flex;
  }
}