@font-face {
  font-family: "Almaarefa";
  src: url("../../fonts/almaarefaRegular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Almaarefa";
  src: url("../../fonts/almaarefaBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #022d38;
  --navy-light: #205b68;
  --gold: #cdb180;
  --gold-deep: #c7953b;
  --ink: #153c47;
  --muted: #506b72;
  --pale: #f8f9f9;
  --white: #fff;
  --shadow: 0 10px 22px rgba(2, 45, 56, .12);
  --container: 1180px;
}

* {
  box-sizing: border-box;
  font-family: var(--type-font);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);

  line-height: var(--leading-small);
  -webkit-font-smoothing: antialiased;
}

body,
a,
button,
input,
textarea,
select,
summary {
  font-family: var(--type-font);
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

section {
  scroll-margin-top: 74px;
}

.container {
  width: min(var(--container), calc(100% - 42px));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: #fff;
}

.header-inner {
  min-height: 90px;
  display: grid;
  grid-template-columns: 235px 1fr auto;
  align-items: center;
  gap: 34px;
}

.brand img {
  width: 205px;
  height: 56px;
  object-fit: contain;
  filter: none;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 42px;
  font-size: var(--type-nav);
}

.desktop-nav a {
  position: relative;
  padding: 31px 0 23px;
  color: rgba(255, 255, 255, .84);
  white-space: nowrap;
}

.desktop-nav a span {
  margin-right: 5px;
  font-size: var(--type-nav);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width .25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #fff;
}

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

.account-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-size: var(--type-button);
  font-weight: var(--type-weight-bold);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
  white-space: nowrap;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  width: 43px;
  height: 43px;
  display: grid;
  place-content: center;
  gap: 5px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 8px;
  cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary i {
  width: 20px;
  height: 2px;
  border-radius: 3px;
  background: #fff;
}

.mobile-panel {
  position: absolute;
  top: 53px;
  left: 0;
  width: min(300px, calc(100vw - 30px));
  display: grid;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow);
}

.mobile-panel a {
  padding: 11px 13px;
  border-radius: 8px;
}

.mobile-panel a:hover {
  background: #eff4f4;
}

.mobile-panel .mobile-account {
  margin-top: 7px;
  color: #fff;
  background: var(--navy);
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 790px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-image,
.hero-video-container,
.hero-shade {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.hero-video-container {
  z-index: -3 !important;
  overflow: hidden !important;
  background: var(--navy) !important;
}

.hero-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: left center !important;
  transform: scale(1.02);
  filter: brightness(0.92);
}

.hero-image {
  z-index: -3;
  background: url("../../images/home-hero.png") 30% center / cover no-repeat;
  transform: scale(1.01);
}

.hero-shade {
  z-index: -2 !important;
  background:
    linear-gradient(to left, rgba(2, 45, 56, 0.96) 0%, rgba(2, 45, 56, 0.88) 35%, rgba(2, 45, 56, 0.45) 70%, rgba(2, 45, 56, 0.15) 100%),
    linear-gradient(180deg, rgba(2, 45, 56, 0.25) 0%, rgba(2, 45, 56, 0.45) 100%) !important;
}

.hero-content {
  padding-top: 55px;
  padding-bottom: 92px;
}

.hero-copy {
  max-width: 600px;
  margin-right: 0;
}

.hero-kicker {
  margin-bottom: 8px;
  font-size: var(--type-card-title-sm);
  color: rgba(255, 255, 255, .85);
}

.hero h1 {
  margin-bottom: 20px;

  line-height: var(--leading-display);

  font-size: var(--type-display);
}

.hero-copy>p:not(.hero-kicker) {
  margin-bottom: 28px;
  font-size: var(--type-body-lg);
  line-height: var(--leading-body);
  color: rgba(255, 255, 255, .92);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 10px 22px;
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-size: var(--type-button);
  font-weight: var(--type-weight-bold);
  transition: transform .25s ease, box-shadow .25s ease;

  line-height: var(--leading-control);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
}

.hero-wave {
  position: absolute;
  z-index: 2;
  left: -5%;
  bottom: -44px;
  width: 110%;
  height: 103px;
  transform: rotate(-2deg);
  transform-origin: center;
}

.wave-back {
  bottom: -13px;
  background: #c3dadb;
}

.wave-front {
  bottom: -53px;
  background: #fff;
}

/* About */
.about {
  padding-top: 112px;
}

.about-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 100px;
  align-items: center;
}

.about-text h2,
.section-heading h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: var(--type-section-title);
  line-height: var(--leading-heading);
}

.about-lead {
  margin-bottom: 25px;
  color: #3f5e66;
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.about-image {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 665px;
  object-fit: cover;
  object-position: center;
  border-radius: 47px;
}

.identity-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 18px;
  padding: 23px 26px;
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(2, 45, 56, .12);
}

.identity-card+.identity-card {
  margin-top: 20px;
}

.identity-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  justify-self: center;
}

.identity-card h3 {
  margin-bottom: 2px;
  font-size: var(--type-card-title);
  line-height: var(--leading-card);
}

.identity-card p {
  margin-bottom: 0;
  font-size: var(--type-body-small);
  line-height: var(--leading-small);
}

.vision-card {
  background: var(--gold);
  color: #fff;
}

.mission-card {
  background: #215d69;
  color: #fff;
}

.mission-card img {
  filter: brightness(0) invert(1);
}

.objectives-card {
  color: var(--navy);
  border: 1px solid rgba(205, 177, 128, .72);
  background: linear-gradient(135deg, #fffdfa 0%, #f3e9d5 100%);
}

.objectives-card img {
  width: 70px;
  height: 70px;
}

/* 2030 */
.vision-2030 {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #fffaf6;
}

.vision-banner {
  position: relative;
  width: 100%;
  line-height: 0;
}

.vision-banner-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.vision-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 10%;
  width: min(35%, 520px);
  transform: translateY(-50%);
  direction: rtl;
  text-align: center;
  line-height: normal;
}

.vision-copy p {
  margin: 0;
  color: var(--navy);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  font-weight: var(--type-weight-regular);
}

.vision-copy strong,
.vision-copy em {
  color: var(--gold-deep);
  font-style: normal;
  font-weight: var(--type-weight-bold);
}

/* Why */
.why {
  background: #fbfbfb;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--type-body);

  line-height: var(--leading-body);
}

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

.feature-card {
  position: relative;
  min-height: 212px;
  padding: 28px 31px 26px;
  border: 1px solid rgba(2, 45, 56, .06);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 9px rgba(2, 45, 56, .13);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(2, 45, 56, .14);
}

.feature-icon {
  position: absolute;
  top: 21px;
  right: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(205, 177, 128, .85);
  border-radius: 50%;
  background: #fffdf9;
}

.feature-icon img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.feature-card h3 {
  margin: 14px 40px 17px 0;
  color: var(--navy);
  font-size: var(--type-card-title-sm);

  line-height: var(--leading-card);
}

.feature-card h3::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin: 8px auto 0;
  background: var(--gold);
}

.feature-card p {
  margin-bottom: 0;
  color: #45626a;
  font-size: var(--type-body-small);
  line-height: var(--leading-small);
}

/* Programs */
.programs {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.programs-title {
  margin-bottom: 34px;
}

.programs-title h2 {
  font-size: var(--type-section-title);

  line-height: var(--leading-heading);
}

.programs-dot-right {
  top: 62px;
  right: 58px;
}

.programs-dot-left {
  bottom: 50px;
  left: 58px;
  transform: rotate(180deg);
}

.program-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 27px;
}

.choice-card {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 7px 17px rgba(2, 45, 56, .16);
  isolation: isolate;
}

.choice-card>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}

.choice-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 45, 56, .06) 14%, rgba(2, 45, 56, .83) 100%);
}

.choice-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 16% 14%, rgba(205, 177, 128, .48), transparent 35%),
    linear-gradient(145deg, rgba(2, 45, 56, .55), rgba(2, 45, 56, .94) 68%, rgba(170, 130, 9, .9) 155%);
  transition: opacity .38s ease;
}

.choice-base {
  position: absolute;
  z-index: 3;
  right: 30px;
  left: 30px;
  bottom: 25px;
  color: #fff;
  text-align: center;
  transition: opacity .25s ease, transform .3s ease;
}

.choice-base h3 {
  margin-bottom: 5px;
  font-size: var(--type-card-title-sm);
  line-height: var(--leading-card);
}

.choice-base p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .84);
  font-size: var(--type-caption);

  line-height: var(--leading-small);
}

.choice-hover {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 31px;
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .32s ease, transform .38s ease;
}

.choice-hover h3 {
  margin: 0 0 9px;

}

.choice-hover p {
  margin-bottom: 13px;
  color: rgba(255, 255, 255, .87);
}

.choice-hover b {
  font-size: var(--type-body);
}

.choice-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  margin-left: 0;
  padding-top: 4px;
  font-size: var(--type-body-lg);
}

.choice-link span {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-size: var(--type-card-title);
  line-height: var(--leading-card);
}

.choice-card:hover>img,
.choice-card:focus-visible>img {
  transform: scale(1.07);
}

.choice-card:hover::after,
.choice-card:focus-visible::after {
  opacity: 1;
}

.choice-card:hover .choice-base,
.choice-card:focus-visible .choice-base {
  opacity: 0;
  transform: translateY(14px);
}

.choice-card:hover .choice-hover,
.choice-card:focus-visible .choice-hover {
  opacity: 1;
  transform: none;
}

/* Partners */
.partners {
  position: relative;
  padding-bottom: 0;
  background: #fff;
}

.partner-heading {
  max-width: 880px;
  margin-bottom: 50px;
}

.partner-heading h2 {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  color: transparent;
  background: linear-gradient(90deg, #5d6d80 0%, #173f4c 46%, #022d38 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.partner-dots {
  top: 48px;
  right: 60px;
}

.partner-band {
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 30px;
  background: linear-gradient(90deg, #fff 0%, #eadcc2 12%, #cdb180 30%, #cdb180 70%, #eadcc2 88%, #fff 100%);
}

.partner-logos-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 70px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.partner-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-logo-item:hover {
  transform: scale(1.08);
}

.partner-logo-item img {
  max-height: 60px;
  max-width: 175px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) !important;
  opacity: 0.95 !important;
  transition: all 0.3s ease;
}

.partner-logo-item:hover img {
  opacity: 1 !important;
}

@media (max-width: 720px) {
  .partner-band {
    padding: 20px 14px;
    min-height: 120px;
  }

  .partner-logos-container {
    gap: 20px 30px;
  }

  .partner-logo-item {
    padding: 4px 8px;
  }

  .partner-logo-item img {
    max-height: 44px;
    max-width: 125px;
  }
}

/* Footer */
.site-footer {
  position: relative;
  min-height: 330px;
  padding: 58px 0 22px;
  overflow: hidden;
  background: #fff;
  color: var(--navy);
}

.footer-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.2fr .8fr;
  align-items: start;
  gap: 35px;
}

.footer-brand img {
  width: 210px;
  height: 126px;
  object-fit: contain;
}

.footer-column,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column h3,
.footer-social h3 {
  margin-bottom: 12px;

  color: var(--navy);
}

.footer-column a,
.footer-column span {
  color: #4a6268;


}

.footer-column a:hover {
  color: var(--gold-deep);
}

.footer-social>div {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
}

.footer-social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-triangles {
  position: absolute;
  z-index: 1;
  top: -10px;
  left: -35px;
  width: 245px;
  opacity: .48;
}

.footer-dots {
  top: 24px;
  right: 48px;
}

.footer-skyline {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -170px;
  width: 520px;
  transform: translateX(-50%);
  opacity: .17;
  filter: sepia(1) saturate(.7) hue-rotate(355deg) brightness(1.15);
  pointer-events: none;
}

.footer-bottom {
  position: relative;
  z-index: 4;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(2, 45, 56, .08);
  text-align: center;
  color: #65797e;

}

/* Accessibility */
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(205, 177, 128, .9);
  outline-offset: 4px;
}

