@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --primary:    #1e40af;
  --primary-dk: #1e3a8a;
  --primary-lt: #3b82f6;
  --gold:       #fbbf24;
  --gold-dk:    #d97706;
  --bg:         #f8faff;
  --card:       #ffffff;
  --dark:       #0f172a;
  --dark2:      #1e293b;
  --text:       #374151;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --shadow-sm:  0 1px 6px rgba(30,64,175,.07);
  --shadow-md:  0 4px 24px rgba(30,64,175,.09);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── ANIMATIONS ──────────────────────────────────────── */
.sg-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.sg-fade.sg-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.sg-stagger .sg-fade:nth-child(1) { transition-delay: .05s; }
.sg-stagger .sg-fade:nth-child(2) { transition-delay: .15s; }
.sg-stagger .sg-fade:nth-child(3) { transition-delay: .25s; }
.sg-stagger .sg-fade:nth-child(4) { transition-delay: .35s; }
.sg-stagger .sg-fade:nth-child(5) { transition-delay: .45s; }
.sg-stagger .sg-fade:nth-child(6) { transition-delay: .55s; }

/* ── HEADER ─────────────────────────────────────────── */
.sg-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.sg-header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sg-header-end {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 33.33%;
}

.sg-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sg-logo { height: 38px; width: auto; object-fit: contain; }

.sg-header-start {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 33.33%;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.sg-flag { width: 24px; height: 24px; border-radius: 3px; object-fit: cover; }

.sg-btn-filled {
  background: #1e40af;
  color: #fff !important;
  border-radius: 6px;
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Tajawal', sans-serif;
  transition: background .2s;
  white-space: nowrap;
  display: inline-block;
}

.sg-btn-filled:hover { background: #1e3a8a; }

.sg-btn-outline {
  background: #fff;
  color: #3b82f6 !important;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Tajawal', sans-serif;
  transition: background .2s;
  white-space: nowrap;
  display: inline-block;
}

.sg-btn-outline:hover { background: #eff6ff; }

@media (max-width: 768px) {
  .sg-btn-filled, .sg-btn-outline { padding: 6px 12px; font-size: 13px; }
  .sg-header-start span { display: none; }
}

@media (max-width: 480px) {
  .sg-btn-outline { display: none; }
}

/* ── HERO ────────────────────────────────────────────── */
.sg-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  color: #fff;
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(251,191,36,.15) 0%, transparent 60%);
  pointer-events: none;
}

.sg-hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -.3px;
  position: relative;
}

.sg-hero p {
  font-size: clamp(15px, 2.5vw, 18px);
  opacity: .85;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
  position: relative;
}

/* ── CONTENT WRAPPER ─────────────────────────────────── */
.sg-content {
  max-width: 880px;
  margin: 64px auto;
  padding: 0 20px 64px;
}

.sg-content-wide {
  max-width: 1000px;
  margin: 64px auto;
  padding: 0 20px 64px;
}

/* ── CARDS ───────────────────────────────────────────── */
.sg-card {
  background: var(--card);
  border-radius: 18px;
  padding: 36px 40px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30,64,175,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.sg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(30,64,175,.13);
}

.sg-card h2 {
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
  padding-right: 14px;
  border-right: 4px solid var(--gold);
  line-height: 1.3;
}

.sg-card p,
.sg-card li {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
}

.sg-card ul {
  padding-right: 22px;
  margin-top: 10px;
}

.sg-card li { margin-bottom: 8px; }

.sg-card-center { text-align: center; }
.sg-card-center h2 { border: none; padding: 0; margin-bottom: 14px; }

.sg-updated {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ── VALUES / STATS GRID ─────────────────────────────── */
.sg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.sg-tile {
  background: var(--card);
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.sg-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(30,64,175,.12);
  border-color: rgba(30,64,175,.2);
}

.sg-tile .sg-icon { font-size: 38px; margin-bottom: 12px; }

.sg-tile h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.sg-tile p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* stat variant */
.sg-stat .sg-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--primary);
}

.sg-stat p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── CTA BANNER ──────────────────────────────────────── */
.sg-banner {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 20px;
  padding: 52px 40px;
  text-align: center;
  margin-bottom: 24px;
  color: var(--dark);
  box-shadow: 0 6px 24px rgba(251,191,36,.3);
  position: relative;
  overflow: hidden;
}

.sg-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  pointer-events: none;
}

.sg-banner h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 900;
  margin-bottom: 12px;
  position: relative;
}

.sg-banner p {
  font-size: 16px;
  opacity: .8;
  margin-bottom: 28px;
  position: relative;
}

.sg-banner-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Tajawal', sans-serif;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(30,64,175,.35);
  position: relative;
}

.sg-banner-btn:hover {
  background: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,64,175,.45);
}

/* ── TEAM MEMBER ─────────────────────────────────────── */
.sg-member {
  background: var(--card);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30,64,175,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.sg-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(30,64,175,.14);
}

/* ── CONTACT ─────────────────────────────────────────── */
.sg-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}

.sg-contact-item:last-child { border-bottom: none; }
.sg-contact-item .sg-ico { font-size: 24px; flex-shrink: 0; }
.sg-contact-item a { color: var(--text); transition: color .2s; }
.sg-contact-item a:hover { color: var(--primary); }

/* contact form */
.sg-form { display: flex; flex-direction: column; gap: 14px; }

.sg-form input,
.sg-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--card);
  color: var(--text);
}

.sg-form input:focus,
.sg-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,.08);
}

.sg-form textarea { height: 130px; resize: vertical; }

.sg-form-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  font-family: 'Tajawal', sans-serif;
  transition: background .2s, transform .15s;
}

.sg-form-btn:hover { background: var(--primary-dk); transform: translateY(-1px); }

/* ── FOOTER ──────────────────────────────────────────── */
.sg-footer {
  width: 100%;
  margin-top: 64px;
  background: #eff6ff;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.sg-footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  position: relative;
}

.sg-footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(30,64,175,.1);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .sg-footer-top { flex-direction: row; }
}

.sg-footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.sg-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.sg-social-btn {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #3b82f6;
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0;
}

.sg-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30,64,175,.15);
  color: #1e40af;
}

.sg-social-btn svg { width: 20px; height: 20px; }

.sg-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}

.sg-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.sg-footer-links a {
  font-size: 13px;
  color: #64748b;
  transition: color .2s;
}

.sg-footer-links a:hover { color: #1e40af; }

@media (max-width: 640px) {
  .sg-footer-bottom { flex-direction: column; text-align: center; }
  .sg-footer-links { justify-content: center; }
}

/* ── LOGIN PAGE ──────────────────────────────────────── */
.sg-login-wrap {
  min-height: calc(100vh - 64px - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.sg-login-card {
  background: var(--card);
  border-radius: 22px;
  padding: 48px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(30,64,175,.06);
}

.sg-login-card h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 28px;
  text-align: center;
}

.sg-login-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}

.sg-login-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}

.sg-login-tabs a.active { color: var(--primary); }
.sg-login-tabs a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 600px) {
  .sg-card { padding: 24px 20px; }
  .sg-login-card { padding: 32px 20px; }
  .sg-banner { padding: 36px 24px; }
}
