@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;500;700&family=Tajawal:wght@400;700&display=swap');

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

:root{
  --bg-body:#f3f4f6;
  --bg-card:#ffffff;
  --bg-elevated:#f9fafb;
  --bg-hero-overlay:rgba(15,23,42,0.65);
  --border-subtle:#e5e7eb;
  --primary:#b91c1c;
  --primary-soft:#fee2e2;
  --primary-strong:#7f1d1d;
  --accent:#fbbf24;
  --text-main:#0f172a;
  --text-soft:#6b7280;
  --radius-lg:16px;
  --radius-md:12px;
  --shadow-soft:0 15px 40px rgba(15,23,42,0.12);
  --shadow-card:0 10px 24px rgba(15,23,42,0.08);
}

body{
  font-family:"Tajawal","Noto Kufi Arabic",system-ui,sans-serif;
  background-color:var(--bg-body);
  color:var(--text-main);
  line-height:1.6;
  direction:rtl;
  padding-inline-start:120px;
}

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

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

/* رأس الموقع */
header{
  position:fixed;
  inset-block-start:0;
  inset-inline:0;
  z-index:40;
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border-subtle);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 20px;
}

.logog{
  font-weight:800;
  font-size:1.3rem;
  letter-spacing:.03em;
  color:var(--primary-strong);
}

.navigation{
  display:flex;
  align-items:center;
  gap:10px;
}

.navigation a{
  font-size:.95rem;
  padding:6px 14px;
  border-radius:999px;
  color:var(--text-soft);
  transition:.25s;
  white-space:nowrap;
}

.navigation a.active,
.navigation a:hover{
  background-color:var(--primary-soft);
  color:var(--primary-strong);
}

#discord-login{
  margin-inline-start:10px;
}

/* حالة تسجيل الدخول */
.discord-login-box{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:7px 16px;
  background-color:#5865F2;
  color:#fff;
  border-radius:999px;
  font-size:.9rem;
  font-weight:700;
  box-shadow:0 8px 18px rgba(88,101,242,0.35);
  transition:.25s;
}

.discord-login-box:hover{
  background-color:#4752c4;
  transform:translateY(-1px);
}

.user-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 12px;
  border-radius:999px;
  background-color:var(--bg-elevated);
  border:1px solid var(--border-subtle);
  box-shadow:0 6px 16px rgba(15,23,42,0.08);
  font-size:.9rem;
}

.user-pill img{
  width:32px;
  height:32px;
  border-radius:50%;
}

.user-pill .profile-link{
  margin-inline-start:4px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.6);
  background:transparent;
  color:var(--primary-strong);
  font-size:.8rem;
  font-weight:600;
  cursor:pointer;
}

.user-pill .profile-link:hover{
  background:rgba(129,140,248,0.08);
  border-color:var(--primary-strong);
}

.user-pill .logout{
  margin-inline-start:4px;
  color:var(--primary-strong);
  font-weight:700;
}

.user-pill .logout:hover{
  text-decoration:underline;
}

.profile-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.65);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2500;
}

.profile-modal{
  background:#0f172a;
  color:#e5e7eb;
  border-radius:18px;
  padding:20px 22px;
  width:100%;
  max-width:420px;
  box-shadow:0 24px 60px rgba(15,23,42,0.7);
  border:1px solid rgba(148,163,184,0.35);
}

.profile-modal-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.profile-modal-header img{
  width:48px;
  height:48px;
  border-radius:999px;
}

.profile-modal-header h3{
  margin:0;
  font-size:1.05rem;
}

.profile-modal-header p{
  margin:0;
  font-size:.8rem;
  color:#9ca3af;
}

.profile-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:.8rem;
  margin-top:4px;
}

.profile-badge--member{
  background:rgba(22,163,74,0.12);
  color:#4ade80;
  border:1px solid rgba(34,197,94,0.6);
}

.profile-badge--nonmember{
  background:rgba(248,113,113,0.12);
  color:#fca5a5;
  border:1px solid rgba(248,113,113,0.6);
}

.profile-section-title{
  font-size:.9rem;
  color:#9ca3af;
  margin:12px 0 6px;
}

.profile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 12px;
  font-size:.85rem;
}

.profile-grid-label{
  color:#9ca3af;
}

.profile-grid-value{
  color:#e5e7eb;
}

.profile-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:14px;
  font-size:.8rem;
  color:#9ca3af;
}

.profile-close-btn{
  border:none;
  border-radius:999px;
  padding:5px 12px;
  font-size:.8rem;
  cursor:pointer;
  background:#1f2937;
  color:#e5e7eb;
}

.profile-close-btn:hover{
  background:#111827;
}

/* تخطيط عام */
main,
section{
  padding-inline:20px;
}

section{
  padding-block:80px;
}

main{
  padding-block-start:90px;
}

.page-container{
  max-width:1140px;
  margin:0 auto;
}

.title{
  font-size:2rem;
  font-weight:800;
  color:var(--primary-strong);
  text-align:center;
  margin-bottom:32px;
}

.subtitle{
  text-align:center;
  color:var(--text-soft);
  margin-bottom:32px;
}

