:root{
  --bg:#f5f2ea;
  --bg-soft:#ece6d9;
  --surface:#fffdfa;
  --surface-alt:#f8f4ec;
  --ink:#162024;
  --muted:#5b655f;
  --brand:#123f3a;
  --brand-deep:#0d2f34;
  --accent:#b08a46;
  --border:#e6ddd0;
  --shadow:0 24px 60px rgba(18, 41, 38, 0.08);
  --shadow-soft:0 12px 30px rgba(18, 41, 38, 0.06);
  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:16px;
  --container:1180px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:"Cairo", system-ui, sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at top right, rgba(176, 138, 70, 0.12), transparent 25%),
    linear-gradient(180deg, #faf7f0 0%, var(--bg) 40%, #f7f3eb 100%);
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body.nav-open{
  overflow:hidden;
}

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

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

.page-shell{
  min-height:100vh;
}

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

.section{
  padding:clamp(64px, 10vw, 110px) 0;
}

.section-soft{
  position:relative;
}

.section-soft::before{
  content:"";
  position:absolute;
  inset:24px auto 24px 50%;
  width:min(96%, var(--container));
  transform:translateX(-50%);
  background:rgba(255, 253, 250, 0.65);
  border:1px solid rgba(230, 221, 208, 0.8);
  border-radius:32px;
  box-shadow:var(--shadow-soft);
  z-index:-1;
}

.site-header{
  position:sticky;
  top:0;
  z-index:120;
  backdrop-filter:blur(18px);
  background:rgba(250, 247, 240, 0.82);
  border-bottom:1px solid rgba(230, 221, 208, 0.7);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 0;
  position:relative;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:14px;
  min-width:fit-content;
}

.brand-mark{
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  border-radius:18px;
  padding:4px;
  background:linear-gradient(135deg, rgba(13, 47, 52, 0.18), rgba(176, 138, 70, 0.24));
  border:1px solid rgba(176, 138, 70, 0.22);
  box-shadow:0 14px 30px rgba(13, 47, 52, 0.12);
  overflow:hidden;
}

.brand-mark img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  border-radius:14px;
}

.brand-text{
  display:grid;
  gap:2px;
}

.brand-text strong{
  color:var(--brand-deep);
  font-size:1rem;
  line-height:1.2;
}

.brand-text small{
  font-family:"Inter", system-ui, sans-serif;
  color:var(--muted);
  font-size:0.78rem;
  letter-spacing:0.02em;
}

.site-nav{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 18px;
}

.site-nav a{
  color:var(--muted);
  font-size:0.96rem;
  font-weight:600;
  transition:color 0.2s ease;
}

.nav-toggle{
  display:none;
  width:48px;
  height:48px;
  border:1px solid rgba(230, 221, 208, 0.9);
  border-radius:14px;
  background:rgba(255, 253, 250, 0.9);
  box-shadow:var(--shadow-soft);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  padding:0;
}

.nav-toggle span{
  width:20px;
  height:2px;
  border-radius:999px;
  background:var(--brand-deep);
  transition:transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2){
  opacity:0;
}

.nav-toggle.is-open span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

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

.site-nav a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.contact-list a:focus-visible,
.media-links a:focus-visible{
  outline:2px solid rgba(176, 138, 70, 0.7);
  outline-offset:3px;
}

.hero{
  padding-top:clamp(34px, 5vw, 64px);
  position:relative;
  z-index:1;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap:24px;
  align-items:stretch;
}

.eyebrow,
.section-kicker,
.detail-label,
.media-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--brand);
  background:rgba(18, 63, 58, 0.08);
  border:1px solid rgba(18, 63, 58, 0.12);
  border-radius:999px;
  padding:8px 14px;
  font-size:0.88rem;
  font-weight:700;
}

.hero-copy-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(28px, 4vw, 42px);
  background:
    radial-gradient(circle at top left, rgba(176, 138, 70, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(255, 250, 243, 0.92));
}

