/* A page-scoped visual companion to the GIS homepage. Elementor remains editable. */
body.gis-uniform-page {
  --gis-uniform-navy: #123f74;
  --gis-uniform-ink: #10263f;
  --gis-uniform-blue: #2d7cc5;
  --gis-uniform-muted: #61768b;
  --gis-uniform-soft: #f8f9fb;
}

body.gis-uniform-page article.type-page > .elementor {
  color: var(--gis-uniform-ink);
  font-family: Poppins, Arial, sans-serif;
  overflow: hidden;
}

body.gis-uniform-page article.type-page > .elementor .elementor-top-section > .elementor-container {
  max-width: 1312px !important;
  width: min(1312px, calc(100% - 96px));
}

/* Hero: use the school's existing candid uniform photo, like the homepage. */
body.gis-uniform-page article.type-page .elementor-top-section:first-child {
  align-items: flex-end;
  background-color: var(--gis-uniform-navy) !important;
  background-image: linear-gradient(180deg, rgba(5, 18, 33, .12) 0%, rgba(5, 18, 33, .2) 42%, rgba(5, 18, 33, .86) 100%), var(--gis-uniform-hero) !important;
  background-position: center, center 38% !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  display: flex;
  min-height: clamp(520px, 70vh, 720px);
  padding: 0 0 66px !important;
}

body.gis-uniform-page article.type-page .elementor-top-section:first-child > .elementor-container {
  align-items: flex-end;
  margin-inline: auto;
}

body.gis-uniform-page article.type-page .elementor-top-section:first-child .elementor-widget-wrap {
  align-content: flex-end;
  max-width: 760px;
  padding: 0 !important;
}

body.gis-uniform-page article.type-page .elementor-top-section:first-child .elementor-widget-heading,
body.gis-uniform-page article.type-page .elementor-top-section:first-child .elementor-widget-text-editor {
  text-align: left !important;
}

body.gis-uniform-page article.type-page .elementor-top-section:first-child h1 {
  color: #fff !important;
  font-family: Cormorant, Georgia, serif !important;
  font-size: clamp(54px, 5.4vw, 82px) !important;
  font-weight: 700 !important;
  letter-spacing: -.025em;
  line-height: 1.02 !important;
  margin: 0 0 12px !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .2);
}

