/* =========================
   Base / Typography
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
html,
body {
  height: 100%;
}
body {
  background: #0A1931;
  color: #fff;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrapper {
  --min-col-size: 350px;
  max-inline-size: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  gap: 1.2rem;
  margin-block-start: 2rem;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(var(--min-col-size), 100%), 1fr)
  );
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Section titles */
.section-title {
  text-align: center;
  margin-bottom: 14px;
}
.section-title h1 {
  font-size: 2.6rem;
  color: #14d9ff;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: 1.8rem;
  color: #14d9ff;
  margin-bottom: 8px;
}
.section-title p {
  color: #b8c4d9;
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* =========================
   Hero / Intro
   ========================= */
.hero-section {
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  margin-block-start: 90px;
  padding: 30px 0 40px;
  max-inline-size: max(1044px, 90%);
  block-size: min(400px, 50%);
  margin-inline: auto;
  border-radius: 29px;
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
}
.hero-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(20, 217, 255, 0.12);
  border: 1px solid rgba(20, 217, 255, 0.25);
  color: #14d9ff;
  margin-bottom: 12px;
}

.hero-content h1{
    width:100%;
    max-width:980px;
    margin:0 auto 1.5rem;
    font-size:clamp(3.2rem,6vw,5rem);
    font-weight:800;
    line-height:1.08;
    text-align:center;
    color:white;
    letter-spacing:-2px;
}

.hero-content p {
  color: #e6f3fb;
  max-width: 760px;
  margin: 0 auto;
}
.hero-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: #14d9ff;
  color: #001b28;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

/* =========================
   Intro / Job count
   ========================= */
.openings-intro {
  padding: 12px 0 6px;
  text-align: center;
}
.openings-intro h2 {
  font-size: 2em;
  text-decoration-line: underline;
  margin-block: 1rem;
}
.job-count {
  display: inline-block;
  margin-block-start: 2rem;
  background: #14d9ff;
  color: #001b28;
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: 700;
}

/* =========================
   Jobs grid — column of rows
   ========================= */
.jobs-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* =========================
   Job card — row layout
   ========================= */
.job-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;         /* image fills full card height */
  gap: 0;
  background: linear-gradient(
    135deg,
    rgba(18, 28, 56, 0.95),
    rgba(9, 18, 42, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.job-card:hover {
  transform: translateY(-4px);
  border-color: #14d9ff;
}

/* =========================
   Card image — left panel
   ========================= */
.job-image {
  max-width: 40%;
  overflow: hidden;
}
.job-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.job-card:hover .job-image img {
  transform: scale(1.04);
}

/* =========================
   Card content — right panel
   ========================= */
.job-content {
  flex: 1;
  min-width: 0;
  padding: 20px 80px 20px 24px; /* right padding clears Apply btn */
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.job-card h2 {
  font-size: 1.2rem;
  color: #15d7ff;
  margin-bottom: 4px;
}
.job-content > p {
  color: #b7c4d7;
  font-size: 0.97rem;
  margin-bottom: 6px;
}

/* Apply button — pinned top-right */
.card-apply {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #13d9ff;
  color: #001b28;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 5;
  white-space: nowrap;
}

/* Job meta (level, education, slots) */
.job-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 10px;
  padding: 0;
  color: #d7e3f3;
  font-size: 0.9rem;
}
.job-meta li strong {
  color: #cfefff;
  margin-right: 4px;
}

/* Subheadings */
.subheading {
  font-size: 0.93rem;
  color: #cfefff;
  margin: 8px 0 4px;
}

/* Feature lists */
.features.short {
  list-style: none;
  padding-left: 0;
  margin: 0 0 8px;
  color: #d7dfe9;
}
.features.short li {
  margin-bottom: 5px;
  font-size: 0.92rem;
  padding-left: 1rem;
  position: relative;
}
.features.short li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #14d9ff;
  font-weight: 700;
}

/* =========================
   Life at Mfano
   ========================= */
.life-section {
  padding: 18px 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.life-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 6px 12px;
}
.life-content p {
  color: #b8c4d9;
  margin-bottom: 12px;
  line-height: 1.6;
}
.life-features {
  list-style: none;
  padding: 0;
  margin: 12px auto 0;
  max-width: 700px;
}
.life-features li {
  margin-bottom: 8px;
  color: #d7dfe9;
}

/* =========================
   Why / Values
   ========================= */
.section-why {
  padding: 12px 0;
}
.section-values {
  padding: 10px 0;
}
.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-top: 12px;
}
.values-list li {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 8px;
  color: #d7e3f3;
  font-size: 0.95rem;
}

