/* =============================================
   APPN Homepage — Specific Styles
   ============================================= */

/* ---- Hero entrance animations ---- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(52px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,172,13,0.4); }
  50%       { box-shadow: 0 0 0 16px rgba(212,172,13,0); }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, #091a0c 0%, #0e2d47 55%, #12103a 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 55%, rgba(26,107,47,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 90% at 85% 15%, rgba(26,82,118,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 80%, rgba(212,172,13,0.08) 0%, transparent 50%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2l-2 2-34 34v-2zm4 4L80 0h2L44 42l-4-4zm4 4L80 4h2L48 46l-4-4zm4 4L80 8h2L52 50l-4-4zm4 4L80 12h2L56 54l-4-4zm4 4L80 16h2L60 58l-4-4zm4 4L80 20h2L64 62l-4-4zm4 4L80 24h2L68 66l-4-4zm4 4L80 28h2L72 70l-4-4zm4 4L80 32h2L76 74l-4-4zm4 4L80 36h2L80 40l-4-4zm0 4l-4 4 4-4zm0 4l-4 4 4-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  padding: 7rem 0 9rem;
}
/* Staggered entrance animations for hero content */
.hero-content .section-label {
  animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.2;
  margin: 1.1rem 0 1.3rem;
  animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}
.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 1rem;
  line-height: 1.75;
  animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.55s both;
}
.hero-motto {
  color: rgba(255,255,255,0.55);
  font-family: var(--font-head);
  font-size: 0.88rem;
  margin-bottom: 2.2rem;
  animation: heroFadeIn 0.7s ease 0.75s both;
  border-left: 2px solid var(--gold);
  padding-left: 0.75rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
  animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.9s both;
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  animation: heroFadeIn 0.7s ease 1.1s both;
}
.trust-tag {
  padding: 0.22rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.05);
  transition: all var(--transition);
}
.trust-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,172,13,0.08);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-stack {
  position: relative;
  width: 320px;
  height: 320px;
}
.hero-stat-card {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}
.hsc-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-head);
}
.hsc-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
  margin-top: 0.2rem;
}
.hsc-1 { top: 10px;  left: 0; }
.hsc-2 { top: 10px;  right: 0; }
.hsc-3 { bottom: 20px; left: 50%; transform: translateX(-50%); }
.hero-emblem {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.emblem-ring {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 2px solid rgba(212,172,13,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-slow 30s linear infinite, heroPulse 3s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(26,107,47,0.5), 0 0 0 8px rgba(212,172,13,0.06);
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.emblem-ring .logo-mark { animation: spin-slow-reverse 30s linear infinite; }
@keyframes spin-slow-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
/* ── Diagonal section divider ── */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  overflow: hidden;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 90px;
  display: block;
}
/* Gold accent rule on the diagonal */
.hero-wave::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 1;
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: linear-gradient(105deg, var(--green-dark) 0%, #0e3a5e 60%, var(--blue-dark) 100%);
  padding: 3rem 0;
  position: relative;
}
.stats-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.04); }
.stat-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
  line-height: 1;
}
.stat-number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #ffffff, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- About Split ---- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-img-block {
  position: relative;
}
.about-img-placeholder {
  height: 420px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.aip-inner {
  text-align: center;
  padding: 2rem;
}
.about-badge-float {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-badge-float strong {
  font-size: 1.1rem;
  color: var(--green);
  font-family: var(--font-head);
}
.about-badge-float span {
  font-size: 0.72rem;
  color: var(--gray-600);
}
.about-pillars { display: flex; flex-direction: column; gap: 1rem; }
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--green);
}
.pillar-icon { font-size: 1.4rem; flex-shrink: 0; }
.pillar div strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 0.15rem; }
.pillar div span   { font-size: 0.82rem; color: var(--gray-600); }
.flex-gap { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---- News ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-img {
  height: 160px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.news-img-green { background: linear-gradient(135deg, var(--green-dark), var(--green-light)); }
.news-img-blue  { background: linear-gradient(135deg, var(--blue-dark), var(--blue-light)); }
.news-img-red   { background: linear-gradient(135deg, var(--red-dark), #e74c3c); }
.news-cat {
  background: rgba(0,0,0,0.35);
  color: var(--white);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-card .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.news-meta time { font-size: 0.78rem; color: var(--gray-400); }
.news-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 0.75rem;
  font-family: var(--font-head);
}
.news-card p { font-size: 0.875rem; color: var(--gray-600); flex: 1; }
.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: gap var(--transition);
}
.news-read-more:hover { gap: 0.6rem; }

/* ---- Events ---- */
.events-list { display: flex; flex-direction: column; gap: 1.25rem; }
.event-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green);
  transition: all var(--transition);
}
.event-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.6rem 0.5rem;
  min-width: 60px;
}
.event-day {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-head);
  line-height: 1;
}
.event-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
  opacity: 0.85;
}
.event-body h4 { color: var(--dark); margin-bottom: 0.3rem; font-size: 1rem; }
.event-body p  { font-size: 0.85rem; color: var(--gray-600); }