.hero-copy h1{
  margin:18px 0 8px;
  font-size:clamp(2.65rem, 6vw, 5rem);
  line-height:1.1;
  color:var(--brand-deep);
}

.hero-subtitle{
  margin:0;
  color:var(--ink);
  font-size:clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight:700;
}

.hero-role{
  margin:10px 0 0;
  color:var(--accent);
  font-size:1.08rem;
  font-weight:700;
}

.hero-lead{
  max-width:62ch;
  margin:18px 0 0;
  color:var(--muted);
  font-size:1.05rem;
}

.hero-summary{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:22px;
}

.summary-item{
  padding:14px 16px;
  border-radius:18px;
  background:rgba(18, 63, 58, 0.04);
  border:1px solid rgba(18, 63, 58, 0.08);
}

.summary-item span{
  display:block;
  color:var(--muted);
  font-size:0.84rem;
  margin-bottom:4px;
}

.summary-item strong{
  display:block;
  color:var(--brand-deep);
  font-size:0.96rem;
  line-height:1.7;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 20px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:700;
  transition:transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary{
  background:linear-gradient(135deg, var(--brand-deep), var(--brand));
  color:#fff;
  box-shadow:0 16px 30px rgba(13, 47, 52, 0.18);
}

.btn-secondary{
  background:rgba(255, 253, 250, 0.8);
  border-color:var(--border);
  color:var(--brand-deep);
}

.hero-tags{
  list-style:none;
  padding:0;
  margin:22px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.hero-tags li{
  padding:9px 14px;
  border-radius:999px;
  background:rgba(176, 138, 70, 0.1);
  color:#7d6231;
  font-size:0.92rem;
  font-weight:700;
}

.hero-panel{
  display:grid;
  gap:16px;
  align-content:start;
}

.card{
  background:rgba(255, 253, 250, 0.94);
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  padding:clamp(22px, 3vw, 30px);
}

.portrait-card{
  overflow:hidden;
  position:relative;
  background:
    linear-gradient(180deg, rgba(18, 63, 58, 0.06), transparent 45%),
    rgba(255, 253, 250, 0.94);
  padding:18px;
}

.portrait-shell{
  position:relative;
}

.portrait-badge{
  position:absolute;
  top:18px;
  left:18px;
  width:78px;
  height:78px;
  padding:5px;
  border-radius:24px;
  background:rgba(255, 253, 250, 0.82);
  border:1px solid rgba(230, 221, 208, 0.92);
  box-shadow:0 12px 30px rgba(13, 47, 52, 0.12);
  z-index:2;
  backdrop-filter:blur(10px);
}

.portrait-badge img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  border-radius:19px;
}

.portrait-image{
  width:100%;
  min-height:390px;
  max-height:540px;
  object-fit:cover;
  object-position:center top;
  border-radius:22px;
  border:1px solid rgba(230, 221, 208, 0.9);
  box-shadow:0 18px 40px rgba(13, 47, 52, 0.12);
  background:#f3eee5;
}

.portrait-meta{
  padding:16px 6px 2px;
}

.portrait-meta p{
  margin:0;
  color:var(--accent);
  font-family:"Inter", system-ui, sans-serif;
  font-size:0.9rem;
  font-weight:600;
}

.portrait-meta h2{
  margin:8px 0 0;
  color:var(--brand-deep);
  font-size:1.28rem;
  line-height:1.5;
}

.quick-facts{
  display:grid;
  gap:14px;
  grid-template-columns:1fr;
  padding:18px;
}

.fact{
  padding:16px 18px;
  border-radius:18px;
  background:var(--surface-alt);
  border:1px solid var(--border);
}

.fact span{
  display:block;
  color:var(--muted);
  font-size:0.9rem;
}

.fact strong{
  display:block;
  margin-top:4px;
  color:var(--brand-deep);
  font-size:1rem;
}

.section-heading{
  display:grid;
  gap:12px;
  margin-bottom:28px;
}

.section-title{
  margin:0;
  color:var(--brand-deep);
  font-size:clamp(1.7rem, 3vw, 2.5rem);
  line-height:1.3;
}

.section-note{
  margin:0;
  color:var(--muted);
  max-width:64ch;
}

.about-grid,
.leadership-grid,
.contact-grid{
  display:grid;
  gap:24px;
}

.about-grid{
  grid-template-columns:minmax(0, 1.2fr) minmax(280px, 0.88fr);
}

.prose-card p{
  margin:0 0 16px;
  color:var(--muted);
  font-size:1.02rem;
}

.prose-card p:last-child{
  margin-bottom:0;
}

.detail-stack{
  display:grid;
  gap:16px;
}

.detail-card h3,
.value-card h3,
.impact-card h3,
.media-card h3,
.gallery-item h3,
.contact-card h3,
.spotlight-card h3,
.institution-card h3{
  margin:14px 0 10px;
  color:var(--brand-deep);
  font-size:1.18rem;
  line-height:1.5;
}

.detail-card p,
.value-card p,
.impact-card p,
.media-card p,
.gallery-item p,
.contact-card p,
.spotlight-card p,
.institution-card p{
  margin:0;
  color:var(--muted);
}

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

.six-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

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

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

.value-card,
.impact-card,
.media-card,
.gallery-item,
.contact-card{
  height:100%;
}

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

.spotlight-card{
  background:linear-gradient(180deg, rgba(18, 63, 58, 0.05), rgba(255, 253, 250, 0.94));
}

.prose-card,
.spotlight-card,
.institution-card,
.value-card,
.impact-card,
.media-card,
.gallery-item,
.contact-card,
.detail-card{
  transition:transform 0.18s ease, box-shadow 0.18s ease;
}

.prose-card:hover,
.spotlight-card:hover,
.institution-card:hover,
.value-card:hover,
.impact-card:hover,
.media-card:hover,
.gallery-item:hover,
.contact-card:hover,
.detail-card:hover{
  transform:translateY(-2px);
  box-shadow:0 26px 54px rgba(18, 41, 38, 0.1);
}

.bullet-list,
.contact-list{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  gap:12px;
}

.bullet-list li{
  position:relative;
  padding-inline-start:18px;
  color:var(--muted);
}

.bullet-list li::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:0.9em;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
  transform:translateY(-50%);
}

