/* ==============================
   TOKENS — Green Theme
============================== */
:root {
  --primary:     #1A6B3C;
  --primary-lt:  #27A55B;
  --primary-xl:  #4DC97E;
  --primary-dim: rgba(39,165,91,.09);
  --accent:      #C8A951;
  --soft:        #F0FAF4;
  --white:       #ffffff;
  --dark:        #0F2B1A;
  --muted:       #5A7A65;
  --border:      #D4EDDF;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px  rgba(26,107,60,.07);
  --shadow:    0 8px 32px rgba(26,107,60,.10);
  --shadow-lg: 0 20px 60px rgba(26,107,60,.14);

  --t:   .28s cubic-bezier(.4,0,.2,1);
  --font: 'Cairo', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: var(--font);
  background: var(--soft);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration:none; color:inherit; }

/* ==============================
   HERO BANNER
============================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 60%, #3DBD70 100%);
  color: var(--white); text-align: center;
  padding: 90px 8% 70px;
}

.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
  opacity: .12; background: var(--white);
}
.hero::before { width:400px; height:400px; top:-120px; left:-120px; }
.hero::after  { width:260px; height:260px; bottom:-80px; right:-60px; }

.hero-texture {
  position: absolute; inset: 0; z-index: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='52' viewBox='0 0 52 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M26 0C11.64 0 0 11.64 0 26s11.64 26 26 26 26-11.64 26-26S40.36 0 26 0zm0 48C13.85 48 4 38.15 4 26S13.85 4 26 4s22 9.85 22 22-9.85 22-22 22z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px; padding: 6px 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900; line-height: 1.2; margin-bottom: 16px;
}

.hero p {
  max-width: 560px; margin: 0 auto 30px;
  line-height: 1.9; opacity: .88; font-size: 15px;
}

.hero-stats {
  display: inline-flex; gap: 36px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 18px 36px;
  backdrop-filter: blur(10px);
}

.stat-item strong { display:block; font-size:28px; font-weight:900; line-height:1; }
.stat-item span   { font-size:12px; opacity:.8; }

/* ==============================
   SPOTLIGHT CARD
============================== */
.spotlight-wrap {
  max-width: 900px; margin: -38px auto 0;
  padding: 0 5%; position: relative; z-index: 10;
}

.spotlight {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 38px 44px;
  display: flex; align-items: center; gap: 36px;
  border-top: 4px solid var(--primary-lt);
}

.spotlight-avatar {
  flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-lt), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--white); font-weight: 900;
  box-shadow: 0 6px 24px rgba(26,107,60,.28);
  position: relative;
}

.spotlight-avatar::after {
  content: '⭐'; position: absolute; bottom: -4px; right: -4px;
  font-size: 18px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.spotlight-info  { flex: 1; }

.spotlight-label {
  font-size: 12px; font-weight: 700; color: var(--accent);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px;
}

.spotlight-name { font-size: 22px; font-weight: 800; margin-bottom: 8px; }

.spotlight-meta { display: flex; flex-wrap: wrap; gap: 14px; }

.spotlight-meta a,
.spotlight-meta span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--muted); transition: color var(--t);
}
.spotlight-meta a:hover { color: var(--primary-lt); }

.spotlight-date {
  margin-right: auto; font-size: 12px; color: var(--muted);
  background: var(--soft); border-radius: 50px;
  padding: 5px 14px; font-weight: 600; white-space: nowrap;
}

/* ==============================
   SECTION WRAPPER
============================== */
.section {
  max-width: 1260px; margin: 0 auto; padding: 56px 5% 100px;
}

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 34px; flex-wrap: wrap; gap: 12px;
}

.section-title {
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}

.section-title::before {
  content: ''; display: inline-block; width: 5px; height: 26px;
  background: linear-gradient(to bottom, var(--primary-xl), var(--primary));
  border-radius: 4px;
}

.count-badge {
  background: var(--primary); color: var(--white);
  border-radius: 50px; padding: 4px 14px;
  font-size: 13px; font-weight: 700;
}

/* ==============================
   GRID
============================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ==============================
   TRAINEE CARD
============================== */
.trainee-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  animation: fadeUp .5s ease both;
}

