/*
Theme Name: IIEGYPT Modern
Theme URI: https://iiegypt.com/
Author: The Insurance Institute of Egypt
Author URI: https://iiegypt.com/
Description: Lightweight bilingual custom theme for the Insurance Institute of Egypt, with WooCommerce support and the approved CII brand rules.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: iiegypt-modern
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ink: #102637;
  --muted: #5d6a74;
  --navy: #003d5c;
  --navy-dark: #002d45;
  --blue: #145d85;
  --red: #cf242d;
  --green: #168263;
  --gold: #b68634;
  --paper: #ffffff;
  --soft: #f3f7f9;
  --line: #dbe5ea;
  --shadow: 0 22px 60px rgba(0, 45, 69, 0.11);
  --radius: 24px;
}

/* WordPress and WooCommerce integration */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: #fff;
  color: var(--navy-dark);
}

.woocommerce-shell {
  min-height: 55vh;
}

.woocommerce-shell .woocommerce {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 45, 69, 0.07);
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 4 / 3;
  margin: 0;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-inline: 18px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding-top: 18px;
  color: var(--ink);
  font-size: 19px;
}

.woocommerce ul.products li.product .price {
  color: var(--navy);
  font-weight: 800;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
}

.woocommerce ul.products li.product .button {
  margin-bottom: 20px;
}

.entry-shell {
  width: min(920px, calc(100% - 40px));
  min-height: 52vh;
  margin: 0 auto;
  padding: 64px 0 90px;
}

.entry-shell img {
  max-width: 100%;
  height: auto;
}

.entry-shell h1 {
  color: var(--navy-dark);
  font-size: clamp(32px, 5vw, 54px);
}

.archive-entry {
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.archive-entry h2 {
  margin: 6px 0 10px;
  color: var(--navy-dark);
}

.archive-entry p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Tahoma, Arial, "Noto Kufi Arabic", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
}

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

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

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

h1,
h2,
h3 {
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  right: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.topline {
  min-height: 38px;
  padding: 7px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--navy-dark);
  color: #dceaf1;
  font-size: 12px;
}

.topline-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topline a:hover,
.topline a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.brand-row {
  width: min(1180px, calc(100% - 48px));
  min-height: 116px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.header-brand-cluster {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: 96px;
  height: 94px;
  object-fit: contain;
}

.header-brand-cluster .partner-header-mark {
  width: 146px;
  height: 94px;
  object-fit: contain;
  flex: 0 0 auto;
}

.header-brand-cluster .partner-header-mark-accredited {
  width: 154px;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  color: var(--navy-dark);
  font-size: clamp(20px, 2.1vw, 29px);
}

.brand small {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-actions,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid #bfd1da;
  border-radius: 12px;
  background: #f4f8fa;
  color: var(--navy-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.language-switch span {
  min-width: 26px;
  padding: 5px 6px;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.language-switch:hover,
.language-switch:focus-visible {
  border-color: var(--navy);
  background: #fff;
  transform: translateY(-2px);
}

.primary-action,
.secondary-action,
.white-action,
.outline-light,
.plain-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-action {
  background: var(--red);
  color: #fff;
}

.primary-action.small {
  min-height: 42px;
  padding: 8px 16px;
}

.secondary-action,
.plain-action {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}

.primary-action:hover,
.secondary-action:hover,
.white-action:hover,
.outline-light:hover,
.plain-action:hover {
  transform: translateY(-2px);
}

.desktop-nav {
  width: min(1180px, calc(100% - 48px));
  min-height: 58px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line);
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.desktop-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 5px 16px;
  color: #243746;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav a::after {
  position: absolute;
  right: 5px;
  bottom: 10px;
  left: 100%;
  height: 2px;
  background: var(--red);
  content: "";
  transition: left 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--red);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  left: 5px;
}

.mobile-nav {
  display: none;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(20, 93, 133, 0.12), transparent 30%),
    linear-gradient(145deg, #f8fbfc 0%, #fff 54%, #eef5f8 100%);
}

.home-hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--navy));
  content: "";
}

.home-hero-grid {
  min-height: 650px;
  padding-block: 74px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 66px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #f7c1c5;
}

.hero-copy h1 {
  max-width: 650px;
  margin-bottom: 22px;
  color: var(--navy-dark);
  font-size: clamp(40px, 5vw, 68px);
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 19px;
}

