/* =========================================================
   Shared site shell
   Header: exact OBA programme-page header
   Footer: exact index.html footer
   Font family and sizing are preserved from the supplied project.
   ========================================================= */

@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;
  font-family:var(--type-font);
  -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%; }
.container {
  width: min(var(--container), calc(100% - 42px));
  margin-inline: auto;
}

/* Exact white header used by the OBA page. It is scoped so index.html keeps its own header unchanged. */
.site-header.program-white-header {
  position: relative !important;
  inset: auto !important;
  z-index: 45 !important;
  background: #ffffff !important;
  color: #022d38 !important;
  box-shadow: 0 1px 0 rgba(2,45,56,.08) !important;
}

.site-header.program-white-header .header-inner {
  min-height: 96px !important;
  display: grid !important;
  grid-template-columns: 235px 1fr auto !important;
  align-items: center !important;
  gap: 28px !important;
}

.site-header.program-white-header .brand {
  align-self: center !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
}

.site-header.program-white-header .brand img {
  display: block !important;
  width: 210px !important;
  height: 58px !important;
  object-fit: contain !important;
  transform: none !important;
  filter: none !important;
}

.site-header.program-white-header .desktop-nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 31px !important;
  font-size:var(--type-nav);
}

.site-header.program-white-header .desktop-nav a {
  position: relative !important;
  padding: 14px 0 !important;
  color: #264c56 !important;
  font-size:var(--type-nav);
  white-space: nowrap !important;
}

.site-header.program-white-header .desktop-nav a::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 8px !important;
  width: 0 !important;
  height: 2px !important;
  background: #264c56 !important;
  transition: width .25s ease !important;
}

.site-header.program-white-header .desktop-nav a:hover,
.site-header.program-white-header .desktop-nav a.active {
  color: #022d38 !important;
}

.site-header.program-white-header .desktop-nav a:hover::after,
.site-header.program-white-header .desktop-nav a.active::after {
  width: 100% !important;
}

.site-header.program-white-header .account-button {
  display: inline-flex !important;
  min-height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: #2b8ba0 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,.16) !important;

  font-weight:var(--type-weight-bold);
  white-space: nowrap !important;
}

.site-header.program-white-header .mobile-menu {
  display: none !important;
  position: relative !important;
}

.site-header.program-white-header .mobile-menu summary {
  width: 43px !important;
  height: 43px !important;
  display: grid !important;
  place-content: center !important;
  gap: 5px !important;
  list-style: none !important;
  border: 1px solid rgba(2,45,56,.2) !important;
  border-radius: 8px !important;
  background: #fff !important;
  cursor: pointer !important;
}

.site-header.program-white-header .mobile-menu summary::-webkit-details-marker {
  display: none !important;
}

.site-header.program-white-header .mobile-menu summary i {
  width: 20px !important;
  height: 2px !important;
  border-radius: 3px !important;
  background: #022d38 !important;
}

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

.site-header.program-white-header .mobile-panel a {
  padding: 11px 13px !important;
  border-radius: 8px !important;
}

.site-header.program-white-header .mobile-panel a:hover {
  background: #eff4f4 !important;
}

.site-header.program-white-header .mobile-panel .mobile-account {
  margin-top: 7px !important;
  color: #fff !important;
  background: #022d38 !important;
  text-align: center !important;
}

/* Exact footer presentation from index.html, centralized for every site page. */
.site-footer {
  position: relative !important;
  min-height: 0 !important;
  padding: 34px 0 8px !important;
  overflow: visible !important;
  background: transparent !important;
  color: var(--navy) !important;
  isolation: isolate !important;
  border-top: 1px solid rgba(205, 177, 128, .18) !important;
  margin-top: 0 !important;
}
.site-footer::before {
  content: "" !important;
  position: absolute !important;
  z-index: 1 !important;
  top: 22px !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  background: #fff !important;
  pointer-events: none !important;
}
.footer-content {
  position: relative !important;
  z-index: 3 !important;
  display: grid !important;
  grid-template-columns: 1.15fr 1fr 1fr 1.18fr .86fr !important;
  align-items: start !important;
  gap: 28px !important;
  padding: 0 !important;
}
.footer-brand {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
.footer-brand img {
  width: 176px !important;
  height: 104px !important;
  object-fit: contain !important;
  filter: none !important;
}
.footer-column,
.footer-social {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
.footer-column h3,
.footer-social h3 {
  margin: 0 0 7px !important;
  color: var(--navy) !important;
  font-size:var(--type-body-lg);
  line-height:var(--leading-body);
}
.footer-column a,
.footer-column span {
  color: #3f5a62 !important;
  font-size:var(--type-footer);
  line-height:var(--leading-caption);
}
.footer-column a:hover { color: var(--gold-deep) !important; }
.footer-column a + a { margin-top: 2px !important; }
.footer-social > div { display: flex !important; gap: 10px !important; }
.footer-social a {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(2, 45, 56, .16) !important;
  border-radius: 12px !important;
  color: var(--navy) !important;
  background: #f7fafb !important;
  box-shadow: 0 2px 6px rgba(2, 45, 56, .05) !important;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease !important;
}
.footer-social a:hover {
  color: #ffffff !important;
  border-color: var(--gold-deep) !important;
  background: var(--gold-deep) !important;
  transform: translateY(-1px) !important;
}
.footer-social svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}
.footer-bottom {
  position: relative !important;
  z-index: 4 !important;
  width: min(var(--container), calc(100% - 42px)) !important;
  margin: 6px auto 0 !important;
  padding: 2px 0 0 !important;
  border-top: 0 !important;
  text-align: center !important;
  color: #65797e !important;
  font-size:var(--type-footer);
  line-height:var(--leading-caption);
}

@media (max-width: 1100px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr) !important;
    row-gap: 20px !important;
  }
  .footer-social { grid-column: auto !important; }
}

