/* =========================================================
   ABOUT: SCHOOL INTRO + VALUES
========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* =========================================================
   ABOUT: IMAGE GRID
========================================================= */

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
}

.about-img-card {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-pale);
}

.about-img-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  transition: transform 0.4s ease;
}

.about-img-card.tall {
  aspect-ratio: 1 / 2;
  grid-row: span 2;
}

.about-img-card.warm {
  background: var(--warm-pale);
}

.about-img-card:hover img {
  transform: scale(1.04);
}

/* =========================================================
   ABOUT: CONTENT
========================================================= */

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  padding-top: 0;
}

/* Match the About description font */
#about .section-desc {
  font-family: 'DM Sans', sans-serif;
}

/* =========================================================
   ABOUT: VALUES
========================================================= */

.value-list {
  margin-top: 24px;
  width: 100%;
}

.value-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.value-item:last-child {
  margin-bottom: 0;
}

/* Value icons */
.value-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 0.8vw, 30px);
  flex-shrink: 0;
}

.value-icon.warm {
  background: var(--warm-pale);
}

/* Value headings */
.value-text h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 3px;
  margin-top: 0;
}

/* Value descriptions: match the About paragraph size */
#about .value-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: inherit;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   TABLETS AND SMALLER SCREENS
========================================================= */

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 18px;
    align-items: stretch;
  }

  .about-content {
    padding-top: 0;
  }

  .about-visual {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .about-img-card {
    aspect-ratio: 1 / 1;
  }

  .about-img-card.tall {
    aspect-ratio: 1 / 2;
  }

  .value-text h4 {
    font-size: 14px;
  }

  .value-icon {
    font-size: 16px;
  }
}

/* =========================================================
   MOBILE SCREENS
========================================================= */

@media (max-width: 600px) {
  .about-grid {
    padding: 0 16px;
    gap: 24px;
  }

  .about-visual {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .about-img-card {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .about-img-card img {
    border-radius: 12px;
  }

  .about-img-card.tall {
    aspect-ratio: 1 / 2;
  }

  .value-text h4 {
    font-size: 14px;
  }

  .value-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 15px;
  }
}

/* =========================================================
   SMALL MOBILE SCREENS
========================================================= */

@media (max-width: 480px) {
  .about-grid {
    padding: 0 14px;
    gap: 20px;
  }

  .about-visual {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .about-img-card {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
  }

  .about-img-card img {
    border-radius: 10px;
  }

  .about-img-card.tall {
    aspect-ratio: 1 / 2;
  }

  .value-item {
    gap: 10px;
    margin-bottom: 12px;
  }

  .value-text h4 {
    font-size: 13px;
  }

  .value-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 13px;
  }
}

/* =========================================================
   LAPTOPS AND DESKTOPS
   Keep description font size consistent across screens
========================================================= */

@media (min-width: 769px) and (max-width: 1439px) {
  .value-text h4 {
    font-size: 18px;
  }

  .value-icon {
    font-size: 18px;
  }
}

/* =========================================================
   LARGE DESKTOP SCREENS
========================================================= */

@media (min-width: 1440px) and (max-width: 1919px) {
  .value-text h4 {
    font-size: 21px;
  }

  .value-icon {
    font-size: 21px;
  }
}

/* =========================================================
   FULL HD SCREENS
========================================================= */

@media (min-width: 1920px) and (max-width: 2559px) {
  .value-text h4 {
    font-size: 25px;
  }

  .value-icon {
    font-size: 25px;
  }
}

/* =========================================================
   2K AND ULTRA-WIDE SCREENS
========================================================= */

@media (min-width: 2560px) and (max-width: 3839px) {
  .value-text h4 {
    font-size: 30px;
  }

  .value-icon {
    font-size: 30px;
  }
}

/* =========================================================
   4K SCREENS
========================================================= */

@media (min-width: 3840px) {
  .value-text h4 {
    font-size: 36px;
  }

  .value-icon {
    font-size: 36px;
  }
}