/* =========================================================
   منارة إقرأ — نظام التصميم
   ========================================================= */

:root{
  --maroon:        #7c2c2c;
  --maroon-deep:    #4f1818;
  --maroon-soft:    #9c4a3f;
  --gold:           #c8932a;
  --gold-light:     #f0c060;
  --gold-bright:    #ffd700;
  --gold-glow:      rgba(200, 147, 42, 0.25);
  --sky:            #4c9cc4;
  --palm:           #2e7d4f;
  --cream:          #fbf6ec;
  --cream-deep:     #f1e8d4;
  --ink:            #2b2420;
  --ink-soft:       #5c5249;

  --font-display:   'Amiri', serif;
  --font-heading:   'El Messiri', sans-serif;
  --font-body:      'Cairo', sans-serif;
  --font-kufi:      'Reem Kufi', sans-serif;
  --font-ruqaa:     'Aref Ruqaa', serif;

  --radius-arch:    50% 50% 6px 6px / 38% 38% 6px 6px;
  --shadow-soft:    0 18px 40px -18px rgba(79, 24, 24, .28);
  --shadow-card:    0 10px 28px -14px rgba(43, 36, 32, .25);
  --ease:           cubic-bezier(.22,.61,.36,1);
}

/* ===================== الفاصل النجمي المتحرك ===================== */
.star-divider{
  display:flex; align-items:center; justify-content:center; gap:1rem;
  max-width:340px; margin:0 auto 2.2rem;
  font-family:var(--font-ruqaa);
}
.star-divider--start{ justify-content:flex-start; margin:0 0 1.4rem; }
.star-divider--on-dark .sd-line{ background:linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.star-divider--on-dark .sd-star{ color:var(--gold-light); }
.star-divider .sd-line{
  flex:1; height:1px;
  background:linear-gradient(90deg, transparent, var(--gold), transparent);
}
.star-divider .sd-star{
  position:relative; width:22px; height:22px; flex-shrink:0;
  color:var(--gold);
  animation:sd-twinkle 3s ease-in-out infinite;
}
.star-divider .sd-star svg{
  width:100%; height:100%; display:block;
  filter:drop-shadow(0 0 6px var(--gold-glow));
  animation:sd-spin 12s linear infinite;
}
@keyframes sd-twinkle{
  0%, 100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.55; transform:scale(.82); }
}
@keyframes sd-spin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}
.section-head.light .star-divider .sd-line{
  background:linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.section-head.light .star-divider .sd-star{ color:var(--gold-light); }

/* ===================== النجمة الهندسية الكبيرة (خلفية زخرفية) ===================== */
.bg-star{
  position:absolute; z-index:0; pointer-events:none;
  opacity:.14; color:var(--gold);
  animation:bg-star-spin 60s linear infinite;
}
.bg-star svg{ width:100%; height:100%; display:block; }
@keyframes bg-star-spin{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }

.hero .bg-star{ width:340px; height:340px; top:0; right:-60px; }
.mission{ position:relative; overflow:hidden; }
.mission .bg-star{ width:280px; height:280px; top:-40px; left:-50px; opacity:.1; color:var(--gold-light); }
.achievements .bg-star{ width:300px; height:300px; bottom:-60px; left:-60px; }

@media (max-width:760px){
  .bg-star{ opacity:.09; }
  .hero .bg-star{ width:220px; height:220px; }
  .mission .bg-star{ width:180px; height:180px; }
  .achievements .bg-star{ width:200px; height:200px; }
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

section[id]{ scroll-margin-top:84px; }

body{
  font-family:var(--font-body);
  background:var(--cream);
  color:var(--ink);
  font-size:17px;
  line-height:1.8;
  overflow-x:hidden;
}

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

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

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

/* خلفية نسيج ناعم */
.grain-overlay{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(200,147,42,.1), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(76,156,196,.07), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(200,147,42,.04), transparent 60%);
}

/* ===================== عناصر عامة ===================== */
.eyebrow{
  font-family:var(--font-kufi);
  letter-spacing:.04em;
  color:var(--maroon-soft);
  font-size:1.1rem;
  margin-bottom:.6rem;
  display:inline-block;
}
.eyebrow-kufi{ font-size:1.15rem; }
.eyebrow-light{ color:var(--gold-light); }

.section-head{ max-width:720px; margin-bottom:3rem; }
.section-head h2{
  font-family:var(--font-heading);
  font-size:clamp(2.2rem, 4vw, 3rem);
  color:var(--maroon-deep);
  margin-bottom:.75rem;
  position:relative;
  display:inline-block;
}
.section-head h2::after{
  content:'';
  display:block;
  width:60%;
  height:3px;
  background:linear-gradient(90deg, var(--gold), var(--gold-bright), transparent);
  border-radius:2px;
  margin-top:0.4rem;
}
.section-head.light h2{ color:var(--cream); }
.section-lead{ color:var(--ink-soft); font-size:1.05rem; max-width:60ch; }
.section-head.light .section-lead{ color:#e8e0cf; }
.section-tag{
  display:inline-block;
  font-family:var(--font-heading);
  font-weight:600;
  font-size:1.05rem;
  color:var(--maroon-soft);
  background:linear-gradient(90deg, rgba(200,147,42,.16), rgba(200,147,42,.02));
  border-inline-start:3px solid var(--gold);
  padding:.35rem .9rem;
  border-radius:4px;
  margin-bottom:1.1rem;
}
.section-head.light .section-tag{ color:var(--gold-light); }

.btn{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.85rem 1.7rem;
  border-radius:999px;
  font-weight:600;
  font-size:.98rem;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  border:1.5px solid transparent;
}
.btn-primary{ background:var(--maroon); color:var(--cream); box-shadow:var(--shadow-soft); }
.btn-primary:hover{ transform:translateY(-3px); background:var(--maroon-deep); }
.btn-outline{ border-color:var(--maroon-soft); color:var(--maroon-deep); }
.btn-outline:hover{ background:var(--maroon); color:var(--cream); border-color:var(--maroon); transform:translateY(-3px); }
.btn-ghost{ border-color:var(--gold); color:var(--maroon-deep); padding:.55rem 1.3rem; }
.btn-ghost:hover{ background:var(--gold); color:var(--maroon-deep); }

/* arch frame مستوحى من قوسي الشعار */
.arch-frame{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius-arch);
  box-shadow:var(--shadow-card);
  background:var(--cream-deep);
}
.arch-frame img{ width:100%; height:100%; object-fit:cover; aspect-ratio:4/5; transition:transform .6s var(--ease); }
.arch-frame:hover img{ transform:scale(1.06); }

/* ===================== الشريط العلوي ===================== */
.site-header{
  position:fixed; top:0; inset-inline:0; z-index:50;
  padding:18px 0;
  transition:padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled{
  padding:10px 0;
  background:rgba(251,246,236,.88);
  backdrop-filter:blur(10px);
  box-shadow:0 8px 24px -16px rgba(43,36,32,.35);
}
.header-inner{ display:flex; align-items:center; gap:1.2rem; flex-wrap:wrap; row-gap:.8rem; }

.brand{ display:flex; align-items:center; gap:.7rem; margin-inline-end:auto; order:1; }
.brand-mark{
  width:44px; height:44px; border-radius:50%;
  overflow:hidden; flex-shrink:0;
  border:2px solid var(--gold);
  box-shadow:0 4px 14px -4px rgba(124,44,44,.4), 0 0 8px var(--gold-glow);
}
.brand-mark img{ width:100%; height:100%; object-fit:cover; }
.brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.brand-text strong{ font-family:var(--font-heading); color:var(--maroon-deep); font-size:1.05rem; }
.brand-text small{ color:var(--ink-soft); font-size:.7rem; }

.main-nav{
  display:flex; flex-wrap:wrap; align-items:center;
  justify-content:flex-end;
  gap:.55rem 1.15rem;
  font-weight:600; font-size:.88rem; color:var(--ink-soft);
  flex:1 1 auto;
  order:3;
}
.nav-cta{ order:2; }
.main-nav a{ position:relative; padding-bottom:4px; white-space:nowrap; }
.main-nav a::after{
  content:""; position:absolute; right:0; bottom:0; width:0; height:2px;
  background:var(--gold); transition:width .3s var(--ease);
}
.main-nav a:hover{ color:var(--maroon-deep); }
.main-nav a:hover::after{ width:100%; }

@media (max-width:1300px) and (min-width:761px){
  .header-inner{ justify-content:flex-start; }
  .main-nav{ justify-content:center; flex-basis:100%; order:3; }
  .brand{ margin-inline-end:0; }
  .nav-cta{ order:2; }
}

/* ===================== قوائم منسدلة (مقالات / اجتماعات) ===================== */
.nav-dropdown{ position:relative; display:flex; align-items:center; }
.nav-dropdown > .nav-dropdown-toggle{
  display:flex; align-items:center; gap:5px; cursor:pointer;
  background:none; border:none; font:inherit; color:inherit; padding-bottom:4px;
  white-space:nowrap;
}
.nav-dropdown .chevron{
  font-size:.65rem; transition:transform .3s var(--ease); color:var(--gold);
}
.nav-dropdown:hover .chevron,
.nav-dropdown.is-open .chevron{ transform:rotate(180deg); }

.nav-dropdown-menu{
  display:none;
  position:absolute; top:100%; right:0; margin-top:14px;
  min-width:250px; background:var(--cream);
  border-radius:14px; padding:.5rem 0;
  box-shadow:var(--shadow-soft);
  border-top:3px solid var(--gold);
  z-index:60;
}
.nav-dropdown:hover .nav-dropdown-menu{ display:block; }

.nav-dropdown-menu a{
  display:block; padding:.65rem 1.1rem;
  font-size:.88rem; font-weight:600; color:var(--ink);
  border-bottom:1px solid var(--cream-deep);
}
.nav-dropdown-menu a:last-child{ border-bottom:none; }
.nav-dropdown-menu a:hover{ color:var(--maroon-deep); background:var(--cream-deep); }
.nav-dropdown-menu a::after{ display:none; }

@media (max-width:760px){
  .nav-dropdown{ flex-direction:column; align-items:center; width:auto; }
  .nav-dropdown-toggle{ justify-content:center; width:auto; padding:.4rem 0; }
  .nav-dropdown-menu{
    display:none; position:static; box-shadow:none; margin-top:.3rem;
    background:var(--cream-deep); border-radius:10px; text-align:center;
    width:100%;
  }
  .nav-dropdown.is-open .nav-dropdown-menu{ display:block; }
}

.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px;
}
.nav-toggle span{ width:24px; height:2px; background:var(--maroon-deep); border-radius:2px; transition:.3s; }

/* ===================== القسم الرئيسي ===================== */
.hero{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  margin-top:120px;
  padding:90px 0 100px;
  background:
    radial-gradient(circle at 50% 0%, rgba(217,154,61,.10), transparent 55%),
    var(--cream);
  overflow:hidden;
}
.hero-arcs{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:0; opacity:.5; }
.hero-arcs svg{ width:min(820px, 100%); height:auto; }
.arc{ stroke-width:3; }
.arc-blue{ stroke:var(--sky); opacity:.55; }
.arc-gold{ stroke:var(--gold); opacity:.7; }

.hero-inner{ position:relative; z-index:1; text-align:center; max-width:820px; }

.hero-quote{ font-family:var(--font-display); color:var(--maroon-deep); margin-bottom:1.4rem; }
.hero-quote .line{
  display:block;
  font-size:clamp(1.8rem, 4.8vw, 3.4rem);
  line-height:1.5;
  opacity:0; transform:translateY(18px);
  animation:lineIn .9s var(--ease) forwards;
}
.hero-quote .line:nth-child(2){ animation-delay:.35s; font-size:clamp(1.4rem, 3.8vw, 2.5rem); color:var(--maroon-soft); }
.hero-quote em{ font-style:italic; color:var(--gold); }
.hero-tagline{
  font-family:var(--font-ruqaa);
  font-size:clamp(1.1rem, 2.6vw, 1.6rem) !important;
  color:var(--gold) !important;
  margin-top:.3rem;
}

@keyframes lineIn{ to{ opacity:1; transform:translateY(0); } }

.hero-sub{ color:var(--ink-soft); font-size:1.1rem; max-width:54ch; margin:0 auto 2.2rem; }
.hero-actions{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

[data-reveal]{ opacity:0; transform:translateY(16px); animation:fadeUp .8s var(--ease) forwards; animation-delay:.7s; }
.hero-actions[data-reveal]{ animation-delay:.95s; }
@keyframes fadeUp{ to{ opacity:1; transform:translateY(0); } }

.scroll-cue{
  position:absolute; bottom:34px; right:50%; transform:translateX(50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-size:.78rem; color:var(--ink-soft); font-weight:600;
  z-index:1;
}
.scroll-cue-line{ width:1px; height:34px; background:linear-gradient(var(--maroon-soft), transparent); animation:cuePulse 1.8s ease-in-out infinite; }
@keyframes cuePulse{ 0%,100%{ opacity:.3; } 50%{ opacity:1; } }

/* ===================== شريط الرسالة ===================== */
.mission{ background:linear-gradient(180deg, var(--maroon-deep), var(--maroon)); padding:90px 0; color:var(--cream); }
.mission-inner{ display:grid; grid-template-columns:1.1fr .9fr; gap:3.5rem; align-items:center; }
.mission-text h2{ font-family:var(--font-heading); font-size:clamp(1.8rem, 2.8vw, 2.4rem); margin-bottom:1.1rem; line-height:1.5; }
.mission-text p{ color:#ead9c4; }
.mission-quote img{ border-radius:18px; box-shadow:0 26px 50px -20px rgba(0,0,0,.5); }

/* ===================== الإنجازات ===================== */
.achievements{ padding:110px 0 100px; position:relative; z-index:1; overflow:hidden; }
.achv-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1.6rem;
}
.achv-card{
  border:none; cursor:pointer; padding:0; text-align:right; background:none; font-family:inherit;
  position:relative;
}

.reveal-up{ opacity:0; transform:translateY(26px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up.is-visible{ opacity:1; transform:translateY(0); }

/* ===================== الطالب المتميز ===================== */
.star-student {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--cream-deep), var(--cream));
  position: relative;
  z-index: 1;
}
.star-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  max-width: 650px;
  margin: 0 auto;
  border: 2px solid var(--gold-light);
  transition: transform 0.3s;
}
.star-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(200, 147, 42, 0.3);
}
.star-photo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(200, 147, 42, 0.3);
  border: 3px solid var(--gold);
}
.star-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.star-info h3 {
  font-family: var(--font-heading);
  color: var(--maroon-deep);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.star-info p {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ===================== البرامج ===================== */
.programs{ background:var(--cream-deep); padding:110px 0; position:relative; z-index:1; }
.programs-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1.8rem; margin-bottom:4rem; }
.program-card{
  background:#fff; border-radius:18px; overflow:hidden; box-shadow:var(--shadow-card);
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
  display:flex; flex-direction:column;
}
.program-card:hover{ transform:translateY(-8px); box-shadow:0 24px 40px -18px rgba(43,36,32,.3); }
.program-card.featured{ grid-column:span 1; }
.program-media{ position:relative; aspect-ratio:16/10; }
.program-media img{ width:100%; height:100%; object-fit:cover; }
.play-badge{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(43,20,15,.28);
  color:#fff; font-size:1.4rem;
}
.program-body{ padding:1.6rem 1.5rem; display:flex; flex-direction:column; gap:.6rem; }
.program-icon{ font-size:1.8rem; }
.program-body h3{ font-family:var(--font-heading); color:var(--maroon-deep); font-size:1.2rem; }
.program-body p{ color:var(--ink-soft); font-size:1rem; }
.program-link{ margin-top:.4rem; font-weight:700; color:var(--gold); }
.program-link:hover{ color:var(--maroon); }

/* بطاقة الختمة (قريبًا) */
.soon-card .program-media { position: relative; overflow: hidden; }
.soon-card .blur-img { filter: blur(8px) brightness(0.7); }
.soon-card .soon-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
}
.soon-overlay span {
  background: var(--gold);
  color: var(--maroon-deep);
  font-family: var(--font-kufi);
  font-weight: 700;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* عنوان فرعي للبرامج التلفزيونية */
.section-sub-head {
  text-align: center;
  margin: 20px 0 35px;
}
.section-sub-head h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--maroon-deep);
  margin-bottom: 10px;
}