/* green top bar slides in on hover */
.trainee-card::before {
  content: '';
  position: absolute; top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-xl), var(--primary));
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t);
}

.trainee-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.trainee-card:hover::before { transform: scaleX(1); }

/* ── card top band ── */
.card-top {
  background: linear-gradient(160deg, #e8f8ef 0%, #d0f0e0 100%);
  padding: 26px 20px 18px;
  text-align: center; position: relative;
}

.card-serial {
  position: absolute; top: 12px; right: 14px;
  font-size: 11px; font-weight: 700; color: var(--primary-lt);
  background: rgba(39,165,91,.12);
  border-radius: 50px; padding: 3px 10px;
}

/* ── avatar ── */
.card-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-lt), var(--primary));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900;
  margin: 0 auto 14px;
  border: 3px solid var(--white);
  box-shadow: 0 4px 18px rgba(26,107,60,.22);
  transition: transform var(--t), box-shadow var(--t);
}

.trainee-card:hover .card-avatar {
  transform: scale(1.07);
  box-shadow: 0 8px 28px rgba(26,107,60,.32);
}

.card-name {
  font-size: 16px; font-weight: 800;
  color: var(--dark); line-height: 1.4;
}

/* ── card body ── */
.card-body {
  padding: 16px 20px;
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}

.card-divider { height: 1px; background: var(--border); }

.card-info { display: flex; flex-direction: column; gap: 8px; }

.card-info-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  background: var(--soft); border-radius: var(--radius-xs);
  padding: 8px 10px; overflow: hidden;
}

.card-info-row .ci-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px;
  background: var(--primary-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

.card-info-row span,
.card-info-row a {
  font-size: 12px; font-weight: 700; color: var(--dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--t);
}
.card-info-row a:hover { color: var(--primary-lt); }

/* ── card footer ── */
.card-footer {
  padding: 11px 20px; background: var(--soft);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}

.card-date {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
}

.card-active-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--primary-lt);
  background: rgba(39,165,91,.1);
  border: 1px solid rgba(39,165,91,.2);
  border-radius: 50px; padding: 3px 10px;
}

/* ==============================
   EMPTY STATE
============================== */
.empty {
  text-align: center; padding: 80px 20px;
  background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.empty-icon { font-size: 56px; margin-bottom: 20px; }
.empty h3   { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.empty p    { color: var(--muted); font-size: 14px; }

/* ==============================
   CTA BAND
============================== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 100%);
  color: var(--white); text-align: center; padding: 70px 10%;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(22px,3vw,32px); font-weight: 800; margin-bottom: 12px; }
.cta p  { opacity: .85; margin-bottom: 30px; font-size: 15px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--primary);
  padding: 14px 34px; border-radius: 50px;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  transition: transform var(--t), box-shadow var(--t);
}
.cta-btn:hover { transform:translateY(-3px); box-shadow:0 12px 36px rgba(0,0,0,.2); }

/* ==============================
   ANIMATIONS
============================== */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

.trainee-card:nth-child(1)   { animation-delay:.05s; }
.trainee-card:nth-child(2)   { animation-delay:.10s; }
.trainee-card:nth-child(3)   { animation-delay:.15s; }
.trainee-card:nth-child(4)   { animation-delay:.20s; }
.trainee-card:nth-child(5)   { animation-delay:.25s; }
.trainee-card:nth-child(6)   { animation-delay:.30s; }
.trainee-card:nth-child(7)   { animation-delay:.35s; }
.trainee-card:nth-child(8)   { animation-delay:.40s; }
.trainee-card:nth-child(9)   { animation-delay:.45s; }
.trainee-card:nth-child(10)  { animation-delay:.50s; }
.trainee-card:nth-child(n+11){ animation-delay:.55s; }

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
  .spotlight { flex-direction:column; text-align:center; padding:28px 24px; }
  .spotlight-meta { justify-content:center; }
  .spotlight-date { margin:0 auto; }
  .hero-stats { gap:20px; padding:16px 24px; }
  .grid { grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap:16px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns:1fr; }
  .hero { padding:70px 5% 50px; }
}