/* البطل بالفيديو */
.main{
  position:relative;
  min-height:calc(100vh - 80px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding-inline:0;
  padding-block-start:90px;
}

.video-wrapper{
  position:absolute;
  inset:0;
  overflow:hidden;
  z-index:-1;
}

.back-video{
  width:100%;
  height:100%;
  object-fit:cover;
}

.overlay-content{
  max-width:900px;
  padding:32px 24px;
  border-radius:var(--radius-lg);
  background:var(--bg-hero-overlay);
  color:#f9fafb;
  text-align:center;
  box-shadow:var(--shadow-soft);
}

.overlay-content h2{
  font-size:1.4rem;
  font-weight:500;
}

.overlay-content h2 span{
  display:block;
  margin-top:6px;
  font-size:2.6rem;
  color:var(--accent);
}

.overlay-content h3{
  margin-top:16px;
  font-size:1.4rem;
}

.main-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:28px;
  padding:12px 26px;
  border-radius:999px;
  background-color:#f9fafb;
  color:var(--primary-strong);
  font-weight:700;
  font-size:.95rem;
  box-shadow:0 10px 24px rgba(15,23,42,0.35);
  transition:.25s;
}

.main-btn:hover{
  transform:translateY(-2px);
  background-color:#e5e7eb;
}

.social-icons a{
  color:#e5e7eb;
  font-size:1.5rem;
  margin-inline:6px;
}

/* كتابة متحركة */
.text-animation{
  font-size:1.4rem;
  font-weight:600;
  text-align:center;
}

.text-animation span{
  position:relative;
  display:inline-block;
}

.text-animation span::before{
  content:"في مدينة التسعين";
  color:var(--accent);
  animation:words 18s infinite;
}

.text-animation span::after{
  content:"";
  position:absolute;
  inset-inline-end:-6px;
  inset-block:0;
  background:transparent;
  border-inline-start:2px solid var(--accent);
  width:0;
  animation:cursor .7s infinite;
}

@keyframes cursor{
  50%{border-color:transparent;}
}

@keyframes words{
  0%,20%{content:"في مدينة التسعين";}
  21%,40%{content:"في لوس سانتوس";}
  41%,60%{content:"في ساندي وبيليتو";}
  61%,80%{content:"في مدينة التسعين";}
  81%,100%{content:"ونحيي المجتمع";}
}

@keyframes typing{
  10%,15%,30%,35%,50%,55%,70%,75%,90%,95%{width:0;}
  5%,20%,25%,40%,45%,60%,65%,80%,85%{width:calc(100% + 6px);}
}

/* قسم الخدمات والبطاقات */
.cards .content{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:22px;
  max-width:1140px;
  margin:0 auto;
}

.card{
  background-color:var(--bg-card);
  border-radius:var(--radius-md);
  padding:22px 20px;
  box-shadow:var(--shadow-card);
  border:1px solid rgba(248,250,252,0.9);
  transition:.25s;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 40px rgba(15,23,42,0.18);
}

.card .icon{
  font-size:2.6rem;
  color:var(--primary);
  margin-bottom:12px;
}

.card .info h3{
  font-size:1.1rem;
  margin-bottom:8px;
  color:var(--text-main);
}

.card .info p{
  font-size:.9rem;
  color:var(--text-soft);
}

/* صورة توظيف */
.hero-image{
  max-width:1140px;
  margin:40px auto 0;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  position:relative;
}

.hero-image::before{
  content:"";
  position:absolute;
  inset:0;
  background:url('images/Screenshot_11.webp') center/cover no-repeat;
  filter:brightness(.65);
}

.hero-overlay{
  position:relative;
  padding:80px 20px;
  text-align:center;
  color:#f9fafb;
  font-size:2rem;
  font-weight:800;
}

/* قسم التوظيف النصي */
.tothefp{
  max-width:900px;
  margin:40px auto 0;
  text-align:center;
  background-color:var(--bg-card);
  border-radius:var(--radius-lg);
  padding:26px 22px;
  box-shadow:var(--shadow-card);
  border:1px solid var(--border-subtle);
}

.tothefp p{
  font-size:1rem;
  color:var(--text-main);
}

.tothefp a{
  color:var(--primary-strong);
  font-weight:700;
}

.tothefp a:hover{
  text-decoration:underline;
}

.promotions-hero{
  padding-block:100px 60px;
  background:linear-gradient(135deg,rgba(185,28,28,0.16),rgba(15,23,42,0.98)),url('images/imag2121.webp') center/cover no-repeat;
  color:#f9fafb;
}