.media-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.placeholder-card{
  border-style:dashed;
}

.media-links{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  gap:10px;
}

.media-links a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(18, 63, 58, 0.04);
  border:1px solid rgba(18, 63, 58, 0.08);
  color:var(--brand-deep);
  font-weight:700;
}

.media-links a::after{
  content:"←";
  font-size:1rem;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}

.gallery-placeholder{
  min-height:210px;
  border-radius:18px;
  background:
    linear-gradient(145deg, rgba(18, 63, 58, 0.9), rgba(176, 138, 70, 0.58)),
    var(--brand);
  color:#fffaf2;
  display:grid;
  place-items:center;
  text-align:center;
  padding:18px;
  font-weight:700;
  margin-bottom:18px;
}

.gallery-photo{
  width:100%;
  min-height:210px;
  max-height:240px;
  object-fit:cover;
  object-position:center top;
  border-radius:18px;
  margin-bottom:18px;
  border:1px solid rgba(230, 221, 208, 0.9);
  box-shadow:0 12px 30px rgba(13, 47, 52, 0.1);
}

.contact-list li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-bottom:12px;
  border-bottom:1px solid var(--border);
}

.contact-list li:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.contact-list span{
  color:var(--muted);
}

.contact-list a,
.contact-list strong{
  color:var(--brand-deep);
  font-weight:700;
  text-align:left;
}

.site-footer{
  padding:26px 0 34px;
  border-top:1px solid rgba(230, 221, 208, 0.8);
}

.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.site-footer p{
  margin:0;
  color:var(--muted);
}

.site-footer a{
  color:var(--brand);
  font-weight:700;
}

