/* ============================================================
   AMRA — Al-Quds Medical Research Association
   Landing Page Stylesheet
   ============================================================ */

:root{
  --ink:#0b0e11;
  --ink-soft:#1a1d21;
  --grey-text:#6e7177;
  --grey-light:#9a9da3;
  --panel:#f1f1f1;
  --panel-deep:#e8e9eb;
  --white:#ffffff;
  --line:#e7e7e9;

  --brand-blue:#0f5c82;
  --brand-blue-dark:#0a3f59;
  --teal:#7fb8a8;
  --pink:#ffd7e0;
  --red:#ff2d20;
  --orange:#ff7a1a;
  --amber:#caa106;
  --green:#1f9d7a;

  --radius-lg:28px;
  --radius-md:18px;
  --radius-sm:12px;

  --maxw:1320px;
  --pad:clamp(24px, 5vw, 80px);

  --ease:cubic-bezier(.22,1,.36,1);
  --ease-soft:cubic-bezier(.16,.84,.44,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;}
section{position:relative;}
.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding-left:var(--pad);
  padding-right:var(--pad);
}

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--brand-blue);
  outline-offset:3px;
  border-radius:6px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader{
  position:fixed; inset:0; z-index:9999;
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  transition:opacity .7s var(--ease), visibility .7s var(--ease);
}
#preloader.done{opacity:0; visibility:hidden; pointer-events:none;}
.loader-mark{
  width:84px; height:84px;
  position:relative;
}
.loader-mark svg{width:100%;height:100%;}
.loader-mark .oct{
  fill:none;
  stroke:#0b0e11;
  stroke-width:6;
  stroke-dasharray:330;
  stroke-dashoffset:330;
  animation:draw-oct 1.4s var(--ease-soft) forwards infinite;
}
@keyframes draw-oct{
  0%{stroke-dashoffset:330;}
  55%{stroke-dashoffset:0;}
  100%{stroke-dashoffset:-330;}
}
.loader-label{
  position:absolute;
  bottom:-38px; left:50%; transform:translateX(-50%);
  font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--grey-text); white-space:nowrap;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:500;
  padding:18px var(--pad);
  display:flex; align-items:center; justify-content:space-between;
  background: rgba(255, 255, 255, 0.98);
  transition:background .4s var(--ease), box-shadow .4s var(--ease), padding .3s var(--ease);
}
.site-header.scrolled{
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(16px) saturate(160%);
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  box-shadow:0 1px 0 rgba(0,0,0,.06), 0 12px 30px -20px rgba(0,0,0,.25);
  padding-top:12px; padding-bottom:12px;
}
.header-social{
  display:flex; gap:14px; align-items:center;
}
.header-social a{
  width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--ink);
  transition:transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.header-social a:hover{
  background:var(--ink); color:#fff; transform:translateY(-3px) rotate(-6deg);
}
.header-social svg{width:18px;height:18px;}

.brand{
  display:flex; align-items:center; gap:12px;
  cursor:pointer;
}
.brand img{
  height:130px;
  width:auto;
  margin: -35px 0;
  position: relative;
  top: 25px;
  transition:transform .4s var(--ease);
}
.brand:hover img{transform:scale(1.04);}

/* center glass nav */
.glass-nav{
  position:static; margin:0 16px;
  display:flex; gap:4px;
  background:rgba(255,255,255,.35);
  border:1px solid rgba(255,255,255,.6);
  backdrop-filter:blur(18px) saturate(180%);
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  border-radius:999px;
  padding:6px;
  box-shadow:0 8px 30px -12px rgba(0,0,0,.18);
}
.glass-nav a{
  position:relative;
  padding:10px 18px;
  font-size:13.5px; font-weight:600;
  border-radius:999px;
  color:var(--ink-soft);
  transition:color .3s var(--ease);
  white-space:nowrap;
}
.glass-nav a::before{
  content:'';
  position:absolute; inset:0;
  border-radius:999px;
  background:#fff;
  opacity:0;
  transform:scale(.7);
  transition:opacity .35s var(--ease), transform .35s var(--ease);
  z-index:-1;
  box-shadow:0 6px 18px -8px rgba(0,0,0,.25);
}
.glass-nav a:hover::before, .glass-nav a:focus-visible::before{opacity:1; transform:scale(1);}
.glass-nav a:hover{color:var(--brand-blue);}

@media (max-width: 1360px){
  .glass-nav{display:none;}
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  height:100vh;
  min-height:560px;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.hero-bg{
  position:absolute; inset:0; z-index:-2;
  background-image:url('assets/national-cancer-institute-OYlhHhzksuk-unsplash.jpg');
  background-size:cover;
  background-position:center 38%;
  transform:scale(1.08);
  animation:hero-breathe 18s ease-in-out infinite alternate;
}
@keyframes hero-breathe{
  0%{transform:scale(1.08) translateY(0);}
  100%{transform:scale(1.16) translateY(-1.5%);}
}
.hero::after{
  content:'';
  position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg, rgba(4,12,18,.55) 0%, rgba(4,16,24,.42) 45%, rgba(2,8,14,.68) 100%);
}
.hero-content{
  position:relative; z-index:1;
  color:#fff;
  padding:0 24px;
  max-width:860px;
}
.eyebrow{
  display:inline-block;
  font-size:13px; letter-spacing:.16em; text-transform:uppercase;
  font-weight:600;
  color:rgba(255,255,255,.85);
  margin-bottom:18px;
  opacity:0; transform:translateY(14px);
  animation:reveal-up .9s var(--ease-soft) .25s forwards;
}
.hero h1{
  font-size:clamp(2.4rem, 6vw, 4.6rem);
  font-weight:800;
  line-height:1.06;
  letter-spacing:-.02em;
  margin:0 0 34px;
  text-shadow:0 4px 30px rgba(0,0,0,.25);
  opacity:0; transform:translateY(18px);
  animation:reveal-up 1s var(--ease-soft) .4s forwards;
}
.hero-actions{
  display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
  opacity:0; transform:translateY(16px);
  animation:reveal-up 1s var(--ease-soft) .65s forwards;
}
@keyframes reveal-up{to{opacity:1; transform:translateY(0);}}

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-size:14.5px; font-weight:600;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.btn-solid{
  background:#fff; color:var(--ink);
}
.btn-solid:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px -10px rgba(0,0,0,.35);
}
.btn-outline{
  background:transparent; color:#fff; border-color:rgba(255,255,255,.6);
}
.btn-outline:hover{
  background:rgba(255,255,255,.14);
  border-color:#fff;
  transform:translateY(-3px);
}