@media (max-width: 980px) {
  .site-header.program-white-header .header-inner {
    grid-template-columns: 200px 1fr !important;
    gap: 18px !important;
  }
  .site-header.program-white-header .account-button { display: none !important; }
  .site-header.program-white-header .desktop-nav {
    gap: 18px !important;
    justify-content: flex-end !important;
  }
  .site-header.program-white-header .desktop-nav a { font-size:var(--type-nav); }
}


@media (max-width: 720px) {
  .site-header.program-white-header .header-inner {
    min-height: 76px !important;
    grid-template-columns: 1fr auto !important;
    gap: 12px !important;
  }
  .site-header.program-white-header .brand img {
    width: 172px !important;
    height: 48px !important;
  }
  .site-header.program-white-header .desktop-nav,
  .site-header.program-white-header .account-button { display: none !important; }
  .site-header.program-white-header .mobile-menu { display: block !important; }
}

@media (max-width: 650px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .site-footer { padding: 28px 0 14px !important; }
  .site-footer::before { top: 18px !important; }
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .footer-brand { justify-content: center !important; }
  .footer-brand img {
    width: 176px !important;
    height: 104px !important;
  }
  .footer-column,
  .footer-social {
    align-items: center !important;
    text-align: center !important;
  }
  .footer-social a {
    width: 48px !important;
    height: 48px !important;
  }
  .footer-social img {
    width: 24px !important;
    height: 24px !important;
  }
  .footer-bottom {
    width: calc(100% - 28px) !important;
    margin-top: 10px !important;
  }
}


/* =========================================================
   2026-08-17 — requested header actions + compact footer
   Scoped to the shared shell so page content is unaffected.
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: max-content;
}

.certificate-button,
.language-switch select {
  min-height: 38px;
  border-radius: 999px;
  font-family:var(--type-font);
  font-size:var(--type-button);
  font-weight:var(--type-weight-bold);
}

.certificate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border: 1px solid rgba(205, 177, 128, .95);
  color: #ffffff;
  background: rgba(2, 45, 56, .16);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.certificate-button:hover {
  color: #022d38;
  background: #cdb180;
  transform: translateY(-1px);
}

.language-switch {
  display: inline-flex;
  align-items: center;
}

.language-switch select {
  min-width: 58px;
  padding: 6px 25px 6px 10px;
  border: 1px solid rgba(255, 255, 255, .62);
  outline: 0;
  color: #ffffff;
  background-color: rgba(2, 45, 56, .14);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: 14px 50%, 10px 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  appearance: none;
  cursor: pointer;
}

.language-switch select option { color: #022d38; background: #fff; }

.site-header.program-white-header .header-inner {
  grid-template-columns: 215px 1fr auto !important;
  gap: 20px !important;
}

.site-header.program-white-header .header-actions { gap: 8px; }
.site-header.program-white-header .certificate-button {
  color: #264c56 !important;
  background: #ffffff !important;
  border-color: rgba(205, 177, 128, .95) !important;
  box-shadow: 0 2px 8px rgba(2,45,56,.07) !important;
}
.site-header.program-white-header .certificate-button:hover {
  color: #022d38 !important;
  background: #f7f0e4 !important;
}
.site-header.program-white-header .language-switch select {
  color: #264c56 !important;
  background-color: #ffffff !important;
  border-color: rgba(2,45,56,.16) !important;
}
.site-header.program-white-header .account-button {
  padding-inline: 16px !important;
  font-size:var(--type-button);
}

.mobile-certificate {
  margin-top: 6px !important;
  color: #022d38 !important;
  border: 1px solid rgba(205,177,128,.72) !important;
  text-align: center !important;
}
.mobile-language-switch {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  padding: 8px 11px;
  border-top: 1px solid rgba(2,45,56,.08);
  color: #506b72;
  font-size:var(--type-caption);
}
.mobile-language-switch select {
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid rgba(2,45,56,.16);
  border-radius: 8px;
  color: #022d38;
  background: #fff;
  font-family: inherit;
}

/* Footer: quick-links column removed; retain the approved footer identity. */
.footer-content {
  grid-template-columns: 1.05fr 1fr 1.38fr .82fr !important;
  gap: 34px !important;
}
.footer-brand img {
  width: 214px !important;
  height: 126px !important;
}
.footer-social > div { gap: 11px !important; }
.footer-social a {
  width: 42px !important;
  height: 42px !important;
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease !important;
}
.footer-social a:hover {
  transform: translateY(-2px) !important;
  border-color: var(--gold-deep) !important;
  color: #fff !important;
  background: var(--gold-deep) !important;
  box-shadow: 0 5px 12px rgba(199,149,59,.18) !important;
}
.footer-social svg {
  width: 20px !important;
  height: 20px !important;
}

