/* =========================================================
   YECAM — Youth Excellence Cameroon
   Stylesheet — colors drawn from the official YECAM emblem
   ========================================================= */

:root {
  --blue: #0554d6;
  --blue-dark: #043a9e;
  --blue-darker: #032b78;
  --green: #2ea002;
  --green-dark: #1f7a02;
  --gold: #ffc603;
  --gold-dark: #e0ac00;
  --red: #fb0200;
  --red-dark: #cf0000;
  --navy: #0b1730;
  --ink: #1c2430;
  --ink-soft: #4a5568;
  --bg: #f6f8fc;
  --bg-alt: #eef2fa;
  --white: #ffffff;
  --border: #e2e8f4;
  --shadow: 0 10px 30px rgba(11, 23, 48, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 23, 48, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; color: var(--ink-soft); }
li { margin-bottom: 0.4em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}
.section-tight { padding: 56px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-navy { background: var(--navy); color: #dbe4f7; }
.bg-navy h2, .bg-navy h3 { color: #ffffff; }
.bg-navy p { color: #c3cfe6; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(251, 2, 0, 0.08);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin: 0 0 40px; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand img { height: 40px; width: auto; }
.brand .brand-tag { display: block; font-family: 'Inter'; font-weight: 500; font-size: 0.6rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; }

.main-nav {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 9px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--ink);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--blue); }
.main-nav a.active { background: var(--blue); color: #fff; }
.nav-cta { margin-left: 8px; flex-shrink: 0; }
.nav-cta a { padding: 8px 16px !important; font-size: 0.76rem !important; }

@media (max-width: 1220px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow-y: hidden;
    overflow-x: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 620px; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; flex-wrap: wrap; padding: 10px 20px 20px; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 0.95rem; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta a { padding: 12px 14px !important; font-size: 0.95rem !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 120px 0 100px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(5,20,55,0.92) 10%, rgba(5,60,140,0.72) 55%, rgba(46,160,2,0.55) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }

/* Rotating background slideshow — used on the homepage hero only */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero .eyebrow { background: rgba(255,198,3,0.18); color: var(--gold); }
.hero h1 { color: #fff; }
.hero p.lead { color: #e4ecfb; font-size: 1.12rem; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  padding: 70px 0 60px;
}
.page-hero .eyebrow { background: rgba(255,198,3,0.18); color: var(--gold); }
.page-hero p.lead { color: #e4ecfb; max-width: 640px; }

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--navy);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 34px 0;
}
.stat-num { font-family: 'Poppins', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.85rem; color: #c3cfe6; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: #fff;
}
.icon-blue { background: var(--blue); }
.icon-green { background: var(--green); }
.icon-gold { background: var(--gold); color: var(--navy); }
.icon-red { background: var(--red); }

.pillar-card { border-top: 5px solid var(--blue); }
.pillar-card:nth-child(2) { border-top-color: var(--red); }
.pillar-card:nth-child(3) { border-top-color: var(--gold); }
.pillar-card:nth-child(4) { border-top-color: var(--green); }

.value-card { text-align: center; }

/* ---------- Team ---------- */
.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}
.team-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; }
.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}
.team-body { padding: 22px 18px 28px; }
.team-role { color: var(--red); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.team-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.founder-banner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 34px;
  margin-bottom: 56px;
}
.founder-banner img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
@media (max-width: 760px) { .founder-banner { grid-template-columns: 1fr; text-align: center; } .founder-banner img { max-width: 240px; margin: 0 auto; } }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 230px; object-fit: cover; }
.gallery-item img.fit-contain {
  object-fit: contain;
  object-position: center top;
  background: linear-gradient(180deg, #eef2fa, #e4eaf6);
  padding: 8px;
}
.gallery-caption { padding: 16px 18px; }
.gallery-caption .place { font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-bottom: 4px; display:block; }
.gallery-caption .desc { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 30px;
}

/* ---------- Scholar / Prescholar cards ---------- */
.scholar-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}
.scholar-avatar {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
}
.scholar-body { padding: 20px; }
.scholar-name { font-family: 'Poppins', sans-serif; font-weight: 700; margin-bottom: 4px; }
.scholar-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 2px; }
.status-pill {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 30px;
}
.status-abroad { background: rgba(46,160,2,0.12); color: var(--green-dark); }
.status-progress { background: rgba(255,198,3,0.18); color: #8a6600; }

.placeholder-note {
  background: rgba(255,198,3,0.12);
  border: 1px dashed var(--gold-dark);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #7a5c00;
  margin-bottom: 40px;
}
.placeholder-note strong { color: #5c4500; }

/* ---------- Partners ---------- */
.partner-slot {
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}
.partner-slot .slot-icon { font-size: 1.8rem; color: var(--blue); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
}
.contact-info-card h3 { color: #fff; }
.contact-row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-row .ic {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
}
.contact-row a, .contact-row span { color: #dbe4f7; }
.contact-row strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 2px; }

.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 40px 36px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); margin-top: 30px; }
.map-wrap iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-dark), var(--green-dark));
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #e4ecfb; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3cfe6; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 44px; }
.footer-brand span { font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #c3cfe6; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #8fa0c4;
}
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.95rem;
}
.social-row a:hover { background: var(--gold); color: var(--navy); }

/* ---------- Quote block ---------- */
.quote-block {
  border-left: 5px solid var(--gold);
  padding: 6px 0 6px 26px;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 30px 0;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.alert-success {
  background: rgba(46,160,2,0.1);
  border: 1px solid var(--green);
  color: var(--green-dark);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
}