.scroll-cue{
  position:absolute; bottom:30px; left:47%; transform:translateX(-50%);
  z-index:1;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:rgba(255,255,255,.85);
  cursor:pointer;
  background:none; border:none;
  opacity:0;
  animation:reveal-up .9s var(--ease-soft) 1s forwards;
}
.scroll-cue span{font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;}
.scroll-cue .chev{width:18px;height:18px;}
.scroll-cue .chev-wrap{display:flex;flex-direction:column;align-items:center;margin-top:-6px;}
.scroll-cue .chev-wrap svg:nth-child(1){animation:chev-bounce 1.6s ease-in-out infinite;}
.scroll-cue .chev-wrap svg:nth-child(2){animation:chev-bounce 1.6s ease-in-out .2s infinite; opacity:.5; margin-top:-9px;}
@keyframes chev-bounce{
  0%,100%{transform:translateY(0); opacity:1;}
  50%{transform:translateY(6px); opacity:.4;}
}
.scroll-cue:hover{color:#fff;}

/* ============================================================
   QUOTE
   ============================================================ */
.quote-section{
  padding:110px var(--pad) 90px;
  text-align:center;
}
.quote-section blockquote{
  max-width:1040px;
  margin:0 auto 28px;
  font-size:clamp(1.3rem, 2.7vw, 2.05rem);
  font-weight:700;
  line-height:1.4;
  letter-spacing:-.01em;
}
.quote-section cite{
  display:block;
  font-style:normal;
  font-weight:700;
  font-size:15px;
}
.quote-section .role{
  display:block;
  color:var(--grey-text);
  font-size:14px;
  font-weight:400;
  margin-top:2px;
}
.quote-mark{
  font-size:3rem; color:var(--brand-blue); display:block; line-height:0; margin-bottom:10px; opacity:.35;
}

/* reveal-on-scroll helper */
.reveal{
  opacity:0;
  transform:translateY(36px);
  transition:opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}
.reveal.in{opacity:1; transform:translateY(0);}
.reveal-scale{opacity:0; transform:scale(.92) translateY(20px);}
.reveal-scale.in{opacity:1; transform:scale(1) translateY(0);}
.stagger > *{transition-delay:calc(var(--i,0) * 90ms);}

/* ============================================================
   ABOUT
   ============================================================ */
.about{
  padding:70px var(--pad) 120px;
}
.about-inner{max-width:1320px; margin:0 auto;}
.about h2{
  font-size:clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight:800;
  margin:0 0 26px;
}
.about p{
  font-size:17px;
  line-height:1.75;
  color:var(--grey-text);
  max-width:1180px;
  margin:0 0 14px;
}
.about-more{
  display:grid; grid-template-rows:0fr; overflow:hidden;
  transition:grid-template-rows .6s var(--ease-soft);
}
.about-more.open{grid-template-rows:1fr;}
.about-more-inner{min-height:0;}
.about-more p{opacity:0; transform:translateY(10px); transition:opacity .5s var(--ease) .1s, transform .5s var(--ease) .1s;}
.about-more.open p{opacity:1; transform:translateY(0);}

.see-more-btn{
  margin-top:8px;
  background:none; border:none; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px;
  font-weight:700; font-size:14.5px; color:var(--brand-blue);
  padding:6px 0;
}
.see-more-btn svg{width:14px;height:14px; transition:transform .4s var(--ease);}
.see-more-btn.open svg{transform:rotate(180deg);}
.see-more-btn:hover{color:var(--brand-blue-dark);}

/* ============================================================
   OFFER + FEATURE CARDS (3-up)
   ============================================================ */
.offer{padding:30px var(--pad) 110px;}
.offer h2{
  font-size:clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight:800;
  text-align:center;
  margin:0 0 50px;
}
.offer-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
  max-width:1320px;
  margin:0 auto;
}
@media (max-width: 900px){ .offer-grid{grid-template-columns:1fr;} }

.offer-card{
  background:var(--panel);
  border-radius:var(--radius-lg);
  padding:32px 32px 0;
  display:flex; flex-direction:column;
  min-height:430px;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
  overflow:hidden;
}
.offer-card:hover{
  transform:translateY(-8px);
  box-shadow:0 26px 50px -22px rgba(0,0,0,.22);
  background:#ececec;
}
.offer-card h3{font-size:1.3rem; font-weight:700; margin:0 0 10px;}
.offer-card p{font-size:14.5px; color:var(--grey-text); line-height:1.55; margin:0 0 20px;}
.offer-tex{
  margin-top:auto;
  border-radius:16px 16px 0 0;
  height:230px;
  background-size:cover; background-position:top center;
  box-shadow:0 -4px 0 4px #fff, 0 -10px 24px -8px rgba(0,0,0,.18);
  transform:translateY(0);
  transition:transform .6s var(--ease);
}
.offer-card:hover .offer-tex{transform:translateY(-6px);}
.tex-research{background-image:url('assets/tex_research.png');}
.tex-course{background-image:url('assets/tex_course.png');}
.tex-community{background-image:url('assets/tex_community.png');}

/* ============================================================
   COURSE CONTENT PANEL (Text_list_1) + floating square
   ============================================================ */
