/* ========================= ABOUT PAGE - Mind360 =========================
   Playfair Display -> headings, Georgia -> body
   Uses Mind360 color tokens from :root in global.css
   ================================================================== */

/* Page container + hero */
.about-hero {
  position: relative;
  background: rgba(235, 243, 250, 1);
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.hero-title_about-title {
  font-size: 80px;
  color: rgba(83, 81, 161, 1);
  text-align: center;
}

.hero-subtitle_about-subtitle{
  max-width: 100%;
  text-align: center;
font-size: 25px;
  font-weight: 500;
}

.about-hero>.container {
  position: relative;
  z-index: 1;
}

/* Main Title */
.about-title {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.08;
  margin: 0 0 0.6rem 0;
  text-align: center;
  color: var(--denim-blue);
}

/* Subtitle (kept small, consistent with other pages) */
.hero-subtitle.about-subtitle {
  font-family: var(--body-font);
  font-weight: 500;
  font-size: clamp(1.0rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.9);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Mission strip (light background) */
.about-mission {
  position: relative;
  z-index: 0;
  padding: 1.5rem 0;
  background: transparent;
}

.about-mission::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: rgba(235, 243, 250, 1);
  z-index: -1;
  pointer-events: none;
}

/* Mission headings */
.mission-title {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--violet);
  text-align: center;
  margin: 0 0 .5rem 0;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.our-promise {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 2.25rem);
  color: var(--violet);
  text-align: center;
  margin-bottom: .5rem;
}

.mission-subtitle {
  font-family: var(--body-font);
  font-size: clamp(0.95rem, 1.8vw, 2.1rem);
  color: rgba(0, 0, 0, 0.85);
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
}

/* Dark poem / story section */
.about-dark {
  position: relative;
  background: linear-gradient(180deg, var(--denim-blue) 0%, var(--violet) 100%);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  color: #fff;
  overflow: hidden;
}

/* decorative overlay inside dark area - keep subtle */
.about-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 22% at 50% 42%, rgba(255, 255, 255, 0.05), transparent 70%),
    radial-gradient(50% 18% at 50% 62%, rgba(255, 255, 255, 0.04), transparent 72%);
  opacity: 0.18;
  pointer-events: none;
}

/* Poem / feature title */
.poem-title {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.2vw, 2.8rem);
  line-height: 1.2;
  color: #fff;
  text-align: center;
  margin: 0 0 1.25rem 0;
  letter-spacing: 0.6px;
}

/* Poem body */
.poem-body {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--body-font);
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.7;
}

.poem-body p {
  margin: 1rem 0;
}

/* Closing quote */
.closing-quote {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.8vw, 1.6rem);
  color: #fff;
  text-align: center;
  margin-top: 2rem;
}

/* Hero flower / small decorative image */
.about-hero::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 44px;
  background: url("../../assets/aboutFlower.png") center / contain no-repeat;
  opacity: 0.35;
  top: 1rem;
  right: 3.5rem;
  z-index: 0;
  pointer-events: none;
}

/* Modal styles (kept minimal, uses brand fonts) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1200;
}

.modal-form {
  background: #fff;
  padding: 28px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  width: 92%;
  max-width: 520px;
  font-family: var(--body-font);
  color: #222;
}

.modal-form .close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 20px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-form h3 {
  margin: 0 0 18px 0;
  text-align: center;
  font-family: var(--heading-font);
  color: var(--denim-blue);
}

/* form fields inside modal */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-family: var(--body-font);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: var(--body-font);
  font-size: 0.95rem;
}

/* Jobs grid toggling */
.jobs-grid {
  transition: max-height .6s ease, opacity .45s ease;
  overflow: hidden;
}

.jobs-grid.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
}

/* section head helpers */
.section-head {
  text-align: center;
  margin-bottom: clamp(1.2rem, 2.2vw, 2rem);
}

.section-head .btn {
  margin-top: .8rem;
}

/* Utility: ensure content doesn't run under header on mobile */
@media (max-width: 768px) {
  .about-hero {
    padding: clamp(1.25rem, 4vw, 2rem) 0;
  }

  .about-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-top: 0;
  }

  .hero-subtitle.about-subtitle {
    font-size: clamp(0.95rem, 2.4vw, 1rem);
  }

  .poem-title {
    font-size: clamp(1.2rem, 4.6vw, 1.8rem);
  }

  .poem-body {
    padding: 0 1rem;
  }

  .about-hero::after {
    right: 1.5rem;
    top: 0.5rem;
    width: 36px;
    height: 34px;
    opacity: 0.3;
  }

  .modal-form {
    padding: 20px;
    width: 96%;
    max-width: 460px;
  }
}

/* small screens */
@media (max-width: 480px) {
  .about-title {
    font-size: 1.6rem;
  }

  .poem-body {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .closing-quote {
    font-size: 1.15rem;
  }
}