/* ==========================================================================
   About hero
   ========================================================================== */

.about-hero {
  display: flex;
  justify-content: center;
  padding: 180px 20px 100px;
  background-color: var(--text-dark);
  color: var(--bg-cream);
  text-align: left;
}

.about-hero-content {
  width: 100%;
  max-width: 1000px;
}

.about-hero h1 {
  margin-bottom: 25px;
  color: var(--bg-cream);
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 500;
}

.about-hero p {
  max-width: 800px;
  color: #dcd7cb;
  font-size: 18px;
  line-height: 1.8;
}

/* ==========================================================================
   Story sections
   ========================================================================== */

.story-section {
  padding: 100px 50px;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-cream);
}

.story-section--muted {
  background-color: #f9f6f0;
}

.story-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.story-content,
.story-image {
  flex: 1;
}

.story-content h2 {
  margin-bottom: 30px;
}

.story-content p {
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.content-button {
  margin-top: 20px;
}

.story-image img {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.mission-image img {
  object-position: center bottom;
}

/* ==========================================================================
   Certification list
   ========================================================================== */

.custom-cert-list {
  margin: 25px 0 30px;
  list-style: none;
}

.custom-cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
}

.custom-bullet {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
}

/* ==========================================================================
   About responsive rules
   ========================================================================== */

@media (max-width: 992px) {
  .story-container {
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  .story-content {
    order: 1;
    width: 100%;
    min-width: 0;
  }

  .story-image {
    order: 2;
    width: 100%;
    min-width: 0;
  }

  .about-hero h1 {
    font-size: 45px;
  }
}

@media (max-width: 900px) {
  .reverse-mobile {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 140px 20px 80px;
  }

  .story-section {
    padding: 70px 20px;
  }

  .custom-cert-list {
    width: 100%;
  }

  .custom-cert-list li > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .story-image img {
    height: 340px;
  }
}
