/* ============================================================
   Atwa-ICT Academy — Global Design System
   Shared across every page: tokens, reset, layout, typography,
   buttons, cards, nav, footer, announcement bar, FABs, CTA band.
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: 'Cairo', sans-serif; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }


/* ── Design Tokens ── */
:root {
  /* Brand */
  --navy:        #000a8f;
  --navy-dark:   #00076d;
  --navy-mid:    #0010b8;
  --orange:      #f97316;
  --orange-dark: #ea6c0a;

  /* Backgrounds */
  --bg-dark:  #080b1a;
  --bg-white: #ffffff;
  --bg-gray:  #f5f7fa;
  --bg-card:  #ffffff;

  /* Text */
  --text-dark:  #111827;
  --text-body:  #374151;
  --text-muted: #6b7280;
  --text-light: rgba(255,255,255,.85);

  /* Borders */
  --border:      #e5e7eb;
  --border-card: #e5e7eb;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.12);

  /* Misc */
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --max-w:      1200px;
  --transition: 0.22s ease;
}


/* ── Layout ── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section-white { background: var(--bg-white); }
.section-gray  { background: var(--bg-gray); }
.section-dark  { background: var(--bg-dark); }
.section-inner    { padding: 96px 0; }
.section-inner-sm { padding: 64px 0; }


/* ── Typography shared components ── */
.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.label-chip-navy   { background: rgba(0,10,143,.08); color: var(--navy); }
.label-chip-orange { background: rgba(249,115,22,.1); color: var(--orange-dark); }
.label-chip-white  { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin: 12px 0 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
}
.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(249,115,22,.35);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 0;
  font-size: .9rem;
  gap: 6px;
}
.btn-ghost:hover { color: var(--orange); gap: 10px; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }


/* ── Cards ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--orange); }


/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }


/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.ann-bar {
  background: var(--navy);
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  font-weight: 500;
  padding: 10px 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.ann-bar a { color: var(--orange); font-weight: 700; text-decoration: underline; }
.ann-bar a:hover { opacity: .85; }
.ann-bar-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.ann-bar-close:hover { color: #fff; }
[dir="rtl"] .ann-bar-close { right: auto; left: 16px; }


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: #f5f7fa;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 32px;
}
.nav-logo img { height: 56px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link {
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: rgba(0,10,143,.08); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

.nav-apply {
  padding: 8px 18px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .85rem;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-apply:hover { background: var(--orange-dark); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* Mobile-only drawer elements hidden on desktop */
.nav-mobile-top,
.nav-mobile-bottom { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 32px rgba(0,0,0,.18);
    z-index: 800;
    gap: 0;
    overflow-y: auto;
  }
  [dir="rtl"] .nav-links { right: auto; left: 0; border-left: none; border-right: 1px solid var(--border); }
  .nav-links.open { display: flex; }

  /* Mobile drawer top header */
  .nav-mobile-top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    list-style: none;
  }
  .nav-mobile-logo { height: 42px; width: auto; }
  .nav-mobile-tagline {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* Individual nav links */
  .nav-links li { list-style: none; }
  .nav-link {
    color: var(--navy);
    width: 100%;
    padding: 17px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #f0f2f5;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background var(--transition), border-left var(--transition);
  }
  .nav-link::before {
    content: '';
    display: block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: background var(--transition);
  }
  .nav-link:hover { background: var(--bg-gray); }
  .nav-link:hover::before, .nav-link.active::before { background: var(--orange); }
  .nav-link.active {
    background: rgba(0,10,143,.05);
    color: var(--navy);
    border-left: 3px solid var(--orange);
    padding-left: 21px;
  }

  /* Mobile drawer bottom CTA */
  .nav-mobile-bottom {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: var(--bg-gray);
    list-style: none;
  }
  .nav-mobile-apply,
  .nav-mobile-wa {
    width: 100%;
    justify-content: center;
    font-size: .93rem;
  }

  .nav-apply { display: none; }
}
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 750; }
.nav-overlay.active { display: block; }


/* ============================================================
   CTA BAND  (home, about, courses pages)
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, #000436 100%);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(249,115,22,.08) 0%, transparent 70%);
}
.cta-band > .container { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff; margin-bottom: 14px; }
.cta-band p  { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 520px; margin: 0 auto 36px; line-height: 1.7; }
.cta-band-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #050810;
  color: rgba(255,255,255,.65);
  padding-top: 64px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-logo img { height: 56px; width: auto; object-fit: contain; }
.footer-desc { font-size: .84rem; line-height: 1.75; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: .88rem; font-weight: 700; margin-bottom: 14px; letter-spacing: .03em; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: .84rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; font-size: .84rem; margin-bottom: 10px; align-items: flex-start; }
.footer-contact i { color: var(--orange); margin-top: 3px; flex-shrink: 0; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: rgba(255,255,255,.65); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px)  { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ── Footer social icons ── */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .65);
  font-size: .92rem;
  transition: background .22s, color .22s, border-color .22s, transform .22s;
  flex-shrink: 0;
}
.footer-social-btn:hover    { color: #fff; transform: translateY(-3px); }
.footer-social-yt:hover     { background: #ff0000; border-color: #ff0000; }
.footer-social-ig:hover     { background: #e1306c; border-color: #e1306c; }
.footer-social-fb:hover     { background: #1877f2; border-color: #1877f2; }
.footer-social-wa:hover     { background: #25d366; border-color: #25d366; }


/* ============================================================
   FLOATING ACTION BUTTONS
   ============================================================ */
.fab-group {
  position: fixed;
  bottom: 28px; right: 24px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.fab-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease;
  flex-shrink: 0;
}
.fab-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.fab-lang-btn {
  background: var(--navy);
  color: #fff;
  font-size: 1.15rem;
  gap: 2px;
}
.fab-lang-btn[aria-expanded="true"] { background: var(--navy-dark); }
.fab-lang-code { font-size: .52rem; font-weight: 700; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.fab-wa-btn { background: #25D366; color: #fff; font-size: 1.55rem; }

.fab-lang-options { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fab-lang-opt {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(.82);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, border-color .15s ease, box-shadow .15s ease;
}
.fab-lang-options.open .fab-lang-opt:nth-child(3) { transition-delay: 0s; }
.fab-lang-options.open .fab-lang-opt:nth-child(2) { transition-delay: .07s; }
.fab-lang-options.open .fab-lang-opt:nth-child(1) { transition-delay: .14s; }
.fab-lang-options.open .fab-lang-opt { opacity: 1; transform: none; pointer-events: auto; }
.fab-lang-opt:hover { transform: scale(1.1) !important; border-color: var(--navy); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.fab-lang-opt.active { border-color: var(--orange); border-width: 3px; }


/* ============================================================
   RESPONSIVE GLOBAL
   ============================================================ */
@media (max-width: 640px) {
  .section-inner    { padding: 64px 0; }
  .section-inner-sm { padding: 40px 0; }
  .cta-band         { padding: 64px 0; }
}