.committee{
  display:grid; grid-template-columns:.9fr 1.1fr; gap:2.5rem; align-items:center;
  background:#fff; border-radius:22px; padding:2.6rem; box-shadow:var(--shadow-card);
  margin-top: 4rem;
}
.committee-text h3{ font-family:var(--font-heading); color:var(--maroon-deep); font-size:1.4rem; margin-bottom:.6rem; }
.committee-text p{ color:var(--ink-soft); }
.committee-photos{ display:grid; grid-template-columns:repeat(3, 1fr); gap:.8rem; }
.committee-photos img{ border-radius:14px; aspect-ratio:3/4; object-fit:cover; box-shadow:var(--shadow-card); }

/* ===================== أجواء المنارة ===================== */
.moments{ background:linear-gradient(180deg, var(--maroon), var(--maroon-deep)); padding:110px 0; position:relative; z-index:1; }
.moments-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1.5rem; }
.moment-photo img{ aspect-ratio:5/6; object-fit:cover; }

/* ===================== كلمات من القلب ===================== */
.testimonials{ padding:100px 0; }
.testimonials .section-head h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}
.testi-slider{ position:relative; max-width:640px; margin:0 auto; }
.testi-slide{ display:none; text-align:center; }
.testi-slide.is-active{ display:block; animation:fadeUp .6s var(--ease); }
.testi-slide img{ border-radius:18px; box-shadow:var(--shadow-card); margin:0 auto; }
.testi-slide figcaption{
  margin-top:1.1rem;
  font-family:var(--font-heading);
  font-size:1.15rem;
  font-weight:600;
  color:var(--maroon-deep);
}
.testi-slide figcaption span{
  display:block;
  margin-top:.25rem;
  font-family:var(--font-body);
  font-weight:400;
  font-size:.9rem;
  color:var(--ink-soft);
}
.testi-dots{ display:flex; justify-content:center; gap:.6rem; margin-top:1.6rem; }
.testi-dots button{
  width:10px; height:10px; border-radius:50%; border:none; background:var(--gold-light);
  cursor:pointer; transition:background .3s, transform .3s;
}
.testi-dots button.is-active{ background:var(--maroon); transform:scale(1.25); }