/* Responsive */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 210px 1fr auto;
    gap: 18px;
  }

  .brand img {
    width: 184px;
  }

  .desktop-nav {
    gap: 24px;
  }

  .about-grid {
    gap: 55px;
  }

  .about-image img {
    height: 620px;
  }

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

  .footer-social {
    grid-column: 2;
  }
}

@media (max-width: 900px) {

  .desktop-nav,
  .account-button {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    min-height: 700px;
  }

  .hero-image {
    background-position: 38% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(2, 45, 56, .28), rgba(2, 45, 56, .94));
  }

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

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 430px;
  }

  .vision-copy {
    left: 5.5%;
    width: 42%;
  }

  .vision-copy p {
    font-size: var(--type-body);
  }

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

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

@media (max-width: 650px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .section {
    padding: 70px 0;
  }

  .site-header .brand img {
    width: 170px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: var(--type-display);

    line-height: var(--leading-display);
  }

  .hero-copy>p:not(.hero-kicker) {
    font-size: var(--type-body-lg);
  }

  .about {
    padding-top: 92px;
  }

  .about-image img {
    height: 340px;
    border-radius: 28px;
  }

  .identity-card {
    grid-template-columns: 62px 1fr;
    padding: 20px;
  }

  .identity-card img {
    width: 50px;
    height: 50px;
  }

  .objectives-card img {
    width: 52px;
    height: 52px;
  }

  .identity-card h3 {
    font-size: var(--type-card-title);

    line-height: var(--leading-card);
  }

  .vision-banner {
    min-height: 510px;
    background: #fffaf6;
  }

  .vision-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
  }

  .vision-copy {
    top: auto;
    right: 22px;
    bottom: 28px;
    left: 22px;
    width: auto;
    transform: none;
    padding: 18px 17px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-align: center;
  }

  .vision-copy p {
    font-size: var(--type-body);
    line-height: var(--leading-body);
  }

  .features-grid,
  .program-choice-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 190px;
  }

  .choice-card {
    min-height: 260px;
  }

  .partner-band {
    min-height: 112px;
    padding-inline: 20px;
  }

  .site-footer {
    padding-bottom: 60px;
  }

  .footer-brand img {
    width: 190px;
  }

  .footer-skyline {
    width: 390px;
    bottom: -128px;
  }
}

@media (hover: none) {
  .choice-card::after {
    opacity: .76;
  }

  .choice-base {
    display: none;
  }

  .choice-hover {
    opacity: 1;
    transform: none;
  }
}


/* Revision 6 — requested visual refinements */

/* 1) Reduce the large gap before the programmes heading. */
.why {
  padding-bottom: 30px;
}

.programs {
  padding-top: 34px;
}

.programs-title {
  margin-top: 0;
  margin-bottom: 30px;
}

/* 2) Keep the main hero title on one line on desktop. */
.hero-copy {
  max-width: 690px;
}

.hero h1 {
  font-size: var(--type-display);
  white-space: nowrap;

  line-height: var(--leading-display);
}

/* 3) Use the unused silver/grey tone from the institute identity for objectives. */
.objectives-card {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #8d9a9d 0%, #697a7e 100%);
  box-shadow: 0 4px 9px rgba(54, 73, 78, .20);
}

.objectives-card img {
  filter: brightness(0) invert(1);
}

/* 4) Give the footer a distinct white backing panel. */
.site-footer {
  min-height: 355px;
  padding: 48px 0 28px;
  background: linear-gradient(180deg, #f5f0e7 0%, #eef3f3 100%);
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 26px;
  bottom: 18px;
  left: 50%;
  width: min(calc(var(--container) + 70px), calc(100% - 28px));
  transform: translateX(-50%);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(2, 45, 56, .10);
}

.footer-content,
.footer-bottom {
  position: relative;
  z-index: 3;
}

.footer-content {
  padding: 18px 22px 4px;
}

.footer-bottom {
  margin-top: 12px;
}

/* 5) Use the clean symbol only in the footer; remove the damaged name beneath it. */
.footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-brand img {
  width: 126px;
  height: 126px;
  object-fit: contain;
}

/* 6) Enlarge social-media controls and icons. */
.footer-social>div {
  gap: 12px;
}

.footer-social a {
  width: 54px;
  height: 54px;
  box-shadow: 0 5px 12px rgba(199, 149, 59, .20);
}

.footer-social img {
  width: 25px;
  height: 25px;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: var(--type-display);

    line-height: var(--leading-display);
  }

  .why {
    padding-bottom: 26px;
  }

  .programs {
    padding-top: 30px;
  }
}

@media (max-width: 650px) {
  .hero h1 {
    white-space: normal;
    font-size: var(--type-display);

    line-height: var(--leading-display);
  }

  .why {
    padding-bottom: 20px;
  }

  .programs {
    padding-top: 26px;
  }

  .site-footer::before {
    top: 18px;
    bottom: 14px;
    width: calc(100% - 18px);
    border-radius: 18px;
  }

  .footer-content {
    padding-inline: 18px;
  }

  .footer-social a {
    width: 50px;
    height: 50px;
  }

  .footer-social img {
    width: 23px;
    height: 23px;
  }
}


/* Revision 7 — precise requested corrections only */

/* Remove the institute name from the header while retaining the white symbol. */
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand img {
  width: 68px;
  height: 70px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Tighten the transition between “Why AlMaarefa Institute?” and programmes. */
.why {
  padding-bottom: 12px;
}

.programs {
  padding-top: 14px;
}

.programs-title {
  margin-top: 0;
}

/* Restore the earlier footer composition, with only a plain white rectangular backing strip. */
.site-footer {
  min-height: 330px;
  padding: 48px 0 22px;
  background: #f6f3ed;
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 24px;
  right: 0;
  bottom: 14px;
  left: 0;
  width: auto;
  transform: none;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.footer-content {
  position: relative;
  z-index: 3;
  padding: 12px 0 0;
}

.footer-bottom {
  position: relative;
  z-index: 4;
  margin-top: 18px;
  padding-top: 12px;
}

.footer-brand {
  display: block;
}

.footer-brand img {
  width: 210px;
  height: 126px;
  object-fit: contain;
  filter: none;
}

/* Enlarge only the social-media controls and icons. */
.footer-social>div {
  gap: 12px;
}

.footer-social a {
  width: 52px;
  height: 52px;
  box-shadow: none;
}

.footer-social img {
  width: 24px;
  height: 24px;
}

@media (max-width: 1100px) {
  .brand img {
    width: 64px;
    height: 66px;
  }
}

@media (max-width: 900px) {
  .why {
    padding-bottom: 10px;
  }

  .programs {
    padding-top: 12px;
  }
}

@media (max-width: 650px) {
  .brand img {
    width: 58px;
    height: 60px;
  }

  .why {
    padding-bottom: 8px;
  }

  .programs {
    padding-top: 10px;
  }

  .site-footer::before {
    top: 16px;
    right: 0;
    bottom: 10px;
    left: 0;
    width: auto;
    border-radius: 0;
  }

  .footer-content {
    padding-inline: 0;
  }

  .footer-social a {
    width: 48px;
    height: 48px;
  }

  .footer-social img {
    width: 22px;
    height: 22px;
  }
}


/* Revision 8 — exact header, spacing and slim-footer corrections */

/* Restore the complete white institute logo in the header. */
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand img {
  width: 220px;
  height: 62px;
  object-fit: contain;
  filter: none;
}

/* The programme navigation labels stay unchanged; only the small arrows are removed in HTML. */
.desktop-nav a span {
  display: none;
}

/* Balance the vertical space between the programme cards and the partners section. */
.programs {
  padding-top: 14px;
  padding-bottom: 46px;
}

.partners {
  padding-top: 46px;
  padding-bottom: 0;
}

.partner-heading {
  margin-bottom: 34px;
}

/* Slim, clear footer matching the supplied reference. */
.site-footer {
  position: relative;
  min-height: 0;
  padding: 22px 0 8px;
  overflow: hidden;
  background: #fff;
  color: var(--navy);
  isolation: isolate;
  border-top: 1px solid rgba(205, 177, 128, .18);
}

.site-footer::before {
  content: none;
}

.footer-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.18fr .86fr;
  align-items: start;
  gap: 28px;
  padding: 0;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-brand img {
  width: 176px;
  height: 104px;
  object-fit: contain;
  filter: none;
}

.footer-column,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column h3,
.footer-social h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: var(--type-body-lg);
  line-height: var(--leading-card);
}

.footer-column a,
.footer-column span {
  color: #3f5a62;
  font-size: var(--type-footer);
  line-height: var(--leading-caption);
}

.footer-social>div {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 3px 8px rgba(199, 149, 59, .18);
}

.footer-social img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-triangles {
  position: absolute;
  z-index: 1;
  top: -16px;
  left: -38px;
  width: 200px;
  opacity: .38;
}

.footer-dots {
  top: 8px;
  right: 24px;
  opacity: .72;
}

.footer-skyline {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -128px;
  width: 390px;
  transform: translateX(-50%);
  opacity: .18;
  filter: sepia(1) saturate(.68) hue-rotate(355deg) brightness(1.18);
  pointer-events: none;
}

.footer-bottom {
  position: relative;
  z-index: 4;
  width: min(var(--container), calc(100% - 42px));
  margin: 8px auto 0;
  padding: 7px 0 0;
  border-top: 1px solid rgba(2, 45, 56, .08);
  text-align: center;
  color: #65797e;
  font-size: var(--type-caption);
  line-height: var(--leading-caption);
}

@media (max-width: 1100px) {
  .brand img {
    width: 195px;
    height: 58px;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 20px;
  }

  .footer-social {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .programs {
    padding-bottom: 38px;
  }

  .partners {
    padding-top: 38px;
  }

  .brand img {
    width: 188px;
    height: 56px;
  }
}

@media (max-width: 650px) {

  .site-header .brand img,
  .brand img {
    width: 164px;
    height: 50px;
  }

  .programs {
    padding-bottom: 32px;
  }

  .partners {
    padding-top: 32px;
  }

  .site-footer {
    padding: 24px 0 14px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-brand img {
    width: 176px;
    height: 104px;
  }

  .footer-column,
  .footer-social {
    align-items: center;
    text-align: center;
  }

  .footer-social a {
    width: 48px;
    height: 48px;
  }

  .footer-social img {
    width: 24px;
    height: 24px;
  }

  .footer-skyline {
    width: 330px;
    bottom: -108px;
  }

  .footer-bottom {
    width: calc(100% - 28px);
    margin-top: 10px;
  }
}


/* Revision 9 — tighten only the gap between “لماذا معهد جامعة المعرفة؟” and programmes */
.why.section {
  padding-bottom: 0 !important;
}

.programs.section {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 16px !important;
}

.programs>.container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.programs-title {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .programs.section {
    padding-top: 14px !important;
  }
}

@media (max-width: 650px) {
  .programs.section {
    padding-top: 12px !important;
  }
}


/* Revision 10 — reorganize the institute introduction exactly as requested */
.about.section {
  padding-top: 72px;
}

.about-intro {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas: "lead title";
  gap: 72px;
  align-items: start;
  margin-bottom: 28px;
}

.about-intro h2 {
  grid-area: title;
  align-self: start;
  margin: -8px 0 0;
  color: var(--navy);


  text-align: right;

  font-size: var(--type-section-title);
  line-height: var(--leading-heading);
}

.about-intro .about-lead {
  grid-area: lead;
  margin: 0;
  color: #3f5e66;


  text-align: right;
  direction: rtl;
}

.about-body {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas: "image cards";
  gap: 72px;
  align-items: center;
}

.about-cards {
  grid-area: cards;
  align-self: center;
}

.about-image {
  grid-area: image;
  align-self: center;
  display: flex;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 610px;
  object-fit: cover;
  object-position: center;
  border-radius: 42px;
}

.about-cards .identity-card {
  padding: 21px 24px;
}

.about-cards .identity-card+.identity-card {
  margin-top: 18px;
}

@media (max-width: 1100px) {

  .about-intro,
  .about-body {
    gap: 48px;
  }

  .about-image img {
    height: 580px;
  }
}

@media (max-width: 900px) {
  .about.section {
    padding-top: 62px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "lead";
    gap: 14px;
    margin-bottom: 28px;
  }

  .about-intro h2 {
    margin-top: 0;

    font-size: var(--type-section-title);
    line-height: var(--leading-heading);
  }

  .about-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "cards";
    gap: 30px;
  }

  .about-image img {
    height: 430px;
  }
}

@media (max-width: 650px) {
  .about.section {
    padding-top: 54px;
  }

  .about-intro .about-lead {
    font-size: var(--type-body);
    line-height: var(--leading-body);
  }

  .about-image img {
    height: 340px;
    border-radius: 28px;
  }

  .about-body {
    gap: 24px;
  }
}

/* Revision 11 — align the header logo and apply the requested about-section layout */
.site-header .brand {
  align-self: center;
  height: 90px;
  display: flex;
  align-items: center;
}

.site-header .brand img {
  display: block;
  transform: translateY(6px);
}

.about.section {
  padding-top: 64px;
}

.about-intro {
  direction: ltr;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 24px;
}

.about-intro h2 {
  grid-column: 2;
  direction: rtl;
  text-align: right;
  align-self: start;
  margin: -12px 0 0;
  color: var(--navy);


  font-size: var(--type-section-title);
  line-height: var(--leading-heading);
}

.about-intro .about-lead {
  grid-column: 1;
  direction: rtl;
  text-align: right;
  margin: 0;
  color: #3f5e66;


}

.about-body {
  direction: ltr;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  grid-column: 1;
  direction: rtl;
  align-self: center;
}

.about-cards {
  grid-column: 2;
  direction: rtl;
  align-self: center;
}

.about-image img {
  width: 100%;
  height: 610px;
  object-fit: cover;
  object-position: center;
  border-radius: 42px;
}

.about-cards .identity-card {
  padding: 21px 24px;
}

.about-cards .identity-card+.identity-card {
  margin-top: 18px;
}

@media (max-width: 1100px) {

  .about-intro,
  .about-body {
    gap: 42px;
  }

  .about-image img {
    height: 575px;
  }
}

@media (max-width: 900px) {
  .site-header .brand {
    height: 82px;
  }

  .site-header .brand img {
    transform: translateY(3px);
  }

  .about.section {
    padding-top: 58px;
  }

  .about-intro {
    direction: rtl;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 26px;
  }

  .about-intro h2,
  .about-intro .about-lead {
    grid-column: 1;


  }

  .about-intro h2 {
    margin-top: 0;

    font-size: var(--type-section-title);
    line-height: var(--leading-heading);
  }

  .about-body {
    direction: rtl;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-image,
  .about-cards {
    grid-column: 1;
  }

  .about-image img {
    height: 430px;
  }
}

@media (max-width: 650px) {
  .site-header .brand img {
    transform: translateY(2px);
  }

  .about.section {
    padding-top: 52px;
  }

  .about-intro .about-lead {
    font-size: var(--type-body);
    line-height: var(--leading-body);
  }

  .about-image img {
    height: 340px;
    border-radius: 28px;
  }
}


/* Revision 12 — move the about heading upward, place its paragraph beneath it, and remove detail links */
.about.section {
  padding-top: 34px;
}

.about-intro {
  direction: rtl;
  display: block;
  margin-bottom: 28px;
}

.about-intro h2 {
  margin: -8px 0 14px;
  text-align: right;
  font-size: var(--type-section-title);
  line-height: var(--leading-heading);
}

.about-intro .about-lead {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: right;
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.choice-link {
  display: none !important;
}

@media (max-width: 900px) {
  .about.section {
    padding-top: 40px;
  }

  .about-intro {
    margin-bottom: 24px;
  }

  .about-intro h2 {
    margin-top: 0;

    font-size: var(--type-section-title);
    line-height: var(--leading-heading);
  }
}

@media (max-width: 650px) {
  .about.section {
    padding-top: 34px;
  }

  .about-intro .about-lead {
    font-size: var(--type-body);
    line-height: var(--leading-body);
  }
}

/* Revision 13 — director message, identity-card heading icons, programme title and tighter section rhythm */

/* Keep section spacing balanced and more compact across the landing page. */
.section {
  padding-top: 66px;
  padding-bottom: 66px;
}

/* Director message */
.director-message {
  position: relative;
  padding-top: 62px;
  padding-bottom: 52px;
  background: #fff;
}

.director-card {
  position: relative;
  overflow: hidden;
  max-width: 1060px;
  margin-inline: auto;
  padding: 48px 62px 60px;
  border: 1px solid rgba(205, 177, 128, .48);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98) 0%, rgba(248, 245, 238, .98) 65%, rgba(229, 238, 239, .95) 100%);
  box-shadow: 0 12px 30px rgba(2, 45, 56, .09);
}

.director-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold) 0%, var(--navy-light) 100%);
}

