.site-header .brand {
  flex: 0 0 auto;
  align-self: center;
}

.site-header .brand img.brand-reference-logo {
  display: block;
  width: 132px !important;
  height: 141px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  object-position: center;
}

.site-header .nav-wrap {
  min-height: 146px;
}

.site-footer .footer-about img.footer-logo {
  display: block;
  width: 128px !important;
  height: auto !important;
  max-width: 100%;
  max-height: none !important;
  margin: 0 0 10px;
  filter: brightness(0) invert(1);
  opacity: .98;
  object-fit: contain;
}

.afnan-content-page {
  padding-bottom: 72px;
  background: #fbfaf6;
  color: #102d40;
}

.afnan-page-hero {
  padding: 72px 0 68px;
  background:
    radial-gradient(circle at 18% 25%, rgba(214, 170, 55, .16), transparent 28%),
    linear-gradient(135deg, #075d47, #0a7658);
  color: #fff;
  text-align: center;
}

.afnan-page-hero .wrap { max-width: 850px; }
.afnan-page-kicker { display: inline-block; margin-bottom: 12px; color: #dcb64d; font-size: 15px; font-weight: 800; }
.afnan-page-hero h1 { margin: 0 0 16px; color: #fff; font-size: clamp(34px, 5vw, 58px); line-height: 1.2; }
.afnan-page-hero p { max-width: 760px; margin: 0 auto; color: rgba(255,255,255,.84); font-size: 18px; line-height: 1.9; }

.afnan-page-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; padding-top: 70px; padding-bottom: 38px; }
.afnan-page-section h2,
.afnan-page-cta h2,
.afnan-contact-help h2 { margin: 0; color: #102d40; font-size: clamp(26px, 3.5vw, 40px); line-height: 1.35; }
.afnan-page-section > p { margin: 0; color: #5f6d77; font-size: 17px; line-height: 2; }

.afnan-value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 24px; padding-bottom: 56px; }
.afnan-value-grid article { padding: 26px 22px; border: 1px solid #e1e8e4; border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(16,45,64,.06); }
.afnan-value-grid article > span { display: grid; width: 42px; height: 42px; margin-bottom: 18px; place-items: center; border-radius: 13px; background: #eaf5f1; color: #087855; font-size: 21px; font-weight: 800; }
.afnan-value-grid h3 { margin: 0 0 9px; color: #102d40; font-size: 19px; }
.afnan-value-grid p { margin: 0; color: #6a7780; line-height: 1.8; }

.afnan-stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; border-radius: 20px; background: #102d40; color: #fff; }
.afnan-stat-strip div { padding: 26px 18px; text-align: center; }
.afnan-stat-strip div + div { border-right: 1px solid rgba(255,255,255,.12); }
.afnan-stat-strip strong,
.afnan-stat-strip span { display: block; }
.afnan-stat-strip strong { margin-bottom: 5px; color: #e0ba51; font-size: 30px; }
.afnan-stat-strip span { color: rgba(255,255,255,.76); }

.afnan-page-cta,
.afnan-contact-help { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 44px; padding: 34px 38px; border: 1px solid #e6dfcb; border-radius: 20px; background: #fff9e9; }
.afnan-page-button { display: inline-flex; min-height: 52px; padding: 0 26px; align-items: center; justify-content: center; border-radius: 13px; background: #087855; color: #fff !important; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.afnan-page-button:hover { background: #065f45; transform: translateY(-1px); }

.afnan-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; padding-top: 62px; padding-bottom: 18px; }
.afnan-contact-card { display: flex; min-height: 235px; padding: 28px; flex-direction: column; align-items: flex-start; border: 1px solid #dfe7e3; border-radius: 19px; background: #fff; color: #102d40 !important; text-decoration: none !important; box-shadow: 0 14px 40px rgba(16,45,64,.06); }
a.afnan-contact-card:hover { border-color: #9dc8b8; transform: translateY(-3px); }
.afnan-contact-icon { display: grid; width: 48px; height: 48px; margin-bottom: 22px; place-items: center; border-radius: 14px; background: #e9f5f0; color: #087855; font-size: 22px; }
.afnan-contact-card small { margin-bottom: 7px; color: #73808a; font-size: 14px; }
.afnan-contact-card strong { margin-bottom: 10px; color: #102d40; font-size: 21px; }
.afnan-contact-card em { margin-top: auto; color: #697780; font-style: normal; line-height: 1.7; }
.afnan-contact-help p { margin: 10px 0 0; color: #6a7780; font-size: 16px; }

.afnan-about-page { overflow: hidden; }

.afnan-about-hero {
  position: relative;
  display: grid;
  min-height: 430px;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  color: #fff;
}

.afnan-about-hero > img {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 42%;
  animation: afnanHeroDrift 18s ease-in-out infinite alternate;
}

.afnan-about-hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 45, 36, .65), rgba(4, 68, 52, .84)),
    linear-gradient(0deg, rgba(4, 39, 33, .35), transparent 55%);
}

.afnan-about-hero-copy { text-align: center; }
.afnan-about-hero-copy .afnan-page-kicker { color: #f2c85f; }
.afnan-about-hero-copy h1 { margin: 0 0 14px; color: #fff; font-size: clamp(44px, 6vw, 72px); line-height: 1.15; text-shadow: 0 10px 30px rgba(0,0,0,.18); }
.afnan-about-hero-copy p { max-width: 690px; margin: 0 auto; color: rgba(255,255,255,.86); font-size: 18px; line-height: 1.9; }
.afnan-breadcrumbs { display: flex; margin-bottom: 27px; align-items: center; justify-content: center; gap: 9px; color: rgba(255,255,255,.76); font-size: 14px; }
.afnan-breadcrumbs a { color: rgba(255,255,255,.76); text-decoration: none; }
.afnan-breadcrumbs strong { color: #fff; }

.afnan-about-story { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(48px, 7vw, 90px); align-items: center; padding-top: 92px; padding-bottom: 86px; }
.afnan-about-collage { position: relative; min-height: 520px; }
.afnan-about-story-image { display: block; width: calc(100% - 42px); height: 500px; margin-right: auto; border-radius: 26px 26px 92px 26px; box-shadow: 0 28px 70px rgba(16,45,64,.18); object-fit: cover; }
.afnan-about-mini-card { position: absolute; right: 0; bottom: 40px; display: flex; width: 190px; min-height: 155px; padding: 22px; flex-direction: column; justify-content: center; border: 7px solid #fbfaf6; border-radius: 20px; background: #087855; color: #fff; box-shadow: 0 18px 45px rgba(6,80,59,.25); animation: afnanGentleFloat 5s ease-in-out infinite; }
.afnan-about-mini-card strong { margin-bottom: 6px; color: #fff; font-size: 27px; line-height: 1.15; }
.afnan-about-mini-card span { color: rgba(255,255,255,.76); font-size: 13px; }
.afnan-about-orbit { position: absolute; top: 28px; left: 4px; display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #d8b04a; border-radius: 50%; background: #fff9e8; color: #b68818; font-size: 23px; box-shadow: 0 12px 30px rgba(16,45,64,.1); }
.afnan-about-story-copy h2,
.afnan-about-purpose h2,
.afnan-about-section-heading h2 { margin: 0 0 20px; color: #102d40; font-size: clamp(30px, 4vw, 46px); line-height: 1.35; }
.afnan-about-story-copy > p { margin: 0 0 13px; color: #60717b; font-size: 16px; line-height: 2; }
.afnan-about-checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 20px; margin: 25px 0 28px; padding: 0; list-style: none; }
.afnan-about-checks li { display: flex; align-items: flex-start; gap: 9px; color: #324c5a; font-size: 14px; line-height: 1.7; }
.afnan-about-checks li span { display: grid; flex: 0 0 25px; height: 25px; place-items: center; border-radius: 50%; background: #e7f4ef; color: #087855; font-weight: 900; }
.afnan-button-outline { border: 1px solid #087855; background: transparent; color: #087855 !important; }
.afnan-button-outline:hover { background: #087855; color: #fff !important; }

.afnan-about-stats { position: relative; overflow: hidden; background: #08705a; color: #fff; }
.afnan-about-stats::before { position: absolute; inset: 0; background-image: radial-gradient(circle at center, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 24px 24px; content: ''; opacity: .28; }
.afnan-about-stats .wrap { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.afnan-about-stats .wrap > div { display: grid; min-height: 150px; padding: 28px 22px; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 15px; }
.afnan-about-stats .wrap > div + div { border-right: 1px solid rgba(255,255,255,.14); }
.afnan-about-stats .wrap > div > span { display: grid; width: 50px; height: 50px; grid-row: 1 / span 2; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #f0c75b; font-size: 21px; }
.afnan-about-stats strong { color: #fff; font-size: 31px; line-height: 1.1; }
.afnan-about-stats small { margin-top: 7px; color: rgba(255,255,255,.75); font-size: 14px; }

.afnan-about-purpose { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: clamp(48px,7vw,90px); align-items: center; padding-top: 96px; padding-bottom: 92px; }
.afnan-story-tabs { display: flex; margin: 30px 0 25px; gap: 10px; flex-wrap: wrap; }
.afnan-story-tabs button { min-width: 104px; padding: 11px 18px; border: 1px solid #dce5e1; border-radius: 999px; background: #fff; color: #52636d; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: .25s ease; }
.afnan-story-tabs button[aria-selected="true"] { border-color: #087855; background: #087855; color: #fff; box-shadow: 0 9px 24px rgba(8,120,85,.2); }
.afnan-tab-panels { min-height: 155px; }
.afnan-tab-panels > div { animation: afnanPanelIn .42s ease both; }
.afnan-tab-panels h3 { margin: 0 0 9px; color: #102d40; font-size: 22px; }
.afnan-tab-panels p { margin: 0; color: #62727b; font-size: 16px; line-height: 2; }
.afnan-about-purpose-image { position: relative; }
.afnan-about-purpose-image img { display: block; width: 100%; height: 445px; border-radius: 24px 76px 24px 24px; box-shadow: 0 28px 70px rgba(16,45,64,.17); object-fit: cover; }
.afnan-about-image-caption { position: absolute; right: -25px; bottom: 30px; display: flex; padding: 17px 20px; align-items: center; gap: 12px; border: 5px solid #fbfaf6; border-radius: 16px; background: #102d40; color: #fff; box-shadow: 0 16px 38px rgba(16,45,64,.22); }
.afnan-about-image-caption span { color: #e2bb4e; font-size: 24px; }
.afnan-about-image-caption strong { color: #fff; font-size: 17px; line-height: 1.45; }

.afnan-about-experience { padding: 82px 0 88px; background: #f0f2ef; }
.afnan-about-section-heading { max-width: 700px; margin: 0 auto 38px; text-align: center; }
.afnan-experience-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.afnan-experience-grid article { position: relative; overflow: hidden; padding: 34px; border: 1px solid rgba(16,45,64,.08); border-radius: 22px; background: #fff; box-shadow: 0 14px 44px rgba(16,45,64,.07); }
.afnan-experience-grid article::after { position: absolute; top: -70px; left: -50px; width: 180px; height: 180px; border-radius: 50%; background: #eef8f4; content: ''; }
.afnan-experience-mark { position: relative; z-index: 1; display: inline-block; margin-bottom: 22px; color: #c49422; font-size: 15px; font-weight: 900; letter-spacing: .08em; }
.afnan-experience-grid h3 { margin: 0 0 10px; color: #102d40; font-size: 24px; }
.afnan-experience-grid p { max-width: 520px; margin: 0; color: #65757e; font-size: 16px; line-height: 1.9; }
.afnan-experience-tags { display: flex; margin-top: 25px; gap: 8px; flex-wrap: wrap; }
.afnan-experience-tags span { padding: 7px 13px; border-radius: 999px; background: #edf7f3; color: #087855; font-size: 13px; font-weight: 800; }
.afnan-about-cta { margin-top: 70px; }

.afnan-animations [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .72s ease var(--reveal-delay,0ms), transform .72s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms); }
.afnan-animations [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes afnanHeroDrift { from { transform: scale(1.02); } to { transform: scale(1.085) translate3d(-1.2%,1%,0); } }
@keyframes afnanGentleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes afnanPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .afnan-about-hero > img,
  .afnan-about-mini-card,
  .afnan-tab-panels > div { animation: none !important; }
  .afnan-animations [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Course directory: keep the result visible and make every card obviously actionable. */
.course-results .afnan-course-card {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 28px !important;
  border: 1px solid rgba(8, 120, 85, .14) !important;
  border-radius: 22px !important;
  background: linear-gradient(155deg, #fff 0%, #fff 72%, #f3faf7 100%) !important;
  box-shadow: 0 14px 38px rgba(16, 45, 64, .075) !important;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.course-results .afnan-course-card:hover,
.course-results .afnan-course-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(8, 120, 85, .42) !important;
  outline: 0;
  box-shadow: 0 20px 46px rgba(16, 45, 64, .13) !important;
}

.course-results .afnan-course-card h3 { margin-top: 14px; font-size: 1.35rem; line-height: 1.5; }
.course-results .afnan-course-card h3 a { color: #102d40; text-decoration: none; }
.course-results .afnan-course-card p { font-size: .96rem !important; line-height: 1.85; }
.course-results .afnan-course-card > div:not(.afnan-course-card-action) { margin-top: auto; color: #087855 !important; font-size: 1.35rem; font-weight: 900 !important; }

.course-results .afnan-course-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(8, 120, 85, .12);
  color: #087855;
  font-size: .9rem;
}

.course-results .afnan-course-card-action b { font-weight: 850; }
.course-results .afnan-course-card-action i { font-size: 1.15rem; font-style: normal; transition: transform .2s ease; }
.course-results .afnan-course-card:hover .afnan-course-card-action i { transform: translateX(-5px); }

@media (max-width: 700px) {
  .course-results .afnan-course-card { min-height: 270px; padding: 22px !important; }
}

@media (max-width: 900px) {
  .afnan-page-section { grid-template-columns: 1fr; gap: 18px; }
  .afnan-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afnan-contact-grid { grid-template-columns: 1fr; }
  .afnan-contact-card { min-height: 205px; }
  .afnan-about-story,
  .afnan-about-purpose { grid-template-columns: 1fr; }
  .afnan-about-collage { max-width: 650px; width: 100%; margin: 0 auto; }
  .afnan-about-purpose-image { max-width: 680px; width: 100%; margin: 0 auto; }
  .afnan-about-stats .wrap { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .afnan-about-stats .wrap > div:nth-child(3) { border-right: 0; }
  .afnan-about-stats .wrap > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}

@media (max-width: 640px) {
  .afnan-content-page { padding-bottom: 44px; }
  .afnan-page-hero { padding: 48px 0 44px; }
  .afnan-page-hero p { font-size: 16px; }
  .afnan-page-section { padding-top: 44px; }
  .afnan-value-grid,
  .afnan-stat-strip { grid-template-columns: 1fr; }
  .afnan-stat-strip div + div { border-top: 1px solid rgba(255,255,255,.12); border-right: 0; }
  .afnan-page-cta,
  .afnan-contact-help { align-items: stretch; flex-direction: column; padding: 26px 22px; }
  .afnan-page-button { width: 100%; }
  .afnan-about-hero { min-height: 380px; }
  .afnan-about-hero-copy h1 { font-size: 42px; }
  .afnan-about-hero-copy p { font-size: 16px; }
  .afnan-about-story,
  .afnan-about-purpose { padding-top: 58px; padding-bottom: 58px; }
  .afnan-about-collage { min-height: 420px; }
  .afnan-about-story-image { width: calc(100% - 20px); height: 405px; border-radius: 20px 20px 60px 20px; }
  .afnan-about-mini-card { width: 155px; min-height: 125px; bottom: 20px; padding: 16px; }
  .afnan-about-mini-card strong { font-size: 22px; }
  .afnan-about-checks { grid-template-columns: 1fr; }
  .afnan-about-stats .wrap { grid-template-columns: 1fr; }
  .afnan-about-stats .wrap > div { min-height: 118px; }
  .afnan-about-stats .wrap > div + div { border-top: 1px solid rgba(255,255,255,.14); border-right: 0; }
  .afnan-about-purpose-image img { height: 350px; border-radius: 20px 50px 20px 20px; }
  .afnan-about-image-caption { right: 10px; bottom: 15px; }
  .afnan-experience-grid { grid-template-columns: 1fr; }
  .afnan-about-experience { padding: 58px 0; }
  .afnan-about-cta { margin-top: 44px; }
}

.site-footer .footer-grid.footer-grid-rich {
  padding-top: 48px !important;
  padding-bottom: 36px !important;
  align-items: start;
}

.site-footer .footer-about p {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.75;
}

.site-footer .footer-bottom {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  min-height: 0 !important;
}

@media (max-width: 1100px) {
  .site-header .brand img.brand-reference-logo {
    width: 118px !important;
    height: 126px !important;
  }

  .site-header .nav-wrap {
    min-height: 132px;
  }
}

@media (max-width: 760px) {
  .site-header .brand img.brand-reference-logo {
    width: 108px !important;
    height: 115px !important;
  }

  .site-header .nav-wrap {
    min-height: 120px;
  }

  .site-footer .footer-about img.footer-logo {
    width: 120px !important;
  }

  .site-footer .footer-grid.footer-grid-rich {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
    row-gap: 28px;
  }

  .site-footer .footer-bottom {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
}
