@media only screen and (max-width: 1199px) {
  .header {
    padding: 5px 0;
  }
  .header__logo {
    max-width: 160px;
    padding: 20px;
  }

  /* Specific adjustments for 1024px width (iPad Pro portrait - 1024x1366) */
  @media only screen and (min-width: 1024px) and (max-width: 1025px) {
    .header__logo {
      max-width: 350px;
    }

    .header__navbar--container ul#header__navbar_menu li.menu-item {
      margin-bottom: 8px;
    }

    .menu-item a {
      font-size: 24px !important;
      padding-top: 18px !important;
      padding-bottom: 18px !important;
      line-height: 1.4 !important;
    }

    /* Fix submenu spacing and positioning */
    li.menu-item ul.sub-menu {
      margin-top: 4px;
      margin-left: 0;
    }

    li.menu-item ul.sub-menu li {
      margin-bottom: 4px;
    }

    li.menu-item ul.sub-menu li a {
      padding-top: 14px !important;
      padding-bottom: 14px !important;
      padding-left: 50px !important;
      font-size: 20px !important;
      line-height: 1.3 !important;
    }
  }

  /* Ensure hamburger menu icon is visible */
  .header__navbar_toggler {
    display: flex !important;
  }

  /* Ensure Bootstrap collapse element is properly handled */
  #header__navbar.collapse:not(.show) {
    display: none;
  }

  #header__navbar.collapse.show {
    display: block;
  }

  .header__navbar--container ul#header__navbar_menu {
    height: 0;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transition: height 300ms ease-out;
    -webkit-transition: height 300ms ease-out;
    -moz-transition: height 300ms ease-out;
    -ms-transition: height 300ms ease-out;
    -o-transition: height 300ms ease-out;
  }

  .header__navbar--container ul#header__navbar_menu {
    width: 100%;
  }

  /* Show menu when toggled OR when Bootstrap collapse is shown */
  .header__navbar--container.menu-toggled ul#header__navbar_menu,
  #header__navbar.show .header__navbar--container ul#header__navbar_menu {
    height: calc((var(--menu--childs) * 36px) + ((var(--menu--grand--childs) * 31px) + 10px));
    transition: height 300ms ease-out;
    -webkit-transition: height 300ms ease-out;
    -moz-transition: height 300ms ease-out;
    -ms-transition: height 300ms ease-out;
    -o-transition: height 300ms ease-out;
  }

  .header__navbar--container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Add padding when menu is toggled OR when Bootstrap collapse is shown */
  .header__navbar--container.menu-toggled,
  #header__navbar.show .header__navbar--container {
    padding-bottom: 20px;
  }

  .header__navbar--container ul#header__navbar_menu li.menu-item {
    width: 100%;
  }

  .navbar-light .navbar-nav .nav-link, .menu-item a {
    padding: 7px 20px;
    text-align: left;
  }

  .nav-btn {
    text-align: center;
  }

  .nav-btn a {
    width: 100%;
    padding: 10px 20px !important;
    margin: auto;
  }

  li.menu-item ul.sub-menu {
    width: 100%;
    height: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: relative;
    background: rgb(var(--clr--forest));
    display: flex !important;
    flex-direction: column !important;
    transition: height 300ms ease-out, opacity 300ms ease-out;
    -webkit-transition: height 300ms ease-out, opacity 300ms ease-out;
    -moz-transition: height 300ms ease-out, opacity 300ms ease-out;
    -ms-transition: height 300ms ease-out, opacity 300ms ease-out;
    -o-transition: height 300ms ease-out, opacity 300ms ease-out;
  }

  li.menu-item ul.sub-menu,
  li.menu-item:hover ul.sub-menu {
    display: flex !important;
    flex-direction: column !important;
  }

  li.menu-item ul.sub-menu.submenu-open {
    height: calc(var(--menu--grand--childs) * 36px);
    opacity: 1;
    pointer-events: auto;
  }

  li.menu-item ul.sub-menu li {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
  }

  li.menu-item ul.sub-menu li a {
    width: 100%;
    text-align: left;
    padding: 10px 20px 10px 40px;
    color: rgb(var(--clr--white));
    display: block;
  }

  li.menu-item ul.sub-menu li a:hover {
    color: rgb(var(--clr--gold));
    background-color: rgba(var(--clr--white), 0.1);
  }

  .nav-btn iframe {
    margin: 0;
  }

  /* Social Media and Search Icons - Mobile */
  .header__navbar_social-search {
    width: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    margin-left: 0 !important;
    margin-top: 0;
    padding-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: none !important;
    transition: max-height 300ms ease-out, opacity 300ms ease-out, padding-top 300ms ease-out, margin-top 300ms ease-out;
    -webkit-transition: max-height 300ms ease-out, opacity 300ms ease-out, padding-top 300ms ease-out, margin-top 300ms ease-out;
    -moz-transition: max-height 300ms ease-out, opacity 300ms ease-out, padding-top 300ms ease-out, margin-top 300ms ease-out;
    -ms-transition: max-height 300ms ease-out, opacity 300ms ease-out, padding-top 300ms ease-out, margin-top 300ms ease-out;
    -o-transition: max-height 300ms ease-out, opacity 300ms ease-out, padding-top 300ms ease-out, margin-top 300ms ease-out;
  }

  /* Show social search when menu is toggled OR when Bootstrap collapse is shown */
  .header__navbar--container.menu-toggled .header__navbar_social-search,
  #header__navbar.show .header__navbar--container .header__navbar_social-search {
    display: flex !important;
    max-height: 200px;
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(var(--clr--white), 0.2);
  }

  .header__navbar_social {
    justify-content: center;
    gap: 20px;
  }

  .header__navbar_social a,
  .header__navbar_search a {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .footer__wrapper_logo {
    max-width: 260px;
  }
  .footer__wrapper {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer__wrapper_logos {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer__wrapper_logo {
    max-width: 180px;
  }

  .footer__wrapper_copyright {
    width: 100%;
  }

  .footer__wrapper_copyright p {
    font-size: 16px;
    text-align: center;
  }

  .footer__wrapper_social {
    justify-content: center;
  }
.the-facts__wrapper {
    flex-direction: column;
    gap: 0;
  }

  .the-facts__wrapper_image {
    width: 100%;
    height: 400px; /* Set a fixed height for cropping */
    overflow: hidden;
  }

  .the-facts__wrapper_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
  }

  .the-facts__wrapper_facts {
    width: 100%;
  }
  .c4 span{
  color: rgb(var(--clr--gold));
  font-size: 30px;
  line-height: 36px;
  }
.the-facts__wrapper_facts_carousel .owl-item {
  padding-top: 50px;
  }
}

@media only screen and (max-width: 1023px) {
  .voices-section__carousel {
    width: 90%;
    margin-inline: auto;
  }
}

@media only screen and (max-width: 991px) {
  .the-facts__wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .the-facts__wrapper_image {
    width: 100%;
  }

  .the-facts__wrapper_image img {

    display: block;
    margin-inline: auto;
    object-position: top;
  }

  .the-facts__wrapper_facts {
    width: 100%;
  }

  .the-facts__wrapper_facts_carousel_item_subhead {
  color: rgb(var(--clr--white));
  padding-left: 20px;
  position: relative;
   font-size: 16px;
  line-height: 20px;
}

  .error-message {
    min-height: calc(100vh - 296px);
  }
}

@media only screen and (max-width: 768px) {
   .hero {
    background-position: 70% center; /* tweak 65–85% as needed */
  }

  .hero-content {
    margin-left: 0;
    padding: 1.5rem;
    text-align: left; /* or center if you prefer */
  }

  .brand img {
    height: 50px;
    margin-top: 20px;
  }

  .voices-section__carousel_card_body * {
    font-size: 16px;
  }

  .sign-the-petition__wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .sign-the-petition__wrapper_content {
    text-align: center;
    width: 100%;
    margin-right:0;
  }

  .sign-the-petition__wrapper_form-wrapper {
    width: 100%;
    padding: 45px;
  }

  .footer__wrapper {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer__wrapper_logos {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer__wrapper_logo {
    max-width: 180px;
  }

  .footer__wrapper_copyright {
    width: 100%;
  }

  .footer__wrapper_copyright p {
    font-size: 16px;
    text-align: center;
  }

  .footer__wrapper_social {
    justify-content: center;
  }
}

@media only screen and (max-width: 767px) {
  .owl-nav button.owl-prev, .owl-nav button.owl-next {
    font-size: 27px;
  }

  .owl-nav button.owl-prev {
    left: -40px;
  }

  .owl-nav button.owl-next {
    right: -40px;
  }
}

@media only screen and (max-width: 575px) {
  .voices-section__carousel {
    width: 80%;
    margin-inline: auto;
  }
}

@media only screen and (max-width: 480px) {
  .the-facts__wrapper_facts ul {
    padding-left: 0;
  }

  .the-facts__wrapper_facts ul li {
    padding-left: 60px;
    background-position: 7px 3px;
    margin-left:15px;
    margin-right:15px;
  }
}