/* ===================================================
   pages.css — Shared styles for all sub-pages
   (about, subjects, and future pages)
   =================================================== */

/* ── Migrated from subjects/style.css ───────────────── */
@font-face {
  font-family: "myfont";
  src: url("../fonts/Virtuous.woff") format('woff');
}

.myfont {
  font-family: myfont;
  text-align: left;
  font-size: 20px;
  align-content: center;
  color: #000;
  width: 80%;
  margin: auto;
}

/* ── Sub-page Hero Banner ───────────────────────────── */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('../images/group-of-people-sitting-indoors-3184291.jpg') center / cover no-repeat;
}

.page-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(25, 67, 136, 0.88) 0%, rgba(87, 185, 168, 0.72) 100%);
}

/* ── About: Story Section ───────────────────────────── */
.about-story-section {
  padding: 80px 20px;
  background: #f1f1f7;
}

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

.about-story-img-col {
  flex: 1;
  min-width: 280px;
}

.about-story-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  height: 340px;
  display: block;
}

.about-story-text-col {
  flex: 1;
  min-width: 280px;
}

/* ── Responsive ─────────────────────────────────────── */
@media screen and (max-width: 991px) {
  .page-hero {
    min-height: 320px;
  }
}

@media screen and (max-width: 767px) {
  .page-hero {
    min-height: 260px;
  }

  .page-hero .hero-headline {
    font-size: 32px;
  }

  .about-story-wrap {
    gap: 30px;
  }

  .about-story-img {
    height: 220px;
  }

  .about-story-section {
    padding: 50px 16px;
  }
}

/* ── About: Meet the Founder Section ─────────────── */
.founder-section {
  padding: 80px 20px;
  background: #fff;
}

.founder-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.founder-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-top: 40px;
  flex-wrap: wrap;
}

.founder-photo-wrap {
  flex: 0 0 220px;
  max-width: 220px;
  position: relative;
}

.founder-photo {
  width: 100%;
  height: 270px;
  border-radius: 20px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.founder-photo-tag {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #cf3e71, #3b79ac);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.founder-bio {
  flex: 1;
  min-width: 280px;
}

.founder-bio-name {
  font-family: Montserrat, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #212127;
  margin-bottom: 4px;
}

.founder-bio-title {
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #57b9a8;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.founder-bio-text {
  font-family: Poppins, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: #4a4a58;
  margin-bottom: 18px;
}

.founder-photos-row {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.founder-photo-sm-wrap {
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.founder-photo-sm-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
}

.founder-photo-sm {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.founder-photo-sm-caption {
  font-family: Poppins, sans-serif;
  font-size: 11px;
  color: #919197;
  font-style: italic;
  text-align: center;
  padding: 6px 10px 8px;
  background: #f8f8fc;
}

.founder-solo-photo-wrap {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  max-width: 360px;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.founder-solo-photo-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.15);
}

.founder-solo-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media screen and (max-width: 991px) {
  .founder-grid {
    gap: 40px;
  }
  .founder-photo-wrap {
    flex: 0 0 200px;
    max-width: 200px;
  }
  .founder-photo {
    height: 240px;
  }
}

@media screen and (max-width: 767px) {
  .founder-section {
    padding: 50px 16px;
  }
  .founder-grid {
    gap: 30px;
    flex-direction: column;
  }
  .founder-photo-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .founder-photo {
    height: 240px;
  }
  .founder-bio-name {
    font-size: 22px;
  }
  .founder-bio-text {
    font-size: 16px;
  }
  .founder-photos-row {
    gap: 10px;
  }
  .founder-photo-sm {
    height: 140px;
  }
  .founder-solo-photo-wrap {
    max-width: 100%;
  }
  .founder-solo-photo {
    height: 160px;
  }
}
