@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --ink:#1b2a30;
  --body:#4b5a60;
  --teal:#1f7a8c;
  --teal-deep:#134b57;
  --teal-light:#eaf5f6;
  --navy-btn:#1c2e57;
  --yellow:#f2c94c;
  --yellow-deep:#e0b32e;
  --bg:#ffffff;
  --bg-soft:#f5f8f8;
  --border:#e2e9ea;
  --utility-bg:#13232a;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Cairo', sans-serif;
  background:var(--bg);
  color:var(--body);
  line-height:1.85;
  overflow-x:hidden;
}
h1,h2,h3{font-family:'Cairo', sans-serif; font-weight:800; color:var(--ink);}
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3{font-family:'Poppins', sans-serif;}
[dir="ltr"] body, [dir="ltr"]{font-family:'Inter', sans-serif;}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
.container{max-width:1200px; margin:0 auto; padding:0 32px;}
button{font-family:inherit; cursor:pointer;}

/* ===================== UTILITY BAR ===================== */
.utility-bar{background:var(--utility-bg); color:#c8d2d4;}
.utility-inner{
  display:flex; align-items:center; justify-content:space-between;
  max-width:1200px; margin:0 auto; padding:9px 32px; font-size:.8rem;
}
.utility-links{display:flex; gap:22px;}
.utility-links a{opacity:.85;}
.utility-links a:hover{opacity:1; color:#fff;}
.utility-right{display:flex; align-items:center; gap:12px;}
.lang-toggle{
  display:flex; border:1px solid rgba(255,255,255,0.25); border-radius:999px; overflow:hidden; font-size:.72rem;
}
.lang-toggle button{
  background:none; border:none; color:#c8d2d4; padding:5px 14px; font-weight:600;
}
.lang-toggle button.active{background:var(--teal); color:#fff;}
.util-btn{
  padding:7px 16px; font-size:.76rem; font-weight:700; border-radius:3px;
}
.util-btn.outline{border:1px solid var(--teal); color:#bfe4e9;}
.util-btn.solid{background:var(--navy-btn); color:#fff;}

/* ===================== HEADER / NAV ===================== */
header.main-header{
  background:#fff; border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:100;
}
.nav-wrap{
  display:flex; align-items:flex-start; justify-content:space-between;
  max-width:1200px; margin:0 auto; padding:14px 32px; gap:24px;
}
.brand{display:flex; align-items:center; gap:12px; flex-shrink:0; padding-top:4px;}
.brand img{width:52px; height:52px; object-fit:contain;}
.brand-text{line-height:1.3; white-space:nowrap;}
.brand-text .name{font-weight:800; font-size:1rem; color:var(--ink);}
.brand-text .sub{display:block; font-size:.66rem; letter-spacing:.5px; color:var(--teal); font-weight:600; margin-top:2px;}
nav.main-nav{padding-top:8px;}
nav.main-nav ul{list-style:none; display:flex; gap:2px; align-items:center; flex-wrap:wrap; justify-content:flex-end; row-gap:6px;}
nav.main-nav > ul > li{position:relative;}
nav.main-nav > ul > li > a, nav.main-nav > ul > li > span{
  display:block; padding:8px 11px; font-weight:700; font-size:.83rem; color:var(--ink); border-radius:4px; white-space:nowrap;
}
nav.main-nav > ul > li > a:hover{color:var(--teal); background:var(--teal-light);}
.has-sub > span{cursor:pointer;}
.has-sub > span::after{content:' ›'; display:inline-block; transform:rotate(90deg); font-size:.75rem; margin-inline-start:2px;}
.sub-menu{
  display:none; position:absolute; top:100%; right:0; background:#fff; border:1px solid var(--border);
  box-shadow:0 12px 28px rgba(20,40,45,0.1); min-width:200px; padding:8px 0; z-index:20; border-radius:6px;
}
[dir="ltr"] .sub-menu{right:auto; left:0;}
.has-sub:hover .sub-menu{display:block;}
.sub-menu a{display:block; padding:9px 18px; font-size:.84rem; font-weight:600; color:var(--body);}
.sub-menu a:hover{background:var(--teal-light); color:var(--teal-deep);}
.soon{color:#a4adb0 !important; cursor:default;}
.soon:hover{color:#a4adb0 !important; background:none !important;}
.nav-toggle{display:none; flex-direction:column; gap:5px; background:none; border:none;}
.nav-toggle span{width:24px; height:2px; background:var(--ink);}

/* ===================== PAGE BANNER (subpages) ===================== */
.page-banner{
  background:linear-gradient(135deg, var(--teal-deep), var(--teal) 70%);
  padding:64px 0 54px; color:#fff; position:relative; overflow:hidden;
}
.page-banner::after{
  content:''; position:absolute; inset:0; opacity:.08; pointer-events:none;
  background-image:linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size:48px 48px;
}
.breadcrumb{position:relative; z-index:2; font-size:.82rem; color:#bfe4e9; margin-bottom:14px; display:flex; align-items:center; gap:8px;}
.breadcrumb a:hover{color:#fff;}
.breadcrumb .sep{opacity:.5;}
.page-banner h1{position:relative; z-index:2; color:#fff; font-size:clamp(1.6rem,3vw,2.3rem);}
.page-banner p{position:relative; z-index:2; color:#d7ecee; max-width:600px; margin-top:12px; font-size:.98rem;}

/* ===================== SUB TABS (for pages with anchors) ===================== */
.subtabs{
  position:sticky; top:0; z-index:60; background:#fff; border-bottom:1px solid var(--border);
}
.subtabs-inner{display:flex; gap:4px; max-width:1200px; margin:0 auto; padding:0 32px; overflow-x:auto;}
.subtabs a{
  padding:16px 18px; font-weight:700; font-size:.88rem; color:var(--body); white-space:nowrap; border-bottom:3px solid transparent;
}
.subtabs a:hover, .subtabs a.active{color:var(--teal-deep); border-color:var(--yellow);}

/* ===================== PLACEHOLDER NOTICE ===================== */
.notice{
  display:flex; gap:14px; align-items:flex-start; background:#fff8e6; border:1px solid #f0d996;
  border-radius:8px; padding:18px 22px; margin-bottom:44px;
}
.notice .dot{width:10px; height:10px; border-radius:50%; background:var(--yellow-deep); margin-top:6px; flex-shrink:0;}
.notice strong{color:var(--ink); display:block; margin-bottom:4px; font-size:.92rem;}
.notice p{color:var(--body); font-size:.88rem; margin:0;}

/* ===================== CONTENT PLACEHOLDER BLOCKS ===================== */
.info-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:36px;}
.info-card{background:var(--bg-soft); border:1px solid var(--border); border-radius:8px; padding:28px 26px;}
.info-card .icon{width:38px; height:38px; margin-bottom:16px; color:var(--teal-deep);}
.info-card h4{font-size:1.02rem; margin-bottom:10px; color:var(--ink); font-weight:800;}
.info-card p{font-size:.9rem; color:var(--body); margin:0;}
.steps{counter-reset:step; margin-top:36px;}
.step{display:flex; gap:20px; padding:22px 0; border-bottom:1px solid var(--border);}
.step:last-child{border-bottom:none;}
.step-num{
  counter-increment:step; flex-shrink:0; width:38px; height:38px; border-radius:50%; background:var(--teal-deep);
  color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.95rem;
}
.step-num::before{content: counter(step);}
.step-body h4{font-size:1rem; margin-bottom:6px; color:var(--ink); font-weight:800;}
.step-body p{font-size:.9rem; color:var(--body); margin:0;}
.two-col{display:grid; grid-template-columns:1.3fr 1fr; gap:44px; align-items:start; margin-top:20px;}
.side-card{background:var(--bg-soft); border:1px solid var(--border); border-radius:8px; padding:26px 24px;}
.side-card h4{font-size:1rem; margin-bottom:14px; color:var(--ink); font-weight:800;}
.side-card ul{list-style:none; font-size:.88rem; color:var(--body);}
.side-card li{padding:8px 0; border-bottom:1px dashed var(--border); display:flex; justify-content:space-between; gap:10px;}
.side-card li:last-child{border-bottom:none;}
.side-card li strong{color:var(--ink); font-weight:700;}

/* ===================== CONTACT PAGE ===================== */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:50px; margin-top:20px;}
.contact-info-item{display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--border);}
.contact-info-item:last-child{border-bottom:none;}
.contact-info-item .ic{
  width:42px; height:42px; border-radius:50%; background:var(--teal-light); color:var(--teal-deep);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-info-item h5{font-size:.9rem; color:var(--ink); margin-bottom:4px; font-weight:800;}
.contact-info-item p{font-size:.9rem; color:var(--body); margin:0;}
.contact-form{background:var(--bg-soft); border:1px solid var(--border); border-radius:10px; padding:34px;}
.form-row{margin-bottom:18px;}
.form-row label{display:block; font-size:.85rem; font-weight:700; color:var(--ink); margin-bottom:7px;}
.form-row input, .form-row textarea{
  width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:5px; font-family:inherit; font-size:.92rem;
  background:#fff;
}
.form-row textarea{resize:vertical; min-height:110px;}
.form-note{font-size:.78rem; color:#8b979a; margin-top:10px;}
.map-frame{
  margin-top:36px; border:1px solid var(--border); border-radius:10px; overflow:hidden; height:320px;
  background:var(--bg-soft); display:flex; align-items:center; justify-content:center; color:#8b979a; font-size:.9rem;
}

/* ===================== STAFF / CADRE CARDS ===================== */
.staff-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:36px;}
.staff-card{background:#fff; border:1px solid var(--border); border-radius:10px; padding:28px 22px; text-align:center;}
.staff-photo{
  width:84px; height:84px; border-radius:50%; margin:0 auto 16px; background:var(--teal-light); color:var(--teal-deep);
  display:flex; align-items:center; justify-content:center; font-size:1.6rem; font-weight:800;
}
.staff-card h4{font-size:1rem; color:var(--ink); margin-bottom:4px; font-weight:800;}
.staff-card .role{font-size:.82rem; color:var(--teal-deep); font-weight:700; margin-bottom:10px;}
.staff-card p{font-size:.85rem; color:var(--body); margin:0;}
.staff-list{margin-top:20px; border:1px solid var(--border); border-radius:8px; overflow:hidden;}
.staff-list-row{
  display:flex; justify-content:space-between; align-items:center; padding:14px 20px; font-size:.88rem;
  border-bottom:1px solid var(--border); background:#fff;
}
.staff-list-row:last-child{border-bottom:none;}
.staff-list-row .n{color:var(--ink); font-weight:700;}
.staff-list-row .t{color:var(--body);}

/* ===================== NEWS CARDS ===================== */
.news{background:var(--bg-soft);}
.news-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:44px;}
.news-card{background:#fff; border:1px solid var(--border); border-radius:8px; overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .3s ease, transform .3s ease;}
.news-card:hover{box-shadow:0 20px 40px rgba(20,50,55,0.12); transform:translateY(-4px);}
.news-card-body{padding:24px 24px 26px; display:flex; flex-direction:column; flex:1;}
.news-tag{
  display:inline-flex; align-self:flex-start; font-size:.7rem; font-weight:800; color:var(--teal-deep);
  background:var(--teal-light); padding:4px 12px; border-radius:999px; margin-bottom:14px;
}
.news-date{font-size:.78rem; color:#8b979a; margin-bottom:8px; font-family:'Inter',sans-serif;}
.news-card h4{font-size:1.02rem; color:var(--ink); margin-bottom:10px; line-height:1.5; font-weight:800;}
.news-card p{font-size:.88rem; color:var(--body); margin-bottom:16px;}
.news-more{margin-top:auto; font-size:.84rem; font-weight:700; color:var(--teal-deep);}
.news-more:hover{color:var(--ink);}

@media (max-width:980px){
  .news-grid{grid-template-columns:1fr;}
}

@media (max-width:980px){
  .info-grid{grid-template-columns:1fr;}
  .two-col{grid-template-columns:1fr;}
  .contact-grid{grid-template-columns:1fr;}
  .staff-grid{grid-template-columns:1fr;}
}

/* ===================== HERO ===================== */
.hero{
  position:relative; background:var(--bg-soft); overflow:hidden;
  padding:64px 0 0;
}
.hero-grid{
  display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:0; min-height:560px; position:relative;
}
.hero-visual{
  position:relative; height:100%; min-height:560px;
  background:linear-gradient(135deg, var(--teal-deep), var(--teal) 60%, #2f95a6);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.hero-visual svg{width:82%; max-width:420px;}
.hero-visual .dot{position:absolute; border-radius:50%; background:rgba(255,255,255,.5);}
.hero-card{
  background:#fff; padding:52px 56px; margin-inline-end:-90px; position:relative; z-index:5;
  box-shadow:0 24px 60px rgba(20,50,55,0.14); border-inline-start:6px solid var(--yellow);
  max-width:560px;
}
[dir="ltr"] .hero-card{margin-inline-end:0; margin-inline-start:-90px;}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family:'Cairo',sans-serif; font-weight:700; font-size:.78rem;
  color:var(--teal-deep); letter-spacing:.5px; margin-bottom:16px;
}
[dir="ltr"] .hero-eyebrow{font-family:'Inter',sans-serif;}
.hero-eyebrow::before{content:''; width:24px; height:2px; background:var(--yellow-deep);}
.hero h1{font-size:clamp(1.7rem, 3vw, 2.35rem); line-height:1.35; margin-bottom:18px;}
.hero h1 .en-name{display:block; font-family:'Poppins',sans-serif; font-weight:700; font-size:.5em; color:var(--teal-deep); margin-top:8px;}
.hero p.lead{color:var(--body); font-size:1rem; margin-bottom:30px;}
.hero-cta{display:flex; gap:14px; flex-wrap:wrap;}
.btn{display:inline-block; padding:14px 28px; font-weight:700; font-size:.88rem; border-radius:3px; border:2px solid transparent;}
.btn-primary{background:var(--yellow); color:var(--ink);}
.btn-primary:hover{background:var(--yellow-deep);}
.btn-outline{border-color:var(--teal-deep); color:var(--teal-deep);}
.btn-outline:hover{background:var(--teal-deep); color:#fff;}

/* ===================== SECTION SHELL ===================== */
section{padding:96px 0;}
.eyebrow{
  display:inline-flex; align-items:center; gap:10px; color:var(--teal-deep); font-weight:800; font-size:.8rem;
  letter-spacing:.5px; margin-bottom:14px;
}
[dir="ltr"] .eyebrow{font-family:'Inter',sans-serif;}
.eyebrow::before{content:''; width:24px; height:2px; background:var(--yellow-deep);}
.section-title{font-size:clamp(1.5rem,2.6vw,2.1rem); margin-bottom:16px;}
.section-intro{color:var(--body); max-width:640px; font-size:1rem;}
.reveal{opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease;}
.reveal.in{opacity:1; transform:translateY(0);}

/* ===================== VISION / MISSION ===================== */
.vm{background:#fff;}
.vm-grid{display:grid; grid-template-columns:1fr 1fr; gap:0; margin-top:50px; border:1px solid var(--border); border-radius:8px; overflow:hidden;}
.vm-col{padding:40px 44px; position:relative;}
.vm-col:first-child{background:var(--teal-deep); color:#fff;}
.vm-col:first-child h3{color:#fff;}
.vm-col:first-child p{color:#cfe6e9;}
.vm-col:last-child{background:#fff;}
.vm-icon{width:44px; height:44px; margin-bottom:18px;}
.vm-col h3{font-size:1.3rem; margin-bottom:14px;}

/* ===================== DEPARTMENTS ===================== */
.depts{background:var(--bg-soft);}
.dept-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-top:50px;}
.dept-card{background:#fff; border:1px solid var(--border); border-radius:8px; overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .3s ease, transform .3s ease;}
.dept-card:hover{box-shadow:0 20px 40px rgba(20,50,55,0.12); transform:translateY(-4px);}
.dept-media{background:var(--teal-deep); padding:30px; display:flex; align-items:center; justify-content:center; aspect-ratio:16/11;}
.dept-media img{width:62%; object-fit:contain;}
.dept-body{padding:26px 28px; display:flex; flex-direction:column; flex:1;}
.dept-label{font-size:.72rem; font-weight:800; color:var(--teal-deep); text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px;}
[dir="rtl"] .dept-label{text-transform:none;}
.dept-body h3{font-size:1.12rem; margin-bottom:12px; line-height:1.5;}
.dept-body p{font-size:.92rem; color:var(--body); margin-bottom:14px;}
.dept-toggle{
  margin-top:auto; display:inline-flex; align-items:center; gap:6px; font-size:.84rem; font-weight:700;
  color:var(--teal-deep); background:none; border:none; padding:0; align-self:flex-start;
}
.dept-toggle .arrow{transition:transform .3s ease; font-size:.68rem;}
.dept-toggle.open .arrow{transform:rotate(180deg);}
.dept-more{max-height:0; overflow:hidden; transition:max-height .5s ease;}
.dept-more-inner{padding-top:14px; border-top:1px solid var(--border); margin-top:14px;}
.dept-more h4{font-size:.85rem; color:var(--ink); margin:10px 0 6px; font-weight:800;}
.dept-more ul{padding-inline-start:20px; color:var(--body); font-size:.88rem;}
.dept-more li{margin-bottom:6px;}
.dept-more strong{color:var(--ink);}

/* ===================== ORG CHART ===================== */
.org{background:var(--teal-deep); color:#fff;}
.org .eyebrow{color:var(--yellow);}
.org .eyebrow::before{background:var(--yellow);}
.org .section-title{color:#fff;}
.org .section-intro{color:#cfe6e9;}
.org-tree{margin-top:50px;}
.org-top{text-align:center; margin-bottom:44px;}
.org-node-top{
  display:inline-block; background:var(--yellow); color:var(--ink); font-weight:800;
  padding:16px 40px; border-radius:6px; font-size:1.05rem;
}
.org-sub{display:block; font-size:.72rem; font-weight:600; margin-top:6px; color:#4d3b0f;}
.org-connector{width:1px; height:32px; background:rgba(255,255,255,0.3); margin:0 auto;}
.org-branches{display:grid; grid-template-columns:repeat(3,1fr); gap:22px; position:relative;}
.org-branches::before{content:''; position:absolute; top:-32px; right:16.6%; left:16.6%; height:1px; background:rgba(255,255,255,0.3);}
.org-branch{background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); padding:24px 22px; border-radius:8px; position:relative;}
.org-branch::before{content:''; position:absolute; top:-32px; right:50%; width:1px; height:32px; background:rgba(255,255,255,0.3);}
.org-branch h4{font-size:1.02rem; margin-bottom:14px; padding-bottom:12px; border-bottom:1px dashed rgba(255,255,255,0.2); font-weight:800;}
.org-branch ul{list-style:none; font-size:.85rem; color:#cfe6e9;}
.org-branch li{padding:5px 0; border-bottom:1px dotted rgba(255,255,255,0.1);}
.org-branch li:last-child{border-bottom:none;}
.org-toggle{margin-top:14px; font-size:.78rem; color:var(--yellow); cursor:pointer; font-weight:700; display:inline-flex; align-items:center; gap:6px;}
.org-toggle .arrow{transition:transform .3s ease; font-size:.68rem;}
.org-toggle.open .arrow{transform:rotate(180deg);}
.org-full{max-height:0; overflow:hidden; transition:max-height .6s ease;}
.org-full-inner{padding-top:8px;}
.org-full ul{list-style:none; font-size:.8rem; color:#b9d5d8;}
.org-full li{padding:4px 0; position:relative; padding-inline-start:14px;}
.org-full li::before{content:'—'; position:absolute; inset-inline-start:0; color:rgba(255,255,255,0.35);}
.org-full h5{font-size:.82rem; color:var(--yellow); margin:10px 0 4px; font-weight:800;}

/* ===================== AFFILIATION ===================== */
.affiliation{background:var(--bg-soft); text-align:center;}
.affiliation img{width:96px; margin:0 auto 20px;}
.affiliation h3{font-size:1.3rem; margin-bottom:10px;}
.affiliation p{color:var(--body); max-width:560px; margin:0 auto;}

/* ===================== SITEMAP ===================== */
.sitemap{background:#fff;}
.sitemap-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:50px;}
.sitemap-item{background:var(--bg-soft); border:1px solid var(--border); border-radius:8px; padding:22px 20px;}
.sitemap-item .num{font-weight:800; color:var(--teal-deep); font-size:.78rem; margin-bottom:8px; display:block;}
.sitemap-item h5{font-size:.95rem; margin-bottom:6px; font-weight:800; color:var(--ink);}
.sitemap-item .status{font-size:.74rem; color:#8b979a;}

/* ===================== FOOTER ===================== */
footer{background:var(--utility-bg); color:#93a0a3; padding:50px 0 26px; font-size:.86rem;}
.footer-grid{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; padding-bottom:24px; border-bottom:1px solid rgba(255,255,255,0.1);}
.footer-brand{display:flex; align-items:center; gap:12px; color:#fff; font-weight:800; font-size:1rem;}
.footer-brand img{width:34px; height:34px; object-fit:contain;}
.footer-links{display:flex; gap:22px; flex-wrap:wrap;}
.footer-links a:hover{color:var(--teal);}
.footer-bottom{padding-top:20px; text-align:center; color:#5f6c6f; font-size:.78rem;}

@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-visual{min-height:280px; order:-1;}
  .hero-card{margin-inline-end:0 !important; margin-inline-start:0 !important; margin:-40px 20px 0; padding:34px 28px;}
  .vm-grid{grid-template-columns:1fr;}
  .dept-grid{grid-template-columns:1fr;}
  .org-branches{grid-template-columns:1fr;}
  .org-branches::before, .org-branch::before{display:none;}
  .sitemap-grid{grid-template-columns:repeat(2,1fr);}
  nav.main-nav > ul{display:none;}
  .nav-toggle{display:flex;}
  .utility-links{display:none;}
}