.director-copy {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.director-kicker {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--gold-deep);
  font-size: var(--type-body-lg);
  font-weight: var(--type-weight-bold);
}

.director-card h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: var(--type-section-title);
  line-height: var(--leading-heading);
}

.director-card p {
  max-width: 900px;
  margin-bottom: 24px;
  color: #3f5e66;
  font-size: var(--type-body-small);
  line-height: var(--leading-small);
}

.director-signature {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--navy);
}

.director-signature strong {
  font-size: var(--type-body);

  line-height: var(--leading-body);
}

.director-signature span {
  color: var(--gold-deep);


}

.director-quote {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 18px;
  width: 76px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 7px 16px rgba(2, 45, 56, .14);
}

/* About section: retain the approved layout while tightening the section gap. */
.about.section {
  padding-top: 48px;
  padding-bottom: 58px;
}

.about-intro {
  margin-bottom: 24px;
}

/* Place every icon directly beside its own heading, not in the card centre. */
.about-cards .identity-card,
.identity-card {
  display: block;
  padding: 22px 25px;
}

.identity-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  margin-bottom: 9px;
}

.identity-heading img,
.about-cards .identity-card .identity-heading img {
  width: 53px;
  height: 53px;
  flex: 0 0 53px;
  object-fit: contain;
  justify-self: auto;
}

.identity-heading h3,
.identity-card .identity-heading h3 {
  margin: 0;
  font-size: var(--type-card-title);
  line-height: var(--leading-card);
}

.identity-card>p {
  margin: 0;
  font-size: var(--type-body-small);
  line-height: var(--leading-small);
}

.mission-card .identity-heading img {
  filter: brightness(0) invert(1);
}

.objectives-card .identity-heading .objectives-heading-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
  background: none;
  filter: brightness(0) invert(1);
}

/* Tighten the remaining major transitions. */
.why.section {
  padding-top: 62px;
  padding-bottom: 0 !important;
}

.programs.section {
  padding-top: 16px !important;
  padding-bottom: 56px;
}

.programs-title {
  margin-bottom: 30px;
}

.partners.section {
  padding-top: 52px;
}

@media (max-width: 900px) {
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .director-message {
    padding-top: 52px;
    padding-bottom: 44px;
  }

  .director-card {
    padding: 40px 40px 58px;
  }

  .director-card p {
    font-size: var(--type-body-small);
    line-height: var(--leading-small);
  }

  .about.section {
    padding-top: 44px;
    padding-bottom: 50px;
  }

  .why.section {
    padding-top: 54px;
  }

  .programs.section {
    padding-top: 14px !important;
    padding-bottom: 48px;
  }

  .partners.section {
    padding-top: 46px;
  }
}

@media (max-width: 650px) {
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .director-message {
    padding-top: 44px;
    padding-bottom: 38px;
  }

  .director-card {
    padding: 34px 25px 72px;
    border-radius: 20px;
  }

  .director-card h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }

  .director-card p {
    font-size: var(--type-body-small);
    line-height: var(--leading-small);
  }

  .director-quote {
    left: 16px;
    bottom: 14px;
    width: 66px;
  }

  .about.section {
    padding-top: 38px;
    padding-bottom: 44px;
  }

  .identity-heading img,
  .about-cards .identity-card .identity-heading img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .identity-heading h3,
  .identity-card .identity-heading h3 {
    font-size: var(--type-card-title);

    line-height: var(--leading-card);
  }

  .why.section {
    padding-top: 48px;
  }

  .programs.section {
    padding-top: 12px !important;
    padding-bottom: 42px;
  }

  .partners.section {
    padding-top: 40px;
  }
}


/* Revision 14 — exact director-message composition and precise programme anchor */

/* Make the header programme links land on the visible title rather than on blank section space. */
#programs-title-anchor {
  scroll-margin-top: 28px;
}

/* Remove the remaining oversized transition between “Why” and programmes. */
.why.section {
  padding-bottom: 0 !important;
}

.programs.section {
  padding-top: 0 !important;
  margin-top: -8px;
}

.programs-title {
  margin-top: 0 !important;
  padding-top: 0;
}

/* Director message — match the supplied reference: clean white canvas, gold rules, title to the right. */
.director-message.section {
  padding: 74px 0 70px;
  background: #fff;
}

.director-container {
  width: min(1380px, calc(100% - 72px));
}

.director-card {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 8px 26px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.director-card::before,
.director-card::after {
  content: none;
}

.director-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  width: 100%;
  margin-bottom: 38px;
}

.director-title-row h2 {
  flex: 0 0 auto;
  margin: 0;
  padding: 18px 28px 18px 0;
  border-right: 4px solid var(--gold-deep);
  color: #123d59;


  white-space: nowrap;

  font-size: var(--type-section-title);
  line-height: var(--leading-heading);
}

.director-top-line {
  flex: 1 1 auto;
  min-width: 120px;
  height: 64px;
  margin-top: 32px;
  border-top: 2px solid var(--gold-deep);
  border-left: 2px solid var(--gold-deep);
  border-radius: 28px 0 0 0;
}

.director-text {
  width: min(1080px, 84%);
  margin: 0 auto 36px;
  color: #153f5c;
  font-size: var(--type-body);
  line-height: var(--leading-body);
  text-align: center;
}

.director-footer-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding-inline: 0 58px;
}

.director-signature {
  flex: 0 0 auto;
  min-width: 330px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 18px 4px 42px;
  border-left: 2px solid var(--gold-deep);
  color: #153f5c;
  text-align: center;
}

.director-signature strong {
  font-size: var(--type-body);
  font-weight: var(--type-weight-regular);

  line-height: var(--leading-body);
}

.director-signature span {
  color: #153f5c;
  font-size: var(--type-section-title);
  font-weight: var(--type-weight-bold);
}

.director-bottom-line {
  flex: 1 1 auto;
  height: 2px;
  background: var(--gold-deep);
}

.director-quote {
  position: static;
  flex: 0 0 auto;
  width: 62px;
  height: 48px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  #programs-title-anchor {
    scroll-margin-top: 18px;
  }

  .programs.section {
    margin-top: -4px;
  }

  .director-message.section {
    padding: 58px 0 54px;
  }

  .director-container {
    width: min(100% - 38px, 1180px);
  }

  .director-card {
    padding-inline: 8px;
  }

  .director-title-row {
    gap: 22px;
    margin-bottom: 28px;
  }

  .director-title-row h2 {
    padding-right: 20px;
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }

  .director-top-line {
    height: 48px;
    margin-top: 22px;
  }

  .director-text {
    width: min(100%, 820px);
    font-size: var(--type-body);
    line-height: var(--leading-body);
  }

  .director-footer-row {
    padding-right: 18px;
  }

  .director-signature {
    min-width: 270px;
    padding-left: 26px;
  }
}

