/* Inner pages only. Every rule is scoped to .inner-page so the homepage, header, and footer are unchanged. */

.inner-page {
  background: #ffffff;
  overflow-x: clip;
}

.inner-page img {
  max-width: 100%;
  height: auto;
}

.inner-page .ip-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  padding: 88px 0 46px;
  background-color: #1e3160;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.inner-page .ip-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 18, 32, 0.9) 0%, rgba(30, 49, 96, 0.78) 52%, rgba(0, 140, 210, 0.42) 100%);
}

.inner-page .ip-banner--quiet .ip-banner__overlay {
  background: linear-gradient(100deg, rgba(11, 18, 32, 0.92) 0%, rgba(17, 17, 17, 0.82) 100%);
}

.inner-page .ip-banner .container {
  position: relative;
  z-index: 1;
}

.inner-page .ip-banner h1 {
  margin: 0;
  color: #ffffff;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 600;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.inner-page .ip-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.inner-page .ip-crumb li {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.4;
}

.inner-page .ip-crumb li + li::before {
  content: ">";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.7);
}

.inner-page .ip-crumb a {
  color: #ffffff;
}

.inner-page .ip-crumb a:hover {
  color: #7fd3f5;
}

.inner-page .ip-section {
  padding: 70px 0;
}

.inner-page .ip-section--tint {
  background: #f3f6f9;
}

.inner-page .ip-section .section-title {
  margin-bottom: 18px;
}

.inner-page .section-title__title {
  text-transform: none;
}

.inner-page .ip-lead {
  margin: 0 0 16px;
  color: #585b6b;
  font-size: 17px;
  line-height: 1.75;
}

.inner-page .ip-lead:last-child {
  margin-bottom: 0;
}

.inner-page .ip-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    justify-content: center;
}

.inner-page .ip-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.inner-page .ip-split--top {
  align-items: start;
}

.inner-page .ip-split + .ip-split,
.inner-page .ip-service + .ip-service {
  margin-top: 56px;
}

.inner-page .ip-photo {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.12);
  background: #ffffff;
}

.inner-page .ip-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-page .ip-photo--frame {
  aspect-ratio: 5 / 3.4;
}

.inner-page .ip-photo--portrait {
  aspect-ratio: 4 / 3;
}

.inner-page .ip-photo--graphic img {
  object-fit: contain;
  background: #ffffff;
}

.inner-page .ip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.inner-page .ip-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inner-page .ip-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inner-page .ip-card {
  height: 100%;
  padding: 28px 26px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(20, 38, 79, 0.08);
}

.inner-page .ip-card h3,
.inner-page .ip-service h3 {
  margin: 0 0 10px;
  color: #111111;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.inner-page .ip-card p,
.inner-page .ip-service p {
  margin: 0;
  color: #585b6b;
  line-height: 1.7;
}

.inner-page .ip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(0, 140, 210, 0.12);
  color: #008cd2;
  font-size: 18px;
}

.inner-page .ip-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.inner-page .ip-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  color: #585b6b;
  line-height: 1.55;
}

.inner-page .ip-list li:last-child {
  margin-bottom: 0;
}

.inner-page .ip-list i {
  margin-top: 4px;
  color: #008cd2;
  font-size: 13px;
}

.inner-page .ip-team-role {
  display: block;
  margin-bottom: 10px;
  color: #008cd2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.inner-page .ip-mission {
  padding: 42px 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3160 0%, #142446 100%);
  box-shadow: 0 16px 40px rgba(30, 49, 96, 0.2);
}

.inner-page .ip-mission p {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.5;
  font-weight: 600;
}

.inner-page .ip-mission p + p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 400;
}

.inner-page .ip-service {
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(20, 38, 79, 0.06);
}

.inner-page .ip-section--tint .ip-service {
  background: #ffffff;
}

.inner-page .ip-service .ip-split {
  gap: 36px;
}

.inner-page .ip-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #008cd2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.inner-page .ip-ethics {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.inner-page .ip-ethics li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid #e6e6e6;
  color: #585b6b;
  line-height: 1.7;
}

.inner-page .ip-ethics li:first-child {
  padding-top: 0;
}

.inner-page .ip-ethics li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.inner-page .ip-ethics span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 140, 210, 0.12);
  color: #008cd2;
  font-weight: 700;
}

.inner-page .ip-legal .ip-ethics p {
  margin: 0;
  color: #585b6b;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

.inner-page .ip-below {
  margin-bottom: 28px;
}

.inner-page .ip-mta-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(20, 38, 79, 0.08);
}

.inner-page .ip-mta-logo img {
  width: 100%;
  height: auto;
}

.inner-page .ip-legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 42px 48px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(20, 38, 79, 0.08);
}

.inner-page .ip-legal p {
  margin: 0;
  color: #111111;
  font-size: 20px;
  line-height: 1.75;
}

.inner-page .ip-legal .ip-note {
  margin-top: 22px;
  color: #585b6b;
  font-size: 16px;
  line-height: 1.7;
}

.inner-page .ip-legal .ip-note--flush {
  margin-top: 0;
}