.whatsapp-fab{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:130;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  background:linear-gradient(135deg, #1f9d57, #25d366);
  color:#ffffff;
  box-shadow:0 18px 36px rgba(20, 89, 52, 0.26);
  border:1px solid rgba(255, 255, 255, 0.22);
  transition:transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.whatsapp-fab:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 42px rgba(20, 89, 52, 0.3);
  filter:brightness(1.02);
}

.whatsapp-fab svg{
  width:22px;
  height:22px;
  flex:0 0 auto;
}

.whatsapp-fab span{
  font-weight:800;
  font-size:0.94rem;
  line-height:1;
}

@media (max-width: 1080px){
  .hero-grid,
  .about-grid,
  .leadership-grid,
  .media-grid,
  .gallery-grid,
  .six-grid,
  .four-grid,
  .two-grid{
    grid-template-columns:1fr 1fr;
  }

  .hero-grid{
    grid-template-columns:1fr;
    align-items:start;
  }

  .hero-copy-card{
    order:2;
  }

  .hero-panel{
    order:1;
  }

  .hero-summary{
    grid-template-columns:1fr;
  }
}

@media (max-width: 860px){
  .footer-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .hero-grid,
  .about-grid,
  .leadership-grid,
  .media-grid,
  .gallery-grid,
  .six-grid,
  .four-grid,
  .two-grid{
    grid-template-columns:1fr;
  }

  .site-nav{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    left:0;
    display:none;
    padding:14px;
    border:1px solid rgba(230, 221, 208, 0.95);
    border-radius:22px;
    background:rgba(255, 253, 250, 0.98);
    box-shadow:0 28px 60px rgba(18, 41, 38, 0.14);
    backdrop-filter:blur(16px);
    gap:10px;
    z-index:160;
  }

  .site-nav.is-open{
    display:grid;
  }

  .site-nav a{
    padding:12px 14px;
    border-radius:14px;
    background:rgba(18, 63, 58, 0.04);
  }

  .nav-toggle{
    display:inline-flex;
  }
}

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

  .site-header{
    position:static;
  }

  .site-nav{
    position:fixed;
    top:78px;
    right:12px;
    left:12px;
    max-height:calc(100vh - 96px);
    overflow:auto;
  }

  .header-row{
    justify-content:space-between;
    align-items:center;
    gap:14px;
    padding:14px 0;
  }

  .hero-grid{
    display:flex;
    flex-direction:column;
    gap:16px;
  }

  .hero-copy-card{
    order:1;
  }

  .hero-panel{
    order:2;
  }

  .hero-copy h1{
    font-size:clamp(2.2rem, 11vw, 3.5rem);
  }

  .hero-copy-card{
    padding:24px 20px;
  }

  .hero-copy-card,
  .portrait-card,
  .quick-facts{
    border-radius:22px;
  }

  .hero-actions,
  .contact-list li{
    flex-direction:column;
    align-items:stretch;
  }

  .btn{
    width:100%;
  }

  .portrait-image{
    min-height:220px;
    max-height:280px;
  }

  .portrait-badge{
    width:64px;
    height:64px;
    top:14px;
    left:14px;
  }

  .hero-tags li,
  .site-nav a{
    text-align:center;
  }

  .quick-facts{
    gap:10px;
  }

  .fact{
    padding:14px 15px;
  }

  .media-links a{
    font-size:0.95rem;
  }

  .whatsapp-fab{
    right:14px;
    bottom:14px;
    padding:11px 14px;
  }

  .whatsapp-fab span{
    display:none;
  }
}

@media print{
  :root{
    --bg:#ffffff;
    --surface:#ffffff;
    --surface-alt:#ffffff;
    --shadow:none;
    --shadow-soft:none;
  }

  body{
    background:#ffffff;
  }

  .site-header,
  .site-footer{
    position:static;
    backdrop-filter:none;
    background:#ffffff;
  }

  .card,
  .section-soft::before{
    box-shadow:none;
  }

  .whatsapp-fab{
    display:none;
  }
}