.hero-trust {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-trust span {
  padding: 6px 12px;
  border: 1px solid #d3e2e9;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 150px 24px 24px 24px;
  background: #dbe5ea;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 45, 69, 0.78), transparent 48%);
  content: "";
}

.hero-visual img,
.strip-image img,
.diploma-image img,
.album-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: grid;
  gap: 2px;
  color: #fff;
}

.hero-caption strong {
  font-size: 24px;
}

.hero-caption span {
  color: #dbe8ee;
  font-size: 14px;
}

.stat-strip {
  background: var(--navy-dark);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  min-height: 132px;
  padding: 26px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.13);
  text-align: center;
}

.stat:first-child {
  border-inline-start: 0;
}

.stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1;
}

.stat span {
  margin-top: 8px;
  color: #bcd0da;
  font-size: 13px;
}

.section {
  padding-block: 94px;
}

.soft-section {
  background: var(--soft);
}

.section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading h2,
.prose h2,
.final-cta h2,
.cii-feature h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.4vw, 45px);
}

.text-link {
  color: var(--navy);
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--red);
  text-decoration: underline;
}

.intro-section {
  padding-bottom: 82px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  color: var(--muted);
}

.large-copy {
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.35vw, 31px);
  line-height: 1.55;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.path-card {
  position: relative;
  min-height: 270px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(0, 45, 69, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.path-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--path-color, var(--blue));
  content: "";
}

.path-blue { --path-color: var(--blue); }
.path-red { --path-color: var(--red); }
.path-gold { --path-color: var(--gold); }
.path-green { --path-color: var(--green); }

.path-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.path-number {
  color: var(--path-color, var(--blue));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}

.path-card h3 {
  margin: auto 0 12px;
  color: var(--navy-dark);
  font-size: 24px;
}

.path-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.cards-grid {
  display: grid;
  gap: 24px;
}

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

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

.diploma-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 45, 69, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.diploma-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.diploma-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #e7eef2;
}

.diploma-card:hover .diploma-image img {
  transform: scale(1.035);
}

.accreditation-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-dark);
  box-shadow: 0 8px 24px rgba(0, 45, 69, 0.16);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.diploma-body {
  padding: 26px;
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.diploma-body h2 {
  min-height: 62px;
  margin-bottom: 8px;
  font-size: 22px;
}

.english-title {
  min-height: 48px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.price-row {
  margin-bottom: 18px;
  padding-block: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-block: 1px solid var(--line);
}

.price-row strong {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.price-row span {
  color: var(--muted);
  font-size: 12px;
}

.cii-feature,
.accredited-hero,
.final-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(207, 36, 45, 0.22), transparent 30%),
    linear-gradient(135deg, var(--navy-dark), #074f70);
  color: #fff;
}

.cii-feature::before,
.accredited-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.cii-feature-grid,
.accredited-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 70px;
}

.cii-lockup,
.accredited-brand-pair {
  min-height: 280px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 25px 70px rgba(0,0,0,.18);
}

.cii-lockup img,
.accredited-brand-pair img {
  object-fit: contain;
}

.plus-mark,
.accredited-brand-pair > span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 700;
}

.cii-feature h2 {
  margin-bottom: 16px;
}

.cii-feature p:not(.eyebrow) {
  color: #d7e5eb;
}

.compact-diplomas {
  margin: 26px 0;
  display: grid;
  gap: 10px;
}

.compact-diplomas a {
  padding: 13px 16px;
  display: grid;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
}

.compact-diplomas a:hover {
  background: rgba(255,255,255,.13);
}

.compact-diplomas span {
  color: #bcd0da;
  font-size: 12px;
}

.white-action {
  background: #fff;
  color: var(--navy-dark);
}

.outline-light {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.strip-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 18px;
  background: #e5edf1;
}

.strip-image:nth-child(even) {
  transform: translateY(22px);
}

.strip-image:hover img {
  transform: scale(1.045);
}

.latest-gallery {
  padding-bottom: 116px;
}

.final-cta {
  padding-block: 62px;
  background: linear-gradient(135deg, var(--red), #971c23);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 20%, rgba(207,36,45,.08), transparent 26%),
    linear-gradient(145deg, #f2f7f9, #fff);
}

.page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--navy));
  content: "";
}

.page-hero-inner {
  max-width: 960px;
  padding-block: 80px;
}

.page-hero h1,
.accredited-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 66px);
}

