/* ============================================================
   internship.css — Mfano Africa ICT Hub
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #d1d5db;
  line-height: 1.7;
  background-color: #0A1931;
}

/* ── Typography scale ── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.65rem); font-weight: 600; }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

/* ── Hero Slideshow ── */
header {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark overlay over slideshow */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 49, 0.65);
  z-index: 2;
}

/* Subtle grid texture */
header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,191,255,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,191,255,0.04) 40px);
  z-index: 2;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 32px 56px;
  border-radius: 14px;
  background: rgba(10, 25, 49, 0.6);
  border: 1px solid rgba(0, 191, 255, 0.2);
  backdrop-filter: blur(6px);
  max-width: 92%;
}

.header-content h1 {
  color: #00bfff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.header-content p {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: rgba(209, 213, 219, 0.88);
  letter-spacing: 0.02em;
}

/* Slideshow fade */
.fade {
  animation: fade 1.5s ease;
}

@keyframes fade {
  from { opacity: 0.3; }
  to   { opacity: 1; }
}


/* ── Section label (eyebrow text) ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00bfff;
  margin-bottom: 18px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 191, 255, 0.35), transparent);
}


/* ── Cards ── */
.card {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(0, 191, 255, 0.1);
  width: 100%;
  max-width: 1200px;
  margin: 28px auto;
  padding: 48px 56px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.card h2,
.card h3,
.card h4 {
  color: #00bfff;
  text-align: center;
  margin-bottom: 28px;
}

.card ul {
  display: inline-block;
  padding-left: 22px;
  text-align: left;
  margin: 0 auto;
}

.card li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.card p {
  padding: 0 12px;
  font-size: 0.92rem;
}


/* ── Info section (About + Culture) ── */
.info-section {
  display: flex;
  align-items: stretch;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  padding: 32px 56px 8px;
  margin-bottom: 0;
}

.side-image {
  flex: 0 0 34%;
}

.side-image img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(0, 191, 255, 0.18), 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 191, 255, 0.12);
}

.info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-content .card {
  margin: 0;
  width: 100%;
  padding: 32px 36px;
}

.info-content .card h2 {
  margin-bottom: 14px;
}


/* ── Eligibility ── */
#eligibility {
  width: 95%;
  margin: 28px auto;
}


/* ── Roles heading ── */
.opportunities-heading {
  text-align: center;
  margin: 32px auto 20px;
  width: 95%;
  max-width: 1200px;
}

.opportunities-heading h2 {
  color: #00bfff;
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
}

.opportunities-heading p {
  color: #8b95a8;
  font-size: 0.95rem;
}


/* ── Roles grid ── */
.roles-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  width: 95%;
  max-width: 1400px;
  margin: 0 auto 36px;
}

.role-box {
  position: relative;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(0, 191, 255, 0.12);
  border-radius: 14px;
  flex: 1;
  padding: 28px 24px 24px;
  min-width: 300px;
  max-width: 380px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

/* Accent top stripe */
.role-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00bfff, rgba(0, 191, 255, 0.25));
  border-radius: 3px 3px 0 0;
}

.role-box:hover {
  border-color: rgba(0, 191, 255, 0.38);
  box-shadow: 0 8px 28px rgba(0, 191, 255, 0.14), 0 4px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.role-box h3 {
  color: #00bfff;
  margin-bottom: 14px;
  width: 100%;
  text-align: center;
  font-size: 1rem;
}

.role-box ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  color: #d1d5db;
}

.role-box li {
  margin-bottom: 7px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.role-content {
  flex: 1;
  width: 100%;
}

.slots {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.2);
  color: #00bfff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}


/* ── Dual cards (Period + Documents) ── */
.dual-cards {
  display: flex;
  gap: 22px;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto 28px;
}

.dual-cards .card {
  flex: 1;
  margin: 0;
  padding: 36px;
  text-align: left;
}

.dual-cards .card h2 {
  text-align: left;
}


/* ── Timeline ── */
.timeline {
  display: flex;
  justify-content: center;
  gap: 0;
  position: relative;
  padding: 20px 0 10px;
}

/* Connecting line */
.timeline::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, #00bfff, rgba(0,191,255,0.2), #00bfff);
}