/* =========================
   FAQs
   ========================= */
.footer-faq {
  background: #0a1428;
  padding: 20px 0;
  color: #b8c4d9;
}
.footer-faq .container {
  padding: 0;
}
.footer-faq h3 {
  color: #14d9ff;
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 8px 0;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #14d9ff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}
.faq-question .icon {
  display: inline-block;
  width: 20px;
  text-align: center;
  font-weight: 700;
  color: #14d9ff;
  transition: transform 0.2s ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  color: #c7d2df;
  padding: 0 8px;
}
.faq-answer.show {
  max-height: 240px;
  margin-top: 8px;
  padding-top: 6px;
  padding-bottom: 8px;
}

/* =========================
   Accessibility
   ========================= */
.faq-question {
  outline: none;
}
.faq-question:focus {
  box-shadow: 0 0 0 3px rgba(20, 217, 255, 0.12);
  border-radius: 6px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px) {
  .job-image {
    flex: 0 0 200px;
    width: 200px;
  }
  .job-content {
    padding: 16px 70px 16px 18px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 680px) {
  .job-card {
    flex-direction: column;
  }
  .job-image {
    flex: none;
    width: 100%;
    height: 210px;
  }
  .job-content {
    padding: 48px 14px 16px; /* top clears Apply btn */
  }
  .card-apply {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .section-title h1 {
    font-size: 1.6rem;
  }
  .hero-content h1 {
    font-size: 1.6rem;
  }
  .job-image {
    height: 175px;
  }
  .job-meta {
    gap: 8px;
    font-size: 0.88rem;
  }
  .faq-answer.show {
    max-height: 400px;
  }
}

/* =========================
   Life cards grid
   ========================= */
.life-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.life-card {
  background: linear-gradient(135deg, rgba(18,28,56,0.95), rgba(9,18,42,0.95));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.life-card:hover {
  transform: translateY(-4px);
  border-color: #14d9ff;
}
.life-card-icon {
  font-size: 1.8rem;
  color: #14d9ff;
  margin-bottom: 14px;
}
.life-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
}
.life-card p {
  color: #b8c4d9;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* =========================
   Why Work With Us grid
   ========================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 22px 20px;
  transition: border-color 0.25s ease;
}
.why-item:hover {
  border-color: #14d9ff;
}
.why-item > i {
  font-size: 1.4rem;
  color: #14d9ff;
  margin-top: 3px;
  flex-shrink: 0;
}
.why-item h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
}
.why-item p {
  color: #b8c4d9;
  font-size: 0.91rem;
  line-height: 1.65;
}

/* =========================
   Core Values grid
   ========================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.value-card {
  background: linear-gradient(135deg, rgba(18,28,56,0.95), rgba(9,18,42,0.95));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: #14d9ff;
}
.value-icon {
  font-size: 2rem;
  color: #14d9ff;
  margin-bottom: 14px;
}
.value-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 10px;
}
.value-card p {
  color: #b8c4d9;
  font-size: 0.91rem;
  line-height: 1.65;
}

/* =========================
   FAQ section title override
   ========================= */
.footer-faq .section-title h2 {
  color: #14d9ff;
}
.footer-faq .section-title p {
  color: #b8c4d9;
}