
:root{
  --green:#0B3D2E;
  --green-2:#072b20;
  --gold:#C9A646;
  --gold-2:#e1c46b;
  --ink:#071018;
  --bg:#061015;
  --card:#0a1a22;
  --muted:#9fb3a8;
  --line:rgba(255,255,255,.10);
  --ring:rgba(201,166,70,.30);
  --shadow: 0 30px 70px rgba(0,0,0,.45);
  --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1100px 600px at 80% -10%, rgba(201,166,70,.10), transparent 60%),
              radial-gradient(900px 500px at 10% 10%, rgba(11,61,46,.35), transparent 55%),
              linear-gradient(180deg, var(--bg), #040b0f 70%);
  color:#eef6f2;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ width:min(1120px, calc(100% - 40px)); margin-inline:auto; }

.topbar{
  padding: 18px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand__logo{
  width:44px; height:44px; border-radius:14px;
  background: linear-gradient(135deg, rgba(201,166,70,.25), rgba(11,61,46,.55));
  border:1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.brand__name{
  display:flex; flex-direction:column; line-height:1.1;
}
.brand__name strong{ font-size:16px; letter-spacing:.2px; }
.brand__name span{ font-size:12px; color:var(--muted); font-weight:700; }

.nav{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.nav__links{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  color:#dfece6;
  font-weight:800;
}
.nav__links a{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
}
.nav__links a:hover{
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 16px;
  border:1px solid transparent;
  font-weight:900;
  cursor:pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }
.btn--gold{
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink);
}
.btn--gold:hover{ filter: brightness(1.02); transform: translateY(-1px); }
.btn--ghost{
  background: rgba(255,255,255,.04);
  border-color: var(--line);
  color:#eef6f2;
}
.btn--ghost:hover{ background: rgba(255,255,255,.06); transform: translateY(-1px); }

.card{
  background: linear-gradient(180deg, rgba(10,26,34,.92), rgba(10,26,34,.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: 8px 12px;
  border-radius: 999px;
  color:#dfece6;
  font-weight:900;
  font-size:12px;
}

.grid{
  display:grid; gap:18px;
}
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--2{ grid-template-columns: repeat(2, 1fr); }

@media (max-width: 920px){
  .grid--3{ grid-template-columns: 1fr; }
  .grid--2{ grid-template-columns: 1fr; }
  .nav{ flex-direction:column; align-items:stretch; }
  .nav__links{ justify-content:center; }
}

.hero{
  padding: 26px 0 10px;
}
.hero__wrap{
  display:grid; grid-template-columns: 1.15fr .85fr; gap:18px;
}
@media (max-width: 920px){
  .hero__wrap{ grid-template-columns: 1fr; }
}
.hero__copy{
  padding: 26px;
  position:relative;
  overflow:hidden;
}
.hero__copy:before{
  content:"";
  position:absolute; inset:-140px -140px auto auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(201,166,70,.32), transparent 60%);
  filter: blur(4px);
}
.hero__copy h1{
  margin:0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: .2px;
}
.hero__copy p{
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height:1.9;
}
.hero__cta{
  margin-top: 18px;
  display:flex; gap:12px; flex-wrap:wrap;
}
.stats{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:12px;
  margin-top: 18px;
}
@media (max-width: 920px){ .stats{ grid-template-columns: 1fr; } }
.stat{
  padding: 14px;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.stat b{ font-size: 20px; display:block; }
.stat span{ color: var(--muted); font-weight:900; font-size: 12px; }

.slider{
  overflow:hidden;
  position:relative;
}
.slider__frame{
  height: 360px;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
}
.slider__frame img{
  width:100%; height:100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.03) contrast(1.02);
}
.slider__shade{
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 78%);
}
.slider__meta{
  position:absolute; bottom:16px; left:16px; right:16px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:10px;
}
.slider__meta .title{
  font-weight: 1000; font-size: 16px;
}
.slider__meta .sub{
  color:#dfece6; opacity:.9; font-weight:800; font-size: 12px;
}
.dots{ display:flex; gap:8px; }
.dot{
  width:10px; height:10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
}
.dot--on{
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-color: rgba(201,166,70,.55);
}

.section{ padding: 18px 0 34px; }
.section__head{
  display:flex; align-items:end; justify-content:space-between; gap:10px; flex-wrap:wrap;
  margin-bottom: 14px;
}
.section__head h2{ margin:0; font-size: 20px; }
.section__head p{ margin:0; color:var(--muted); font-weight:800; }

.opps .opp{
  overflow:hidden;
  position:relative;
  transition: transform .15s ease;
}
.opps .opp:hover{ transform: translateY(-3px); }
.opp__img{
  height: 160px; overflow:hidden;
  border-bottom:1px solid var(--line);
}
.opp__img img{ height:100%; width:100%; object-fit: cover; }
.opp__body{ padding: 16px; }
.opp__title{ margin:0; font-size: 16px; font-weight: 1000; line-height:1.5; }
.opp__desc{ margin: 8px 0 0; color:var(--muted); font-weight:800; line-height:1.8; }
.opp__tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 12px; }
.opp__foot{ display:flex; justify-content:space-between; gap:10px; align-items:center; margin-top: 14px; }

.form{
  padding: 22px;
}
.label{ display:block; margin-bottom: 8px; font-weight: 1000; }
.input{
  width:100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:#eef6f2;
  font-weight: 900;
  outline:none;
}
.input:focus{ box-shadow: 0 0 0 5px var(--ring); border-color: rgba(201,166,70,.55); }
.row{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
@media (max-width: 920px){ .row{ grid-template-columns:1fr; } }
.small{ color: var(--muted); font-weight: 800; font-size: 12px; margin-top:8px; }

.footer{
  border-top:1px solid var(--line);
  padding: 18px 0 26px;
  color: var(--muted);
  font-weight: 800;
}
.footer__grid{
  display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;
}
.footer__links{ display:flex; gap:12px; flex-wrap:wrap; }
.footer__links a:hover{ color:#eef6f2; }

.admin-link{
  font-size: 10px;
  opacity: .18;
  letter-spacing: .3px;
}
.admin-link:hover{ opacity:.6; }



/* === Fix: Select dropdown rendering (RTL) === */
select.input{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='%23C9A646' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 14px center;
  padding-left:40px;
}

/* Ensure dropdown isn't clipped by parents */
.card, .section{ overflow: visible; }
select{ position: relative; z-index: 5; }



/* === Select options color fix (dropdown + placeholder like "كل المناطق") === */
select.input{ color:#eef6f2; }
select.input option{ background-color: #0a1a22; color:#eef6f2; }
select.input option:disabled{ color: rgba(255,255,255,.55); }