/* ===================== تواصل معنا ===================== */
.contact{
  position:relative; overflow:hidden;
  background:radial-gradient(circle at 50% 0%, rgba(217,154,61,.18), transparent 60%), var(--maroon-deep);
  color:var(--cream); padding:120px 0 100px; text-align:center;
}
.contact-arcs{ opacity:.18; }
.contact-inner{ position:relative; z-index:1; max-width:640px; margin:0 auto; }
.contact h2{ font-family:var(--font-heading); font-size:clamp(2rem, 3.5vw, 2.8rem); margin-bottom:.8rem; }
.contact-lead{ color:#e8dcc4; margin-bottom:2.4rem; }
.contact-actions{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-bottom:1.8rem; }
.contact-btn{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.95rem 1.8rem; border-radius:999px; font-weight:700;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.contact-icon{ width:20px; height:20px; }
.contact-icon svg{ width:100%; height:100%; fill:currentColor; }
.contact-fb{ background:#fff; color:var(--maroon-deep); }
.contact-wa{ background:var(--gold); color:var(--maroon-deep); }
.contact-btn:hover{ transform:translateY(-4px); box-shadow:0 16px 30px -12px rgba(0,0,0,.4); }
.contact-meta{ display:flex; gap:.6rem; justify-content:center; color:#cdbfa0; font-size:.92rem; flex-wrap:wrap; }

/* صورة الخريطة المربعة (بدون قص) */
.map-square {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto 0;
  border-radius: 20px;
  border: 3px solid var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
  background: #fff;
  display: inline-block;
}
.map-square img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  transition: transform 0.4s;
}
.map-square:hover img {
  transform: scale(1.02);
}

/* ===================== تطبيق المنارة ===================== */
.app-section{
  padding: 80px 0;
  background: var(--maroon-deep);
  position: relative;
  overflow: hidden;
}
.app-section::before{
  content:'';
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,147,42,.12) 0%, transparent 60%);
  pointer-events:none;
}
.app-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.app-text{
  color: var(--cream);
}
.app-text .eyebrow{
  color: var(--gold-light);
  border-color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 3px;
}
.app-text h2{
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  margin: .5rem 0 1rem;
  line-height: 1.3;
}
.app-text p{
  color: rgba(251,246,236,.8);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.app-soon-badge{
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-deep);
  font-family: var(--font-kufi);
  font-weight: 700;
  font-size: 1rem;
  padding: .5rem 1.6rem;
  border-radius: 50px;
  letter-spacing: .03em;
}
.app-media{
  display: flex;
  justify-content: center;
  align-items: center;
}
.app-promo-img{
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.5);
}