.inner-page .ip-contact-card a {
  color: #1e3160;
  font-weight: 600;
  word-break: break-word;
}

.inner-page .ip-contact-card a:hover {
  color: #008cd2;
}

.inner-page .ip-form {
  padding: 32px 28px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(20, 38, 79, 0.08);
}

.inner-page .ip-form h3 {
  margin-bottom: 8px;
}

.inner-page .ip-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.inner-page .ip-field--full {
  grid-column: 1 / -1;
}

.inner-page .ip-field label {
  display: block;
  margin-bottom: 6px;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
}

.inner-page .ip-field input,
.inner-page .ip-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease;
}

.inner-page .ip-field textarea {
  min-height: 140px;
  resize: vertical;
}

.inner-page .ip-field input:focus,
.inner-page .ip-field textarea:focus {
  border-color: #008cd2;
}

.inner-page .ip-form .read-btn {
  margin-top: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.inner-page .ip-form-note {
  margin: 12px 0 0;
  color: #585b6b;
  font-size: 14px;
  line-height: 1.6;
}

.inner-page .ip-map {
  height: 100%;
  min-height: 420px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.12);
  background: #e6e6e6;
}

.inner-page .ip-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.inner-page .ip-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.inner-page .ip-gallery a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
}

.inner-page .ip-gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inner-page .ip-gallery figcaption {
    margin-top: 8px;
    color: #000000;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
}

.inner-page .ip-gallery figure {
  margin: 0;
  padding: 0;
}

.inner-page.ip-gallery-page .ip-banner__content,
.inner-page.ip-gallery-page .section-title,
.inner-page.ip-gallery-page .ip-lead,
.inner-page.ip-gallery-page .mapua-cta__content {
  text-align: center;
}

.inner-page.ip-gallery-page .ip-crumb ol,
.inner-page.ip-gallery-page .mapua-cta__actions {
  justify-content: center;
}

.inner-page.ip-gallery-page .section-title__tagline {
  letter-spacing: 2.4px;
}

.inner-page.ip-gallery-page .ip-banner h1,
.inner-page.ip-gallery-page .section-title__title,
.inner-page.ip-gallery-page .mapua-cta__content h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.inner-page.ip-gallery-page .section-title__title {
  font-size: 46px;
  line-height: 1.15;
}

.inner-page.ip-gallery-page .ip-lead {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 28px;
}

.inner-page.ip-gallery-page .mapua-cta__content {
  margin-right: auto;
  margin-left: auto;
}

.inner-page .ip-address {
  margin: 0;
}

.inner-page .ip-address a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.45;
}

.inner-page .ip-missing {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid #008cd2;
  background: rgba(0, 140, 210, 0.08);
  color: #1e3160;
  border-radius: 0 10px 10px 0;
  line-height: 1.6;
}

@media (max-width: 1199px) {
  .inner-page .ip-banner h1 {
    font-size: 40px;
  }

  .inner-page .section-title__title {
    font-size: 34px;
  }

  .inner-page.ip-gallery-page .section-title__title {
    font-size: 36px;
  }

  .inner-page .ip-grid,
  .inner-page .ip-grid--4,
  .inner-page .ip-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-page .ip-split,
  .inner-page .ip-fields {
    grid-template-columns: 1fr;
  }

  .inner-page .ip-split {
    gap: 28px;
  }
}

@media (max-width: 991px) {
  .inner-page .ip-banner {
    min-height: 260px;
    padding: 72px 0 36px;
  }

  .inner-page .ip-banner h1 {
    font-size: 36px;
  }

  .inner-page .ip-section {
    padding: 52px 0;
  }

  .inner-page .ip-grid,
  .inner-page .ip-grid--2,
  .inner-page .ip-grid--4,
  .inner-page .ip-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .inner-page .ip-mission {
    padding: 28px 24px;
  }

  .inner-page .ip-mission p {
    font-size: 22px;
  }

  .inner-page .ip-legal {
    padding: 28px 22px;
  }
}

@media (max-width: 767px) {
  .inner-page .ip-banner {
    min-height: 220px;
    background-position: center center;
  }

  .inner-page .ip-banner h1 {
    font-size: 30px;
  }

  .inner-page .section-title__title {
    font-size: 28px;
  }

  .inner-page.ip-gallery-page .section-title__title {
    font-size: 30px;
  }

  .inner-page .ip-actions {
    width: 100%;
  }

  .inner-page .ip-mission {
    padding: 24px 18px;
  }

  .inner-page .ip-mission p {
    font-size: 20px;
  }

  .inner-page .ip-legal {
    padding: 22px 16px;
  }

  .inner-page .ip-section {
    padding: 42px 0;
  }

  .inner-page .ip-split,
  .inner-page .ip-grid,
  .inner-page .ip-grid--2,
  .inner-page .ip-grid--4,
  .inner-page .ip-gallery,
  .inner-page .ip-fields {
    grid-template-columns: 1fr;
  }

  .inner-page .ip-service {
    padding: 20px;
  }

  .inner-page .ip-ethics li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .inner-page .ip-map,
  .inner-page .ip-map iframe {
    min-height: 300px;
  }
}