.promotions-hero-inner{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.promotions-hero-text h1{
  font-size:2.2rem;
  margin-bottom:12px;
}

.promotions-hero-text p{
  max-width:780px;
  font-size:1rem;
  color:#e5e7eb;
}

.promotions-tags{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.promotions-tag{
  padding:6px 14px;
  border-radius:999px;
  background-color:#111827;
  border:1px solid rgba(248,250,252,0.35);
  font-size:.85rem;
  color:#f9fafb;
}

.promotions-hero-highlight{
  padding:14px 18px;
  border-radius:12px;
  background-color:rgba(15,23,42,0.9);
  border:1px solid rgba(248,250,252,0.18);
  font-size:.95rem;
}

.promotion-section{
  padding-block:70px;
}

.promotion-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
}

.promotion-card{
  background-color:var(--bg-card);
  border-radius:var(--radius-md);
  padding:20px 18px;
  box-shadow:var(--shadow-card);
  border:1px solid rgba(15,23,42,0.06);
  display:flex;
  flex-direction:column;
  gap:12px;
  position:relative;
  overflow:hidden;
}

.promotion-card::before{
  content:"";
  position:absolute;
  inset-block-start:0;
  inset-inline-start:0;
  width:4px;
  height:100%;
  background:linear-gradient(to bottom,var(--primary),var(--accent));
}

.promotion-level-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.promotion-step-pill{
  padding:4px 10px;
  border-radius:999px;
  background-color:var(--primary-soft);
  color:var(--primary-strong);
  font-size:.8rem;
  font-weight:700;
}

.promotion-level{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.95rem;
  font-weight:700;
  color:var(--primary-strong);
}

.promotion-level-from,
.promotion-level-to{
  padding:4px 10px;
  border-radius:999px;
  background-color:var(--bg-elevated);
}

.promotion-level-arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--primary);
  font-size:.9rem;
}

.promotion-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.promotion-meta-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background-color:var(--bg-elevated);
  font-size:.85rem;
  color:var(--text-soft);
}

.promotion-meta-item i{
  color:var(--primary);
}

.promotion-requirements span{
  display:block;
  font-size:.9rem;
  font-weight:700;
  margin-bottom:4px;
}

.promotion-requirements ul{
  list-style:none;
  padding:0;
  margin:0;
}

.promotion-requirements li{
  position:relative;
  padding-right:16px;
  margin-bottom:4px;
  font-size:.9rem;
  color:var(--text-soft);
}

.promotion-requirements li::before{
  content:"•";
  position:absolute;
  right:4px;
  top:0;
  color:var(--primary);
}

.guide-hero{
  padding-block:100px 60px;
  background:linear-gradient(135deg,rgba(185,28,28,0.1),rgba(15,23,42,0.9)),url('images/Screenshot_2.webp') center/cover no-repeat;
  color:#f9fafb;
}

.guide-hero-inner{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.guide-hero-text h1{
  font-size:2.2rem;
  margin-bottom:12px;
}

.guide-hero-text p{
  max-width:720px;
  font-size:1rem;
  color:#e5e7eb;
}

.guide-tags{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.guide-tag{
  padding:6px 14px;
  border-radius:999px;
  background-color:rgba(15,23,42,0.85);
  border:1px solid rgba(248,250,252,0.2);
  font-size:.85rem;
}

.guide-hero-highlight{
  padding:14px 18px;
  border-radius:12px;
  background-color:rgba(15,23,42,0.9);
  border:1px solid rgba(248,250,252,0.18);
  font-size:.95rem;
}

.academy-hero{
  padding-block:100px 60px;
  background:linear-gradient(135deg,rgba(185,28,28,0.1),rgba(15,23,42,0.9)),url('images/imag2121.webp') center/cover no-repeat;
  color:#f9fafb;
}

.academy-hero-inner{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.academy-hero-text h1{
  font-size:2.2rem;
  margin-bottom:12px;
}

.academy-hero-text p{
  max-width:720px;
  font-size:1rem;
  color:#e5e7eb;
}

.academy-hero-highlight{
  padding:14px 18px;
  border-radius:12px;
  background-color:rgba(15,23,42,0.9);
  border:1px solid rgba(248,250,252,0.18);
  font-size:.95rem;
}

.academy-course{
  padding-block:70px;
}

.academy-portal{
  padding-block:70px 50px;
  background:radial-gradient(circle at top,rgba(248,250,252,0.06),transparent),rgba(15,23,42,0.96);
}

.academy-portal .title{
  color:#f9fafb;
}

.academy-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
  margin-top:20px;
}

.academy-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:18px 16px;
  border-radius:16px;
  background:linear-gradient(145deg,rgba(15,23,42,0.95),rgba(30,64,175,0.65));
  border:1px solid rgba(148,163,184,0.4);
  color:#e5e7eb;
  text-decoration:none;
  box-shadow:0 18px 40px rgba(15,23,42,0.9);
  transition:transform .25s,box-shadow .25s,border-color .25s;
}

.academy-card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 55px rgba(15,23,42,1);
  border-color:#f97316;
}