/* ===================== أسئلة شائعة ===================== */
.faq-section{
  padding: 80px 0;
  background: var(--cream);
}
.faq-list{
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item{
  background: #fff;
  border: 1px solid rgba(139,29,38,.12);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .25s;
}
.faq-item:hover{ box-shadow: 0 4px 20px -4px rgba(139,29,38,.12); }
.faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-kufi);
  font-size: 1.05rem;
  color: var(--maroon);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: '＋';
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{
  padding: 0 1.4rem 1.2rem;
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 1rem;
}

/* ===================== الفوتر ===================== */
.site-footer{ background:var(--ink); color:#cfc6b8; padding:48px 0 30px; }
.footer-inner{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:.9rem; }
.footer-brand .brand-mark{ border-color:var(--gold); }
.footer-brand .brand-text strong{ color:var(--cream); }
.footer-tag{ font-family:var(--font-display); font-style:italic; color:var(--gold-light); font-size:1.05rem; }
.footer-copy{ font-size:.82rem; color:#8d8475; }

/* ===================== صندوق عرض الصور ===================== */
.lightbox{
  position:fixed; inset:0; z-index:200; display:none;
  align-items:center; justify-content:center;
  background:rgba(20,12,10,.92); padding:40px;
}
.lightbox.is-open{ display:flex; }
.lightbox img{ max-width:min(900px, 100%); max-height:88vh; border-radius:12px; box-shadow:0 30px 60px rgba(0,0,0,.5); }
.lightbox-close{
  position:absolute; top:24px; left:24px;
  width:42px; height:42px; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff; border:none; cursor:pointer;
  font-size:1.1rem;
}
.lightbox-close:hover{ background:rgba(255,255,255,.24); }

/* ===================== الغبار السحري (الجسيمات) ===================== */
#particles-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.magic-particle {
  position: absolute;
  background: radial-gradient(circle, var(--gold-bright) 0%, transparent 80%);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) translateX(40px) scale(0.3);
    opacity: 0;
  }
}