body.gis-uniform-page article.type-page .elementor-top-section:first-child p {
  color: #fff !important;
  font-size: clamp(15px, 1.2vw, 18px) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  text-align: left !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

/* Intro uses the same restrained, two-column editorial rhythm as About GIS. */
body.gis-uniform-page article.type-page .elementor-top-section:nth-child(2) {
  background: var(--gis-uniform-soft) !important;
  padding: 106px 0 74px !important;
}

body.gis-uniform-page article.type-page .elementor-top-section:nth-child(2) .elementor-widget-wrap {
  align-items: start;
  display: grid;
  gap: clamp(32px, 7vw, 110px);
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  padding: 0 !important;
}

body.gis-uniform-page article.type-page .elementor-top-section:nth-child(2) .elementor-widget {
  margin: 0 !important;
  width: 100%;
}

body.gis-uniform-page article.type-page .elementor-top-section:nth-child(2) h2 {
  color: var(--gis-uniform-ink) !important;
  font-family: Cormorant, Georgia, serif !important;
  font-size: clamp(42px, 4vw, 58px) !important;
  font-weight: 700 !important;
  line-height: 1.03 !important;
  margin: 0 !important;
  text-align: left !important;
}

body.gis-uniform-page article.type-page .elementor-top-section:nth-child(2) p {
  color: var(--gis-uniform-muted) !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  margin: 0 !important;
  text-align: left !important;
}

/* Preserve the working Elementor filters, only change their presentation. */
body.gis-uniform-page .gis-uniform-filter-section {
  background: var(--gis-uniform-soft) !important;
  padding: 0 0 72px !important;
}

body.gis-uniform-page .gis-uniform-filter-section .gis-uniform-filter {
  min-width: 128px;
  width: auto !important;
}

body.gis-uniform-page .gis-uniform-filter-section .elementor-button {
  border-color: #bcd0e0 !important;
  border-radius: 999px !important;
  color: var(--gis-uniform-navy) !important;
  font-family: Poppins, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  min-height: 42px;
  padding: 11px 20px !important;
  transform: none !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease !important;
}

body.gis-uniform-page .gis-uniform-filter-section .gis-uniform-filter.is-active .elementor-button,
body.gis-uniform-page .gis-uniform-filter-section .gis-uniform-filter:not(.is-disabled) .elementor-button:hover,
body.gis-uniform-page .gis-uniform-filter-section .gis-uniform-filter:not(.is-disabled) .elementor-button:focus-visible {
  background: var(--gis-uniform-navy) !important;
  border-color: var(--gis-uniform-navy) !important;
  color: #fff !important;
}

body.gis-uniform-page .gis-uniform-filter-section .gis-uniform-filter.is-disabled .elementor-button {
  background: transparent !important;
  opacity: .46;
  transform: none !important;
}

/* Two calm gallery chapters, aligned to the homepage's 1312px content grid. */
body.gis-uniform-page .gis-uniform-group {
  background: #eaf2f7 !important;
  padding: 94px 0 108px !important;
}

body.gis-uniform-page .gis-uniform-shs {
  background: #f8f9fb !important;
}

body.gis-uniform-page .gis-uniform-group > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap {
  padding: 0 !important;
}

body.gis-uniform-page .gis-uniform-group h2 {
  color: var(--gis-uniform-ink) !important;
  font-family: Cormorant, Georgia, serif !important;
  font-size: clamp(42px, 4vw, 56px) !important;
  font-weight: 700 !important;
  line-height: 1.06 !important;
  margin: 0 0 14px !important;
}

body.gis-uniform-page .gis-uniform-group > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-text-editor p {
  color: var(--gis-uniform-muted) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

body.gis-uniform-page .gis-uniform-group .elementor-inner-section {
  margin-top: 36px !important;
}

body.gis-uniform-page .gis-uniform-group .elementor-inner-section > .elementor-container > .elementor-row {
  display: grid !important;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.gis-uniform-page .gis-uniform-group .elementor-inner-section .elementor-inner-column {
  background: #fff !important;
  border: 1px solid rgba(22, 87, 140, .12) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(10, 35, 63, .09) !important;
  margin: 0 !important;
  min-width: 0;
  overflow: hidden;
  padding: 0 !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
  width: auto !important;
}

body.gis-uniform-page .gis-uniform-group .elementor-inner-section .elementor-inner-column:hover {
  border-color: rgba(45, 124, 197, .38) !important;
  box-shadow: 0 16px 30px rgba(10, 35, 63, .13) !important;
}

body.gis-uniform-page .gis-uniform-group .elementor-inner-section .elementor-column-wrap,
body.gis-uniform-page .gis-uniform-group .elementor-inner-section .elementor-widget-wrap {
  padding: 0 !important;
}

body.gis-uniform-page .gis-uniform-group .elementor-inner-section .elementor-widget-image {
  margin: 0 !important;
}

body.gis-uniform-page .gis-uniform-group .elementor-inner-section .elementor-widget-image img {
  aspect-ratio: 2 / 3;
  border-radius: 0 !important;
  display: block;
  height: auto !important;
  object-fit: cover !important;
  width: 100% !important;
}

body.gis-uniform-page .gis-uniform-group .elementor-inner-section h3 {
  color: var(--gis-uniform-ink) !important;
  font-family: Poppins, Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 18px 14px 3px !important;
}

body.gis-uniform-page .gis-uniform-group .elementor-inner-section .elementor-widget-text-editor p {
  color: var(--gis-uniform-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  margin: 0 14px 18px !important;
}

@media (max-width: 1199px) {
  body.gis-uniform-page .gis-uniform-group .elementor-inner-section > .elementor-container > .elementor-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.gis-uniform-page article.type-page > .elementor .elementor-top-section > .elementor-container {
    width: min(720px, calc(100% - 48px));
  }

  body.gis-uniform-page article.type-page .elementor-top-section:first-child {
    min-height: 620px;
    padding-bottom: 54px !important;
  }

  body.gis-uniform-page article.type-page .elementor-top-section:nth-child(2) {
    padding: 82px 0 56px !important;
  }

  body.gis-uniform-page article.type-page .elementor-top-section:nth-child(2) .elementor-widget-wrap {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  body.gis-uniform-page .gis-uniform-group {
    padding: 76px 0 88px !important;
  }
}

@media (max-width: 640px) {
  body.gis-uniform-page article.type-page .elementor-top-section:first-child {
    background-position: center, 56% center !important;
    min-height: 560px;
    padding-bottom: 42px !important;
  }

  body.gis-uniform-page article.type-page .elementor-top-section:first-child h1 {
    font-size: clamp(48px, 12vw, 62px) !important;
  }

  body.gis-uniform-page article.type-page .elementor-top-section:nth-child(2) {
    padding: 68px 0 48px !important;
  }

  body.gis-uniform-page article.type-page .elementor-top-section:nth-child(2) h2,
  body.gis-uniform-page .gis-uniform-group h2 {
    font-size: 38px !important;
  }

  body.gis-uniform-page article.type-page .elementor-top-section:nth-child(2) p,
  body.gis-uniform-page .gis-uniform-group > .elementor-container > .elementor-row > .elementor-column > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-text-editor p {
    font-size: 14px !important;
  }

  body.gis-uniform-page .gis-uniform-filter-section {
    padding-bottom: 56px !important;
  }

  body.gis-uniform-page .gis-uniform-group {
    padding: 64px 0 76px !important;
  }

  body.gis-uniform-page .gis-uniform-group .elementor-inner-section > .elementor-container > .elementor-row {
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.gis-uniform-page .gis-uniform-group .elementor-inner-section h3 {
    font-size: 15px !important;
    margin-inline: 12px !important;
  }

  body.gis-uniform-page .gis-uniform-group .elementor-inner-section .elementor-widget-text-editor p {
    margin-inline: 12px !important;
  }
}

@media (max-width: 370px) {
  body.gis-uniform-page .gis-uniform-group .elementor-inner-section > .elementor-container > .elementor-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.gis-uniform-page .gis-uniform-group .elementor-inner-section .elementor-inner-column,
  body.gis-uniform-page .gis-uniform-filter-section .elementor-button {
    transition: none !important;
  }
}