@media (max-width: 650px) {
  .director-message.section {
    padding: 46px 0 44px;
  }

  .director-container {
    width: calc(100% - 26px);
  }

  .director-title-row {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
  }

  .director-title-row h2 {
    max-width: 72%;
    padding: 10px 15px 10px 0;
    border-right-width: 3px;
    font-size: var(--type-section-title);
    white-space: normal;

    line-height: var(--leading-heading);
  }

  .director-top-line {
    height: 40px;
    margin-top: 25px;
    border-width: 1.5px;
    border-radius: 18px 0 0 0;
  }

  .director-text {
    margin-bottom: 28px;
    font-size: var(--type-body);
    line-height: var(--leading-body);
  }

  .director-footer-row {
    display: grid;
    grid-template-columns: 1fr 38px;
    gap: 12px;
    padding: 0;
  }

  .director-signature {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    padding: 3px 0 3px 18px;
    border-left: 2px solid var(--gold-deep);
    text-align: right;
  }

  .director-signature strong,
  .director-signature span {
    font-size: var(--type-body);

    line-height: var(--leading-body);
  }

  .director-bottom-line {
    width: 100%;
  }

  .director-quote {
    width: 38px;
    height: 34px;
  }
}

/* Revision 16 — reduce only the director-message heading size */
.director-title-row h2 {


  font-size: var(--type-section-title);
  line-height: var(--leading-heading);
}

@media (max-width: 900px) {
  .director-title-row h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }
}

@media (max-width: 650px) {
  .director-title-row h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }
}

/* Revision 17 — soften the cards ending and add the gold separator under the Why heading */
.why.section {
  position: relative;
  z-index: 2;
  overflow: visible;
  padding-bottom: 24px !important;
  background: linear-gradient(180deg, #fbfbfb 0%, #fbfbfb 86%, #ffffff 100%);
}

.why .features-grid {
  position: relative;
  z-index: 2;
  padding-bottom: 10px;
}

.why .section-heading h2 {
  margin-bottom: 0;


}

.why .section-heading h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: var(--gold-deep);


}

.programs.section {
  z-index: 1;
  margin-top: 0 !important;
  padding-top: 4px !important;
}

@media (max-width: 900px) {
  .why.section {
    padding-bottom: 20px !important;
  }

  .why .features-grid {
    padding-bottom: 8px;
  }

  .programs.section {
    padding-top: 4px !important;
  }
}

@media (max-width: 650px) {
  .why.section {
    padding-bottom: 18px !important;
  }

  .why .section-heading h2::after {
    width: 46px;
    height: 2px;
    margin-top: 11px;


  }
}

/* Revision 18 — place footer decorations behind the white footer strip */
.site-footer {
  position: relative;
  overflow: visible;
  padding-top: 34px;
  background: transparent;
  isolation: isolate;
}

/* Plain white rectangular footer surface. */
.site-footer::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 22px;
  right: 0;
  bottom: 0;
  left: 0;
  background: #fff;
  pointer-events: none;
}

/* Keep both decorations behind the white surface so only part of each peeks out. */
.footer-triangles {
  position: absolute;
  z-index: 0;
  top: -18px;
  left: -20px;
  width: 118px;
  opacity: .28;
  pointer-events: none;
}

.footer-dots {
  position: absolute;
  z-index: 0;
  top: -14px;
  right: -8px;
  width: 70px;
  height: 71px;
  opacity: .66;
  pointer-events: none;
}

.footer-content,
.footer-bottom {
  position: relative;
  z-index: 2;
}

/* Remove the grey divider above the copyright text. */
.footer-bottom {
  margin-top: 6px;
  padding-top: 2px;
  border-top: 0 !important;
}

@media (max-width: 650px) {
  .site-footer {
    padding-top: 28px;
  }

  .site-footer::before {
    top: 18px;
  }

  .footer-triangles {
    top: -12px;
    left: -16px;
    width: 94px;
  }

  .footer-dots {
    top: -10px;
    right: -6px;
    width: 58px;
    height: 59px;
  }
}


/* Revision 20 — updated director text, per-card gold dividers, and FAQ section */

/* Director message supports multiple paragraphs. */
.director-text {
  width: min(1120px, 88%);
  margin: 0 auto 34px;
  color: #153f5c;
  text-align: center;
}

.director-text p {
  margin: 0 0 18px;
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.director-text p:last-child {
  margin-bottom: 0;
}

/* Remove the gold line below the main section heading and add it under each card title instead. */
.why .section-heading h2::after {
  content: none !important;


}

.feature-card h4 {
  margin: 6px 0 14px;
  color: var(--navy);
  font-size: var(--type-card-title-sm);
  line-height: var(--leading-card);
}

.feature-card h4::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: var(--gold-deep);
}

.feature-card p {
  margin-top: 0;
}

/* FAQ section */
.faq.section {
  padding-top: 56px;
  padding-bottom: 72px;
  background: #fff;
}

.faq-heading {
  margin-bottom: 28px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 18px;
  background: #fafafa;
  border: 1px solid rgba(2, 45, 56, .05);
  box-shadow: 0 2px 10px rgba(2, 45, 56, .04);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 64px 24px 28px;
  color: var(--navy);
  font-size: var(--type-body);
  font-weight: var(--type-weight-bold);

  line-height: var(--leading-card);
}

.faq-item summary::-webkit-details-marker {
  display: none;


}

.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 28px;
  width: 16px;
  height: 2px;
  background: var(--navy);
  border-radius: 999px;
  transform: translateY(-50%);
  transition: transform .25s ease, opacity .25s ease;


}

.faq-item summary::after {
  transform: translateY(-50%) rotate(90deg);


}

.faq-item[open] summary::after {
  opacity: 0;
}

.faq-item[open] summary {
  border-bottom: 1px solid rgba(2, 45, 56, .07);
}

.faq-answer {
  padding: 20px 28px 24px;
  color: #486268;
  font-size: var(--type-card-title-sm);
  line-height: var(--leading-card);
  background: #fcfcfc;
}

.faq-answer p {
  margin: 0;
}

/* Footer link spacing to accommodate FAQ */
.footer-column a+a {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .director-text {
    width: min(100%, 900px);
  }

  .director-text p {
    font-size: var(--type-body);
    line-height: var(--leading-body);
  }

  .faq.section {
    padding-top: 48px;
    padding-bottom: 60px;
  }

  .faq-item summary {
    font-size: var(--type-body);
    padding: 22px 58px 22px 24px;

    line-height: var(--leading-card);
  }

  .faq-item summary::before,
  .faq-item summary::after {
    left: 24px;


  }

  .faq-answer {
    font-size: var(--type-card-title-sm);
    padding: 18px 24px 22px;
  }
}

@media (max-width: 650px) {
  .director-text {
    width: 100%;
    margin-bottom: 26px;
  }

  .director-text p {
    font-size: var(--type-body);
    line-height: var(--leading-body);
    text-align: right;
  }

  .faq.section {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .faq-item {
    border-radius: 14px;
  }

  .faq-item summary {
    padding: 18px 50px 18px 18px;
    font-size: var(--type-body);
    line-height: var(--leading-card);
  }

  .faq-item summary::before,
  .faq-item summary::after {
    left: 18px;
    width: 14px;


  }

  .faq-answer {
    padding: 16px 18px 18px;
    font-size: var(--type-body);
    line-height: var(--leading-body);
  }
}


/* Revision 21 — compact director heading and FAQ section only */

/* Make “كلمة مدير المعهد” as small as possible while remaining clear. */
.director-title-row h2 {


  padding-top: 10px !important;
  padding-bottom: 10px !important;
  padding-right: 16px !important;
  border-right-width: 3px !important;

  font-size: var(--type-section-title);
  line-height: var(--leading-heading);
}

.director-title-row {
  margin-bottom: 24px !important;
}

.director-top-line {
  height: 42px !important;
  margin-top: 20px !important;
}

/* Reduce the complete FAQ section: title, description, cards, text and spacing. */
.faq.section {
  padding-top: 34px !important;
  padding-bottom: 42px !important;
}

.faq-heading {
  margin-bottom: 18px !important;
}

.faq-heading h2 {
  margin-bottom: 8px !important;
  font-size: var(--type-section-title);

  line-height: var(--leading-heading);
}

.faq-heading p {
  max-width: 660px;
  margin-inline: auto;
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.faq-list {
  gap: 8px !important;
  max-width: 980px;
  margin-inline: auto;
}

.faq-item {
  border-radius: 12px !important;
}

.faq-item summary {
  padding: 15px 48px 15px 20px !important;
  font-size: var(--type-body);
  line-height: var(--leading-card);
}

.faq-item summary::before,
.faq-item summary::after {
  left: 20px !important;
  width: 13px !important;


}

.faq-answer {
  padding: 12px 20px 15px !important;
  font-size: var(--type-button);
  line-height: var(--leading-control);
}

@media (max-width: 900px) {
  .director-title-row h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }

  .faq.section {
    padding-top: 30px !important;
    padding-bottom: 36px !important;
  }

  .faq-heading h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }
}

@media (max-width: 650px) {
  .director-title-row h2 {
    font-size: var(--type-section-title);
    max-width: 76% !important;

    line-height: var(--leading-heading);
  }

  .director-title-row {
    margin-bottom: 18px !important;
  }

  .director-top-line {
    height: 32px !important;
    margin-top: 17px !important;
  }

  .faq.section {
    padding-top: 26px !important;
    padding-bottom: 32px !important;
  }

  .faq-heading {
    margin-bottom: 14px !important;
  }

  .faq-heading h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }

  .faq-heading p {
    font-size: var(--type-body);
    line-height: var(--leading-body);
  }

  .faq-item summary {
    padding: 13px 43px 13px 16px !important;
    font-size: var(--type-body);

    line-height: var(--leading-card);
  }

  .faq-item summary::before,
  .faq-item summary::after {
    left: 16px !important;
    width: 12px !important;


  }

  .faq-answer {
    padding: 10px 16px 13px !important;
    font-size: var(--type-body-small);
  }
}


/* Revision 22 — shrink only the director-message heading further */
.director-title-row h2 {


  padding: 7px 12px 7px 0 !important;
  border-right-width: 2px !important;
  letter-spacing: 0 !important;

  font-size: var(--type-section-title);
  line-height: var(--leading-heading);
}

.director-title-row {
  margin-bottom: 18px !important;
  gap: 24px !important;
}

.director-top-line {
  height: 32px !important;
  margin-top: 15px !important;
}

@media (max-width: 900px) {
  .director-title-row h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }
}

@media (max-width: 650px) {
  .director-title-row h2 {
    font-size: var(--type-section-title);
    max-width: 78% !important;

    line-height: var(--leading-heading);
  }

  .director-title-row {
    gap: 10px !important;
    margin-bottom: 15px !important;
  }

  .director-top-line {
    height: 26px !important;
    margin-top: 13px !important;
  }
}


/* Revision 23 — reduce the director-message title and manager name slightly more */
.director-title-row h2 {


  font-size: var(--type-section-title);
  line-height: var(--leading-heading);
}

.director-signature strong {
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.director-signature span {
  font-size: var(--type-card-title-sm);
  line-height: var(--leading-card);
}

@media (max-width: 900px) {
  .director-title-row h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }

  .director-signature strong {
    font-size: var(--type-body);

    line-height: var(--leading-body);
  }

  .director-signature span {
    font-size: var(--type-body-lg);
  }
}

@media (max-width: 650px) {
  .director-title-row h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }

  .director-signature strong {
    font-size: var(--type-body);

    line-height: var(--leading-body);
  }

  .director-signature span {
    font-size: var(--type-body);
  }
}


/* Revision 24 — compact the long director message while restoring a clear section heading */
.director-message.section {
  padding-top: 40px !important;
  padding-bottom: 38px !important;
}

.director-title-row {
  margin-bottom: 18px !important;
  gap: 24px !important;
}

.director-title-row h2 {

  line-height: var(--leading-heading);
  padding: 9px 16px 9px 0 !important;
  border-right-width: 3px !important;

  font-size: var(--type-section-title);
}

.director-top-line {
  height: 34px !important;
  margin-top: 17px !important;
}

.director-text {
  width: min(1180px, 94%) !important;
  margin-bottom: 20px !important;
}

