/* Global overrides */

/* Mobile: force all h2 to 36px across the site */
@media (max-width: 767.98px) {
    h2 {
      font-size: 27px !important;
      line-height: 1.2;
    }
  }

@media (max-width: 320px) {
    h2 {
      font-size: 27px !important;
    }
  }

  /* Section titles that are below the hero (opt-in class on h2) */
  /* Mobile only: 425px and below */
  @media (max-width: 425px) {
    .section-title-below-hero {
      font-size: 27px !important;
      line-height: 1.35;
    }

    /* Purpose (Why/How/What) mobile sizing */
    .section-title-video {
      font-size: 26px !important;
      line-height: 1.25;
    }
    .section-text {
      font-size: 14px;
      line-height: 1.5;
    }
  }

  /* Purpose (Why/How/What) sizing for 768px */
  @media (max-width: 768px) {
    .section-title-video {
      font-size: 34px !important;
      line-height: 1.25;
    }
  }

  /* Purpose (Why/How/What) sizing for 375px */
  @media (max-width: 375px) {
    .section-title-video {
      font-size: 26px !important;
      line-height: 1.25;
    }
  }

  /* Purpose (Why/How/What) sizing for 320px */
  @media (max-width: 320px) {
    .section-title-video {
      font-size: 22px !important;
      line-height: 1.25;
    }
  }

  /* Tablet: Purpose (Why/How/What) sizing for 992px to 1199px - desktop layout with smaller sizes */
  @media (min-width: 992px) and (max-width: 1199.98px) {
    .purpose-container .content-container .section-title-video {
      font-size: 24px !important;
      line-height: 1.3;
    }
    .purpose-container .content-container .section-text {
      font-size: 15px;
      line-height: 1.5;
    }
  }

  /* Purpose slider pagination - positioned outside blocks */
  .purpose-swiper-wrapper {
    position: relative;
  }

  .purpose-swiper {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .purpose-pagination {
    position: relative;
    margin-top: 30px;
    text-align: center;
    width: 100%;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }

  .purpose-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .purpose-pagination .swiper-pagination-bullet-active {
    background-color: #CAA260;
    opacity: 1;
  }

/* Services section: Hide banner image on mobile, gold subtitle color */
@media (max-width: 991.98px) {
  .services-banner-image {
    display: none !important;
  }

  /* Add same padding as Publications section - top and bottom */
  .services-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Remove overlay from services-box-big-shadow box on mobile */
  .services-section .services-box-big-shadow.box::before {
    display: none !important;
    content: none !important;
  }

  /* Ensure container has proper styling when image is hidden */
  .services-box-big {
    min-height: auto !important;
    background: transparent !important;
  }

  /* Remove gradient overlay on mobile when image is hidden */
  .services-box-big-shadow {
    background: transparent !important;
    position: relative !important;
  }

  /* Position like Publications section - simple container structure */
  .services-box-big-shadow .box-text {
    position: relative !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0;
    align-items: flex-start !important;
  }

  /* Match Publications section structure - left-title style */
  .services-box-big-shadow .box-text > div {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Change heading color to dark on mobile and add gap below */
  .services-box-big-shadow .box-title {
    color: #333 !important;
    margin-bottom: 1.5rem !important;
  }

  /* Gold subtitle color only on mobile */
  .services-subtitle {
    color: #CAA260 !important;
  }
}

/* Keep subtitle white on bigger devices */
@media (min-width: 992px) {
  .services-subtitle {
    color: white !important;
  }
}