/* ==========================================================================
   Al Midrar Education Consultancy — Main Stylesheet
   ========================================================================== */

/* ── 1. CSS Variables ──────────────────────────────────────────────────────── */

:root {
  --navy:         #1B365D;
  --navy-light:   #2a4f84;
  --navy-dark:    #122340;
  --gold:         #C5A55A;
  --gold-light:   #d8bc7e;
  --gold-dark:    #a8893e;
  --white:        #FFFFFF;
  --gray-bg:      #F8F9FA;
  --gray-light:   #EDF0F4;
  --gray-border:  #DDE3EC;
  --text-dark:    #131e2e;
  --text-mid:     #3d4f6a;
  --text-muted:   #6b7a92;
  --text-light:   #8fa1ba;
  --shadow-sm:    0 2px 8px rgba(27,54,93,0.07);
  --shadow-md:    0 6px 24px rgba(27,54,93,0.10);
  --shadow-lg:    0 12px 48px rgba(27,54,93,0.14);
  --shadow-gold:  0 8px 32px rgba(197,165,90,0.22);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container:    1180px;
  --section-y:    96px;
  --section-y-sm: 64px;
}

/* ── 2. Reset & Base ────────────────────────────────────────────────────────── */

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* ── 3. Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); }
h6 { font-size: 0.875rem; font-weight: 600; font-family: var(--font-body); }

p { color: var(--text-mid); line-height: 1.75; max-width: 68ch; }
p.wide { max-width: none; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1rem; }
.section-intro { font-size: 1.05rem; color: var(--text-mid); max-width: 60ch; }

/* ── 4. Layout ──────────────────────────────────────────────────────────────── */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide { max-width: 1360px; }
.container--narrow { max-width: 780px; }

section { position: relative; }

.section { padding: var(--section-y) 0; }
.section--gray { background: var(--gray-bg); }
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.78); }

.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center p { margin: 0 auto; }

/* ── 5. Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 30px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

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

.btn--lg { padding: 17px 36px; font-size: 1rem; }
.btn--sm { padding: 12px 24px; font-size: 0.9375rem; font-weight: 600; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ── 6. Cards ───────────────────────────────────────────────────────────────── */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

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

.card--elevated { box-shadow: var(--shadow-md); border-color: transparent; }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(27,54,93,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--navy);
  flex-shrink: 0;
}