.director-text p {
  margin-bottom: 9px !important;
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.director-footer-row {
  padding-right: 32px !important;
}

@media (max-width: 900px) {
  .director-message.section {
    padding-top: 34px !important;
    padding-bottom: 32px !important;
  }

  .director-title-row h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }

  .director-text {
    width: 96% !important;
  }

  .director-text p {
    font-size: var(--type-body);
    line-height: var(--leading-body);
  }
}

@media (max-width: 650px) {
  .director-message.section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .director-title-row {
    margin-bottom: 14px !important;
    gap: 10px !important;
  }

  .director-title-row h2 {
    max-width: 78% !important;
    font-size: var(--type-section-title);
    padding: 7px 11px 7px 0 !important;

    line-height: var(--leading-heading);
  }

  .director-top-line {
    height: 26px !important;
    margin-top: 14px !important;
  }

  .director-text {
    width: 100% !important;
    margin-bottom: 18px !important;
  }

  .director-text p {
    margin-bottom: 8px !important;
    font-size: var(--type-body);
    line-height: var(--leading-body);
  }
}


/* Revision 25 — center the complete director message text only */
.director-text,
.director-text p {
  text-align: center !important;
}


/* Revision 26 — force the director message block into the exact horizontal centre */
.director-card {
  text-align: center !important;
}

.director-text {
  display: block !important;
  position: relative !important;
  right: auto !important;
  left: auto !important;
  width: min(1040px, 78%) !important;
  max-width: 1040px !important;
  margin-top: 0 !important;
  margin-right: auto !important;
  margin-bottom: 20px !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  transform: none !important;
  direction: rtl !important;
  text-align: center !important;
}

.director-text p {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  direction: rtl !important;
  text-align: center !important;
  text-align-last: center !important;
}

@media (max-width: 900px) {
  .director-text {
    width: 88% !important;
  }
}

@media (max-width: 650px) {
  .director-text {
    width: 100% !important;
  }
}


/* Revision 27 — enlarge only “كلمة مدير المعهد” while preserving its exact position */
.director-title-row h2 {


  font-size: var(--type-section-title);
  line-height: var(--leading-heading);
}

@media (max-width: 900px) {
  .director-title-row h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }
}

@media (max-width: 650px) {
  .director-title-row h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }
}


/* Revision 28 — slightly enlarge only the director heading */
.director-title-row h2 {
  font-size: var(--type-section-title);

  line-height: var(--leading-heading);
}

@media (max-width: 900px) {
  .director-title-row h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }
}

@media (max-width: 650px) {
  .director-title-row h2 {
    font-size: var(--type-section-title);

    line-height: var(--leading-heading);
  }
}


/* Revision 29 — copy only the hover motion from the original prototype. */
.choice-card>img {
  transition: transform .35s ease !important;
}

.choice-card::after {
  background: linear-gradient(to bottom,
      rgba(3, 52, 63, .18) 0%,
      rgba(3, 52, 63, .76) 44%,
      rgba(2, 51, 62, .98) 100%) !important;
  transition: opacity .3s ease !important;
}

.choice-hover {
  align-items: center !important;
  justify-content: center !important;
  padding: 46px 32px 34px !important;
  text-align: center !important;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .3s ease, transform .3s ease !important;
}

.choice-hover h3 {
  margin: 0 0 14px !important;
  font-size: var(--type-card-title-sm);
  line-height: var(--leading-card);
}

.choice-hover p {
  max-width: 285px;
  margin: 0 !important;
  color: #fff !important;
  font-size: var(--type-caption);
  line-height: var(--leading-small);
}

.choice-card:hover>img,
.choice-card:focus-visible>img {
  transform: scale(1.035) !important;
}

.choice-card:hover .choice-hover,
.choice-card:focus-visible .choice-hover {
  opacity: 1;
  transform: translateY(0);
}

/* Preserve the approved mobile presentation. */
@media (hover: none) {
  .choice-card::after {
    opacity: .76;
  }

  .choice-base {
    display: none;
  }

  .choice-hover {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Same-page programmes view: preserve the landing page and replace only the two programme cards. */
[hidden] {
  display: none !important;
}

.programs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(980px, 100%);
  margin: -4px auto 20px;
  color: #64777d;
  font-size: var(--type-breadcrumb);
  line-height: var(--leading-control);
}

.programs-breadcrumb a {
  color: var(--navy);
  transition: color .2s ease;
}

.programs-breadcrumb a:hover {
  color: var(--gold-deep);
}

.programs-breadcrumb span[aria-hidden="true"] {
  color: var(--gold-deep);
  font-size: var(--type-breadcrumb);

  line-height: var(--leading-control);
}

.program-paths-grid {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-inline: auto;
}

.program-path-card {
  position: relative;
  min-height: 182px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 0 7px 16px rgba(2, 45, 56, .17);
  isolation: isolate;
  cursor: pointer;
}

.program-path-card>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .55s ease;
}

.program-path-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 45, 56, .20) 0%, rgba(2, 45, 56, .52) 48%, rgba(2, 45, 56, .94) 100%);
  transition: background .35s ease;
}

.program-path-content {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 18px;
  left: 22px;
  color: #fff;
  text-align: center;
  transition: transform .35s ease;
}

.program-path-content h3 {
  margin: 0 0 6px;
  color: #fff;


  text-shadow: 0 2px 7px rgba(0, 0, 0, .24);
}

.program-path-content p {
  max-width: 430px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .92);


}

.program-path-card:hover>img,
.program-path-card:focus-visible>img {
  transform: scale(1.045);
}

.program-path-card:hover .program-path-overlay,
.program-path-card:focus-visible .program-path-overlay {
  background:
    radial-gradient(circle at 16% 14%, rgba(205, 177, 128, .27), transparent 37%),
    linear-gradient(180deg, rgba(2, 45, 56, .14) 0%, rgba(2, 45, 56, .50) 42%, rgba(2, 45, 56, .97) 100%);
}

.program-path-card:hover .program-path-content,
.program-path-card:focus-visible .program-path-content {
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .program-paths-grid {
    gap: 15px;
  }

  .program-path-card {
    min-height: 172px;
  }

  .program-path-content {
    right: 18px;
    bottom: 16px;
    left: 18px;
  }

  .program-path-content h3 {
    font-size: var(--type-card-title-sm);
  }

  .program-path-content p {
    font-size: var(--type-body-small);
  }
}

@media (max-width: 650px) {
  .programs-breadcrumb {
    margin-bottom: 16px;
  }

  .program-paths-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .program-path-card {
    min-height: 168px;
  }

  .program-path-content h3 {
    font-size: var(--type-card-title-sm);
  }

  .program-path-content p {
    font-size: var(--type-body-small);
  }
}


/* Refined programme paths — old approved hover motion only. */
.program-path-card {
  isolation: isolate;
}

.program-path-card>img {
  transform: scale(1);
  transition: transform .35s ease;
}

/* The ombré and copy are hidden until the pointer reaches the card. */
.program-path-overlay {
  z-index: 1;
  opacity: 0;
  background: linear-gradient(to bottom,
      rgba(3, 52, 63, .18) 0%,
      rgba(3, 52, 63, .76) 44%,
      rgba(2, 51, 62, .98) 100%);
  transition: opacity .30s ease;
}

.program-path-content {
  z-index: 2;
  inset: 0;
  right: 0;
  bottom: auto;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 28px;
  opacity: 0;
  transform: translateY(18px);
  text-align: center;
  transition: opacity .30s ease, transform .30s ease;
}

.program-path-content h3 {
  margin: 0 0 14px;
  font-size: var(--type-card-title-sm);
  line-height: var(--leading-card);
}

.program-path-content p {
  max-width: 360px;
  margin: 0 auto;
  font-size: var(--type-body-small);
  line-height: var(--leading-small);
}

.program-path-card:hover>img,
.program-path-card:focus-visible>img {
  transform: scale(1.035);
}

.program-path-card:hover .program-path-overlay,
.program-path-card:focus-visible .program-path-overlay {
  opacity: 1;
  background: linear-gradient(to bottom,
      rgba(3, 52, 63, .18) 0%,
      rgba(3, 52, 63, .76) 44%,
      rgba(2, 51, 62, .98) 100%);
}

.program-path-card:hover .program-path-content,
.program-path-card:focus-visible .program-path-content {
  opacity: 1;
  transform: translateY(0);
}

/* Keep every route image distinct and crop it appropriately without changing card sizes. */
.program-path-card:nth-child(1)>img {
  object-position: 50% 48%;
}

.program-path-card:nth-child(2)>img {
  object-position: 42% 50%;
}

.program-path-card:nth-child(3)>img {
  object-position: 50% 48%;
}

.program-path-card:nth-child(4)>img {
  object-position: 50% 45%;
}

.program-path-card:nth-child(5)>img {
  object-position: 50% 28%;
}

.program-path-card:nth-child(6)>img {
  object-position: 50% 40%;
}

@media (hover: none) {

  /* On touch screens, reveal the same approved ombré and text because hover is unavailable. */
  .program-path-overlay {
    opacity: 1;
  }

  .program-path-content {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 650px) {
  .program-path-content {
    padding: 28px 22px;
  }

  .program-path-content h3 {
    margin-bottom: 10px;
    font-size: var(--type-card-title-sm);
  }

  .program-path-content p {
    font-size: var(--type-body-small);
    line-height: var(--leading-small);
  }
}


/* Final paths refinement — same base/hover behavior as the two main programme cards. */
.programs,
#programs-title-anchor,
#program-choice-grid,
#program-paths-grid {
  overflow-anchor: none;
}

.program-paths-grid {
  width: min(900px, 100%) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-inline: auto !important;
}

.program-path-card {
  position: relative !important;
  min-height: 170px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: var(--navy) !important;
  box-shadow: 0 7px 17px rgba(2, 45, 56, .16) !important;
  isolation: isolate !important;
  cursor: pointer !important;
}

.program-path-card>img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1) !important;
  transition: transform .35s ease !important;
}

/* The same permanent lower shade used by the main programme/diploma cards. */
.program-path-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 45, 56, .05) 16%, rgba(2, 45, 56, .84) 100%);
  pointer-events: none;
}

/* The same ombré revealed on hover. */
.program-path-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to bottom,
      rgba(3, 52, 63, .18) 0%,
      rgba(3, 52, 63, .76) 44%,
      rgba(2, 51, 62, .98) 100%);
  transition: opacity .30s ease;
  pointer-events: none;
}

/* Short title and description are visible before hovering. */
.program-path-base {
  position: absolute;
  z-index: 3;
  right: 20px;
  left: 20px;
  bottom: 15px;
  color: #fff;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .30s ease;
}

.program-path-base h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: var(--type-card-title-sm);
  line-height: var(--leading-card);
  text-shadow: 0 2px 7px rgba(0, 0, 0, .24);
}

.program-path-base p {
  max-width: 350px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .86);
  font-size: var(--type-caption);
  line-height: var(--leading-small);
}

/* Full copy appears in the centre on hover, exactly like the main cards. */
.program-path-hover {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 24px;
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .30s ease, transform .30s ease;
}

.program-path-hover h3 {
  max-width: 390px;
  margin: 0 0 10px;
  color: #fff;
  font-size: var(--type-card-title-sm);
  line-height: var(--leading-card);
}

.program-path-hover p {
  max-width: 360px;
  margin: 0;
  color: #fff;
  font-size: var(--type-caption);
  line-height: var(--leading-small);
}

.program-path-card:hover>img,
.program-path-card:focus-visible>img {
  transform: scale(1.035) !important;
}

.program-path-card:hover::after,
.program-path-card:focus-visible::after {
  opacity: 1;
}

.program-path-card:hover .program-path-base,
.program-path-card:focus-visible .program-path-base {
  opacity: 0;
  transform: translateY(12px);
}

.program-path-card:hover .program-path-hover,
.program-path-card:focus-visible .program-path-hover {
  opacity: 1;
  transform: translateY(0);
}

/* Crop each supplied image appropriately. */
.program-path-card:nth-child(1)>img {
  object-position: 50% 46% !important;
}

