/* ===============================
   Modern About Page Design
================================ */

.story-hero {
  background: #030303;
  padding: 95px 20px 90px;
  color: #fff;
}

.story-container {
  max-width: 820px;
  margin: 0 auto;
}

.story-container h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 22px;
  color: #fff;
}

.story-container p {
  font-size: 16px;
  line-height: 1.8;
  color: #f1f1f1;
  margin-bottom: 14px;
}

/* Team Section */
.modern-team-section {
  background: #fff;
  padding: 70px 20px 90px;
}

.modern-team-heading {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 60px;
}

.modern-team-heading h2 {
  font-size: 36px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 18px;
}

.modern-team-heading p {
  font-size: 15px;
  color: #5b6472;
  line-height: 1.8;
}

.modern-team-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.modern-team-card {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 14px;
  padding: 26px 26px;
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 22px;
  align-items: flex-start;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.modern-team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.13);
}

.team-img-box {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}

.team-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modern-team-content {
  text-align: center;
}

.modern-team-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.modern-team-content span {
  display: block;
  font-size: 13px;
  font-style: italic;
  color: #4b5563;
  margin-bottom: 12px;
}

.modern-team-content p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #374151;
  margin-bottom: 10px;
}

.modern-team-content a {
  font-size: 13px;
  font-weight: 700;
  color: #007bff;
  text-decoration: none;
  font-style: italic;
}

.modern-team-content a:hover {
  text-decoration: underline;
}

/* Experience Modern */
.about-experience-modern {
  background: #f8fafc;
  padding: 75px 20px;
}

.experience-modern-box {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.07);
  text-align: center;
}

.experience-modern-box h2 {
  font-size: 34px;
  color: #111827;
  margin-bottom: 15px;
}

.experience-modern-box > p {
  max-width: 650px;
  margin: 0 auto 40px;
  color: #5b6472;
  line-height: 1.8;
}

.experience-modern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.experience-modern-grid div {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 22px;
  border-radius: 14px;
}

.experience-modern-grid strong {
  display: block;
  color: #111827;
  font-size: 16px;
  margin-bottom: 8px;
}

.experience-modern-grid span {
  font-size: 13px;
  color: #5b6472;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .modern-team-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .experience-modern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .story-hero {
    padding: 70px 18px;
  }

  .story-container h1 {
    font-size: 34px;
  }

  .modern-team-heading h2 {
    font-size: 30px;
  }

  .modern-team-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .team-img-box {
    margin: 0 auto;
  }

  .experience-modern-box {
    padding: 35px 22px;
  }

  .experience-modern-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   TEAM MANAGER PHOTOS — ACTIVE ON about.html
   Replace the two JPG files in assets/team/ and keep
   their filenames unchanged.
================================================== */
.team-img {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #e9f8fb, #d8f0f5);
  box-shadow: 0 10px 22px rgba(0, 75, 100, 0.14);
  flex-shrink: 0;
}

.team-img .profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.team-photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0077a3, #02b9c9);
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
}

.team-img.photo-missing .profile-photo {
  display: none;
}

.team-img.photo-missing .team-photo-fallback {
  display: flex;
}

@media (max-width: 600px) {
  .team-img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
}