/* ===================== الاستجابة ===================== */
@media (max-width:980px){
  .mission-inner{ grid-template-columns:1fr; }
  .programs-grid{ grid-template-columns:repeat(2, 1fr); }
  .committee{ grid-template-columns:1fr; }
  .app-inner{ grid-template-columns:1fr; }
  .app-media{ order: -1; }
  .app-promo-img{ max-width:360px; }
}

@media (max-width:760px){
  .hero{ margin-top:90px; }
  .main-nav{
    position:fixed; inset-inline:0; top:64px; z-index:40;
    flex-direction:column; background:var(--cream); padding:1.5rem 24px;
    box-shadow:0 16px 30px -18px rgba(0,0,0,.3);
    transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .3s var(--ease), transform .3s var(--ease);
  }
  .main-nav.is-open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .achv-grid{ grid-template-columns:repeat(2, 1fr); }
  .programs-grid{ grid-template-columns:1fr; }
  .moments-grid{ grid-template-columns:repeat(2, 1fr); }
  .star-card {
    flex-direction: column;
    text-align: center;
  }
  .star-photo {
    width: 100px;
    height: 100px;
  }
}

@media (max-width:520px){
  .achv-grid{ grid-template-columns:1fr 1fr; gap:1rem; }
  .committee-photos{ grid-template-columns:repeat(3, 1fr); gap:.5rem; }
  .hero{ padding:60px 0 70px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  html{ scroll-behavior:auto; }
  .magic-particle { display: none; }
}
/* ===================== السلايدر الكبير العلوي ===================== */
.top-carousel{
  position:relative;
  width:100%;
  aspect-ratio:16/7.2;
  max-height:640px;
  overflow:hidden;
  background:var(--maroon-deep);
  z-index:5;
  margin-top:0;
}
.top-carousel-track{
  position:relative;
  width:100%;
  height:100%;
}
.top-slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .9s var(--ease);
}
.top-slide.is-active{
  opacity:1;
  visibility:visible;
}
.top-slide img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.top-carousel-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.55);
  background:rgba(43,36,32,.35);
  backdrop-filter:blur(4px);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:6;
  transition:background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.top-carousel-arrow svg{ width:24px; height:24px; }
