/* ======================= الموقع العام + الدخول ======================= */
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section.tinted { background: var(--blush); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; color: var(--wine-700); margin-bottom: .1em; }
.section-title.start { text-align: right; }
.kicker { display: inline-block; color: var(--gold-700); font-weight: 800; letter-spacing: .02em; margin-bottom: 6px; padding: 4px 14px; border-radius: 99px; background: var(--gold-100); font-size: .85rem; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; background: rgba(255,255,255,.96); border-bottom: 2px solid var(--gold-500); }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(63,7,17,.5); }
.hdr { display: flex; align-items: center; gap: 22px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 58px; height: 58px; flex: none; }
.brand strong { display: block; color: var(--wine-700); font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.brand small { color: var(--gold-600); font-weight: 600; }
.b-short { display: none; }
.site-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.site-nav a { color: var(--ink-2); font-weight: 700; padding: 8px 12px; border-radius: 10px; font-size: .95rem; position: relative; }
.site-nav a::after { content: ""; position: absolute; bottom: 2px; right: 50%; left: 50%; height: 2px; background: var(--gold-500); transition: .25s; }
.site-nav a:hover { color: var(--wine-700); }
.site-nav a:hover::after { right: 12px; left: 12px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--grad-wine); color: #fff; padding: 150px 0 120px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .8; }
.hero-glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; left: -200px; top: -200px; background: radial-gradient(circle, rgba(218,189,124,.28), transparent 60%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-200); background: rgba(255,255,255,.08); border: 1px solid rgba(241,227,192,.3); padding: 6px 16px; border-radius: 99px; font-weight: 700; font-size: .88rem; }
.eyebrow .ic { color: var(--gold-400); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 900; line-height: 1.25; margin: 22px 0 16px; }
.hero h1 em { font-style: normal; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #f1dfe2; font-size: 1.15rem; max-width: 560px; }
.verses { position: relative; min-height: 120px; margin: 26px 0 30px; padding-right: 22px; border-right: 3px solid var(--gold-500); }
.v-item { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity .9s, transform .9s; }
.v-item.on { opacity: 1; transform: none; position: relative; }
.v-item span { font-family: var(--font-verse); font-size: clamp(1.35rem, 2.4vw, 1.85rem); color: var(--gold-200); line-height: 1.75; display: block; }
.v-item cite { font-style: normal; color: var(--gold-400); font-size: .9rem; font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { padding: .85em 1.8em; font-size: 1rem; }

.hero-art { position: relative; display: flex; justify-content: center; }
.arch { position: relative; width: min(380px, 100%); aspect-ratio: 3/4; border-radius: 200px 200px 24px 24px; padding: 10px; background: var(--grad-gold); box-shadow: var(--shadow-lg); }
.arch::before { content: ""; position: absolute; inset: 18px; border-radius: 190px 190px 16px 16px; border: 1px solid rgba(255,255,255,.6); z-index: 2; pointer-events: none; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 192px 192px 16px 16px; background: linear-gradient(180deg, #fbf3e4, #f0e0c2); }
.arch-cap { position: absolute; bottom: 22px; right: 22px; left: 22px; z-index: 3; background: rgba(63,7,17,.88); backdrop-filter: blur(6px); padding: 12px 16px; border-radius: 14px; text-align: center; border: 1px solid rgba(241,227,192,.35); }
.arch-cap b { display: block; color: #fff; }
.arch-cap small { color: var(--gold-400); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); padding: 10px 16px 10px 10px; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: .85rem; animation: float 6s ease-in-out infinite; }
.float-card img { width: 46px; height: 46px; border-radius: 50%; }
.float-card b { display: block; color: var(--wine-700); font-size: 1rem; }
.fc-1 { top: 18%; right: -14px; }
.fc-2 { bottom: 22%; left: -18px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-12px); } }

.hero-stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.07); border: 1px solid rgba(241,227,192,.25); border-radius: 22px; backdrop-filter: blur(8px); }
.hero-stats div { text-align: center; padding: 22px 10px; }
.hero-stats div + div { border-right: 1px solid rgba(241,227,192,.2); }
.hero-stats b { display: block; font-size: 2.2rem; font-weight: 900; color: var(--gold-400); line-height: 1.1; }
.hero-stats span { color: #f1dfe2; font-weight: 600; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 80px; z-index: 1; }

/* ---------- motto ---------- */
.motto { padding: 30px 0 10px; }
.motto-scroll { position: relative; text-align: center; padding: 34px 30px 26px; border-radius: 26px; background: linear-gradient(180deg, #fff, var(--gold-100)); border: 1px solid var(--gold-200); box-shadow: var(--shadow); }
.motto-scroll::before, .motto-scroll::after { content: ""; position: absolute; top: 50%; width: 42px; height: 80%; transform: translateY(-50%); border-radius: 22px; background: var(--grad-wine); }
.motto-scroll::before { right: -14px; } .motto-scroll::after { left: -14px; }
.motto-cross { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-wine); color: var(--gold-400); margin-bottom: 8px; }
.motto-scroll p { font-size: clamp(1.6rem, 3.6vw, 2.6rem); color: var(--wine-700); margin: 0; line-height: 1.6; font-weight: 700; }
.motto-scroll small { color: var(--gold-700); font-weight: 700; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-text p { color: var(--ink-2); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.checks .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--grad-wine); color: var(--gold-400); }
.about-cards { display: grid; gap: 14px; }
.info-tile { display: flex; gap: 16px; align-items: center; background: #fff; padding: 16px 18px; border-radius: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.info-tile:hover { transform: translateX(-6px); box-shadow: var(--shadow); }
.info-tile img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.info-tile b { display: block; color: var(--wine-700); }
.info-tile span { color: var(--ink-2); font-size: .92rem; }

/* ---------- offer ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.offer-card { background: #fff; border-radius: 24px; padding: 32px 24px; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s, box-shadow .35s, background .35s; position: relative; overflow: hidden; }
.offer-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-wine); opacity: 0; transition: opacity .35s; }
.offer-card > * { position: relative; }
.offer-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.offer-card:hover::before { opacity: 1; }
.offer-card:hover h3 { color: #fff; }
.offer-card:hover p { color: #f1dfe2; }
.offer-ic { width: 108px; height: 108px; margin: 0 auto 18px; position: relative; }
.offer-ic img { width: 100%; height: 100%; border-radius: 50%; position: absolute; inset: 0; transition: opacity .35s; }
.offer-ic .hov { opacity: 0; }
.offer-card:hover .offer-ic .hov { opacity: 1; }
.offer-card h3 { font-size: 1.2rem; transition: color .35s; }
.offer-card p { color: var(--muted); margin: 0; font-size: .95rem; transition: color .35s; }

/* ---------- subjects carousel ---------- */
.carousel { position: relative; max-width: 1000px; margin: 0 auto; }
.car-track { position: relative; height: 420px; border-radius: 26px; overflow: hidden; background: var(--grad-wine); box-shadow: var(--shadow-lg); }
.car-track::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .45; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 90px; opacity: 0; transform: scale(.96); transition: opacity .7s, transform .7s; }
.slide.active { opacity: 1; transform: none; }
.slide-bg-ic { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.06); }
.slide-bg-ic .ic { width: 260px; height: 260px; stroke-width: 1.4; }
.slide-ic { width: 150px; height: 150px; border-radius: 50%; padding: 6px; background: var(--grad-gold); box-shadow: 0 16px 40px -14px rgba(0,0,0,.6); }
.slide-ic img { width: 100%; height: 100%; border-radius: 50%; }
.slide-num { margin-top: -18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: var(--wine-900); font-weight: 900; font-size: 1.15rem; border: 3px solid var(--wine-800); position: relative; }
.slide h3 { color: var(--gold-400); font-size: clamp(1.4rem, 3vw, 2rem); margin: 16px 0 8px; font-weight: 900; }
.slide p { color: #f1dfe2; max-width: 520px; margin: 0; font-size: 1.05rem; }
.car-btn { position: absolute; top: 210px; transform: translateY(-50%); width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--grad-gold); color: var(--wine-900); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 22px -8px rgba(0,0,0,.6); z-index: 2; transition: transform .2s; }
.car-btn:hover { transform: translateY(-50%) scale(1.08); }
.car-btn .ic { width: 26px; height: 26px; }
.car-btn.prev { right: 22px; } .car-btn.next { left: 22px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.dots button { width: 11px; height: 11px; border-radius: 99px; border: 0; background: var(--gold-400); opacity: .55; cursor: pointer; transition: width .3s, background .3s, opacity .3s; padding: 0; }
.dots button.active { width: 34px; background: var(--wine-700); opacity: 1; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.subject-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--gold-200); font-weight: 700; color: var(--wine-700); font-size: .9rem; box-shadow: var(--shadow-sm); }
.subject-chips .ic { color: var(--gold-600); }

/* ---------- portals band ---------- */
.portals-band { background: var(--grad-wine); color: #fff; overflow: hidden; }
.portals-band::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .6; }
.portals-band .wrap { position: relative; }
.section-head.light .section-title { color: #fff; }
.section-head.light p { color: var(--gold-200); }
.portal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: center; }
.portal-card { display: block; background: rgba(255,255,255,.06); border: 1px solid rgba(241,227,192,.25); border-radius: 26px; padding: 34px 28px; color: #fff; text-align: center; transition: transform .3s, background .3s; backdrop-filter: blur(4px); }
.portal-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.1); }
.portal-card.featured { background: #fff; color: var(--ink); padding: 44px 28px; box-shadow: var(--shadow-lg); }
.portal-card img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; box-shadow: 0 0 0 4px rgba(241,227,192,.25); }
.portal-card h3 { color: #fff; font-size: 1.35rem; }
.portal-card.featured h3 { color: var(--wine-700); }
.portal-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; color: #f1dfe2; }
.portal-card.featured ul { color: var(--ink-2); }
.portal-card li::before { content: "✦"; color: var(--gold-400); margin-left: 8px; font-size: .8em; }
.portal-card .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; padding: 10px 22px; border-radius: 99px; background: var(--grad-gold); color: var(--wine-900); }
.portal-card.featured .go { background: var(--grad-wine); color: #fff; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.news-list { display: grid; gap: 16px; }
.news-card { display: flex; gap: 18px; background: #fff; border-radius: 22px; padding: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card img { width: 78px; height: 78px; border-radius: 50%; flex: none; }
.news-card time { color: var(--gold-700); font-weight: 700; font-size: .82rem; }
.news-card h3 { font-size: 1.15rem; margin: 2px 0 6px; }
.news-card p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.upcoming { background: var(--grad-wine); color: #fff; border-radius: 24px; padding: 26px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.upcoming::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .55; }
.upcoming > * { position: relative; }
.upcoming h3 { color: var(--gold-400); display: flex; gap: 8px; align-items: center; }
.up-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(241,227,192,.18); }
.up-item:last-child { border: 0; }
.up-date { width: 58px; text-align: center; background: var(--grad-gold); color: var(--wine-900); border-radius: 14px; padding: 6px 0; flex: none; }
.up-date b { display: block; font-size: 1.35rem; line-height: 1.1; }
.up-date small { font-size: .72rem; font-weight: 700; }
.up-item b { display: block; }
.up-item small { color: var(--gold-200); }

/* ---------- team ---------- */
.leaders { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 44px; }
.leader { text-align: center; width: 200px; }
.leader-photo { width: 170px; height: 170px; margin: 0 auto 16px; border-radius: 50%; padding: 7px; background: var(--grad-gold); box-shadow: var(--shadow); }
.leader-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; border: 4px solid #fff; }
.leader-initials { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 4px solid #fff; color: var(--gold-700); font-size: 2.6rem; font-weight: 800; }
.leader h3 { font-size: 1.05rem; margin-bottom: 4px; }
.leader p { color: var(--muted); font-size: .92rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: stretch; }
.c-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.c-row > span { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-wine); color: var(--gold-400); flex: none; }
.c-row b { color: var(--wine-700); }
.c-row p { margin: 0; color: var(--ink-2); }
.map { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--wine-950); color: #e8d6d9; padding: 46px 0 20px; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .35; }
.site-footer .wrap { position: relative; }
.ft-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(241,227,192,.15); }
.ft-brand { display: flex; align-items: center; gap: 12px; }
.ft-logo { width: 56px; height: 56px; }
.ft-brand strong { display: block; color: #fff; }
.ft-brand small { color: var(--gold-400); }
.ft-verse { font-size: 1.4rem; color: var(--gold-200); margin: 0; }
.ft-verse small { font-family: var(--font); font-size: .8rem; color: var(--gold-400); }
.ft-bottom { display: flex; justify-content: space-between; padding-top: 16px; font-size: .85rem; flex-wrap: wrap; gap: 8px; }
.ft-bottom a { color: var(--gold-400); }

/* ---------- login ---------- */
.login-page { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: var(--cream); }
.login-art { position: relative; background: var(--grad-wine); display: grid; place-items: center; padding: 40px; overflow: hidden; }
.login-art::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .8; }
.login-art::after { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; top: -200px; left: -200px; background: radial-gradient(circle, rgba(218,189,124,.3), transparent 60%); }
.login-art-inner { position: relative; z-index: 1; text-align: center; max-width: 520px; }
.login-logo { width: 130px; height: 130px; margin: 0 auto 20px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.45)); }
.login-art h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 4px; }
.login-art .tag { color: var(--gold-400); font-weight: 700; }
.login-art blockquote { margin: 0; font-size: 1.7rem; color: var(--gold-200); line-height: 1.8; }
.login-art cite { display: block; font-family: var(--font); font-style: normal; font-size: .9rem; color: var(--gold-400); margin-top: 4px; }
.login-roles { display: flex; justify-content: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.login-roles span { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #f1dfe2; font-weight: 700; font-size: .88rem; }
.login-roles img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(241,227,192,.3); }
.login-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.login-form { width: min(420px, 100%); }
.login-form h2 { font-size: 2rem; margin-bottom: 4px; }
.login-form .btn { margin-top: 8px; padding: .9em; font-size: 1.05rem; }
.back-home { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; margin-bottom: 26px; font-size: .9rem; }
.input-ic { position: relative; }
.input-ic .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gold-600); }
.input-ic input { padding: .85em 2.8em .85em 1em; }
.login-help { text-align: center; margin-top: 18px; font-size: .88rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { position: absolute; top: 84px; right: 0; left: 0; background: #fff; flex-direction: column; padding: 12px 16px 18px; box-shadow: var(--shadow); display: none; }
  .site-header.nav-open .site-nav { display: flex; }
  .nav-toggle { display: grid; }
  .hdr-login { margin-inline-start: auto; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section { padding: 70px 0; }
  .hero { padding: 120px 0 100px; }
  .hero-grid, .about-grid, .news-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .arch { width: 260px; }
  .fc-1 { right: 0; } .fc-2 { left: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(3) { border-right: 0; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(241,227,192,.2); }
  .portal-cards { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { padding: 40px 20px; }
  .login-art blockquote { font-size: 1.3rem; }
  .login-roles { display: none; }
}
@media (max-width: 560px) {
  .brand strong { font-size: .92rem; }
  .brand small { display: none; }
  .b-long { display: none; }
  .b-short { display: inline !important; font-size: 1.1rem; }
  .brand-logo { width: 46px; height: 46px; }
  .hdr { height: 72px; gap: 10px; }
  .site-nav { top: 72px; }
  .hdr-login { padding: .55em 1.1em; }
  .offer-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .offer-card { padding: 22px 14px; }
  .offer-ic { width: 80px; height: 80px; }
  .car-track { height: 470px; }
  .slide { padding: 30px 24px 80px; }
  .slide-ic { width: 120px; height: 120px; }
  .car-btn { top: auto; bottom: 18px; transform: none; width: 48px; height: 48px; }
  .car-btn:hover { transform: scale(1.05); }
  .news-card { flex-direction: column; }
  .motto-scroll::before, .motto-scroll::after { display: none; }
  .float-card { display: none; }
  .leaders { gap: 22px 12px; }
  .leader { width: calc(50% - 6px); }
  .leader-photo { width: 130px; height: 130px; }
}
.section, #top { scroll-margin-top: 84px; }
