/* ============ Design tokens ============ */
:root {
  --green: #18A417;
  --green-light: #57C653;
  --navy: #083142;
  --slate: #4C6A80;
  --off-white: #EEEEED;
  --gray: #D1D6D3;
  --white: #FFFFFF;

  --font: 'Tajawal', sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(8, 49, 66, 0.08);
  --shadow-lg: 0 20px 45px rgba(8, 49, 66, 0.14);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

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

h1, h2, h3, h4 { font-weight: 800; color: var(--navy); line-height: 1.35; }

h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

.section-text, .lead, p { color: var(--slate); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(24, 164, 23, 0.3);
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(24,164,23,0.35); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-block { width: 100%; margin-top: 20px; }

/* ============ Fade-in ============ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--off-white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green);
  color: var(--white);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a { font-weight: 600; color: var(--slate); transition: color .2s; }
.main-nav a:hover { color: var(--green); }
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--green-light); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset-inline: 0;
    top: 72px;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--off-white); }
  .nav-cta { text-align: center; margin-top: 12px; border-bottom: none !important; }
}

/* ============ Sections generic ============ */
.section { padding: 70px 0; }
.section-alt { background: var(--off-white); }
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p, .section-dark .section-text { color: #c9d6dc; }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-sub { font-weight: 700; color: var(--green); margin-top: 8px; }
.section-text { margin-top: 14px; }
.section-closing {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
  font-weight: 600;
  color: var(--navy);
}

/* ============ Hero ============ */
.hero {
  padding: 56px 0 70px;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.05rem; margin-bottom: 30px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-bar {
  padding: 22px 0;
  border-top: 1px solid var(--off-white);
  border-bottom: 1px solid var(--off-white);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 26px;
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
  white-space: nowrap;
}
.trust-row svg { color: var(--green); flex-shrink: 0; }

@media (min-width: 700px) {
  .trust-row { flex-wrap: nowrap; justify-content: space-between; gap: 26px; }
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-blob {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
  opacity: 0.18;
}
.hero-card {
  position: relative;
  z-index: 1;
  width: min(78vw, 300px);
  aspect-ratio: 1122 / 1402;
  border-radius: 28px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--off-white);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}
.hero-chip svg { color: var(--green); flex-shrink: 0; }
.chip-1 { top: 6%; inset-inline-start: 4%; }
.chip-2 { bottom: 12%; inset-inline-end: 2%; }
.chip-3 { bottom: -2%; inset-inline-start: 18%; }

@media (min-width: 900px) {
  .hero-inner { flex-direction: row; align-items: center; }
  .hero-copy, .hero-visual { flex: 1; }
  .hero-visual { min-height: 520px; }
  .hero-blob { width: 420px; height: 460px; }
  .hero-card { width: 360px; }
}

/* ============ Feature grid ============ */
#why .section-head {
  position: relative;
  z-index: 1;
}
#why .section-head::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 160%;
  height: calc(100% + 60px);
  background-image: url('assets/img/grid-pattern.png');
  background-repeat: repeat;
  background-size: 160px 160px;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at center, black 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 65% 70% at center, black 25%, transparent 85%);
  z-index: -1;
  pointer-events: none;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature-tile {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.feature-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--white); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(8,49,66,0.06);
}
.feature-tile h3 { font-size: 1rem; }

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

/* ============ Split (checklist) ============ */
.split {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.split-visual { width: 100%; display: flex; justify-content: center; }
.split-card {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 0.9;
  background: linear-gradient(160deg, var(--navy), var(--slate));
  border-radius: var(--radius);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.split-card p { color: var(--white); font-weight: 600; }
.split-copy { width: 100%; }
.split-copy h2 { margin-bottom: 22px; }
.checklist { display: grid; gap: 14px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--navy);
}
.checklist svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  padding: 3px;
  width: 20px;
  height: 20px;
}

@media (min-width: 900px) {
  .split { flex-direction: row; align-items: center; }
  .split-visual, .split-copy { flex: 1; }
}

/* ============ Programs ============ */
#programs .section-head {
  position: relative;
  z-index: 1;
}
#programs .section-head::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 160%;
  height: calc(100% + 60px);
  background-image: url('assets/img/grid-pattern.png');
  background-repeat: repeat;
  background-size: 160px 160px;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at center, black 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 65% 70% at center, black 25%, transparent 85%);
  z-index: -1;
  pointer-events: none;
}
.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.program-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--off-white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.program-card.featured {
  border: 2px solid var(--green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.featured-badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 26px;
  background: var(--green);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
}
.program-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--off-white);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.program-card.featured .program-icon { background: var(--green); color: var(--white); }
.program-college {
  color: var(--slate);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.program-card h3 { margin-bottom: 12px; }
.program-intro { font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.program-desc { font-size: 0.94rem; margin-bottom: 18px; }
.program-block { margin-bottom: 16px; }
.program-block h4 { color: var(--green); margin-bottom: 8px; font-size: 0.92rem; }
.program-block ul { display: grid; gap: 6px; }
.program-block ul li {
  font-size: 0.92rem;
  color: var(--slate);
  padding-inline-start: 18px;
  position: relative;
}
.program-block ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
}
.program-tags { font-size: 0.9rem; }
.program-closing { font-weight: 600; margin-top: auto; padding-top: 6px; }

@media (min-width: 960px) {
  .programs-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

/* ============ Credibility ============ */
.credibility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.credibility-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.credibility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
}
.credibility-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  padding: 8px 14px;
}
.credibility-logo.cimea { height: 46px; }
.credibility-card p { color: #c9d6dc; font-weight: 600; font-size: 0.94rem; }

@media (min-width: 760px) {
  .credibility-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ Schedule ============ */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-weight: 700;
  color: var(--navy);
}
.schedule-item svg { color: var(--green); flex-shrink: 0; }

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

/* ============ Journey ============ */
.journey {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  position: relative;
}
.journey li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.journey-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.journey p { font-weight: 700; color: var(--navy); }

@media (min-width: 900px) {
  .journey { grid-template-columns: repeat(4, 1fr); }
  .journey li { flex-direction: column; text-align: center; padding: 30px 20px; }
}

/* ============ CTA banner / register ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--white);
  padding: 70px 0;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.cta-copy h2 { color: var(--white); margin-bottom: 10px; }
.cta-tagline { color: var(--green-light); font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; }
.cta-copy p { color: #d7e2e7; margin-bottom: 14px; }
.cta-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--navy);
  box-shadow: var(--shadow-lg);
}
.cta-form h3 { margin-bottom: 8px; }
.cta-form > p { color: var(--slate); margin-bottom: 20px; }
.form-embed {
  position: relative;
  border: 2px dashed var(--gray);
  border-radius: var(--radius-sm);
  min-height: 280px;
  overflow: hidden;
  background: var(--off-white);
}
.form-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  position: relative;
  z-index: 1;
}
.form-embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--slate);
  z-index: 0;
}
.form-embed-placeholder svg { color: var(--green); }
.form-embed-placeholder span { font-weight: 700; color: var(--navy); }

@media (min-width: 960px) {
  .cta-inner { flex-direction: row; align-items: flex-start; }
  .cta-copy, .cta-form { flex: 1; }
}

/* ============ Footer ============ */
.site-footer { background: var(--navy); color: var(--white); padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding-bottom: 40px;
}
.footer-brand p { color: #9fb3bd; margin-top: 12px; }
.site-footer .logo { color: var(--white); }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: 0.98rem; }
.footer-col a {
  display: block;
  color: #b9c8cf;
  padding: 6px 0;
  font-weight: 500;
  transition: color .2s;
}
.footer-col a:hover { color: var(--green-light); }
.footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b9c8cf;
  padding: 6px 0;
  font-size: 0.94rem;
}
.footer-contact svg { color: var(--green-light); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
}
.footer-bottom p { color: #8fa3ac; font-size: 0.86rem; text-align: center; }

@media (min-width: 700px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