.top-carousel-arrow:hover{
  background:var(--gold);
  border-color:var(--gold);
  transform:translateY(-50%) scale(1.08);
}
.arrow-prev{ inset-inline-start:20px; }
.arrow-next{ inset-inline-end:20px; }
.top-carousel-dots{
  position:absolute;
  bottom:8px;
  inset-inline:0;
  display:flex;
  justify-content:center;
  gap:.5rem;
  z-index:6;
}
.top-carousel-dots button{
  width:9px; height:9px; border-radius:50%;
  border:1.5px solid rgba(255,255,255,.75);
  background:rgba(255,255,255,.25);
  cursor:pointer;
  padding:0;
  transition:transform .25s var(--ease), background .25s var(--ease);
}
.top-carousel-dots button.is-active{
  background:var(--gold-bright);
  border-color:var(--gold-bright);
  transform:scale(1.3);
}

/* ===================== عن المنارة ===================== */
.about{
  background:var(--cream);
  padding:80px 0;
}
.about-inner{
  max-width:800px;
  margin:0 auto;
  text-align:center;
}
.about-badge{
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  padding:.85rem 2.1rem;
  border-radius:999px;
  background:var(--maroon);
  color:var(--cream);
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.15rem;
  box-shadow:var(--shadow-soft);
  margin-bottom:2rem;
}
.about-text p{
  color:var(--ink-soft);
  font-size:1.05rem;
  line-height:2;
  text-align:justify;
  margin-bottom:1.2rem;
}
.about-text p:last-child{ margin-bottom:0; }