.program-path-card:nth-child(2)>img {
  object-position: 50% 42% !important;
}

.program-path-card:nth-child(3)>img {
  object-position: 50% 55% !important;
}

.program-path-card:nth-child(4)>img {
  object-position: 50% 48% !important;
}

.program-path-card:nth-child(5)>img {
  object-position: 50% 42% !important;
}

.program-path-card:nth-child(6)>img {
  object-position: 50% 48% !important;
}

@media (max-width: 900px) {
  .program-paths-grid {
    width: min(820px, 100%) !important;
    gap: 14px !important;
  }

  .program-path-card {
    min-height: 160px !important;
  }

  .program-path-base h3,
  .program-path-hover h3 {
    font-size: var(--type-card-title-sm);

    line-height: var(--leading-card);
  }

  .program-path-base p {
    font-size: var(--type-caption);

    line-height: var(--leading-small);
  }

  .program-path-hover p {
    font-size: var(--type-caption);

    line-height: var(--leading-small);
  }
}

@media (max-width: 650px) {
  .program-paths-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .program-path-card {
    min-height: 170px !important;
  }

  .program-path-hover {
    padding: 24px 20px;
  }
}

@media (hover: none) {
  .program-path-card::after {
    opacity: 0;
  }

  .program-path-base {
    display: block;
  }

  .program-path-hover {
    opacity: 0;
  }

  .program-path-card:focus-within::after {
    opacity: 1;
  }

  .program-path-card:focus-within .program-path-base {
    opacity: 0;
  }

  .program-path-card:focus-within .program-path-hover {
    opacity: 1;
    transform: none;
  }
}


/* Health track drill-down — same-page replacement, exact 401×554 desktop cards. */
[hidden] {
  display: none !important;
}

.programs-breadcrumb button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
  transition: color .2s ease;
}

.programs-breadcrumb button:hover {
  color: var(--gold-deep);
}

.programs-breadcrumb .breadcrumb-chevron {
  display: inline-block;
  direction: ltr;
  transform: none !important;
  color: var(--gold-deep);
  font-size: var(--type-breadcrumb);
  line-height: var(--leading-control);
}

.health-track-grid {
  position: relative;
  left: 50%;
  width: min(1247px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 401px));
  justify-content: center;
  gap: 22px;
  transform: translateX(-50%);
  margin-top: 22px;
}

.health-track-card {
  position: relative;
  width: 100%;
  max-width: 401px;
  height: 554px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(2, 45, 56, .18);
  isolation: isolate;
  cursor: pointer;
}

.health-track-card>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform .35s ease;
}

.health-track-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 45, 56, .03) 24%, rgba(2, 45, 56, .86) 100%);
  pointer-events: none;
}

.health-track-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to bottom,
      rgba(3, 52, 63, .16) 0%,
      rgba(3, 52, 63, .70) 44%,
      rgba(2, 51, 62, .98) 100%);
  transition: opacity .30s ease;
  pointer-events: none;
}

.health-track-base {
  position: absolute;
  z-index: 3;
  right: 30px;
  bottom: 40px;
  left: 30px;
  color: #fff;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .30s ease;
}

.health-track-base h3 {
  margin: 0 0 13px;
  color: #fff;

  line-height: var(--leading-card);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .25);

  font-size: var(--type-card-title-sm);
}

.health-track-base p {
  max-width: 330px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .90);


}

.health-track-hover {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 34px;
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .30s ease, transform .30s ease;
}

.health-track-hover h3 {
  max-width: 340px;
  margin: 0 0 17px;
  color: #fff;

  line-height: var(--leading-card);

  font-size: var(--type-card-title-sm);
}

.health-track-hover p {
  max-width: 330px;
  margin: 0;
  color: #fff;


}

.health-track-card:hover>img,
.health-track-card:focus-visible>img {
  transform: scale(1.035);
}

.health-track-card:hover::after,
.health-track-card:focus-visible::after {
  opacity: 1;
}

.health-track-card:hover .health-track-base,
.health-track-card:focus-visible .health-track-base {
  opacity: 0;
  transform: translateY(14px);
}

.health-track-card:hover .health-track-hover,
.health-track-card:focus-visible .health-track-hover {
  opacity: 1;
  transform: translateY(0);
}

/* Image crops matched to the supplied vertical covers. */
.health-track-card:nth-child(1)>img {
  object-position: 50% 50%;
}

.health-track-card:nth-child(2)>img {
  object-position: 50% 48%;
}

.health-track-card:nth-child(3)>img {
  object-position: 50% 48%;
}

@media (max-width: 1120px) {
  .health-track-grid {
    width: min(824px, calc(100vw - 42px));
    grid-template-columns: repeat(2, minmax(0, 401px));
  }
}

@media (max-width: 720px) {
  .health-track-grid {
    left: auto;
    width: 100%;
    grid-template-columns: minmax(0, 401px);
    transform: none;
  }

  .health-track-card {
    height: auto;
    aspect-ratio: 401 / 554;
  }

  .health-track-base {
    right: 24px;
    bottom: 30px;
    left: 24px;
  }

  .health-track-base h3 {
    font-size: var(--type-card-title-sm);

    line-height: var(--leading-card);
  }

  .health-track-base p {
    font-size: var(--type-caption);

    line-height: var(--leading-small);
  }

  .health-track-hover {
    padding: 34px 26px;
  }

  .health-track-hover h3 {
    font-size: var(--type-card-title-sm);

    line-height: var(--leading-card);
  }

  .health-track-hover p {
    font-size: var(--type-caption);

    line-height: var(--leading-small);
  }
}

@media (hover: none) {
  .health-track-card::after {
    opacity: 0;
  }

  .health-track-base {
    display: block;
  }

  .health-track-hover {
    opacity: 0;
  }

  .health-track-card:focus-within::after {
    opacity: 1;
  }

  .health-track-card:focus-within .health-track-base {
    opacity: 0;
  }

  .health-track-card:focus-within .health-track-hover {
    opacity: 1;
    transform: none;
  }
}


/* Compact health-track cards — approved width with a slightly shorter height. */
.health-track-grid {
  grid-template-columns: repeat(3, 320px) !important;
  justify-content: center !important;
  gap: 24px !important;
  width: 100%;
}

.health-track-card {
  width: 320px !important;
  max-width: 320px !important;
  height: 510px !important;
}

/* Keep the content readable inside the narrower frame. */
.health-track-base {
  right: 22px !important;
  left: 22px !important;
}


.health-track-hover {
  padding: 34px 24px !important;
}


@media (max-width: 1050px) {
  .health-track-grid {
    grid-template-columns: repeat(2, 320px) !important;
  }
}

@media (max-width: 720px) {
  .health-track-grid {
    grid-template-columns: minmax(0, 320px) !important;
    gap: 20px !important;
  }

  .health-track-card {
    width: min(320px, 100%) !important;
    max-width: 320px !important;
    height: 510px !important;
  }
}


/* Slightly larger programme-path cards for better visual consistency. */
@media (min-width: 901px) {
  .program-paths-grid {
    width: min(980px, 100%) !important;
    gap: 20px !important;
  }

  .program-path-card {
    min-height: 185px !important;
  }

  .program-path-base h3,
  .program-path-hover h3 {
    font-size: var(--type-card-title-sm);

    line-height: var(--leading-card);
  }

  .program-path-base p {
    font-size: var(--type-caption);

    line-height: var(--leading-small);
  }

  .program-path-hover p {
    font-size: var(--type-caption);

    line-height: var(--leading-small);
  }
}


/* Life-support course list — same-page fourth level, matching the supplied reference. */
.life-support-courses-grid {
  position: relative;
  left: 50%;
  width: min(1180px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 26px;
  margin-top: 30px;
  transform: translateX(-50%);
}

.life-support-course-card {
  position: relative;
  min-height: 286px;
  display: grid;
  grid-template-columns: 41% 59%;
  overflow: hidden;
  border: 1px solid rgba(2, 45, 56, .05);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 11px rgba(2, 45, 56, .17);
  direction: rtl;
  transition: transform .25s ease, box-shadow .25s ease;
}

.life-support-course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 24px rgba(2, 45, 56, .16);
}

.life-support-course-image {
  grid-column: 1;
  width: 100%;
  height: 100%;
  min-height: 286px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.life-support-course-content {
  grid-column: 2;
  position: relative;
  min-width: 0;
  padding: 25px 26px 24px;
  direction: rtl;
  text-align: center;
}

.life-support-course-content h3 {
  min-height: 52px;
  margin: 0 0 20px;
  color: var(--navy);
  font-size: var(--type-body-small);
  font-weight: var(--type-weight-bold);
  line-height: var(--leading-control);
}

.life-support-course-content h3 span[lang="en"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-family: var(--type-font);
  font-size: var(--type-body-small);
  font-weight: var(--type-weight-bold);

  line-height: var(--leading-control);
}

.life-support-course-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  align-items: center;
}

.course-fact {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  color: #234c57;
  font-size: var(--type-micro);
  line-height: var(--leading-control);
  text-align: right;
}

.course-fact img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
}

.course-fact-wide {
  grid-column: 1 / -1;
  justify-content: center;
  padding-left: 48px;
}

.life-support-course-arrow {
  position: absolute;
  left: 24px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font: 700 40px/1 "Almaarefa", sans-serif;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease;
}

.life-support-course-arrow:hover,
.life-support-course-arrow:focus-visible {
  transform: translateX(-3px);
  background: var(--gold-deep);
}

/* Breadcrumb arrows point to the left in RTL as requested. */
.programs-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.programs-breadcrumb .breadcrumb-chevron {
  direction: ltr !important;
  transform: none !important;
  color: var(--navy) !important;
}

@media (max-width: 1050px) {
  .life-support-courses-grid {
    width: min(760px, calc(100vw - 42px));
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .life-support-courses-grid {
    left: auto;
    width: 100%;
    gap: 20px;
    transform: none;
  }

  .life-support-course-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .life-support-course-image {
    grid-column: 1;
    grid-row: 1;
    height: 280px;
    min-height: 0;
  }

  .life-support-course-content {
    grid-column: 1;
    grid-row: 2;
    padding: 24px 20px 82px;
  }

  .life-support-course-content h3 {
    min-height: 0;
    font-size: var(--type-body-small);

    line-height: var(--leading-control);
  }

  .life-support-course-facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .course-fact,
  .course-fact-wide {
    grid-column: 1;
    justify-content: flex-start;
    padding-left: 0;
  }

  .life-support-course-arrow {
    left: 20px;
    bottom: 20px;
  }
}


/* Course-card alignment and supplied icon set */
.life-support-course-card {
  align-items: stretch;
}

.life-support-course-media {
  grid-column: 1;
  position: relative;
  min-width: 0;
  min-height: 286px;
  height: 100%;
  overflow: hidden;
  background: #e9eff0;
}

.life-support-course-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 286px !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0 !important;
}

.course-fact img {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  object-fit: contain;
}

.course-fact-wide img {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.life-support-course-arrow {
  width: 58px;
  height: 58px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent !important;
  color: transparent;
  box-shadow: none;
}

.life-support-course-arrow img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  transition: transform .22s ease, filter .22s ease;
}

.life-support-course-arrow:hover,
.life-support-course-arrow:focus-visible {
  transform: none;
  background: transparent !important;
}

.life-support-course-arrow:hover img,
.life-support-course-arrow:focus-visible img {
  transform: translateX(-3px) scale(1.04);
  filter: brightness(.96);
}

@media (max-width: 650px) {
  .life-support-course-media {
    grid-column: 1;
    grid-row: 1;
    min-height: 280px;
    height: 280px;
  }

  .life-support-course-image {
    min-height: 280px !important;
  }
}


:root {
  --teal: #318ca0;
  --teal-dark: #174f5b;
  --gold: #d3ae66;
  --text: #263348;
  --muted: #918f9a;
  --line: #dddddf;
  --danger: #ff4c55;
  --success: #1cac65;
  --panel-bg: #fafafa;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #ffffff;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #ffffff;

}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