@media (max-width: 1180px) {
  .site-header.program-white-header .header-inner {
    grid-template-columns: 190px 1fr auto !important;
    gap: 14px !important;
  }
  .site-header.program-white-header .brand img {
    width: 184px !important;
  }
  .site-header.program-white-header .desktop-nav { gap: 18px !important; }
  .site-header.program-white-header .desktop-nav a { font-size:var(--type-nav); }
  .certificate-button { padding-inline: 12px; font-size:var(--type-button); }
  .site-header.program-white-header .account-button { padding-inline: 12px !important; font-size:var(--type-button); }
}

@media (max-width: 1040px) {
  .site-header.program-white-header .desktop-nav,
  .site-header.program-white-header .header-actions { display: none !important; }
  .site-header.program-white-header .mobile-menu { display: block !important; }
  .site-header.program-white-header .header-inner {
    grid-template-columns: 1fr auto !important;
  }
}

@media (max-width: 1100px) {
  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 650px) {
  .footer-content { grid-template-columns: 1fr !important; gap: 16px !important; }
  .footer-brand img { width: 205px !important; height: 120px !important; }
  .footer-social a { width: 40px !important; height: 40px !important; }
  .footer-social svg { width: 19px !important; height: 19px !important; }
}

/* Hide the expanded desktop action group when the landing page switches to its mobile menu. */
@media (max-width: 900px) {
  .site-header:not(.program-white-header) .header-actions { display: none !important; }
}

/* Keep the expanded header actions inside the viewport on wide desktop screens. */
.site-header .header-inner {
  width: min(1360px, calc(100% - 40px)) !important;
}

/* The added certificate/language actions need a little more room than the original header. */
@media (max-width: 1180px) {
  .site-header .desktop-nav,
  .site-header .header-actions { display: none !important; }
  .site-header .mobile-menu { display: block !important; }
  .site-header .header-inner {
    grid-template-columns: 1fr auto !important;
    width: min(var(--container), calc(100% - 42px)) !important;
  }
}

@media (max-width: 650px) {
  .site-header .header-inner { width: calc(100% - 28px) !important; }
}

@media (min-width: 1181px) {
  .site-header:not(.program-white-header) .desktop-nav {
    gap: 20px !important;
    font-size:var(--type-nav);
  }
  .site-header:not(.program-white-header) .header-actions { gap: 7px !important; }
  .site-header:not(.program-white-header) .account-button { padding-inline: 14px !important; font-size:var(--type-button); }
  .site-header:not(.program-white-header) .certificate-button { padding-inline: 12px !important; font-size:var(--type-button); }
}

@media (max-width: 1180px) {
  .site-header.program-white-header .desktop-nav,
  .site-header.program-white-header .header-actions { display: none !important; }
  .site-header.program-white-header .mobile-menu { display: block !important; }
}

/* Final responsive guard: prevent the white shared header from forcing horizontal scroll just below desktop width. */
@media (max-width: 1199px) {
  .site-header.program-white-header .desktop-nav,
  .site-header.program-white-header .header-actions {
    display: none !important;
  }

  .site-header.program-white-header .mobile-menu {
    display: block !important;
  }
}