.course{
  padding:40px var(--pad) 130px;
}
.course-panel{
  position:relative;
  max-width:1320px; margin:0 auto;
  background:
    linear-gradient(120deg, rgba(255,255,255,.55), rgba(255,255,255,.15)),
    url('assets/milad-fakurian-HE1_K4_-QT8-unsplash.jpg');
  background-size:cover; background-position:center;
  border-radius:32px;
  padding:64px clamp(28px,5vw,64px);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;
  overflow:hidden;
  box-shadow:0 40px 80px -50px rgba(15,92,130,.35);
}
.course-panel h2{
  font-size:clamp(1.7rem, 3vw, 2.4rem);
  font-weight:800;
  margin:0;
  line-height:1.18;
}
.course-list{display:flex; flex-direction:column; gap:16px;}
.course-item{
  background:rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.7);
  border-radius:16px;
  padding:20px 22px;
  backdrop-filter:blur(6px);
  transition:background .5s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
  cursor:default;
}
.course-item h4{
  margin:0 0 8px; font-size:15.5px; font-weight:700;
  display:flex; align-items:center; gap:10px;
}
.course-item h4 .dot{width:9px;height:9px;border-radius:50%;background:var(--ink); flex-shrink:0;}
.course-item p{margin:0; font-size:13.5px; color:var(--grey-text); line-height:1.55;}
.course-item:hover{
  transform:translateX(6px);
  box-shadow:0 18px 30px -18px rgba(0,0,0,.2);
}
.course-item.shade-1:hover{background:rgba(127,184,168,.35);}
.course-item.shade-2:hover{background:rgba(255,122,26,.22);}
.course-item.shade-3:hover{background:rgba(15,92,130,.22);}

/* floating glass square, centered absolutely over the panel */
.floating-square{
  position:absolute;
  top:70%; left:40%;
  transform:translate(-50%,-50%);
  width:150px; height:150px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.8);
  backdrop-filter:blur(14px) saturate(180%);
  -webkit-backdrop-filter:blur(14px) saturate(180%);
  border-radius:26px;
  box-shadow:0 30px 60px -20px rgba(10,40,60,.35), inset 0 1px 0 rgba(255,255,255,.8);
  display:none;
  align-items:center; justify-content:center;
  animation:float-square 6s ease-in-out infinite;
  pointer-events:none;
}
@media (min-width:1140px){ .floating-square{display:flex;} }
.floating-square svg{width:54px;height:54px;color:var(--brand-blue);}
@keyframes float-square{
  0%,100%{transform:translate(-50%,-50%) rotate(0deg);}
  50%{transform:translate(-50%,-54%) rotate(6deg);}
}

@media (max-width:900px){
  .course-panel{grid-template-columns:1fr;}
}

/* ============================================================
   STATS BANNER (Text_row_1)
   ============================================================ */