@media (max-width:760px){
  .hero{ margin-top:88px; }
  .top-carousel{ aspect-ratio:16/9; max-height:420px; margin-top:0; }
  .top-carousel-arrow{ width:40px; height:40px; }
  .top-carousel-arrow svg{ width:18px; height:18px; }
  .about{ padding:56px 0; }
  .about-text p{ text-align:start; font-size:1rem; line-height:1.9; }
}

/* ===================== الطالب المتميز — فترتان ===================== */
.star-groups{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  max-width:1080px;
  margin:0 auto;
}
.star-group-label{
  text-align:center;
  font-family:var(--font-heading);
  font-size:1.15rem;
  font-weight:700;
  color:var(--maroon);
  margin-bottom:1.1rem;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.6rem;
}
.star-group-label::before,
.star-group-label::after{
  content:"";
  height:1px;
  width:36px;
  background:var(--gold-light);
}
.star-group .star-card{ max-width:100%; margin:0; }

@media (max-width:760px){
  .star-groups{ grid-template-columns:1fr; }
}

/* ===================== لمعان الموقع (Shine) ===================== */
.brand-mark,
.btn,
.star-photo,
.about-badge,
.top-carousel-arrow{
  position:relative;
  overflow:hidden;
}
.btn::after,
.brand-mark::after,
.star-photo::after,
.about-badge::after{
  content:"";
  position:absolute;
  top:0;
  inset-inline-start:-60%;
  width:45%;
  height:100%;
  background:linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
  transform:skewX(-20deg);
  animation:shineSweep 5.5s ease-in-out infinite;
  pointer-events:none;
}
.brand-mark::after{ animation-delay:.6s; }
.star-photo::after{ animation-delay:1.4s; }
@keyframes shineSweep{
  0%{ inset-inline-start:-60%; opacity:0; }
  8%{ opacity:1; }
  22%{ inset-inline-start:130%; opacity:0; }
  100%{ inset-inline-start:130%; opacity:0; }
}

.gold-shine-text{
  background-image:linear-gradient(100deg, currentColor 35%, var(--gold-bright) 50%, currentColor 65%);
  background-size:260% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation:goldTextShine 6s linear infinite;
}
@keyframes goldTextShine{
  0%{ background-position:200% 0; }
  100%{ background-position:-60% 0; }
}

@media (prefers-reduced-motion: reduce){
  .btn::after, .brand-mark::after, .star-photo::after, .about-badge::after, .gold-shine-text{ animation:none !important; }
}

.main-nav a.is-current{
  color:var(--maroon);
  font-weight:700;
  position:relative;
}
.main-nav a.is-current::after{
  content:"";
  position:absolute;
  bottom:-6px;
  inset-inline:0;
  height:2px;
  background:var(--gold);
  border-radius:2px;
}