.timeline-item {
  flex: 1;
  text-align: center;
  padding: 0 10px;
  position: relative;
}

.timeline-item .tl-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.95);
  border: 2px solid #00bfff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #00bfff;
  position: relative;
  z-index: 1;
}

.timeline-item h3 {
  color: #00bfff;
  font-size: 0.82rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.timeline-item p {
  color: #8b95a8;
  font-size: 0.75rem;
}


/* ── Success stories ── */
.success-story {
  margin: 20px 0;
  padding: 24px 28px;
  border-left: 3px solid #00bfff;
  background: rgba(11, 15, 25, 0.45);
  border-radius: 0 8px 8px 0;
  text-align: left;
}

.success-story h4 {
  color: #00bfff;
  margin-bottom: 8px;
  font-size: 0.95rem;
  text-align: left;
}

.success-story p {
  padding: 0;
  font-size: 0.9rem;
  font-style: italic;
}


/* ── Reviews ── */
.testimonial-intro {
  text-align: center;
  margin: 36px auto 20px;
  max-width: 680px;
  padding: 0 20px;
}

.testimonial-intro h2 {
  color: #00bfff;
  margin-bottom: 10px;
}

.testimonial-intro p {
  color: #8b95a8;
  font-size: 0.92rem;
}

.reviews-section {
  max-width: 1100px;
  margin: 0 auto 36px;
  padding: 0 20px;
}

.review-container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.review-card {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(0, 191, 255, 0.1);
  border-left: 3px solid #00bfff;
  padding: 24px;
  border-radius: 12px;
  width: 460px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 191, 255, 0.12);
}

.review-card p {
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.7;
}

.review-card h4 {
  color: #00bfff;
  font-size: 0.82rem;
  text-align: left;
}


/* ── FAQs ── */
.faq-section {
  width: 95%;
  max-width: 1000px;
  margin: 0 auto 36px;
}

.faq-section h2 {
  text-align: center;
  color: #00bfff;
  margin-bottom: 24px;
}

.faq-item {
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(0, 191, 255, 0.1);
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(0, 191, 255, 0.25);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: #d1d5db;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: left;
}

.faq-question:hover {
  background: rgba(0, 191, 255, 0.06);
  color: #fff;
}

.faq-question span {
  color: #00bfff;
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.25s ease;
}

.faq-question.open span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  color: #8b95a8;
  line-height: 1.7;
}


/* ── Stats ── */
.stats-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  width: 95%;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.stat {
  flex: 1;
  min-width: 160px;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.18);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}

.stat h3 {
  color: #00bfff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.stat p {
  font-size: 0.82rem;
  color: #8b95a8;
}


/* ── Apply CTA ── */
.apply-now {
  background: rgba(17, 24, 39, 0.7);
  border-top: 1px solid rgba(0, 191, 255, 0.12);
  text-align: center;
  padding: 48px 20px;
}

.apply-now p {
  font-size: 1rem;
  color: #8b95a8;
  margin-bottom: 20px;
}

.apply-btn {
  display: inline-block;
  background: #ffd500;
  color: #0b0f19;
  border: none;
  padding: 13px 36px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.apply-btn:hover {
  background: #00bfff;
  transform: translateY(-2px);
}

.apply-btn:active {
  transform: translateY(0);
}


/* ── Responsive ── */
@media (max-width: 900px) {
  .info-section {
    flex-direction: column;
    padding: 24px 24px 8px;
  }

  .side-image {
    flex: none;
    width: 100%;
  }

  .side-image img {
    min-height: 280px;
  }

  .dual-cards {
    flex-direction: column;
    width: 95%;
  }

  .timeline::before { display: none; }

  .timeline {
    flex-direction: column;
    gap: 14px;
    padding: 0 20px;
  }

  .timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
  }

  .timeline-item .tl-number {
    margin: 0;
    flex-shrink: 0;
  }

  .reviews-section { padding: 0 12px; }

  .review-card { width: 100%; }

  .stats-section { flex-wrap: wrap; }

  .stat { min-width: 40%; }
}

@media (max-width: 600px) {
  .card { padding: 28px 20px; }

  .header-content { padding: 22px 24px; }

  .roles-container { flex-direction: column; }

  .role-box { max-width: 100%; min-width: auto; }

  .stat { min-width: 100%; }
}