.card__icon--gold {
  background: rgba(197,165,90,0.12);
  color: var(--gold-dark);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card__text { font-size: 0.9375rem; color: var(--text-mid); line-height: 1.7; margin: 0; max-width: none; }

/* ── 7. Badges & Tags ───────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.badge--navy { background: rgba(27,54,93,0.08); color: var(--navy); }
.badge--gold { background: rgba(197,165,90,0.15); color: var(--gold-dark); }

/* ── 8. Navigation ──────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-border);
  transition: var(--transition);
}

/* Widen header container — 8 nav links + CTA need more than 1180px */
.site-header .container { max-width: 1380px; }

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav__logo-mark {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-mark svg { width: 22px; height: 22px; fill: var(--gold); }

.nav__logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.nav__logo-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.nav__logo-tagline {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav__link:hover,
.nav__link--active {
  color: var(--navy);
  background: var(--gray-bg);
}

.nav__link--portal {
  color: var(--navy);
  background: rgba(27,54,93,0.06);
}
.nav__link--portal:hover {
  background: rgba(27,54,93,0.12);
}

.nav__cta { margin-left: 16px; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 9999;
  overflow-y: auto;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.nav__mobile.is-open { display: flex; }

.nav__mobile-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--gray-light);
  display: block;
  transition: var(--transition);
}
.nav__mobile-link:hover { background: var(--gray-bg); color: var(--navy); }
.nav__mobile-link--portal { color: var(--navy); font-weight: 600; }

.nav__mobile-cta { margin-top: 16px; }

/* ── 9. Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand { }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer__logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__logo-mark svg { width: 22px; height: 22px; fill: var(--navy-dark); }

.footer__logo-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  max-width: 30ch;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.footer__contact-item svg { color: var(--gold); flex-shrink: 0; width: 16px; height: 16px; }
.footer__contact-item a { color: rgba(255,255,255,0.65); }
.footer__contact-item a:hover { color: var(--gold); }

.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: block;
  padding: 2px 0;
}
.footer__links a:hover { color: var(--gold); padding-left: 4px; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

.footer__est {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  font-family: var(--font-heading);
}

/* ── 10. Hero Section ───────────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 70% 50%, rgba(197,165,90,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.4;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197,165,90,0.15);
  border: 1px solid rgba(197,165,90,0.3);
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title em {
  color: var(--gold);
  font-style: italic;
}

.hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 52ch;
}

.hero__actions { margin-bottom: 48px; }

.hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__stat {}

.hero__stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.hero__divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  align-self: center;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__globe {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  position: relative;
}

.hero__globe-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(197,165,90,0.2);
  animation: rotateRing 20s linear infinite;
}

.hero__globe-ring:nth-child(2) {
  inset: 12%;
  border-style: dashed;
  border-color: rgba(255,255,255,0.08);
  animation-direction: reverse;
  animation-duration: 30s;
}

@keyframes rotateRing {
  to { transform: rotate(360deg); }
}

.hero__globe-inner {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: rgba(197,165,90,0.07);
  border: 1px solid rgba(197,165,90,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__globe-icon {
  color: var(--gold);
  opacity: 0.9;
}

.hero__pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.hero__pin-dot {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 0 4px rgba(197,165,90,0.2);
  animation: pulse 2.5s ease-in-out infinite;
}

.hero__pin:nth-child(2) .hero__pin-dot { animation-delay: 0.5s; }
.hero__pin:nth-child(3) .hero__pin-dot { animation-delay: 1s; }
.hero__pin:nth-child(4) .hero__pin-dot { animation-delay: 1.5s; }
.hero__pin:nth-child(5) .hero__pin-dot { animation-delay: 0.3s; }
.hero__pin:nth-child(6) .hero__pin-dot { animation-delay: 0.8s; }

.hero__pin-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  background: rgba(27,54,93,0.8);
  border: 1px solid rgba(197,165,90,0.3);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

/* Pin positions */
.hero__pin--de { top: 22%; left: 30%; }
.hero__pin--se { top: 14%; left: 42%; }
.hero__pin--no { top: 10%; left: 36%; }
.hero__pin--kr { top: 32%; right: 18%; }
.hero__pin--tr { top: 44%; left: 44%; }
.hero__pin--uz { top: 36%; left: 54%; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(197,165,90,0.2); }
  50%       { box-shadow: 0 0 0 8px rgba(197,165,90,0.08); }
}

/* ── 11. Trust Strip ────────────────────────────────────────────────────────── */

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 40px 0;
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 0 16px;
  border-right: 1px solid var(--gray-border);
}
.trust-item:last-child { border-right: none; }

.trust-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(27,54,93,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}

.trust-item__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-body);
  margin-bottom: 4px;
}
.trust-item__text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; max-width: none; }

/* ── 12. Stats / Counter Section ────────────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-border);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 48px;
}

.stat-block {
  background: var(--white);
  padding: 36px 32px;
  text-align: center;
}

.stat-block__num {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-block__num span { color: var(--gold); }
.stat-block__label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* ── 13. Why Study Abroad ───────────────────────────────────────────────────── */

.why-study__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-study__content {}
.why-study__cards { display: grid; gap: 20px; }

/* ── 14. Destinations ───────────────────────────────────────────────────────── */

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dest-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-border);
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.dest-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.dest-card:hover .dest-card__img-inner { transform: scale(1.04); }

.dest-card__img {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--navy);
}

.dest-card__img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 4rem;
  position: relative;
}