.stats{
  position:relative;
  padding:90px var(--pad);
  color:#fff;
  overflow:hidden;
}
.stats-bg{
  position:absolute; inset:0; z-index:-2;
  background-image:url('assets/national-cancer-institute-UUheDZtE0OE-unsplash.jpg');
  background-size:cover; background-position:center;
  filter:grayscale(1) contrast(1.05);
  transform:scale(1.05);
}
.stats::after{
  content:'';
  position:absolute; inset:0; z-index:-1;
  background:rgba(20,22,24,.62);
}
.stats-grid{
  max-width:1320px; margin:0 auto;
  display:grid; grid-template-columns:1fr 1fr;
  gap:40px;
}
.stat{
  border-top:1px solid rgba(255,255,255,.35);
  padding-top:22px;
}
.stat h3{
  margin:0;
  font-size:clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight:700;
}
.stat h3 .num{color:#6fd6c4;}
@media (max-width:760px){ .stats-grid{grid-template-columns:1fr; gap:26px;} }

/* ============================================================
   SECTION HEADERS (Marquee / Headline)
   ============================================================ */
.section-title{
  text-align:center;
  padding:110px var(--pad) 60px;
}
.section-title h2{
  display:inline-block;
  font-size:clamp(1.7rem, 3vw, 2.3rem);
  font-weight:800;
  position:relative;
  padding-bottom:14px;
}
.section-title h2::after{
  content:'';
  position:absolute; left:0; right:0; bottom:0;
  height:3px; background:var(--ink);
  transform-origin:center;
  transform:scaleX(0);
  transition:transform .8s var(--ease-soft);
}
.section-title.in h2::after{transform:scaleX(1);}
.section-title.plain h2::after{display:none;}

/* ============================================================
   TEAM GRID
   ============================================================ */
/* ============================================================
   TEAM GRID
   ============================================================ */
.team{padding:0 var(--pad) 120px;}

.team-grid{
  max-width:1320px; margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:24px;
}

.team-row{
  display:flex;
  justify-content:center;
  gap:24px;
  flex-wrap:wrap;
}

.team-row .person{
  flex:0 0 280px;
  max-width:280px;
}

@media (max-width:1100px){
  .team-row{ grid-template-columns:repeat(3, minmax(0, 280px)); }
}
@media (max-width:760px){
  .team-row{ grid-template-columns:repeat(2, minmax(0, 280px)); }
}
@media (max-width:480px){
  .team-row{ grid-template-columns:minmax(0, 280px); justify-content:center; }
}
.person{
  display:flex; flex-direction:column; align-items:flex-start;
}
.person-img{
  width:100%; border-radius:18px;
  aspect-ratio:3/4;
  margin-bottom:16px;
  position:relative;
  overflow:hidden;
  background:var(--panel);
  box-shadow:0 18px 36px -22px rgba(0,0,0,.3);
  transform:perspective(800px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition:transform .35s var(--ease), box-shadow .5s var(--ease);
  will-change:transform;
}
/* the photo itself drifts slowly (Ken-Burns) so the board feels alive */
.person-img .pi{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  animation:person-drift 9s ease-in-out infinite alternate;
  animation-delay:calc(var(--i,0) * -1.6s);
}
.person-img .pi.ph{
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#ececec,#dcdde0);
  color:var(--grey-text); font-weight:800; font-size:3rem; letter-spacing:.04em;
}
@keyframes person-drift{
  0%{transform:scale(1) translate(0,0);}
  100%{transform:scale(1.07) translate(-1.2%,-1.2%);}
}
.person-img::after{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.32) 100%);
  opacity:0; transition:opacity .4s var(--ease);
}
/* light sweep that follows the cursor */
.person-img .shine{
  position:absolute; inset:0; z-index:2; pointer-events:none;
  background:radial-gradient(circle at var(--mx,50%) var(--my,30%), rgba(255,255,255,.38), rgba(255,255,255,0) 55%);
  opacity:0; transition:opacity .4s var(--ease);
}
/* AMRA octagon that draws itself in the corner on hover */
.person-img .p-oct{
  position:absolute; z-index:3; top:12px; inset-inline-end:12px;
  width:30px; height:30px; pointer-events:none;
  background:rgba(255,255,255,.9);
  clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%);
  -webkit-mask:radial-gradient(circle at center, transparent 34%, #000 36%);
          mask:radial-gradient(circle at center, transparent 34%, #000 36%);
  transform:scale(0) rotate(-90deg); transition:transform .5s var(--ease);
}
.person:hover .person-img, .person-img:focus-visible{box-shadow:0 30px 50px -22px rgba(0,0,0,.45);}
.person:hover .person-img::after{opacity:1;}
.person:hover .person-img .shine{opacity:1;}
.person:hover .person-img .p-oct{transform:scale(1) rotate(0);}
.person h4{
  margin:0 0 2px; font-size:15.5px; font-weight:700;
  background:linear-gradient(currentColor,currentColor) no-repeat 0 100% / 0 2px;
  display:inline; width:fit-content;
  transition:background-size .5s var(--ease);
}
.person:hover h4{background-size:100% 2px;}
.person p{margin:0; font-size:13px; color:var(--grey-text); transition:transform .4s var(--ease), color .4s var(--ease);}
.person:hover p{transform:translateY(2px); color:var(--ink-soft);}
/* board entrance: each card rises, un-blurs and un-tilts in sequence */
.team-row .person.reveal{
  opacity:0; filter:blur(10px);
  transform:translateY(60px) scale(.92) rotate(-2deg);
  transition:opacity .9s var(--ease-soft), transform 1s var(--ease), filter .9s var(--ease-soft);
  transition-delay:calc(var(--i,0) * 120ms);
}
.team-row .person.reveal:nth-child(even){transform:translateY(60px) scale(.92) rotate(2deg);}
.team-row .person.reveal.in{opacity:1; filter:blur(0); transform:none;}
/* ============================================================
   CONSULTANTS placeholder
   ============================================================ */
.consultants{padding:0 var(--pad) 120px;}
.consultants-grid{
  max-width:1320px; margin:0 auto;
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
@media (max-width:760px){ .consultants-grid{grid-template-columns:1fr;} }
.consultant-card{
  border-radius:var(--radius-lg);
  background:var(--panel);
  padding:30px;
  min-height:230px;
  display:flex; flex-direction:column; justify-content:flex-end;
  position:relative;
  overflow:hidden;
  transition:transform .5s var(--ease), background .5s var(--ease);
}
.consultant-card:hover{transform:translateY(-6px); background:#ececec;}
.consultant-card .badge{
  position:absolute; top:24px; left:24px;
  font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--grey-light); font-weight:700;
}
.consultant-card h4{margin:0; font-size:1.05rem; font-weight:700;}
.consultant-card p{margin:4px 0 0; font-size:13px; color:var(--grey-text);}

/* ============================================================
   CTA CARDS (Enroll / Join team)
   ============================================================ */
.cta-section{padding:30px var(--pad) 120px;}
.cta-grid{
  max-width:1320px; margin:0 auto;
  display:grid; grid-template-columns:1fr 1fr; gap:24px;
}
@media (max-width:760px){ .cta-grid{grid-template-columns:1fr;} }
.cta-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  display:flex; align-items:center; gap:20px;
  box-shadow:0 10px 0px -8px rgba(0,0,0,0), 0 20px 50px -32px rgba(20,40,60,.35);
  transition:transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  cursor:pointer;
}
.cta-card:hover{
  transform:translateY(-6px);
  box-shadow:0 28px 60px -28px rgba(15,92,130,.4);
  border-color:transparent;
}
.cta-icon{
  flex-shrink:0;
  width:96px; height:96px;
  border-radius:16px;
  background-image:url('assets/starburst_icon.png');
  background-size:cover; background-position:center;
  transition:transform .5s var(--ease);
}
.cta-card:hover .cta-icon{transform:scale(1.06) rotate(-4deg);}
.cta-text h3{margin:0 0 6px; font-size:1.15rem; font-weight:700;}
.cta-text p{margin:0 0 10px; font-size:13.5px; color:var(--grey-text);}
.cta-link{
  font-size:13.5px; font-weight:700; color:var(--ink);
  display:inline-flex; align-items:center; gap:6px;
}
.cta-link svg{width:13px;height:13px; transition:transform .35s var(--ease);}
.cta-card:hover .cta-link svg{transform:translateX(4px);}

/* ============================================================
   PARTNER LOGOS
   ============================================================ */
.partners{
  padding:50px var(--pad) 100px;
  text-align:center;
}
.partners > img{
  max-width:980px; margin:0 auto; width:100%;
  filter:grayscale(1) opacity(.7);
  transition:filter .5s var(--ease);
}
.partners:hover > img{filter:grayscale(0) opacity(1);}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  border-top:1px solid var(--line);
  padding:28px var(--pad) 40px;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:18px;
}
.footer-social{display:flex; gap:14px;}
.footer-social a{
  width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--grey-text);
  transition:transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.footer-social a:hover{background:var(--ink); color:#fff; transform:translateY(-3px) rotate(-6deg);}
.footer-social svg{width:18px;height:18px;}
.footer-left{display:flex; flex-direction:column; gap:14px;}
.footer-links{display:flex; flex-wrap:wrap; gap:6px 18px;}
.footer-links a{font-size:13px; font-weight:600; color:var(--grey-text); transition:color .3s var(--ease);}
.footer-links a:hover{color:var(--ink);}
.footer-addr{
  font-size:13px; color:var(--grey-text); line-height:1.6; text-align:right; max-width:520px;
}
@media (max-width:700px){ .footer-addr{text-align:left;} }

/* utility */
.sr-only{position:absolute; width:1px;height:1px; overflow:hidden; clip:rect(0,0,0,0);}

/* ============================================================
   ===== ADDITIONS (v2): header actions, new sections, RTL =====
   ============================================================ */

.sec[hidden]{display:none !important;}
.section-title .section-sub{margin:10px auto 0; max-width:560px; color:var(--grey-text); font-size:15px; line-height:1.6;}

/* ---------- Header: language + student login ---------- */
.header-right{display:flex; align-items:center; gap:10px;}
.lang-toggle{
  height:38px; padding:0 14px; border-radius:999px;
  background:transparent; border:1px solid var(--line);
  font-size:13px; font-weight:700; color:var(--ink-soft); cursor:pointer;
  transition:background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.lang-toggle:hover{background:var(--ink); color:#fff; border-color:var(--ink); transform:translateY(-2px);}
.login-pill{
  display:inline-flex; align-items:center; gap:8px;
  height:38px; padding:0 18px; border-radius:999px;
  background:var(--ink); color:#fff; font-size:13px; font-weight:700; white-space:nowrap;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.login-pill svg{width:15px; height:15px;}
.login-pill:hover{transform:translateY(-2px); box-shadow:0 12px 24px -10px rgba(0,0,0,.45); background:var(--brand-blue-dark);}
.menu-btn{
  display:none; width:38px; height:38px; border-radius:50%;
  align-items:center; justify-content:center;
  background:transparent; border:1px solid var(--line); color:var(--ink); cursor:pointer;
}
.menu-btn svg{width:18px; height:18px;}
.mobile-nav{
  position:fixed; z-index:490; top:76px; inset-inline:var(--pad);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border:1px solid var(--line); border-radius:22px; padding:10px;
  box-shadow:0 30px 60px -28px rgba(0,0,0,.35);
  display:flex; flex-direction:column; max-width:420px; margin-inline-start:auto;
}
.mobile-nav[hidden]{display:none;}
.mobile-nav a{padding:13px 16px; border-radius:14px; font-weight:600; font-size:15px;}
.mobile-nav a:hover{background:var(--panel);}
.mobile-nav .mn-login{background:var(--ink); color:#fff; margin-top:6px; text-align:center;}
@media (max-width:1360px){ .menu-btn{display:inline-flex;} }
@media (max-width:760px){
  .header-social{display:none;}
  .site-header{justify-content:flex-end;}
  .login-pill span{display:none;}
  .login-pill{padding:0; width:38px; justify-content:center;}
}

/* ---------- Shared bits ---------- */
.btn-dark{background:var(--ink); color:#fff;}
.btn-dark:hover{transform:translateY(-3px); box-shadow:0 14px 30px -10px rgba(0,0,0,.45); background:var(--brand-blue-dark);}
.btn .arr, .sys-btn .arr, .event-go .arr, .cta-link svg{width:14px; height:14px; transition:transform .35s var(--ease);}
.btn:hover .arr{transform:translateX(4px);}
.eyebrow-dark, .eyebrow-light{
  display:inline-block; font-size:12px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; margin-bottom:14px;
}
.eyebrow-dark{color:var(--brand-blue);}
.eyebrow-light{color:#6fd6c4;}

/* ---------- Collaborations (dynamic logo grid) ---------- */
.collab-block{max-width:980px; margin:56px auto 0;}
.collab-block[hidden]{display:none;}
.collab-title{font-size:1.25rem; font-weight:800; margin:0 0 6px;}
.collab-sub{margin:0 0 26px; color:var(--grey-text); font-size:14.5px;}
.collab-grid{display:flex; flex-wrap:wrap; justify-content:center; gap:16px;}
.collab-item{
  width:170px; min-height:110px; padding:16px 14px;
  background:var(--panel); border-radius:var(--radius-md);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:14px; text-align:center;
  transition:transform .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease);
}
.collab-item img{max-height:54px; max-width:130px; object-fit:contain; filter:grayscale(1) opacity(.75); transition:filter .4s var(--ease);}
.collab-item small{font-size:11.5px; color:var(--grey-text); font-weight:600;}
.collab-item:hover{transform:translateY(-6px); background:#fff; box-shadow:0 22px 40px -24px rgba(0,0,0,.3);}
.collab-item:hover img{filter:none;}
.collab-add{border:2px dashed var(--grey-light); background:transparent; color:var(--grey-text); font-size:1.6rem; cursor:pointer;}

/* ---------- Dean's word ---------- */
.dean{padding:30px var(--pad) 110px;}
.dean-card{
  max-width:1320px; margin:0 auto;
  background:var(--panel); border-radius:32px;
  padding:clamp(28px,4vw,56px);
  display:grid; grid-template-columns:minmax(240px,380px) 1fr; gap:clamp(28px,5vw,72px); align-items:center;
}
.dean-photo{position:relative;}
.dean-img{
  aspect-ratio:3/4; border-radius:24px; background-size:cover; background-position:center; position:relative; z-index:1;
  box-shadow:0 30px 60px -32px rgba(0,0,0,.4);
}
.dean-img.ph{display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#e8e9eb,#d6d7da); font-size:4rem; font-weight:800; color:var(--grey-text);}
.dean-oct{
  position:absolute; z-index:0; width:62%; aspect-ratio:1; inset-inline-end:-14%; bottom:-10%;
  background:var(--ink);
  clip-path:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%);
  -webkit-mask:radial-gradient(circle at center, transparent 54%, #000 55%); mask:radial-gradient(circle at center, transparent 54%, #000 55%);
  animation:oct-spin 40s linear infinite;
}
@keyframes oct-spin{to{transform:rotate(360deg);}}
.dean-q{display:block; font-size:3.4rem; line-height:.6; color:var(--brand-blue); opacity:.35; margin-bottom:10px;}
.dean-msg p{font-size:clamp(1.05rem,1.7vw,1.3rem); line-height:1.7; font-weight:500; margin:0 0 14px; color:var(--ink-soft);}
.dean-sign{margin-top:22px; padding-top:18px; border-top:1px solid #d9dadd; display:flex; flex-direction:column; gap:2px;}
.dean-sign b{font-size:1.1rem;}
.dean-sign span{color:var(--grey-text); font-size:14px;}
@media (max-width:860px){ .dean-card{grid-template-columns:1fr;} .dean-photo{max-width:320px; margin:0 auto;} }

/* ---------- Trustees & placeholders ---------- */
.trustees, .doctors{padding:0 var(--pad) 110px;}
.trustee-grid{
  max-width:1320px; margin:0 auto;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:24px;
}
.trustee-grid.is-empty, .doctor-grid.is-empty{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.trustee{
  background:var(--panel); border-radius:var(--radius-lg); padding:28px 22px; text-align:center;
  transition:transform .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.trustee:hover{transform:translateY(-8px); background:#ececec; box-shadow:0 26px 50px -26px rgba(0,0,0,.25);}
.trustee-img{
  width:132px; height:132px; margin:0 auto 18px; border-radius:50%;
  background-size:cover; background-position:center; border:4px solid #fff; box-shadow:0 14px 30px -14px rgba(0,0,0,.35);
  transition:transform .6s var(--ease);
}
.trustee-img.ph{display:flex; align-items:center; justify-content:center; background:#dcdde0; font-weight:800; font-size:2rem; color:var(--grey-text);}
.trustee:hover .trustee-img{transform:scale(1.06) rotate(-3deg);}
.trustee h4{margin:0 0 4px; font-size:1.05rem; font-weight:700;}
.t-role{margin:0; font-size:13.5px; font-weight:600; color:var(--brand-blue);}
.t-org{margin:4px 0 0; font-size:13px; color:var(--grey-text);}

/* ---------- Doctors (framed portraits) ---------- */
.doctor-grid{
  max-width:1320px; margin:0 auto;
  display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:30px 24px;
}
.doctor{text-align:center;}
.doctor .frame{
  padding:12px; background:#fff; border:1px solid var(--line); border-radius:22px;
  box-shadow:0 18px 40px -28px rgba(20,40,60,.4), inset 0 0 0 5px var(--panel);
  margin-bottom:16px; transition:transform .5s var(--ease), box-shadow .5s var(--ease);
}
.doctor:hover .frame{transform:translateY(-8px) rotate(-1deg); box-shadow:0 30px 50px -28px rgba(15,92,130,.45), inset 0 0 0 5px var(--panel);}
.doctor-img{aspect-ratio:4/5; border-radius:12px; background-size:cover; background-position:center top;}
.doctor-img.ph{display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#ececec,#dcdde0); font-weight:800; font-size:2.6rem; color:var(--grey-text);}
.doctor h4{margin:0 0 2px; font-size:15.5px; font-weight:700;}
.d-role{margin:0; font-size:13px; font-weight:600; color:var(--brand-blue);}
.d-org{margin:6px 0 0; font-size:12.5px; color:var(--grey-text); display:flex; gap:6px; align-items:center; justify-content:center;}
.d-org svg{width:13px; height:13px; flex-shrink:0;}

/* ---------- Events widget ---------- */
.events{padding:100px var(--pad) 120px;}
.events-head{
  max-width:1320px; margin:0 auto 34px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.events-head h2{font-size:clamp(1.8rem,3.2vw,2.5rem); font-weight:800; margin:0 0 8px;}
.events-head p{margin:0; color:var(--grey-text); font-size:15px;}
.events-body{max-width:1320px; margin:0 auto;}
.event-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:22px;}
.event-card{
  background:var(--panel); border-radius:var(--radius-lg); padding:26px;
  display:flex; gap:20px; align-items:flex-start;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
}
.event-card:hover{transform:translateY(-8px); box-shadow:0 26px 50px -22px rgba(0,0,0,.22); background:#ececec;}
.event-date{
  flex-shrink:0; width:74px; padding:12px 0; border-radius:18px;
  background:var(--ink); color:#fff; text-align:center; display:flex; flex-direction:column; gap:2px;
}
.event-date b{font-size:1.7rem; line-height:1; font-weight:800;}
.event-date span{font-size:12px; letter-spacing:.1em; text-transform:uppercase; opacity:.75;}
.event-info h3{margin:6px 0 6px; font-size:1.1rem; font-weight:700; line-height:1.3;}
.event-info p{margin:0 0 4px; font-size:13.5px; color:var(--grey-text);}
.event-place{display:flex; gap:6px; align-items:center;}
.event-place svg{width:14px; height:14px; flex-shrink:0;}
.event-chip{display:inline-block; font-size:11px; font-weight:700; padding:3px 10px; border-radius:999px; background:#fff; color:var(--brand-blue);}
.event-go{margin-top:12px; display:inline-flex; gap:6px; align-items:center; font-size:13.5px; font-weight:700;}
.event-card:hover .event-go .arr{transform:translateX(4px);}
.event-empty{
  display:flex; align-items:center; gap:24px; padding:34px clamp(22px,4vw,44px);
  background:var(--panel); border-radius:var(--radius-lg); border:1.5px dashed #c9cacd;
  transition:background .4s var(--ease), transform .4s var(--ease);
}
.event-empty:hover{background:#ececec; transform:translateY(-4px);}
.ee-ic{flex-shrink:0; width:70px; height:70px; border-radius:20px; background:#fff; display:flex; align-items:center; justify-content:center; color:var(--brand-blue);}
.ee-ic svg{width:32px; height:32px;}
.event-empty h3{margin:0 0 6px; font-size:1.2rem;}
.event-empty p{margin:0; color:var(--grey-text); font-size:14.5px;}
.events-embed{border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--line); box-shadow:0 30px 60px -40px rgba(0,0,0,.3);}
.events-embed iframe{display:block; width:100%; height:620px; border:0;}

/* ---------- Certificates ---------- */
.certs{padding:0 var(--pad) 120px;}
.certs-panel{
  max-width:1320px; margin:0 auto; position:relative; overflow:hidden;
  background:var(--ink); color:#fff; border-radius:32px;
  padding:clamp(32px,5vw,70px);
  display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(24px,4vw,60px); align-items:center;
}
.certs-panel::before{
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(111,214,196,.22), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(15,92,130,.45), transparent 70%);
  pointer-events:none;
}
.certs-text{position:relative;}
.certs-text h2{font-size:clamp(1.8rem,3.2vw,2.6rem); font-weight:800; line-height:1.15; margin:0 0 16px;}
.certs-text > p{color:rgba(255,255,255,.72); font-size:16px; line-height:1.7; margin:0 0 26px; max-width:560px;}
.certs-feats{list-style:none; padding:0; margin:0 0 30px; display:grid; gap:14px;}
.certs-feats li{display:flex; gap:14px; align-items:flex-start;}
.certs-feats .ic{flex-shrink:0; width:40px; height:40px; border-radius:12px; background:rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; color:#6fd6c4;}
.certs-feats .ic svg{width:20px; height:20px;}
.certs-feats b{display:block; font-size:15px;}
.certs-feats small{display:block; color:rgba(255,255,255,.6); font-size:13px; margin-top:2px;}
.certs-actions{display:flex; gap:12px; flex-wrap:wrap;}
.cert-visual{position:relative; aspect-ratio:1.1; min-height:280px;}
.cert-card{position:absolute; border-radius:20px; background:#fff; color:var(--ink);}
.cert-card.c2{inset:12% 4% 0 14%; background:rgba(255,255,255,.14); transform:rotate(7deg);}
.cert-card.c1{
  inset:4% 10% 10% 6%; padding:26px; transform:rotate(-4deg);
  box-shadow:0 40px 70px -30px rgba(0,0,0,.7);
  animation:cert-float 6s ease-in-out infinite;
  display:flex; flex-direction:column; gap:10px;
}
@keyframes cert-float{0%,100%{transform:rotate(-4deg) translateY(0);}50%{transform:rotate(-2deg) translateY(-10px);}}
.cert-oct{width:44px; height:44px; color:var(--ink);}
.cert-t{font-weight:800; font-size:1.05rem; margin-top:6px;}
.cert-s{font-size:12px; color:var(--grey-text);}
.cert-line{height:8px; border-radius:99px; background:#e7e7e9; margin-top:8px;}
.cert-line.short{width:55%;}
.cert-badge{
  margin-top:auto; align-self:flex-start; display:inline-flex; gap:6px; align-items:center;
  padding:7px 14px; border-radius:999px; background:var(--green); color:#fff; font-size:12.5px; font-weight:700;
}
.cert-badge svg{width:14px; height:14px;}
@media (max-width:900px){ .certs-panel{grid-template-columns:1fr;} .cert-visual{max-width:380px; margin:0 auto; width:100%;} }

/* ---------- System logins ---------- */
.systems{padding:0 var(--pad) 120px;}
.systems-head{text-align:center; margin:0 auto 40px; max-width:640px;}
.systems-head h2{font-size:clamp(1.8rem,3.2vw,2.5rem); font-weight:800; margin:0 0 10px;}
.systems-head p{margin:0; color:var(--grey-text); font-size:15px;}
.systems-grid{max-width:1320px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
@media (max-width:900px){ .systems-grid{grid-template-columns:1fr;} }
.sys-card{
  background:var(--panel); border-radius:var(--radius-lg); padding:32px;
  display:flex; flex-direction:column; gap:10px;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
}
.sys-card:hover{transform:translateY(-8px); background:#ececec; box-shadow:0 26px 50px -22px rgba(0,0,0,.22);}
.sys-ic{width:56px; height:56px; border-radius:18px; background:#fff; display:flex; align-items:center; justify-content:center; color:var(--brand-blue); margin-bottom:8px; transition:transform .5s var(--ease), background .5s var(--ease), color .5s var(--ease);}
.sys-ic svg{width:28px; height:28px;}
.sys-card:hover .sys-ic{background:var(--ink); color:#fff; transform:rotate(-6deg) scale(1.06);}
.sys-card h3{margin:0; font-size:1.25rem;}
.sys-card p{margin:0 0 14px; color:var(--grey-text); font-size:14.5px; line-height:1.55;}
.sys-btn{
  margin-top:auto; align-self:flex-start; display:inline-flex; gap:8px; align-items:center;
  padding:11px 20px; border-radius:999px; background:var(--ink); color:#fff; font-weight:700; font-size:14px;
  transition:background .3s var(--ease);
}
.sys-card:hover .sys-btn{background:var(--brand-blue-dark);}
.sys-card:hover .sys-btn .arr{transform:translateX(4px);}

/* ---------- Forms: collaborate + feedback ---------- */
.collaborate, .feedback{padding:0 var(--pad) 120px;}
.collab-panel{
  max-width:1320px; margin:0 auto;
  background:var(--panel); border-radius:32px; padding:clamp(28px,5vw,64px);
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,5vw,64px); align-items:start;
}
.fb-panel{background:linear-gradient(120deg,#f1f1f1,#e9f0ee);}
@media (max-width:900px){ .collab-panel{grid-template-columns:1fr;} }
.collab-copy h2{font-size:clamp(1.7rem,3vw,2.4rem); font-weight:800; line-height:1.18; margin:0 0 14px;}
.collab-copy p{color:var(--grey-text); font-size:16px; line-height:1.7; margin:0 0 22px;}
.collab-mail{display:inline-flex; align-items:center; gap:10px; font-weight:700; font-size:14.5px; padding:12px 20px; border-radius:999px; border:1px solid #c9cacd; transition:background .3s var(--ease), color .3s var(--ease);}
.collab-mail svg{width:18px; height:18px;}
.collab-mail:hover{background:var(--ink); color:#fff; border-color:var(--ink);}
.form-card{
  background:#fff; border-radius:24px; padding:26px;
  display:flex; flex-direction:column; gap:14px;
  box-shadow:0 30px 60px -40px rgba(20,40,60,.45);
}
.form-card label{display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:600; color:var(--ink-soft);}
.form-card input, .form-card textarea{
  font:inherit; font-size:14.5px; font-weight:400; color:var(--ink);
  padding:12px 14px; border-radius:12px; border:1px solid var(--line); background:#fafafa; resize:vertical;
  transition:border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.form-card input:focus, .form-card textarea:focus{outline:none; background:#fff; border-color:var(--brand-blue); box-shadow:0 0 0 4px rgba(15,92,130,.12);}
.form-card .btn{justify-content:center; width:100%;}
.form-card label.check{flex-direction:row; align-items:center; gap:10px; font-weight:500;}
.form-card label.check input{width:18px; height:18px; padding:0; accent-color:var(--ink);}
.seg{display:grid; grid-template-columns:1fr 1fr; background:var(--panel); border-radius:999px; padding:4px;}
.seg label{flex-direction:row; position:relative; cursor:pointer;}
.seg input{position:absolute; opacity:0; inset:0;}
.seg span{flex:1; text-align:center; padding:10px; border-radius:999px; font-size:13.5px; font-weight:700; color:var(--grey-text); transition:background .3s var(--ease), color .3s var(--ease);}
.seg input:checked + span{background:var(--ink); color:#fff;}
.seg input:focus-visible + span{outline:2px solid var(--brand-blue); outline-offset:2px;}
.form-note{margin:0; font-size:12px; color:var(--grey-light); text-align:center;}
.form-status{margin:0; font-size:13.5px; font-weight:600; min-height:1em; text-align:center;}
.form-status.ok{color:var(--green);} .form-status.err{color:var(--red);}

/* ---------- Custom (admin-made) sections ---------- */
.custom-sec{padding:40px var(--pad) 110px;}
.custom-text{max-width:1320px; margin:0 auto; display:grid; gap:clamp(24px,5vw,64px); align-items:center;}
.custom-text.has-img{grid-template-columns:1fr 1fr;}
.custom-text.img-end .ct-img{order:2;}
.ct-img{aspect-ratio:4/3; border-radius:var(--radius-lg); background-size:cover; background-position:center; box-shadow:0 30px 60px -36px rgba(0,0,0,.4);}
.ct-copy h2{font-size:clamp(1.8rem,3.2vw,2.5rem); font-weight:800; margin:0 0 18px;}
.ct-copy p{font-size:17px; line-height:1.75; color:var(--grey-text); margin:0 0 14px;}
.ct-copy .btn{margin-top:10px;}
@media (max-width:860px){ .custom-text.has-img{grid-template-columns:1fr;} .custom-text.img-end .ct-img{order:0;} }
.custom-cards{max-width:1320px; margin:0 auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px;}
.custom-card{background:var(--panel); border-radius:var(--radius-lg); padding:28px; display:flex; flex-direction:column; gap:8px; transition:transform .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);}
a.custom-card:hover{transform:translateY(-8px); background:#ececec; box-shadow:0 26px 50px -22px rgba(0,0,0,.22);}
.cc-img{height:170px; border-radius:16px; background-size:cover; background-position:center; margin-bottom:8px;}
.custom-card h3{margin:0; font-size:1.2rem;} .custom-card p{margin:0; color:var(--grey-text); line-height:1.6; font-size:14.5px;}
.custom-card .cta-link{margin-top:10px;}
.custom-btn{max-width:1320px; margin:30px auto 0; text-align:center;}

/* ============================================================
   RTL / ARABIC
   ============================================================ */
html[lang="ar"] body, html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] textarea{
  font-family:'IBM Plex Sans Arabic','Inter',-apple-system,'Segoe UI',sans-serif;
}
html[lang="ar"] *{letter-spacing:0 !important; text-transform:none !important;}
html[lang="ar"] .hero h1, html[lang="ar"] .quote-section blockquote{line-height:1.3;}
html[lang="ar"] .about p{line-height:1.95;}
html[dir="rtl"] .footer-addr{text-align:left;}
html[dir="rtl"] .cta-link svg, html[dir="rtl"] .arr, html[dir="rtl"] .see-more-btn svg:not(.x){transform:scaleX(-1);}
html[dir="rtl"] .see-more-btn svg{transform:none;}
html[dir="rtl"] .btn:hover .arr, html[dir="rtl"] .cta-card:hover .cta-link svg, html[dir="rtl"] .sys-card:hover .sys-btn .arr, html[dir="rtl"] .event-card:hover .event-go .arr{transform:scaleX(-1) translateX(4px);}
html[dir="rtl"] .course-item:hover{transform:translateX(-6px);}
html[dir="rtl"] .scroll-cue{left:53%;}
html[dir="rtl"] .login-pill svg{transform:scaleX(-1);}
html[dir="rtl"] .certs-panel::before{transform:scaleX(-1);}
html[dir="rtl"] .cert-card.c1{transform:rotate(4deg);} html[dir="rtl"] .cert-card.c2{transform:rotate(-7deg);}
html[dir="rtl"] .about-more{direction:rtl;}

html[dir="rtl"] .cert-card.c1{animation-name:cert-float-rtl;}
@keyframes cert-float-rtl{0%,100%{transform:rotate(4deg) translateY(0);}50%{transform:rotate(2deg) translateY(-10px);}}
