/**
 * About page: hero, SDGs, DOST framework, Pangulo — responsive (narrow = full width; sm+ = 80% where noted).
 * Shared max-width wrapper: see page-common.css (.lungsod-page__section-inner).
 */

.about-hero {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .about-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .about-hero {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.about-hero__inner {
  display: grid;
  align-items: center;
  gap: 2rem;
  min-height: 0;
}

@media (min-width: 1024px) {
  .about-hero__inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: clamp(2rem, 4vw, 4rem);
    min-height: 0;
  }
}

.about-hero__title {
  margin: 0 0 1.25rem;
  font-family: "Fontatica4F", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.about-hero__copy {
  margin: 0;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: #ffffff;
}

.about-hero__copy p {
  margin: 0 0 1rem;
}

.about-hero__copy p:last-child {
  margin-bottom: 0;
}

.about-hero-placeholder {
  display: block;
  width: 100%;
  max-width: min(100%, 476px);
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

/* -------------------------------------------------------------------------- */
/* SDGs section */
/* -------------------------------------------------------------------------- */

.about-sdgs {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .about-sdgs {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .about-sdgs {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }
}

.about-sdgs__layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-sdgs__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
  }
}

.about-sdgs__title {
  margin: 0 0 1.5rem;
  font-family: "Fontatica4F", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.about-sdgs__copy {
  margin: 0;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: #ffffff;
}

.about-sdgs__copy p {
  margin: 0 0 1.15rem;
}

.about-sdgs__copy p:last-child {
  margin-bottom: 0;
}

.about-sdgs__cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .about-sdgs__cards {
    gap: 1.5rem;
  }
}

.about-sdg-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  justify-items: center;
  min-height: 0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: none;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* UN SDG official palette — aligned with logo tile colors */
.about-sdg-card--goal-9 {
  background-color: #fd6925;
}

.about-sdg-card--goal-11 {
  background-color: #f99d26;
}

.about-sdg-card--goal-13 {
  background-color: #3f7e44;
}

.about-sdg-card--goal-16 {
  background-color: #00689d;
}

@media (min-width: 520px) {
  .about-sdg-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1rem 1.25rem;
    justify-items: stretch;
    text-align: left;
  }
}

@media (min-width: 640px) {
  .about-sdg-card {
    padding: 1.15rem 1.35rem;
    gap: 1.25rem 1.5rem;
  }
}

.about-sdg-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.about-sdg-card__logo {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
}

.about-sdg-card__text {
  margin: 0;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: #ffffff;
}

@media (min-width: 768px) {
  .about-sdg-card__text {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* -------------------------------------------------------------------------- */
/* DOST Smart City Framework */
/* -------------------------------------------------------------------------- */

.about-dost-framework {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .about-dost-framework {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .about-dost-framework {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }
}

.about-dost-framework__title {
  margin: 0 0 1.5rem;
  font-family: "Fontatica4F", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .about-dost-framework__title {
    margin-bottom: 2rem;
  }
}

.about-dost-framework__card {
  margin: 0 auto;
  max-width: 100%;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.about-dost-framework__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.about-dost-framework__columns {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-dost-framework__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: 2.5rem;
  }
}

.about-dost-framework__text {
  margin: 0;
  max-width: 52ch;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: #ffffff;
}

@media (min-width: 1024px) {
  .about-dost-framework__text {
    max-width: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Gawad Pangulo — stacked on small screens; 50/50 from md up */
/* -------------------------------------------------------------------------- */

.about-pangulo__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 1.5rem;
  min-height: 0;
}

.about-pangulo__text {
  padding-top: 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 480px) {
  .about-pangulo__text {
    padding-top: 2.5rem;
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }
}

.about-pangulo__title {
  margin: 0 0 1.25rem;
  font-family: "Fontatica4F", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.25rem, 4.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.about-pangulo__copy {
  margin: 0;
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  color: #ffffff;
}

@media (min-width: 480px) {
  .about-pangulo__copy {
    font-size: 1rem;
    line-height: 1.75;
  }
}

.about-pangulo__copy p {
  margin: 0 0 1.15rem;
}

.about-pangulo__copy p:last-child {
  margin-bottom: 0;
}

.about-pangulo__media {
  position: relative;
  min-height: min(48vh, 360px);
  align-self: stretch;
  overflow: hidden;
}

.about-pangulo__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .about-pangulo__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: stretch;
    min-height: min(88vh, 960px);
  }

  .about-pangulo__text {
    padding-top: clamp(2.25rem, 7vw, 4.5rem);
    padding-bottom: calc(clamp(2.25rem, 7vw, 4.5rem) + env(safe-area-inset-bottom, 0px));
  }

  .about-pangulo__title {
    margin-bottom: 1.5rem;
  }

  .about-pangulo__media {
    min-height: 0;
  }
}