.page-hero p:last-child,
.accredited-hero p:last-child {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.about-story {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 82px;
}

.about-logo-card {
  min-height: 430px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--soft);
}

.about-logo-card img {
  object-fit: contain;
}

.prose p:not(.eyebrow) {
  color: var(--muted);
}

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

.mission-card,
.international-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.mission-card > span,
.international-grid article > span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 800;
}

.mission-card h2,
.international-grid h2 {
  margin: 36px 0 12px;
  font-size: 23px;
}

.mission-card p,
.international-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.notice-card,
.accreditation-note,
.archive-note {
  margin-bottom: 34px;
  padding: 22px 24px;
  border: 1px solid #cbdde6;
  border-inline-start: 5px solid var(--blue);
  border-radius: 14px;
  background: #f2f8fb;
}

.notice-card strong,
.accreditation-note strong {
  font-size: 18px;
}

.notice-card p,
.accreditation-note p,
.archive-note {
  margin-bottom: 0;
  color: var(--muted);
}

.program-list {
  border-block-start: 1px solid var(--line);
}

.program-list article {
  padding: 23px 4px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 24px;
  border-block-end: 1px solid var(--line);
}

.program-list article > span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 15px;
}

.program-list h2 {
  margin-bottom: 4px;
  font-size: 18px;
  text-align: left;
}

.program-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.program-list a {
  color: var(--navy);
  font-weight: 800;
}

.program-list a:hover {
  color: var(--red);
}

.centered-action {
  margin-top: 38px;
  display: flex;
  justify-content: center;
}

.accredited-hero {
  padding-block: 82px;
}

.accredited-hero p:last-child {
  color: #d6e5eb;
}

.accredited-hero .english-lead {
  margin-inline-start: auto;
  text-align: right;
}

.accreditation-note strong[dir="ltr"] {
  display: block;
  text-align: right;
}

.accredited-grid .diploma-card {
  border-color: #c8dce6;
}

.international-feature {
  margin-bottom: 26px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-radius: 24px;
  background: var(--navy-dark);
  color: #fff;
}

.international-feature h2 {
  margin-bottom: 8px;
  font-size: 34px;
}

.international-feature p:not(.eyebrow) {
  color: #c7d9e2;
}

.unit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unit-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 800;
}

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

.apdc-content {
  padding-top: 54px;
}

.apdc-overview {
  margin-bottom: 54px;
  padding: 38px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
  border-radius: 24px;
  background: var(--navy-dark);
  color: #fff;
}

.apdc-overview h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 40px);
}

.apdc-overview p:not(.eyebrow) {
  max-width: 820px;
  margin-bottom: 0;
  color: #d4e3e9;
  font-size: 16px;
}

.apdc-heading {
  margin-bottom: 24px;
}