/* التخطيط الأساسي */
.payment-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(440px, 1fr);
  direction: ltr;
  overflow: hidden;
  background: #ffffff;
}

/* الصورة الجانبية */
.payment-cover {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  direction: rtl;
  background: var(--teal-dark);
}

.payment-cover__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.payment-cover__message {
  position: absolute;
  inset-inline: 45px;
  top: 43%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: center;
}

.payment-cover__message h2 {
  margin: 0;
  color: #ffffff;


  text-shadow: 0 2px 9px rgba(0, 0, 0, .12);
}

.back-button {
  position: absolute;
  top: 48px;
  right: 47px;
  left: auto;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--gold);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
  cursor: pointer;
}

.back-button svg {
  width: 21px;
  height: 21px;
  display: block;
}

.back-button:hover {
  transform: translateY(-1px);
}

/* لوحة الدفع */
.payment-panel {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  direction: rtl;
  background: #ffffff;
}

.payment-header {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 42px;
  background: #ffffff;
}

.payment-header img {
  width: 222px;
  max-width: 100%;
  height: 68px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.payment-content {
  min-height: calc(100vh - 116px);
  display: flex;
  justify-content: center;
  padding: 43px 36px 23px;
  background: var(--panel-bg);
}

.payment-content__inner {
  width: min(100%, 420px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.payment-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 29px;
}

.payment-title svg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--gold);
}

.payment-title h1 {
  margin: 0;
  color: var(--teal);


}

/* الحقول */
.payment-form {
  width: 100%;
}

.form-field {
  min-width: 0;
  margin-bottom: 19px;
}

.form-field label {
  display: block;
  margin: 0 4px 10px;
  color: var(--text);


  text-align: right;
}

.form-field label span {
  color: var(--danger);
}