/* ---- Why Join ---- */
.why-join-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--blue-dark) 100%);
  position: relative;
  overflow: hidden;
}
.why-join-section::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.025'%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");
}
.why-join-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}
.why-join-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.benefit-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}
.benefit-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-3px);
}
.benefit-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.benefit-card h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.4rem; }
.benefit-card p  { color: rgba(255,255,255,0.65); font-size: 0.82rem; }

/* ---- Partners ---- */
.partners-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  min-width: 150px;
  flex: 1;
  max-width: 200px;
  transition: all var(--transition);
}
.partner-logo:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.partner-emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--white);
  font-family: var(--font-body);
}
.nbte  { background: linear-gradient(135deg, var(--green-dark),  var(--green-light)); }
.jamb  { background: linear-gradient(135deg, var(--blue-dark),   var(--blue-light)); }
.fme   { background: linear-gradient(135deg, #0f766e,             #14b8a6); }
.itf   { background: linear-gradient(135deg, #b45309,             #d97706); }
.cac   { background: linear-gradient(135deg, #1d4ed8,             #3b82f6); }
.nitda { background: linear-gradient(135deg, #7c3aed,             #a78bfa); }
.partners-group-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin: 0 0 1.25rem;
}
.partners-group-label + .partners-row { margin-bottom: 0.5rem; }
.partner-logo span {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-align: center;
  line-height: 1.4;
}

/* ---- Newsletter Section ---- */
.newsletter-section {
  background: var(--bg);
  padding: 4rem 0;
}
.newsletter-box {
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}
.nl-icon { font-size: 2.5rem; }
.nl-text h3 { color: var(--white); margin-bottom: 0.4rem; font-size: 1.3rem; }
.nl-text p  { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.newsletter-form-inline {
  display: flex;
  gap: 0.6rem;
  flex-direction: column;
  min-width: 300px;
}
.newsletter-form-inline input {
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form-inline input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form-inline input:focus { border-color: rgba(255,255,255,0.6); }
.newsletter-form-inline button {
  padding: 0.7rem 1.25rem;
  background: var(--white);
  color: var(--green);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: var(--font-body);
}
.newsletter-form-inline button:hover {
  background: var(--green-light);
  color: var(--white);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-sub { margin: 0 auto 1rem; }
  .hero-trust { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(3,1fr); }
  .stat-item:nth-child(4), .stat-item:nth-child(5) { border-top: 1px solid rgba(255,255,255,0.12); }
  .about-split { grid-template-columns: 1fr; }
  .about-img-block { display: none; }
  .why-join-inner { grid-template-columns: 1fr; }
  .newsletter-box { grid-template-columns: 1fr; text-align: center; }
  .newsletter-form-inline { min-width: unset; width: 100%; max-width: 400px; margin: 0 auto; }
  /* Hero actions need centering at tablet */
  .hero-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .hero { min-height: 80vh; }
  .hero-inner { padding: 4rem 0 6rem; }
  /* Hero buttons: stack vertically, full width */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions .btn { justify-content: center; text-align: center; width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 1.25rem; }
  .news-grid { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 70px 1fr; gap: 1rem; }
  .event-action { grid-column: 2; margin-top: 0; }
  .why-join-benefits { grid-template-columns: 1fr; }
  .newsletter-box { padding: 2rem 1.5rem; }
  .nl-icon { display: none; }
}

@media (max-width: 480px) {
  /* Stats: single column on very small screens */
  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2rem; }
  /* Events: fully stacked on very small screens */
  .event-item { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.25rem; }
  .event-date { flex-direction: row; gap: 0.5rem; padding: 0.4rem 0.75rem; width: fit-content; }
  .event-action { grid-column: 1; }
  .event-action .btn { width: 100%; justify-content: center; }
  /* Newsletter box padding */
  .newsletter-box { padding: 1.5rem 1.25rem; gap: 1.25rem; }
  .nl-text h3 { font-size: 1.1rem; }
  /* Hero sub text */
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { max-width: 100%; }
}