.academy-card-icon{
  width:40px;
  height:40px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:radial-gradient(circle at top,#f97316,transparent);
  color:#f9fafb;
  font-size:1.5rem;
}

.academy-card h3{
  font-size:1.1rem;
}

.academy-card p{
  font-size:.92rem;
  color:#dde1e7;
}

.academy-card-tag{
  margin-top:4px;
  align-self:flex-start;
  padding:4px 10px;
  border-radius:999px;
  background-color:rgba(15,23,42,0.8);
  border:1px solid rgba(248,250,252,0.18);
  font-size:.8rem;
  color:#fde68a;
}

.academy-module{
  background-color:var(--bg-card);
  border-radius:var(--radius-md);
  padding:20px 18px;
  box-shadow:var(--shadow-card);
  border:1px solid rgba(15,23,42,0.06);
  margin-bottom:22px;
  font-size:.95rem;
  color:var(--text-main);
}

.academy-module h3{
  font-size:1.1rem;
  margin-bottom:10px;
  color:var(--primary-strong);
}

.academy-module p{
  margin-bottom:10px;
  color:var(--text-soft);
}

.academy-module ul{
  list-style:none;
  padding:0;
  margin:0;
}

.academy-module li{
  position:relative;
  padding-right:18px;
  margin-bottom:6px;
  color:var(--text-soft);
}

.academy-module li::before{
  content:"•";
  position:absolute;
  right:4px;
  top:0;
  color:var(--primary);
}

body.supervisor-page{
  background-color:#0f0f0f;
  color:#f5f5f5;
}

.supervisor-hero{
  padding-block:100px 60px;
  background:
    radial-gradient(circle at top,rgba(154,138,120,0.08),transparent),
    repeating-linear-gradient(135deg,rgba(154,138,120,0.16) 0,rgba(154,138,120,0.16) 1px,transparent 1px,transparent 12px),
    linear-gradient(180deg,#0a0a0a,#0f0f0f);
  color:#f5f5f5;
  border-bottom:1px solid #222222;
}

.supervisor-hero-inner{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.supervisor-frame{
  position:relative;
  border-radius:18px;
  border:1px solid #222222;
  padding:22px 20px 18px;
  background:radial-gradient(circle at top left,rgba(154,138,120,0.12),transparent 55%),rgba(10,10,10,0.96);
  box-shadow:0 18px 45px rgba(0,0,0,0.65);
  overflow:hidden;
}

.supervisor-frame::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  border:1px solid rgba(248,250,252,0.04);
  pointer-events:none;
}

.supervisor-frame-footer{
  margin-top:18px;
  border-top:1px solid #222222;
  padding-top:10px;
  font-size:.78rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#9a8a78;
}

.supervisor-hero-visual{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.supervisor-logo-box{
  width:72px;
  height:72px;
  border-radius:999px;
  border:1px solid #222222;
  background-color:#0a0a0a;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0.9;
}

.supervisor-logo-box img{
  max-width:80%;
  max-height:80%;
}

.supervisor-vehicle-card{
  width:100%;
  max-width:360px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(154,138,120,0.55);
  box-shadow:0 18px 40px rgba(0,0,0,0.85);
  background:radial-gradient(circle at top,rgba(154,138,120,0.16),transparent 55%);
}

.supervisor-vehicle-card img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}

.supervisor-architecture{
  padding-block:50px 60px;
  background-color:#0f0f0f;
  border-bottom:1px solid #222222;
}

.supervisor-architecture-frame{
  position:relative;
  max-width:520px;
  margin:0 auto;
  padding:26px 18px 30px;
  border-radius:22px;
  border:1px solid #222222;
  background:radial-gradient(circle at center,rgba(154,138,120,0.18),rgba(10,10,10,0.96));
  box-shadow:0 22px 55px rgba(0,0,0,0.85);
}

.supervisor-architecture-orbit{
  position:relative;
  width:100%;
  max-width:420px;
  margin:0 auto 18px;
  aspect-ratio:1/1;
}

.supervisor-architecture-svg{
  width:100%;
  height:100%;
  display:block;
}

.supervisor-node-line{
  stroke:#9a8a78;
  stroke-width:0.7;
  stroke-opacity:0;
  transition:stroke-opacity .25s ease;
}

.supervisor-node-circle{
  fill:#0a0a0a;
  stroke:#222222;
  stroke-width:1;
  transition:stroke .25s ease, fill .25s ease, filter .25s ease;
}

.supervisor-node-text{
  fill:#f5f5f5;
  font-size:13px;
  font-weight:600;
  text-anchor:middle;
  dominant-baseline:middle;
}

.supervisor-center-circle{
  fill:#0a0a0a;
  stroke:#9a8a78;
  stroke-width:1.4;
}

.supervisor-center-text{
  fill:#f5f5f5;
  font-size:13px;
  font-weight:700;
  text-anchor:middle;
  dominant-baseline:middle;
  letter-spacing:.02em;
}

.supervisor-node:hover .supervisor-node-line{
  stroke-opacity:.9;
}

.supervisor-node:hover .supervisor-node-circle{
  stroke:#9a8a78;
  fill:#111111;
  filter:drop-shadow(0 0 8px rgba(154,138,120,0.6));
}

.supervisor-architecture-caption{
  text-align:center;
  font-size:.75rem;
  letter-spacing:.16em;
  color:#9a8a78;
}

.supervisor-hero-text h1{
  font-size:2.2rem;
  margin-bottom:12px;
}

.supervisor-hero-text p{
  max-width:720px;
  font-size:1rem;
  color:#aaaaaa;
}

@media (min-width: 900px){
  .supervisor-hero-inner{
    flex-direction:row;
    align-items:stretch;
    justify-content:space-between;
    gap:32px;
  }

  .supervisor-hero-text{
    max-width:55%;
  }

  .supervisor-hero-visual{
    margin-top:0;
    align-items:flex-end;
  }
}

.supervisor-hero-highlight{
  padding:14px 18px;
  border-radius:12px;
  background-color:#0a0a0a;
  border:1px solid #222222;
  font-size:.95rem;
}

.supervisor-tags{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.supervisor-tag{
  padding:6px 14px;
  border-radius:999px;
  background-color:#0a0a0a;
  border:1px solid #222222;
  font-size:.85rem;
  color:#f5f5f5;
}

body.supervisor-page .sidebar{
  background-color:#0a0a0a;
  border-inline-end:1px solid #222222;
}

body.supervisor-page .academy-module{
  background-color:#0a0a0a;
  border-color:#222222;
  box-shadow:none;
}

body.supervisor-page .academy-module h3{
  color:#f5f5f5;
}

body.supervisor-page .academy-module li::before{
  color:#9a8a78;
}

body.supervisor-page .footer-title span{
  color:#9a8a78;
}

body.supervisor-page .title{
  color:#f5f5f5;
}

body.supervisor-page .academy-course{
  padding-block:60px 80px;
  border-block:1px solid #222222;
  background-color:#0f0f0f;
}

body.pharmacy-page{
  background-color:#020617;
  color:#e5fdf4;
}

.pharmacy-hero{
  padding-block:100px 60px;
  background:
    radial-gradient(circle at top,rgba(34,197,94,0.18),transparent),
    repeating-linear-gradient(135deg,rgba(56,189,248,0.22) 0,rgba(56,189,248,0.22) 1px,transparent 1px,transparent 12px),
    linear-gradient(180deg,#020617,#022c22);
  color:#ecfdf5;
  border-bottom:1px solid #0f172a;
}

.pharmacy-hero-inner{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.pharmacy-frame{
  position:relative;
  border-radius:18px;
  border:1px solid #0f172a;
  padding:22px 20px 18px;
  background:radial-gradient(circle at top left,rgba(34,197,94,0.18),transparent 55%),rgba(3,7,18,0.96);
  box-shadow:0 18px 45px rgba(0,0,0,0.8);
  overflow:hidden;
}

.pharmacy-frame::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  border:1px solid rgba(148,163,184,0.3);
  pointer-events:none;
}

.pharmacy-frame-footer{
  margin-top:18px;
  border-top:1px solid #0f172a;
  padding-top:10px;
  font-size:.78rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#34d399;
}

.pharmacy-hero-visual{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

.pharmacy-logo-box{
  width:72px;
  height:72px;
  border-radius:999px;
  border:1px solid #0f172a;
  background-color:#020617;
  display:flex;
  align-items:center;
  justify-content:center;
}

.pharmacy-logo-box img{
  max-width:80%;
  max-height:80%;
}

.pharmacy-vehicle-card{
  width:100%;
  max-width:360px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(34,197,94,0.7);
  box-shadow:0 18px 40px rgba(15,23,42,0.95);
  background:radial-gradient(circle at top,rgba(56,189,248,0.25),transparent 55%);
}

.pharmacy-vehicle-card img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}

.pharmacy-architecture{
  padding-block:50px 60px;
  background-color:#020617;
  border-bottom:1px solid #0f172a;
}

.pharmacy-architecture-frame{
  position:relative;
  max-width:520px;
  margin:0 auto;
  padding:26px 18px 30px;
  border-radius:22px;
  border:1px solid #0f172a;
  background:radial-gradient(circle at center,rgba(34,197,94,0.25),rgba(3,7,18,0.98));
  box-shadow:0 22px 55px rgba(0,0,0,0.9);
}

.pharmacy-architecture-orbit{
  position:relative;
  width:100%;
  max-width:420px;
  margin:0 auto 18px;
  aspect-ratio:1/1;
}

.pharmacy-architecture-svg{
  width:100%;
  height:100%;
  display:block;
}

.pharmacy-node-line{
  stroke:#22c55e;
  stroke-width:0.7;
  stroke-opacity:0;
  transition:stroke-opacity .25s ease;
}

.pharmacy-node-circle{
  fill:#020617;
  stroke:#0f172a;
  stroke-width:1;
  transition:stroke .25s ease, fill .25s ease, filter .25s ease;
}

.pharmacy-node-text{
  fill:#ecfdf5;
  font-size:13px;
  font-weight:600;
  text-anchor:middle;
  dominant-baseline:middle;
}

.pharmacy-center-circle{
  fill:#020617;
  stroke:#22c55e;
  stroke-width:1.4;
}

.pharmacy-center-text{
  fill:#ecfdf5;
  font-size:13px;
  font-weight:700;
  text-anchor:middle;
  dominant-baseline:middle;
  letter-spacing:.02em;
}

.pharmacy-node:hover .pharmacy-node-line{
  stroke-opacity:.9;
}

.pharmacy-node:hover .pharmacy-node-circle{
  stroke:#38bdf8;
  fill:#02131a;
  filter:drop-shadow(0 0 10px rgba(56,189,248,0.7));
}

.pharmacy-architecture-caption{
  text-align:center;
  font-size:.75rem;
  letter-spacing:.16em;
  color:#a5f3fc;
}

.pharmacy-hero-text h1{
  font-size:2.2rem;
  margin-bottom:12px;
}

.pharmacy-hero-text p{
  max-width:720px;
  font-size:1rem;
  color:#d1fae5;
}

@media (min-width: 900px){
  .pharmacy-hero-inner{
    flex-direction:row;
    align-items:stretch;
    justify-content:space-between;
    gap:32px;
  }

  .pharmacy-hero-text{
    max-width:55%;
  }

  .pharmacy-hero-visual{
    margin-top:0;
    align-items:flex-end;
  }
}

.pharmacy-hero-highlight{
  padding:14px 18px;
  border-radius:12px;
  background-color:#020617;
  border:1px solid #0f172a;
  font-size:.95rem;
}

.pharmacy-tags{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.pharmacy-tag{
  padding:6px 14px;
  border-radius:999px;
  background:linear-gradient(135deg,#22c55e,#22d3ee);
  border:1px solid rgba(15,23,42,0.6);
  font-size:.85rem;
  color:#022c22;
}

body.pharmacy-page .sidebar{
  background-color:#020617;
  border-inline-end:1px solid #0f172a;
}

body.pharmacy-page .academy-module{
  background-color:#020617;
  border-color:#0f172a;
  box-shadow:none;
}

body.pharmacy-page .academy-module h3{
  color:#ecfdf5;
}

body.pharmacy-page .academy-module li::before{
  color:#22c55e;
}

body.pharmacy-page .footer-title span{
  color:#22c55e;
}

body.pharmacy-page .title{
  color:#ecfdf5;
}

body.pharmacy-page .academy-course{
  padding-block:60px 80px;
  border-block:1px solid #0f172a;
  background-color:#020617;
}

body.medical-team-page{
  background-color:#020617;
  color:#e5e7eb;
}

.search-rescue-page{
  background-color:#020617;
  color:#e5e7eb;
}

.mt-hero{
  position:relative;
  padding-block:110px 70px;
  background:
    radial-gradient(circle at top,rgba(56,189,248,0.16),transparent 55%),
    radial-gradient(circle at bottom,rgba(59,130,246,0.18),transparent 55%),
    linear-gradient(180deg,#020617,#020617);
  overflow:hidden;
}

.mt-hero-orbit{
  position:absolute;
  inset:auto;
  width:420px;
  height:420px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(56,189,248,0.25),transparent 70%);
  right:-120px;
  top:-80px;
  pointer-events:none;
  filter:blur(2px);
}

.mt-hero-orbit-secondary{
  width:360px;
  height:360px;
  left:-140px;
  top:auto;
  bottom:-120px;
  right:auto;
  background:radial-gradient(circle,rgba(129,140,248,0.25),transparent 70%);
}

.mt-hero-inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  position:relative;
  z-index:10;
}

.mt-hero-text h1{
  font-size:2.3rem;
  margin-bottom:14px;
  color:#e5e7eb;
}

.mt-hero-text p{
  max-width:640px;
  color:#cbd5f5;
}

.mt-hero-tags{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.mt-hero-tag{
  padding:7px 14px;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(59,130,246,1),rgba(56,189,248,1));
  color:#f9fafb;
  font-size:.85rem;
  border:1px solid rgba(15,23,42,0.7);
}

.mt-hero-visual{
  position:relative;
  width:260px;
  height:260px;
  margin-inline:auto;
}

.mt-hero-light{
  position:absolute;
  inset:0;
  border-radius:24px;
  background:radial-gradient(circle at top,rgba(56,189,248,0.5),transparent 65%);
  filter:blur(12px);
  transform-origin:center;
  transition:transform .25s ease-out;
}

.mt-hero-badge{
  position:absolute;
  inset:40px;
  border-radius:24px;
  background:radial-gradient(circle at top left,#0f172a,#020617);
  border:1px solid rgba(148,163,184,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 24px 60px rgba(15,23,42,0.9);
  transform-origin:center;
  transition:transform .25s ease-out;
}

.mt-hero-badge-inner{
  position:relative;
  z-index:2;
  text-align:center;
}

.mt-hero-badge-title{
  display:block;
  font-size:1rem;
  font-weight:700;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:#bfdbfe;
}

.mt-hero-badge-subtitle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  padding:4px 10px;
  border-radius:999px;
  font-size:.8rem;
  background-color:rgba(15,23,42,0.95);
  color:#38bdf8;
  border:1px solid rgba(56,189,248,0.6);
}

.mt-hero-badge-ring{
  position:absolute;
  inset:14px;
  border-radius:22px;
  border:1px dashed rgba(148,163,184,0.3);
}

.mt-hero-pointer{
  position:absolute;
  width:12px;
  height:12px;
  border-radius:999px;
  background:radial-gradient(circle,#38bdf8,#0f172a);
  border:2px solid rgba(15,23,42,0.9);
  bottom:22px;
  left:18px;
  box-shadow:0 0 18px rgba(56,189,248,0.9);
  transition:transform .2s ease-out;
}

.mt-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:22px;
}

.mt-reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .5s ease-out,transform .5s ease-out;
}

.mt-reveal-visible{
  opacity:1;
  transform:translateY(0);
}

body.medical-team-page .academy-course{
  padding-block:60px 80px;
  background-color:#020617;
  border-block:1px solid rgba(15,23,42,0.65);
}

body.medical-team-page .academy-module{
  background:rgba(15,23,42,0.98);
  border-color:rgba(30,64,175,0.85);
  box-shadow:0 18px 45px rgba(15,23,42,0.85);
}

body.medical-team-page .academy-module h3{
  color:#bfdbfe;
}

body.medical-team-page .academy-module p,
body.medical-team-page .academy-module ul{
  color:#e5e7eb;
}

body.medical-team-page .academy-module li::before{
  color:#38bdf8;
}

body.medical-team-page .title{
  color:#e5e7eb;
}

.sr-hero{
  position:relative;
  padding-block:110px 80px;
  background:
    radial-gradient(circle at top,rgba(59,130,246,0.25),transparent 55%),
    radial-gradient(circle at bottom,rgba(147,51,234,0.25),transparent 55%),
    linear-gradient(120deg,#020617,#020617);
  overflow:hidden;
}

.sr-hero-radar{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 20%,rgba(56,189,248,0.24),transparent 60%),
    radial-gradient(circle at 80% 80%,rgba(147,51,234,0.22),transparent 60%);
  opacity:.7;
  pointer-events:none;
}

.sr-hero-inner{
  position:relative;
  z-index:10;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:32px;
}

.sr-hero-text h1{
  font-size:2.4rem;
  margin-bottom:16px;
  color:#e5e7eb;
}

.sr-hero-text p{
  max-width:640px;
  color:#cbd5f5;
}

.sr-hero-tags{
  margin-top:20px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.sr-hero-tag{
  padding:7px 16px;
  border-radius:999px;
  background:linear-gradient(135deg,#22c55e,#38bdf8);
  color:#022c22;
  font-size:.85rem;
  border:1px solid rgba(15,23,42,0.7);
}

.sr-hero-visual{
  position:relative;
  width:460px;
  max-width:100%;
  margin-inline:auto;
}

.sr-hero-glow{
  position:absolute;
  inset:0;
  border-radius:28px;
  background:radial-gradient(circle at top,rgba(59,130,246,0.6),transparent 65%);
  filter:blur(16px);
  transform-origin:center;
  transition:transform .25s ease-out;
}

.sr-hero-map-frame{
  position:relative;
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(148,163,184,0.4);
  box-shadow:0 28px 60px rgba(15,23,42,0.95);
  background-color:#020617;
  transform-origin:center;
  transition:transform .25s ease-out;
}

.sr-hero-map-image{
  display:block;
  width:100%;
  height:auto;
}

.sr-hero-map-overlay{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  background-color:rgba(15,23,42,0.92);
  border:1px solid rgba(56,189,248,0.5);
  color:#e5e7eb;
  font-size:.85rem;
}

.sr-hero-map-overlay h3{
  font-size:.95rem;
  margin-bottom:4px;
  color:#bfdbfe;
}

.sr-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
}

.sr-reveal{
  opacity:0;
  transform:translateY(26px) scale(.98);
  transition:opacity .55s ease-out,transform .55s ease-out;
}

.sr-reveal-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

.search-rescue-page .academy-course{
  padding-block:60px 80px;
  background-color:#020617;
  border-block:1px solid rgba(15,23,42,0.7);
}

.search-rescue-page .academy-module{
  background:rgba(15,23,42,0.98);
  border-color:rgba(30,64,175,0.8);
  box-shadow:0 18px 45px rgba(15,23,42,0.9);
}

.search-rescue-page .academy-module h2,
.search-rescue-page .academy-module h3{
  color:#e5e7eb;
}

.search-rescue-page .academy-module p,
.search-rescue-page .academy-module ul{
  color:#e5e7eb;
}

.search-rescue-page .academy-module li::before{
  color:#22c55e;
}

.search-rescue-page .title{
  color:#e5e7eb;
}

.sr-note{
  margin-top:14px;
  padding:10px 14px;
  border-radius:12px;
  background-color:rgba(30,64,175,0.85);
  color:#e5e7eb;
  font-size:.9rem;
}

@media (min-width: 900px){
  .sr-hero-inner{
    align-items:stretch;
  }

  .sr-hero-text{
    max-width:55%;
  }

  .sr-hero-visual{
    max-width:40%;
  }
}

.guide-section{
  padding-block:70px;
}

.guide-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
}

.guide-card{
  background-color:var(--bg-card);
  border-radius:var(--radius-md);
  padding:20px 18px;
  box-shadow:var(--shadow-card);
  border:1px solid rgba(15,23,42,0.04);
  font-size:.95rem;
  color:var(--text-main);
}

.guide-section-intro{
  text-align:center;
  color:var(--text-soft);
  margin-bottom:22px;
}

.guide-list{
  list-style:none;
  padding:0;
  margin:0;
}

.guide-list li{
  position:relative;
  padding-right:18px;
  margin-bottom:8px;
  color:var(--text-soft);
  font-size:.95rem;
}

.guide-list li::before{
  content:"•";
  position:absolute;
  right:4px;
  top:0;
  color:var(--primary);
}

.priority-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
  margin-top:10px;
}

.priority-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:12px;
  background-color:var(--bg-card);
  box-shadow:var(--shadow-card);
}

.priority-rank{
  width:26px;
  height:26px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background-color:var(--primary-soft);
  color:var(--primary-strong);
  font-weight:700;
  font-size:.9rem;
}

.priority-label{
  font-size:.95rem;
  font-weight:600;
}

.radio-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

.radio-card{
  background-color:var(--bg-card);
  border-radius:var(--radius-md);
  padding:18px 18px 16px;
  box-shadow:var(--shadow-card);
}

.radio-card h3{
  font-size:1.05rem;
  margin-bottom:10px;
  color:var(--primary-strong);
}

.guide-warning{
  max-width:700px;
  margin:0 auto 22px;
  padding:10px 16px;
  border-radius:12px;
  background-color:var(--primary-soft);
  color:var(--primary-strong);
  font-size:.95rem;
  text-align:center;
}

.guide-highlight-key{
  display:inline-block;
  padding:2px 8px;
  border-radius:6px;
  background-color:#0f172a;
  color:#f9fafb;
  font-size:.85rem;
  margin-inline:4px;
}

/* Vehicles Section (New Styles) */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 10px;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  border-radius: 12px;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.2s;
}

.vehicle-card:hover {
  transform: translateY(-4px);
}

.vehicle-image-container{
  width:100%;
  border-radius:8px;
  overflow:hidden;
  margin-bottom:15px;
}

.vehicle-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-price {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.vehicle-rank {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* صفحة القوانين */
.laws1 h1{
  font-size:1.8rem;
  color:var(--primary-strong);
  text-align:center;
  margin-bottom:18px;
}

.laws1 p{
  max-width:960px;
  margin:0 auto 26px;
  text-align:center;
  color:var(--text-soft);
}

.laws-page{
  text-align:center;
  margin-top:80px;
}

.laws-page p{
  max-width:700px;
  margin:0 auto;
  font-size:1rem;
  color:var(--text-soft);
}

/* صفحة طلب تصنيع علاجات (غلاف رئيسي فقط؛ التفاصيل في health.css) */
.notices{
  background-color:var(--bg-body);
}

/* الشريط الجانبي (برغر منيو) */
.sidebar{
  position:fixed;
  inset-block-start:72px;
  inset-inline-start:0;
  width:120px;
  height:calc(100% - 72px);
  background-color:#0f172a;
  color:#e5e7eb;
  padding:14px 10px;
  overflow:hidden;
  transition:width .3s;
  z-index:1000;
}

.sidebar.active{
  width:320px;
}

.logo-menu{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-inline:8px;
  margin-bottom:10px;
}

.logo-menu .logo{
  font-size:.9rem;
  font-weight:700;
  white-space:nowrap;
}

.sidebar:not(.active) .logo-menu .logo{
  display:none;
}

.toggle-btn{
  font-size:1.6rem;
  cursor:pointer;
  color:#e5e7eb;
  line-height:1;
  user-select:none;
  position:relative;
  z-index:1100;
}

.list{
  list-style:none;
  margin-top:6px;
  overflow-y:auto;
}

.list-item{
  margin-block:6px;
}

.list-item a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:10px;
  font-size:.9rem;
  color:#e5e7eb;
  transition:.25s;
  width:100%;
  box-sizing:border-box;
}

.list-item.active a,
.list-item a:hover{
  background-color:rgba(248,250,252,0.08);
}

.list-item i{
  font-size:1.3rem;
  min-width:26px;
  text-align:center;
}

.link-name{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:calc(100% - 38px);
}

.sidebar:not(.active) .link-name{
  display:none;
}

/* الفوتر */
.footer{
  margin-top:60px;
  padding:22px 20px;
  background-color:#020617;
  color:#e5e7eb;
  text-align:center;
}

.footer-title{
  font-size:1rem;
}

.footer-title span{
  color:var(--accent);
  font-weight:700;
}

.footer .social-icons a{
  padding-inline:6px;
  font-size:1.1rem;
}

/* استجابات */
@media (max-width:900px){
  body{
    padding-inline-start:0;
  }

  .navigation a{
    display:none;
  }

  header{
    padding-inline:14px;
  }

  main{
    padding-block-start:90px;
  }

  .sidebar{
    inset-block-start:auto;
    inset-block-end:0;
    height:64px;
    width:100%;
    display:flex;
    align-items:center;
    padding-inline:14px;
  }

  .sidebar.active{
    height:220px;
  }

  .logo-menu{
    margin-bottom:0;
  }

  .list{
    display:flex;
    gap:6px;
    margin-inline-start:10px;
  }

  .list-item a{
    padding:8px 10px;
  }

  .hero-image,
  .tothefp{
    margin-inline:16px;
  }

  .projects .content,
  .cards .content{
    padding-inline:4px;
  }
}

@media (max-width:640px){
  .overlay-content{
    margin-inline:16px;
    padding-inline:18px;
  }

  .overlay-content h2 span{
    font-size:2.1rem;
  }

  .hero-overlay{
    font-size:1.6rem;
  }

  .title{
    font-size:1.6rem;
  }
}

/* Laws Page Mobile Fixes and General Mobile Adjustments */
@media (max-width: 768px) {
  .vehicle-grid {
      grid-template-columns: 1fr; /* Force single column on mobile */
  }
  
  .laws1 .container {
      padding-left: 10px;
      padding-right: 10px;
  }
  
  .accordion-button {
      font-size: 0.95rem;
      padding: 10px;
  }
  
  .accordion-body {
      padding: 10px;
      font-size: 0.9rem;
  }
}