.apdc-unit-grid {
  margin-bottom: 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.apdc-unit-card {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 45, 69, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.apdc-unit-card:hover,
.apdc-unit-card:focus-visible {
  transform: translateY(-3px);
  border-color: #98bdcf;
  box-shadow: 0 20px 42px rgba(0, 45, 69, 0.12);
}

.apdc-unit-code {
  margin-bottom: 26px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eaf3f7;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.apdc-unit-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.35;
}

.apdc-unit-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
}

.apdc-unit-card strong {
  margin-top: auto;
  color: var(--red);
  font-size: 14px;
}

.apdc-resources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.apdc-resource-card {
  padding: 24px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: start;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.apdc-resource-card > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.apdc-resource-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.apdc-resource-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.apdc-resource-card:hover h3,
.apdc-resource-card:focus-visible h3 {
  color: var(--red);
}

.apdc-source-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.books-grid,
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.book-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  display: grid;
  grid-template-columns: 142px 1fr;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.book-cover {
  aspect-ratio: 0.72;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 6px 14px 14px 6px;
  background: linear-gradient(145deg, var(--navy), var(--navy-dark));
  color: #fff;
  box-shadow: 8px 12px 26px rgba(0, 45, 69, 0.22);
}

.book-cover span {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 700;
}

.book-cover small {
  color: #bdced7;
  font-family: Arial, sans-serif;
  font-size: 9px;
}

.book-card h2 {
  font-size: 20px;
}

.book-card a {
  color: var(--navy);
  font-weight: 800;
}

.book-number {
  position: absolute;
  top: 18px;
  left: 18px;
  color: #aebdc5;
  font-family: Georgia, serif;
}

.blog-toolbar {
  margin-bottom: 26px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.blog-toolbar p {
  margin-bottom: 0;
  color: var(--muted);
}

.blog-toolbar span {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.article-card {
  min-height: 210px;
  padding: 26px;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,45,69,.08);
}

.pdf-mark {
  width: 66px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 8px 8px 16px 8px;
  background: var(--red);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.article-year {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.article-card h2 {
  margin: 8px 0;
  font-size: 19px;
}

.article-card p {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-card a {
  color: var(--navy);
  font-weight: 800;
}

.gallery-archive {
  max-width: 1100px;
}

.year-album {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.year-album summary {
  min-height: 108px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  cursor: pointer;
  list-style: none;
}

.year-album summary::-webkit-details-marker {
  display: none;
}

.year-album summary::after {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--navy);
  content: "+";
  font-size: 22px;
}

.year-album[open] summary::after {
  content: "−";
}

.year-album summary > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.year-album h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.year-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy-dark);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
}

.album-count {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 12px;
}

.album-grid {
  padding: 0 22px 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.album-image {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 12px;
  background: #e6eef2;
}

.album-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,45,69,.62), transparent 45%);
  content: "";
  opacity: 0;
  transition: opacity .2s ease;
}

.album-image span {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transition: opacity .2s ease;
}

.album-image:hover img {
  transform: scale(1.045);
}

.album-image:hover::after,
.album-image:hover span {
  opacity: 1;
}

.archive-note {
  margin-top: 26px;
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.contact-card {
  min-height: 300px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.contact-card.primary-contact {
  background: var(--navy-dark);
  color: #fff;
}

.contact-card.wide {
  min-height: 220px;
  grid-column: 1 / -1;
}

.contact-card > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.contact-card h2 {
  margin: 32px 0 18px;
  font-size: 28px;
}

.phone-list {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.phone-list a {
  font-family: Georgia, serif;
  font-size: 21px;
}

.email-link {
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.office-grid h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.office-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  background: #071f2d;
  color: #fff;
}

.footer-grid {
  padding-block: 68px;
  display: grid;
  grid-template-columns: 1.5fr 0.65fr 1fr;
  gap: 54px;
}

.footer-about {
  display: flex;
  align-items: start;
  gap: 20px;
}

.footer-about img {
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.site-footer p,
.site-footer a,
.footer-links {
  color: #b9cdd7;
  font-size: 13px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.ltr-copy {
  direction: ltr;
  text-align: right;
}

.copyright {
  padding: 18px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #8fa9b6;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .desktop-nav a {
    font-size: 12px;
  }

  .home-hero-grid {
    gap: 38px;
  }

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

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

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

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

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .shell,
  .brand-row,
  .desktop-nav {
    width: min(100% - 32px, 740px);
  }

  .topline {
    padding-inline: 16px;
  }

  .brand-row {
    min-height: 100px;
  }

  .header-brand-cluster {
    gap: 14px;
  }

  .header-brand-cluster .partner-header-mark {
    width: 112px;
    height: 76px;
  }

  .brand img {
    width: 78px;
    height: 77px;
  }

  .brand-actions {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    width: min(100% - 32px, 740px);
    margin-inline: auto;
    display: block;
    border-top: 1px solid var(--line);
  }

  .mobile-nav summary {
    padding: 14px 2px;
    cursor: pointer;
    color: var(--navy);
    font-weight: 800;
    list-style: none;
  }

  .mobile-nav summary::after {
    margin-inline-start: 8px;
    content: "+";
  }

  .mobile-nav[open] summary::after {
    content: "−";
  }

  .mobile-nav nav {
    padding: 10px 0 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .mobile-nav nav a {
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--soft);
    font-size: 13px;
    font-weight: 700;
  }

  .home-hero-grid,
  .about-story,
  .cii-feature-grid,
  .accredited-hero-grid,
  .apdc-overview {
    grid-template-columns: 1fr;
  }

  .apdc-overview {
    align-items: stretch;
  }

  .home-hero-grid {
    min-height: auto;
    padding-block: 58px;
  }

  .hero-visual {
    min-height: 450px;
  }

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

  .stat:nth-child(3) {
    border-top: 1px solid rgba(255,255,255,.13);
  }

  .stat:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,.13);
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

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

  .strip-image:nth-child(even) {
    transform: none;
  }

  .footer-grid {
    gap: 36px;
  }
}

@media (max-width: 700px) {
  .shell,
  .brand-row,
  .mobile-nav {
    width: min(100% - 24px, 580px);
  }

  .topline {
    justify-content: center;
  }

  .topline > span {
    display: none;
  }

  .brand-row {
    min-height: 88px;
  }

  .brand {
    gap: 12px;
  }

  .header-brand-cluster {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .header-brand-cluster .partner-header-mark {
    width: 88px;
    height: 62px;
  }

  .brand img {
    width: 66px;
    height: 65px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 11px;
  }

  .mobile-nav nav {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    padding-block: 42px 54px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 340px;
    border-radius: 80px 18px 18px 18px;
  }

  .hero-caption {
    right: 20px;
    bottom: 20px;
  }

  .stat {
    min-height: 110px;
    padding: 20px 10px;
  }

  .stat strong {
    font-size: 30px;
  }

  .section {
    padding-block: 62px;
  }

  .section-heading,
  .final-cta-inner,
  .international-feature {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading h2,
  .prose h2,
  .final-cta h2,
  .cii-feature h2 {
    font-size: 30px;
  }

  .path-grid,
  .cards-grid.three,
  .cards-grid.two,
  .image-strip,
  .books-grid,
  .articles-grid,
  .international-grid,
  .apdc-unit-grid,
  .apdc-resources,
  .contact-grid,
  .office-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 220px;
  }

  .diploma-image {
    height: 230px;
  }

  .cii-lockup,
  .accredited-brand-pair {
    min-height: 220px;
    padding: 20px;
    gap: 12px;
  }

  .cii-lockup img:first-child,
  .accredited-brand-pair img:first-child {
    width: 58%;
    height: auto;
  }

  .cii-lockup img:last-child,
  .accredited-brand-pair img:last-child {
    width: 32%;
    height: auto;
  }

  .strip-image {
    height: 280px;
  }

  .page-hero-inner {
    padding-block: 60px;
  }

  .page-hero h1,
  .accredited-hero h1 {
    font-size: 38px;
  }

  .page-hero p:last-child,
  .accredited-hero p:last-child {
    font-size: 15px;
  }

  .about-logo-card {
    min-height: 320px;
  }

  .program-list article {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .program-list article > a {
    grid-column: 2;
  }

  .international-feature {
    padding: 28px;
  }

  .international-feature h2 {
    font-size: 27px;
  }

  .book-card {
    grid-template-columns: 108px 1fr;
    gap: 16px;
  }

  .article-card {
    grid-template-columns: 58px 1fr;
    padding: 20px;
  }

  .pdf-mark {
    width: 54px;
    height: 66px;
  }

  .year-album summary {
    min-height: 92px;
    padding: 18px;
  }

  .year-album summary > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .year-album h2 {
    font-size: 18px;
  }

  .album-count {
    display: none;
  }

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

  .album-image {
    min-height: 270px;
  }

  .contact-card.wide {
    grid-column: auto;
  }

  .contact-card {
    min-height: auto;
    padding: 28px;
  }

  .email-link {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

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

  .copyright {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.site-ltr {
  direction: ltr;
  font-family: "Segoe UI", Arial, Tahoma, sans-serif;
  text-align: left;
}

.site-ltr .desktop-nav {
  gap: 17px;
  justify-content: flex-start;
  overflow-x: auto;
}

.site-ltr .desktop-nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
}

.site-ltr .brand strong {
  font-size: clamp(18px, 1.9vw, 27px);
}

.site-ltr .hero-caption,
.site-ltr .page-hero-inner,
.site-ltr .accredited-hero,
.site-ltr .accreditation-note,
.site-ltr .diploma-body,
.site-ltr .book-card,
.site-ltr .article-card,
.site-ltr .contact-card,
.site-ltr .site-footer {
  text-align: left;
}

.site-ltr .accredited-hero .english-lead,
.site-ltr .accreditation-note strong[dir="ltr"] {
  margin-inline-start: 0;
  text-align: left;
}

.site-ltr .ltr-copy {
  text-align: left;
}

.site-ltr .english-title[dir="rtl"] {
  text-align: left;
}

.mobile-language-switch {
  border: 1px solid #b9d0dc !important;
  background: #eaf3f7 !important;
  color: var(--navy-dark) !important;
}

@media (max-width: 900px) {
  .site-ltr .mobile-nav nav {
    direction: ltr;
  }
}