.dest-card__flag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.dest-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.dest-card__country {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.dest-card__text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; flex: 1; margin: 0; max-width: none; }
.dest-card__cta {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
  transition: var(--transition);
}
.dest-card:hover .dest-card__cta { opacity: 1; color: var(--gold-dark); gap: 10px; }

/* Destination color backgrounds */
.dest-bg--de { background: linear-gradient(135deg, #1a2744 0%, #2d4a7a 100%); }
.dest-bg--se { background: linear-gradient(135deg, #003580 0%, #006aa7 100%); }
.dest-bg--no { background: linear-gradient(135deg, #003087 0%, #ef2b2d 50%, #ef2b2d 100%); }
.dest-bg--kr { background: linear-gradient(135deg, #002395 0%, #cd2e3a 100%); }
.dest-bg--tr { background: linear-gradient(135deg, #c8102e 0%, #ffffff 50%, #c8102e 100%); }
.dest-bg--uz { background: linear-gradient(135deg, #1eb53a 0%, #0099b5 50%, #ce1126 100%); }

/* ── 15. Why Choose Al Midrar ───────────────────────────────────────────────── */

.why-almidrar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-almidrar__points { display: grid; gap: 20px; }

.point-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.point-item__check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(197,165,90,0.15);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-dark);
  margin-top: 2px;
}

.point-item__text {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: none;
  margin: 0;
}

/* Credibility card */
.cred-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.cred-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(197,165,90,0.08);
}

.cred-card__year {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(197,165,90,0.2);
  line-height: 1;
  margin-bottom: 8px;
}

.cred-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.cred-card__text { font-size: 0.925rem; color: rgba(255,255,255,0.65); line-height: 1.7; max-width: none; margin: 0 0 28px; }

.cred-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cred-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
}

/* ── 16. Services Overview ──────────────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-card__num {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.service-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card__text { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; margin: 0; max-width: none; }

/* ── 17. Process Section ────────────────────────────────────────────────────── */

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 28px);
  right: calc(10% + 28px);
  height: 1px;
  background: var(--gray-border);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: var(--transition);
}

.step:hover .step__num {
  background: var(--navy);
  color: var(--white);
}

.step__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.step__text { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; max-width: none; margin: 0; }

/* ── 18. Success Stories / Testimonials ─────────────────────────────────────── */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--gray-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}

.testimonial-card__text {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  max-width: none;
  margin: 0;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.testimonial-card__dest {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── 19. Parent Confidence Section ─────────────────────────────────────────── */

.parent-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.parent-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(197,165,90,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.parent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.parent-points { display: grid; gap: 20px; margin-top: 28px; }

.parent-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.parent-point__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(197,165,90,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.parent-point__text {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin: 0;
  max-width: none;
}

/* ── 20. Portal Preview Section ─────────────────────────────────────────────── */

.portal-preview {
  background: var(--gray-bg);
}

.portal-preview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.portal-mockup {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.portal-mockup__bar {
  background: var(--navy-dark);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-mockup__dots {
  display: flex;
  gap: 6px;
}

.portal-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.portal-mockup__url {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-family: monospace;
}

.portal-mockup__body {
  padding: 24px;
}

.portal-mockup__title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.portal-progress-bar {
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  height: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}

.portal-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 100px;
  transition: width 1s ease;
}

.portal-steps-mini { display: grid; gap: 10px; margin-top: 20px; }

.portal-step-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.portal-step-mini__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.portal-step-mini__check--done {
  background: rgba(197,165,90,0.2);
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.portal-step-mini__check--pending {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: transparent;
}

.portal-step-mini__check--active {
  background: var(--gold);
  color: var(--navy-dark);
}

.portal-step-mini__label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.portal-step-mini--active .portal-step-mini__label { color: var(--white); }
.portal-step-mini--done .portal-step-mini__label { color: rgba(255,255,255,0.45); text-decoration: line-through; }

.portal-features { display: grid; gap: 16px; }

.portal-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.portal-feature__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(27,54,93,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}

.portal-feature__title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 3px;
}
.portal-feature__text { font-size: 0.875rem; color: var(--text-muted); margin: 0; max-width: none; }

/* ── 21. FAQ ─────────────────────────────────────────────────────────────────── */

.faq-list { display: grid; gap: 12px; max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.is-open { border-color: var(--navy); box-shadow: var(--shadow-sm); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
  user-select: none;
  -webkit-user-select: none;
}

.faq-question__text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.faq-question__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.is-open .faq-question__icon {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
}

.faq-item.is-open .faq-answer { display: block; }

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
  max-width: none;
}

/* ── 22. Final CTA Banner ───────────────────────────────────────────────────── */

.cta-banner {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 100% at 100% 50%, rgba(197,165,90,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 30% 60% at 0% 50%, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.cta-banner__content {}
.cta-banner__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta-banner__sub { font-size: 1rem; color: rgba(255,255,255,0.65); max-width: 52ch; margin: 0; }
.cta-banner__actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }

/* ── 23. Page Hero (inner pages) ────────────────────────────────────────────── */

.page-hero {
  background: var(--navy);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(197,165,90,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-hero__inner { position: relative; z-index: 2; }

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.page-hero__breadcrumb a { color: rgba(255,255,255,0.5); }
.page-hero__breadcrumb a:hover { color: var(--gold); }
.page-hero__breadcrumb span { color: var(--gold); }

.page-hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.page-hero__title {
  font-family: var(--font-heading);
  color: var(--white);
  margin-bottom: 20px;
  max-width: 16ch;
}

.page-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.68);
  max-width: 58ch;
  line-height: 1.75;
  margin: 0;
}

/* ── 24. About Page ─────────────────────────────────────────────────────────── */

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}
.value-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.value-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.value-card__text { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; margin: 0; max-width: none; }

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mv-card {
  border-radius: var(--radius-md);
  padding: 36px;
}

.mv-card--mission { background: var(--navy); }
.mv-card--vision { background: var(--gray-bg); border: 1px solid var(--gray-border); }

.mv-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.mv-card--mission .mv-card__label { color: var(--gold); }
.mv-card--vision .mv-card__label { color: var(--gold-dark); }

.mv-card__text {
  font-size: 1rem;
  line-height: 1.75;
  max-width: none;
  margin: 0;
}
.mv-card--mission .mv-card__text { color: rgba(255,255,255,0.78); }
.mv-card--vision .mv-card__text { color: var(--text-mid); }

/* ── 25. Destinations Page ──────────────────────────────────────────────────── */

.dest-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-border);
}
.dest-section:last-of-type { border-bottom: none; }
.dest-section:nth-child(even) { background: var(--gray-bg); }

.dest-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.dest-section:nth-child(even) .dest-section__grid { direction: rtl; }
.dest-section:nth-child(even) .dest-section__grid > * { direction: ltr; }

.dest-section__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dest-section__flag-large {
  font-size: 8rem;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}

.dest-section__country {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.dest-section__why {
  margin: 20px 0;
  padding: 16px 20px;
  background: rgba(197,165,90,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: none;
  margin-bottom: 24px;
}

/* ── 26. Services Page ──────────────────────────────────────────────────────── */

.services-full { display: grid; gap: 20px; }

.service-full-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  transition: var(--transition);
}

.service-full-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.service-full-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(27,54,93,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}

.service-full-card__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.service-full-card__title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-full-card__text { font-size: 0.9375rem; color: var(--text-mid); line-height: 1.7; margin: 0; max-width: none; }

/* ── 27. Success Stories Page ───────────────────────────────────────────────── */

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.story-card__header {
  background: var(--navy);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.story-card__header::after {
  content: '"';
  position: absolute;
  bottom: -10px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 6rem;
  color: rgba(197,165,90,0.15);
  line-height: 1;
}

.story-card__dest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(197,165,90,0.2);
  border: 1px solid rgba(197,165,90,0.3);
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  position: relative;
  z-index: 1;
}

.story-card__body { padding: 28px; }
.story-card__quote {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: none;
}

.story-card__student {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

/* ── 28. Blog Page ──────────────────────────────────────────────────────────── */

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

.blog-posts { display: grid; gap: 32px; }

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: grid;
  grid-template-columns: 280px 1fr;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.blog-card__img {
  height: 100%;
  min-height: 200px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  position: relative;
  overflow: hidden;
}

.blog-card__img-placeholder {
  opacity: 0.2;
}

.blog-card__body { padding: 28px; display: flex; flex-direction: column; }

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-card__cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(197,165,90,0.1);
  padding: 3px 10px;
  border-radius: 100px;
}

.blog-card__date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--gold-dark); }

.blog-card__excerpt { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; flex: 1; margin: 0 0 16px; max-width: none; }

.blog-card__read {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.blog-card__read:hover { color: var(--gold-dark); gap: 10px; }

/* Blog sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.sidebar-widget__title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.sidebar-cats { display: flex; flex-direction: column; gap: 6px; }
.sidebar-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-mid);
  transition: var(--transition);
  cursor: pointer;
}
.sidebar-cat:hover { background: var(--gray-bg); color: var(--navy); }
.sidebar-cat__count {
  background: var(--gray-bg);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}

/* ── 29. Contact Page ───────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-info { display: grid; gap: 20px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.contact-info-item:hover { border-color: var(--navy); transform: translateX(4px); }

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(27,54,93,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}

.contact-info-item__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.contact-info-item__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-info-item__value a { color: var(--navy); }
.contact-info-item__value a:hover { color: var(--gold-dark); }

.contact-wa {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
.contact-wa:hover { background: #1fb859; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,0.3); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 0; }

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.form-input, .form-select, .form-textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  width: 100%;
  outline: none;
  font-family: var(--font-body);
  -webkit-appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,54,93,0.1);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }

.form-submit-wrap { margin-top: 8px; }

.form-note { font-size: 0.8125rem; color: var(--text-muted); margin-top: 10px; max-width: none; }

.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-sm);
  color: #047857;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 16px;
}

.form-error {
  display: none;
  padding: 16px 20px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  color: #dc2626;
  font-size: 0.9375rem;
  margin-top: 16px;
}

.map-placeholder {
  height: 340px;
  background: var(--gray-bg);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-border);
  gap: 12px;
  color: var(--text-muted);
  margin-top: 32px;
}

.map-placeholder svg { color: var(--navy); opacity: 0.3; }
.map-placeholder p { font-size: 0.875rem; color: var(--text-muted); margin: 0; max-width: none; }

.office-hours {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
}

.office-hours__title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.office-hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.office-hours__row:last-child { border-bottom: none; }

.office-hours__days { font-size: 0.875rem; color: rgba(255,255,255,0.65); }
.office-hours__time { font-size: 0.875rem; font-weight: 600; color: var(--white); }

/* ── 30. Student Portal ─────────────────────────────────────────────────────── */

.portal-public {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.portal-public__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.portal-benefits { display: grid; gap: 16px; margin-top: 24px; }

.portal-benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.portal-benefit__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(197,165,90,0.1);
  border: 1px solid rgba(197,165,90,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.portal-benefit__text {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
  max-width: none;
  padding-top: 8px;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.login-card__header { text-align: center; margin-bottom: 32px; }

.login-card__logo {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold);
}

.login-card__title {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: 6px;
}

.login-card__sub { font-size: 0.875rem; color: var(--text-muted); max-width: none; margin: 0; }

.login-form { display: flex; flex-direction: column; gap: 16px; }

.password-field { position: relative; }
.password-field .form-input { padding-right: 48px; }
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 4px;
  border-radius: 4px;
  background: none;
  border: none;
}
.password-toggle:hover { color: var(--navy); }

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.login-options label { display: flex; align-items: center; gap: 8px; color: var(--text-mid); cursor: pointer; }
.login-options input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

.login-options a { color: var(--navy); font-weight: 600; }
.login-options a:hover { color: var(--gold-dark); }

.login-security {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.login-security svg { color: var(--navy); }

/* ── 31. Dashboard ──────────────────────────────────────────────────────────── */

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100svh;
  padding-top: 72px;
}

.dashboard-sidebar {
  background: var(--navy-dark);
  padding: 28px 16px;
  position: sticky;
  top: 72px;
  height: calc(100svh - 72px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-sidebar__greeting {
  padding: 12px 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.dash-sidebar__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.dash-sidebar__role { font-size: 0.8125rem; color: rgba(255,255,255,0.45); }

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.dash-nav-item:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.dash-nav-item.active { background: rgba(197,165,90,0.15); color: var(--gold-light); }
.dash-nav-item svg { flex-shrink: 0; }

.dash-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 12px 12px;
}

.dash-main {
  background: #F0F2F5;
  padding: 36px;
  overflow-y: auto;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dash-topbar__greeting {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
}

.dash-topbar__date { font-size: 0.875rem; color: var(--text-muted); }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }

.dash-stat {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--gray-border);
}

.dash-stat__label { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.dash-stat__val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.dash-cards { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 20px; }

.dash-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--gray-border);
}

.dash-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-progress-list { display: grid; gap: 12px; }

.dash-progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-progress-item__status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
}

.dash-progress-item__status--done { background: rgba(16,185,129,0.15); color: #059669; border: 1.5px solid #10b981; }
.dash-progress-item__status--active { background: rgba(197,165,90,0.2); color: var(--gold-dark); border: 1.5px solid var(--gold); }
.dash-progress-item__status--pending { background: var(--gray-bg); color: transparent; border: 1.5px solid var(--gray-border); }

.dash-progress-item__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  flex: 1;
}
.dash-progress-item--done .dash-progress-item__label { color: var(--text-muted); text-decoration: line-through; }
.dash-progress-item--active .dash-progress-item__label { color: var(--navy); font-weight: 700; }

.dash-progress-item__badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.badge--active { background: rgba(197,165,90,0.2); color: var(--gold-dark); }
.badge--done { background: rgba(16,185,129,0.1); color: #059669; }

/* Docs */
.dash-docs { display: grid; gap: 10px; }

.dash-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}
.dash-doc:hover { border-color: var(--navy); background: rgba(27,54,93,0.03); }

.dash-doc__icon { color: var(--navy); flex-shrink: 0; }
.dash-doc__name { font-size: 0.875rem; font-weight: 600; color: var(--navy); flex: 1; }
.dash-doc__status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
}

.dash-doc__status--uploaded { background: rgba(16,185,129,0.1); color: #059669; }
.dash-doc__status--pending { background: rgba(245,158,11,0.1); color: #d97706; }
.dash-doc__status--required { background: rgba(239,68,68,0.08); color: #dc2626; }

.dash-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 2px dashed var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  margin-top: 10px;
}
.dash-upload-btn:hover { border-color: var(--navy); color: var(--navy); background: rgba(27,54,93,0.03); }

/* Counsellor card */
.counsellor-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--gray-border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.counsellor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.counsellor-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 3px;
}
.counsellor-title { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 10px; }

.counsellor-contact { display: flex; gap: 8px; flex-wrap: wrap; }
.counsellor-contact a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}
.counsellor-contact a:hover { background: var(--navy); color: var(--white); }

/* Notifications */
.notification-list { display: grid; gap: 8px; }

.notification-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
}

.notification-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 5px;
}

.notification-item--read .notification-item__dot { background: var(--gray-border); }

.notification-item__text {
  font-size: 0.875rem;
  color: var(--text-dark);
  line-height: 1.5;
  flex: 1;
  margin: 0;
  max-width: none;
}
.notification-item--read .notification-item__text { color: var(--text-muted); }

.notification-item__time { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; }

/* ── 32. Page Template Wrapper ──────────────────────────────────────────────── */

.page-content { padding-top: 72px; }

/* Dashboard has its own padding via grid — prevent double padding */
.page-content--dashboard { padding-top: 0; }

/* ── 33. Single Post ────────────────────────────────────────────────────────── */

.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 56px 0;
}

.single-article {}

.single-article__header { margin-bottom: 36px; }

.single-article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.single-article__content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.single-article__content h2 { font-size: 1.6rem; margin: 40px 0 16px; }
.single-article__content h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.single-article__content p { margin-bottom: 20px; max-width: none; color: var(--text-dark); }
.single-article__content ul, .single-article__content ol { padding-left: 24px; margin-bottom: 20px; }
.single-article__content li { list-style: disc; margin-bottom: 8px; color: var(--text-dark); }
.single-article__content blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  background: rgba(197,165,90,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-style: italic;
}

/* ── 34. Scroll Animations ──────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 35. Dividers ───────────────────────────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--gray-border);
  margin: 0;
}

.divider--gold { border-top-color: var(--gold); opacity: 0.3; }

/* ── 36. Utility ────────────────────────────────────────────────────────────── */

.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.hidden { display: none !important; }

/* ── 37. 404 Page ───────────────────────────────────────────────────────────── */

.page-404 {
  min-height: 80svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.page-404__num {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 700;
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: 16px;
}

/* ── 38. Responsive ─────────────────────────────────────────────────────────── */

/* Nav overflow fix: collapse to hamburger at 1280px (8 links + CTA need ~1250px to fit) */
@media (max-width: 1280px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* Tablet: 1024px */
@media (max-width: 1024px) {
  :root { --section-y: 72px; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { display: none; }

  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: none; border-bottom: 1px solid var(--gray-border); padding-bottom: 20px; }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--gray-border); }
  .trust-item:nth-child(n+3) { border-bottom: none; }

  .why-study__grid { grid-template-columns: 1fr; }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }

  .why-almidrar__grid { grid-template-columns: 1fr; }
  .parent-grid { grid-template-columns: 1fr; gap: 40px; }

  .portal-preview__grid { grid-template-columns: 1fr; }
  .portal-mockup { display: none; }

  .about-story { grid-template-columns: 1fr; gap: 40px; }
  .mission-vision { grid-template-columns: 1fr; }

  .dest-section__grid { grid-template-columns: 1fr; }
  .dest-section:nth-child(even) .dest-section__grid { direction: ltr; }
  .dest-section__visual { display: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }

  .process-steps { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
  .step { flex-direction: row; text-align: left; align-items: flex-start; gap: 16px; }
  .step__num { margin-bottom: 0; }

  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }

  .blog-card { grid-template-columns: 1fr; }
  .blog-card__img { height: 200px; }

  /* Dashboard sidebar handled by portal.css — convert to slide-in drawer */
  .dashboard-layout { grid-template-columns: 1fr; }

  .single-layout { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr; }

  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__sub { margin: 0 auto; }
  .cta-banner__actions { justify-content: center; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  :root {
    --section-y: 56px;
    --section-y-sm: 40px;
  }

  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero__stats { gap: 20px; }

  .trust-strip__inner { grid-template-columns: 1fr; gap: 0; }
  .trust-item { border-right: none !important; border-bottom: 1px solid var(--gray-border); padding: 16px; }
  .trust-item:last-child { border-bottom: none; }

  .destinations-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .portal-public__grid { grid-template-columns: 1fr; gap: 40px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }

  .dash-grid { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: 1fr; }

  .section-header { margin-bottom: 36px; }

  .page-hero { padding: 100px 0 60px; }
  .page-hero__title { max-width: none; }

  /* Dashboard topbar on mobile */
  .dash-topbar {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Small mobile: 480px */
@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .btn-group { flex-direction: column; }
  .hero__actions .btn-group { flex-direction: column; }
  .cta-banner__actions { width: 100%; }
  .cta-banner__actions .btn { flex: 1; justify-content: center; }
  .login-card { padding: 28px 20px; }
  .contact-form-card { padding: 28px 20px; }
}