.form-field input {
  width: 100%;
  height: 47px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(31, 45, 59, .08);

  text-align: right;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input::placeholder {
  color: #a9a6b1;
  opacity: 1;
}

.form-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(49, 140, 160, .12);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.form-row input {
  direction: ltr;
  text-align: center;
}

/* الأزرار */
.pay-button,
.cancel-button {
  width: 100%;
  height: 42px;
  border-radius: 11px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.pay-button {
  margin-top: 3px;
  border: 1px solid var(--teal);
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 3px 7px rgba(49, 140, 160, .18);
}

.cancel-button {
  margin-top: 16px;
  border: 1.5px solid var(--danger);
  color: var(--danger);
  background: transparent;
}

.pay-button:hover,
.cancel-button:hover {
  transform: translateY(-1px);
}

.pay-button:hover {
  background: #287e91;
}

.cancel-button:hover {
  background: rgba(255, 76, 85, .04);
}

/* حفظ البطاقة */
.save-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 34px;
  color: var(--muted);

  cursor: pointer;
}

.save-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.save-card__check {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #aeb0b4;
  border-radius: 4px;
  background: #ffffff;
}

.save-card input:checked+.save-card__check {
  border-color: var(--success);
  background: var(--success);
}

.save-card input:checked+.save-card__check::after {
  content: "✓";
  color: #ffffff;
  font: 700 11px/1 "Almaarefa", sans-serif;
}

/* النص السفلي */
.payment-security {
  margin-top: auto;
  padding-top: 27px;
  color: #777480;


  text-align: center;
}

.payment-security strong {
  display: block;

}

.payment-security p {
  margin: 2px 0 7px;
}

.payment-security a {
  color: var(--teal);

  text-decoration: none;
}

.copyright {
  margin: 26px 0 0;
  color: #777480;

  text-align: center;
}

/* الشاشات المتوسطة */
@media (max-width: 1050px) {
  .payment-page {
    grid-template-columns: minmax(380px, .9fr) minmax(420px, 1.1fr);
  }

  .payment-cover__message h2 {
    font-size: var(--type-section-title);
  }
}

/* الجوال والتابلت */
@media (max-width: 820px) {
  .payment-page {
    display: block;
  }

  .payment-cover {
    min-height: 360px;
  }

  .payment-cover__message {
    top: 57%;
  }

  .payment-cover__message h2 {
    font-size: var(--type-section-title);
    line-height: var(--leading-heading);
  }

  .back-button {
    top: 24px;
    right: 24px;
    left: auto;
  }

  .payment-panel {
    min-height: auto;
  }

  .payment-header {
    min-height: 92px;
    justify-content: center;
    padding: 13px 20px;
  }

  .payment-header img {
    width: 205px;
    height: 62px;
  }

  .payment-content {
    min-height: auto;
    padding: 34px 22px 25px;
  }

  .payment-content__inner {
    width: min(100%, 470px);
  }

  .payment-title {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .payment-cover {
    min-height: 300px;
  }

  .payment-cover__message {
    inset-inline: 20px;
    top: 60%;
  }

  .payment-cover__message h2 {
    font-size: var(--type-section-title);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .payment-title h1 {
    font-size: var(--type-page-title);
  }

  .payment-content {
    padding-inline: 17px;
  }

  .save-card {
    font-size: var(--type-button);

    line-height: var(--leading-control);
  }
}


/* Revision 2 — stronger institute logo and reversed modern back arrow. */
.payment-header {
  min-height: 118px;
  padding: 15px 38px;
  border-bottom: 1px solid rgba(23, 79, 91, .06);
}

.payment-header img {
  width: 248px;
  height: 76px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
}

.back-button {
  width: 45px;
  height: 45px;
  color: #ffffff;
  background: #d3ae66;
}

.back-button svg {
  transform: none;
}

@media (max-width: 820px) {
  .payment-header img {
    width: 224px;
    height: 68px;
  }
}


/* Revision 3 — place the back arrow on the right side. */
.back-button {
  right: 47px;
  left: auto;
}

@media (max-width: 820px) {
  .back-button {
    right: 24px;
    left: auto;
  }
}


/* Revision 4 — move the complete back button to the left and keep save-card unchecked by default. */
.back-button {
  left: 47px !important;
  right: auto !important;
}

@media (max-width: 820px) {
  .back-button {
    left: 24px !important;
    right: auto !important;
  }
}

/* Revision 5 — zoomed-out payment form and larger cover statement. */

/* تكبير العبارة الموجودة على الصورة */
.payment-cover__message {
  inset-inline: 34px;
}


/* تصغير قسم معلومات الدفع كاملًا بشكل متوازن */
.payment-header {
  min-height: 96px;
  padding: 11px 34px;
}

.payment-header img {
  width: 210px;
  height: 64px;
}

.payment-content {
  min-height: calc(100vh - 96px);
  padding: 25px 32px 16px;
}

.payment-content__inner {
  width: min(100%, 365px);
}

.payment-title {
  gap: 9px;
  margin-bottom: 20px;
}

.payment-title svg {
  width: 34px;
  height: 34px;
}


.form-field {
  margin-bottom: 14px;
}

.form-field label {
  margin: 0 3px 7px;

}

.form-field input {
  height: 41px;
  padding-inline: 14px;
  border-radius: 11px;

}

.form-row {
  gap: 18px;
}

.pay-button,
.cancel-button {
  height: 37px;
  border-radius: 9px;

}

.pay-button {
  margin-top: 1px;
}

.cancel-button {
  margin-top: 11px;
}

.save-card {
  gap: 7px;
  margin-top: 23px;

}

.save-card__check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.payment-security {
  padding-top: 18px;

}


.copyright {
  margin-top: 17px;

}

@media (max-width: 1050px) {
  .payment-cover__message h2 {
    font-size: var(--type-section-title);
  }
}

@media (max-width: 820px) {
  .payment-cover__message h2 {
    font-size: var(--type-section-title);
  }

  .payment-header {
    min-height: 82px;
    padding: 9px 18px;
  }

  .payment-header img {
    width: 195px;
    height: 59px;
  }

  .payment-content {
    min-height: auto;
    padding: 27px 20px 21px;
  }

  .payment-content__inner {
    width: min(100%, 400px);
  }
}

@media (max-width: 480px) {
  .payment-cover__message h2 {
    font-size: var(--type-section-title);
    line-height: var(--leading-heading);
  }

  .payment-content__inner {
    width: min(100%, 360px);
  }
}

:root {
  --teal: #318ca0;
  --teal-dark: #174f5b;
  --gold: #d3ae66;
  --text: #263348;
  --muted: #918f9a;
  --line: #dddddf;
  --danger: #ff4c55;
  --success: #1cac65;
  --panel-bg: #fafafa;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #ffffff;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: var(--type-font);
}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

/* التخطيط الأساسي */
.payment-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(440px, 1fr);
  direction: ltr;
  overflow: hidden;
  background: #ffffff;
}

/* الصورة الجانبية */
.payment-cover {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  direction: rtl;
  background: var(--teal-dark);
}

.payment-cover__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.payment-cover__message {
  position: absolute;
  inset-inline: 45px;
  top: 43%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: center;
}

.payment-cover__message h2 {
  margin: 0;
  color: #ffffff;

  font-weight: var(--type-weight-bold);

  text-shadow: 0 2px 9px rgba(0, 0, 0, .12);
}

.back-button {
  position: absolute;
  top: 48px;
  right: 47px;
  left: auto;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--gold);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
  cursor: pointer;
}

.back-button svg {
  width: 21px;
  height: 21px;
  display: block;
}

.back-button:hover {
  transform: translateY(-1px);
}

/* لوحة الدفع */
.payment-panel {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  direction: rtl;
  background: #ffffff;
}

.payment-header {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 42px;
  background: #ffffff;
}

.payment-header img {
  width: 222px;
  max-width: 100%;
  height: 68px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.payment-content {
  min-height: calc(100vh - 116px);
  display: flex;
  justify-content: center;
  padding: 43px 36px 23px;
  background: var(--panel-bg);
}

.payment-content__inner {
  width: min(100%, 420px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.payment-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 29px;
}

.payment-title svg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--gold);
}

.payment-title h1 {
  margin: 0;
  color: var(--teal);

  font-weight: var(--type-weight-bold);
  line-height: var(--leading-heading);
}

/* الحقول */
.payment-form {
  width: 100%;
}

.form-field {
  min-width: 0;
  margin-bottom: 19px;
}

.form-field label {
  display: block;
  margin: 0 4px 10px;
  color: var(--text);

  font-weight: var(--type-weight-bold);
  text-align: right;
}

.form-field label span {
  color: var(--danger);
}

.form-field input {
  width: 100%;
  height: 47px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(31, 45, 59, .08);

  text-align: right;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input::placeholder {
  color: #a9a6b1;
  opacity: 1;
}

.form-field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(49, 140, 160, .12);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.form-row input {
  direction: ltr;
  text-align: center;
}

/* الأزرار */
.pay-button,
.cancel-button {
  width: 100%;
  height: 42px;
  border-radius: 11px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.pay-button {
  margin-top: 3px;
  border: 1px solid var(--teal);
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 3px 7px rgba(49, 140, 160, .18);
}

.cancel-button {
  margin-top: 16px;
  border: 1.5px solid var(--danger);
  color: var(--danger);
  background: transparent;
}

.pay-button:hover,
.cancel-button:hover {
  transform: translateY(-1px);
}

.pay-button:hover {
  background: #287e91;
}

.cancel-button:hover {
  background: rgba(255, 76, 85, .04);
}

/* حفظ البطاقة */
.save-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 34px;
  color: var(--muted);

  cursor: pointer;
}

.save-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.save-card__check {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #aeb0b4;
  border-radius: 4px;
  background: #ffffff;
}

.save-card input:checked+.save-card__check {
  border-color: var(--success);
  background: var(--success);
}

.save-card input:checked+.save-card__check::after {
  content: "✓";
  color: #ffffff;
  font: 700 11px/1 "Almaarefa", sans-serif;
}

/* النص السفلي */
.payment-security {
  margin-top: auto;
  padding-top: 27px;
  color: #777480;

  line-height: var(--leading-control);
  text-align: center;
}

.payment-security strong {
  display: block;
  font-size: var(--type-micro);
}

.payment-security p {
  margin: 2px 0 7px;
}

.payment-security a {
  color: var(--teal);
  font-size: var(--type-micro);
  text-decoration: none;
}

.copyright {
  margin: 26px 0 0;
  color: #777480;

  text-align: center;
}

/* الشاشات المتوسطة */
@media (max-width: 1050px) {
  .payment-page {
    grid-template-columns: minmax(380px, .9fr) minmax(420px, 1.1fr);
  }

  .payment-cover__message h2 {
    font-size: var(--type-section-title);
  }
}

/* الجوال والتابلت */
@media (max-width: 820px) {
  .payment-page {
    display: block;
  }

  .payment-cover {
    min-height: 360px;
  }

  .payment-cover__message {
    top: 57%;
  }

  .payment-cover__message h2 {
    font-size: var(--type-section-title);
    line-height: var(--leading-heading);
  }

  .back-button {
    top: 24px;
    right: 24px;
    left: auto;
  }

  .payment-panel {
    min-height: auto;
  }

  .payment-header {
    min-height: 92px;
    justify-content: center;
    padding: 13px 20px;
  }

  .payment-header img {
    width: 205px;
    height: 62px;
  }

  .payment-content {
    min-height: auto;
    padding: 34px 22px 25px;
  }

  .payment-content__inner {
    width: min(100%, 470px);
  }

  .payment-title {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .payment-cover {
    min-height: 300px;
  }

  .payment-cover__message {
    inset-inline: 20px;
    top: 60%;
  }

  .payment-cover__message h2 {
    font-size: var(--type-section-title);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .payment-title h1 {
    font-size: var(--type-page-title);
  }

  .payment-content {
    padding-inline: 17px;
  }

  .save-card {
    font-size: var(--type-button);

    line-height: var(--leading-control);
  }
}


/* Revision 2 — stronger institute logo and reversed modern back arrow. */
.payment-header {
  min-height: 118px;
  padding: 15px 38px;
  border-bottom: 1px solid rgba(23, 79, 91, .06);
}

.payment-header img {
  width: 248px;
  height: 76px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
}

.back-button {
  width: 45px;
  height: 45px;
  color: #ffffff;
  background: #d3ae66;
}

.back-button svg {
  transform: none;
}

@media (max-width: 820px) {
  .payment-header img {
    width: 224px;
    height: 68px;
  }
}


/* Revision 3 — place the back arrow on the right side. */
.back-button {
  right: 47px;
  left: auto;
}

@media (max-width: 820px) {
  .back-button {
    right: 24px;
    left: auto;
  }
}


/* Revision 4 — move the complete back button to the left. */
.back-button {
  left: 47px !important;
  right: auto !important;
}

@media (max-width: 820px) {
  .back-button {
    left: 24px !important;
    right: auto !important;
  }
}


/* Revision 5 — zoomed-out payment form and larger cover statement. */

/* تكبير العبارة الموجودة على الصورة */
.payment-cover__message {
  inset-inline: 34px;
}

.payment-cover__message h2 {
  font-size: var(--type-section-title);
  line-height: var(--leading-heading);
}

/* تصغير قسم معلومات الدفع كاملًا بشكل متوازن */
.payment-header {
  min-height: 96px;
  padding: 11px 34px;
}

.payment-header img {
  width: 210px;
  height: 64px;
}

.payment-content {
  min-height: calc(100vh - 96px);
  padding: 25px 32px 16px;
}

.payment-content__inner {
  width: min(100%, 365px);
}

.payment-title {
  gap: 9px;
  margin-bottom: 20px;
}

.payment-title svg {
  width: 34px;
  height: 34px;
}

.payment-title h1 {
  font-size: var(--type-page-title);
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  margin: 0 3px 7px;
  font-size: var(--type-label);
}

.form-field input {
  height: 41px;
  padding-inline: 14px;
  border-radius: 11px;
  font-size: var(--type-input);
}

.form-row {
  gap: 18px;
}

.pay-button,
.cancel-button {
  height: 37px;
  border-radius: 9px;
  font-size: var(--type-button);

  line-height: var(--leading-control);
}

.pay-button {
  margin-top: 1px;
}

.cancel-button {
  margin-top: 11px;
}

.save-card {
  gap: 7px;
  margin-top: 23px;
  font-size: var(--type-button);

  line-height: var(--leading-control);
}

.save-card__check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.payment-security {
  padding-top: 18px;
  font-size: var(--type-micro);
}

.payment-security strong,
.payment-security a {
  font-size: var(--type-micro);
}

.copyright {
  margin-top: 17px;
  font-size: var(--type-micro);
}

@media (max-width: 1050px) {
  .payment-cover__message h2 {
    font-size: var(--type-section-title);
  }
}

@media (max-width: 820px) {
  .payment-cover__message h2 {
    font-size: var(--type-section-title);
  }

  .payment-header {
    min-height: 82px;
    padding: 9px 18px;
  }

  .payment-header img {
    width: 195px;
    height: 59px;
  }

  .payment-content {
    min-height: auto;
    padding: 27px 20px 21px;
  }

  .payment-content__inner {
    width: min(100%, 400px);
  }
}

@media (max-width: 480px) {
  .payment-cover__message h2 {
    font-size: var(--type-section-title);
    line-height: var(--leading-heading);
  }

  .payment-content__inner {
    width: min(100%, 360px);
  }
}

/* OBA programme inside the health-track international professional qualification path. */
.professional-track-grid {
  grid-template-columns: minmax(0, 320px) !important;
}

.professional-program-card>img {
  object-position: center 46%;
}

.professional-program-card h3 span[lang="en"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-family: var(--type-font);
  font-size: .73em;
  line-height: var(--leading-control);
}

@media (max-width: 720px) {
  .professional-track-grid {
    grid-template-columns: minmax(0, 320px) !important;
  }
}

/* Actuarial programme inside the administrative and financial path. */
.administrative-track-grid {
  grid-template-columns: minmax(0, 320px) !important;
}

.administrative-program-card>img {
  object-position: center;
}

@media (max-width: 720px) {
  .administrative-track-grid {
    grid-template-columns: minmax(0, 320px) !important;
  }
}

.email-icon {
  color: #aa8209;
  font-size: var(--type-subsection-title);
  text-decoration: none;
}

.email-icon:hover {
  color: #cdb180;
}

.email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aa8209;
  text-decoration: none;
}

.email-icon svg {
  width: 24px;
  height: 24px;
}

.email-icon:hover {
  color: #cdb180;
}

.director-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 8px auto 0;
  color: #aa8209;
  font-size: var(--type-button);
  text-decoration: none;
  direction: ltr;
}

.director-email svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.director-email:hover {
  color: #cdb180;
}

.director-signature .email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  color: #aa8209;
  font-size: var(--type-card-title);
  text-decoration: none;
  line-height: var(--leading-card);
}

.director-signature .email-icon i {
  color: inherit;
  font-size: inherit;
}

.director-signature .email-icon:hover {
  color: #cdb180;
}

.director-email {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: var(--type-micro);
  font-weight: var(--type-weight-regular);
  line-height: var(--leading-control);
  color: #aa8209;
  text-decoration: none;
  direction: ltr;
  white-space: nowrap;
}

.director-email i {
  font-size: var(--type-micro);
  color: inherit;
}

.director-email:hover {
  color: #cdb180;
}

/* =========================================================
   إصلاح صورة غلاف صفحات البرامج فقط — مطابق لمقاس OBA
   لا يغيّر هيرو الصفحة الرئيسية أو أي قسم آخر
   ========================================================= */
html body.program-detail-page main section.program-detail-hero {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1440 / 441 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html body.program-detail-page main section.program-detail-hero>img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  transition: none !important;
  filter: none !important;
}

/* Revision 27 — director email under the manager name */
.director-signature .director-email {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-end !important;
  gap: 6px !important;
  width: fit-content !important;
  margin: 7px 0 0 !important;
  direction: ltr !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: var(--leading-control);
}

.director-signature .director-email-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  color: var(--gold-deep, #c7953b) !important;
}

.director-signature .director-email-icon svg {
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.director-signature .director-email-text {
  color: #153f5c !important;
  font-size: var(--type-caption);
  font-weight: var(--type-weight-regular);
  letter-spacing: 0 !important;

  line-height: var(--leading-caption);
}

.director-signature .director-email:hover .director-email-text {
  color: #153f5c !important;
}

.director-signature .director-email:hover .director-email-icon {
  color: #aa8209 !important;
}

@media (max-width: 650px) {
  .director-signature .director-email {
    align-self: center !important;
  }

  .director-signature .director-email-text {
    font-size: var(--type-caption);

    line-height: var(--leading-caption);
  }

  .director-signature .director-email-icon svg {
    width: 15px !important;
    height: 15px !important;
  }
}


/* Revision 28 — align the director email directly below the manager name */
.director-signature .director-email {
  align-self: center !important;
  margin: 7px auto 0 !important;
  justify-content: center !important;
}

@media (max-width: 650px) {
  .director-signature .director-email {
    align-self: center !important;
    margin-inline: auto !important;
  }
}


/* =========================================================
   2026-08-17 — requested horizontal track presentation only
   Names, images, links and hover behavior remain unchanged.
   ========================================================= */
@media (min-width: 901px) {
  .program-paths-grid {
    width: min(1080px, 100%) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .program-path-card {
    min-height: 158px !important;
    border-radius: 13px !important;
  }

  .program-path-base {
    right: 16px !important;
    left: 16px !important;
    bottom: 13px !important;
  }

  .program-path-base h3,
  .program-path-hover h3 {
    font-size: var(--type-card-title-sm);
    line-height: var(--leading-card);
  }

  .program-path-base p {
    font-size: var(--type-caption);
    line-height: var(--leading-small);
  }

  .program-path-hover {
    padding: 22px 18px !important;
  }

  .program-path-hover p {
    font-size: var(--type-caption);
    line-height: var(--leading-small);
  }
}

/* Health sub-tracks were vertical; convert them to the same horizontal visual language. */
.health-track-grid {
  position: relative !important;
  left: auto !important;
  width: min(1110px, 100%) !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-content: center !important;
  gap: 18px !important;
  transform: none !important;
  margin: 22px auto 0 !important;
}

.health-track-card {
  width: 100% !important;
  max-width: none !important;
  height: 220px !important;
  min-height: 220px !important;
  border-radius: 14px !important;
}

.health-track-base {
  right: 20px !important;
  left: 20px !important;
  bottom: 18px !important;
}

.health-track-base h3 {
  margin-bottom: 6px !important;
  font-size: var(--type-card-title-sm);
  line-height: var(--leading-card);
}

.health-track-base p {
  font-size: var(--type-caption);
  line-height: var(--leading-small);
}

.health-track-hover {
  padding: 24px 22px !important;
}

.health-track-hover h3 {
  margin-bottom: 10px !important;
  font-size: var(--type-card-title-sm);
  line-height: var(--leading-card);
}

.health-track-hover p {
  font-size: var(--type-caption);
  line-height: var(--leading-small);
}

@media (max-width: 980px) {
  .program-paths-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .health-track-grid {
    width: min(760px, 100%) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .health-track-card {
    height: 210px !important;
    min-height: 210px !important;
  }
}

@media (max-width: 650px) {

  .program-paths-grid,
  .health-track-grid {
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 13px !important;
  }

  .program-path-card {
    min-height: 150px !important;
  }

  .health-track-card {
    width: 100% !important;
    height: 195px !important;
    min-height: 195px !important;
    aspect-ratio: auto !important;
  }

  .health-track-base h3,
  .health-track-hover h3 {
    font-size: var(--type-card-title-sm);
    line-height: var(--leading-card);
  }

  .health-track-base p,
  .health-track-hover p {
    font-size: var(--type-caption);
    line-height: var(--leading-small);
  }
}


/* Final guard: no underline indicator beneath header navigation links. */
.site-header .desktop-nav a::after {
  content: none !important;
  display: none !important;
}