@media only screen and (max-width: 1399px) {
  .hero-banner__content-wrapper {
    padding-left: calc(50vw - 560px);
    background-position: -37.5px calc(100% - 25px);
    background-size: 75px;
  }

  .keeping-strong {
    background-position: -37.5px 50%;
    background-size: 75px;
  }

  .testimonails__grid-wrapper {
    padding-right: calc(50vw - 560px);
  }
  
  .testimonails__cover {
    height: 750px;
  }

  .compare-tax__wrapper {
    gap: 0;
  }

  .compare-tax__wrapper_form {
    width: calc(100% - 700px);
  }
}

@media only screen and (max-width: 1199px) {
  .menu-item a {
    padding-inline: 15px;
  }

  .menu-item.menu-item-has-children > a::after {
    top: 12px;
  }

  .hero-banner__video-sound {
    font-size: 24px;
    width: 55px;
    height: 55px;
  }

  .hero-banner__content-wrapper {
    padding-left: calc(50vw - 470px);
    background-position: -25px calc(100% - 25px);
    background-size: 50px;
  }

  .keeping-strong {
    background-position: -25px 50%;
    background-size: 50px;
  }

  .campaigns__carousel:before {
    top: 192.5px;
  }

  .testimonails__grid-wrapper {
    padding-right: calc(50vw - 470px);
  }
  
  .testimonails__cover {
    height: 650px;
  }

  .compare-tax__wrapper {
    flex-direction: column-reverse;
    align-items: center;
  }

  .compare-tax__wrapper_form {
    width: 100%;
    max-width: 500px;
  }

  .compare-tax__wrapper_map {
    display: flex;
    justify-content: center;
  }
}

@media only screen and (max-width: 991px) {
  .header__logo {
    max-width: 120px;
    padding: 5px;
  }

  .fixed-header .header__logo {
    max-width: 90px;
  }

  .header__navbar--container ul#header__navbar_menu {
    height: 0;
    flex-direction: column;
    justify-content: flex-start;
    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%;
  }

  .header__navbar--container.menu-toggled ul#header__navbar_menu {
    height: calc((var(--menu--childs) * 41px) + ((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 ul#header__navbar_menu li.menu-item {
    width: 100%;
  }

  .navbar-light .navbar-nav .nav-link, .menu-item a {
    text-align: center;
  }

  .nav-btn {
    text-align: center;
  }

  .nav-btn a {
    width: 100%;
    margin-left: auto;
    margin-right: 10px;
  }

  li.menu-item ul.sub-menu {
    width: 100%;
    height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: relative;
    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;
  }

  li.menu-item ul.sub-menu.submenu-open {
    height: calc(var(--menu--grand--childs) * 31px);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-btn iframe {
    margin: 0;
  }

  .grid-three > *,
  .grid-four > *,
  .grid-five > * {
    width: calc((100% / 2) - 13px);
  }

  .grid-two,
  .grid-three,
  .grid-four,
  .grid-five {
    gap: 20px;
    justify-content: center;
  }

  .gutter-top {
    margin-top: 70px;
  }

  .hero-banner__content-wrapper {
    padding-left: calc(50vw - 350px);
  }

  .keeping-strong__social-grid-wrapper {
    width: 340px;
  }

  .keeping-strong__social-grid-wrapper > * {
    width: calc((100% / 4) - 19px);
  }

  .keeping-strong__social-grid_social-icon a {
    font-size: 24px;
    width: 65px;
    height: 65px;
  }

  .footer__logo-wrapper,
  .footer__flags,
  .footer__grid-wrapper,
  .footer__legal-links {
    justify-content: center;
  }

  .footer__grid-wrapper {
    margin-top: 25px;
  }

  .footer__acknowledge,
  .footer__copyrights {
    text-align: center;
  }

  footer p,
  .footer__copyrights p {
    font-size: 16px;
  }

  .campaigns__carousel:before {
    width: 120px;
    height: 120px;
    top: 154.5px;
  }

  .stats-section__grid_card {
    width: calc((100% / 2) - 17px) !important;
    max-width: 230px;
  }

  .stats-section__grid_card {
    padding: 40px;
  }

  .stats-section__grid_card:after {
    right: 0;
    z-index: 9;
    transform: translate(60%, -50%);
    -webkit-transform: translate(60%, -50%);
    -moz-transform: translate(60%, -50%);
    -ms-transform: translate(60%, -50%);
    -o-transform: translate(60%, -50%);
  }

  .stats-section__grid_card:nth-of-type(2n + 2):after {
    display: none;
  }

  .testimonails__wrapper {
    flex-direction: column;
  }

  .testimonails__cover,
  .testimonails__grid-wrapper {
    width: 100%;
  }

  .testimonails__cover {
    height: auto !important;
    max-height: 650px;
  }

  .testimonails__grid-wrapper {
    padding-inline: calc(50vw - 350px);
  }

  .testimonials__grid {
    gap: 0;
  }

  .grid-two.testimonials__grid > * {
    width: calc(100% / 2);
    max-width: 250px;
  }

  .compare-tax__wrapper_map-stats-vic {
    left: 515px;
  }

  .send-letter__to-premier {
    padding: 20px;
  }

  .textarea-wrapper {
    padding: 20px;
  }

  .campaigns__carousel {
    flex-direction: column;
  }

  .campaigns__carousel_card,
  .campaigns__carousel_card:nth-child(2) {
    width: 100%;
  }

  .campaigns__heading {
    text-align: center !important;
  }

  .campaigns__heading + .titles__sub-heading {
    text-align: center !important;
  }

  .resources-tab__wrapper_tab-pane-wrapper {
    flex-direction: column;
    gap: 25px;
  }

  .resources-tab__wrapper_nav-link {
    width: auto;
  }

  .resources-tab__wrapper_tab-pane-copy {
    width: 100%;
  }

  .resources-tab__wrapper_tab-pane-thumbnail {
    width: 100%;
  }

  .progress-value {
    transform: translateX(0);
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .compare-tax__wrapper_map[style*="opacity: 1;"] {
    overflow: visible !important;
  }
}

@media only screen and (max-width: 767px) {
  .hero-banner__container {
    flex-direction: column-reverse;
  }

  .hero-banner__media,
  .hero-banner__content {
    width: 100%;
  }

  .hero-banner__content-wrapper {
    text-align: center;
    padding-inline: calc(50vw - 260px);
  }

  .hero-banner__content .hero-banner__hero-heading {
    width: 100%;
    padding-inline: 1rem;
  }

  .introduction__row > p {
    padding-inline: 0;
  }

  .campaigns__carousel:before {
    display: none;
  }

  .keeping-strong__heading {
    text-align: center !important;
  }

  .keeping-strong__social-grid-wrapper {
    margin: 20px auto 0;
  }

  .footer__heading {
    font-size: 21px;
  }

  .footer__logo-wrapper {
    gap: 10px;
  }

  .footer__logo-wrapper img {
    max-width: 140px;
  }

  .impact__grid {
    flex-direction: column;
    gap: 15px;
  }

  .impact__grid_copy {
    text-align: center;
    width: 100%;
  }

  .impact__grid_heading {
    text-align: center !important;
  }

  .impact__grid_image {
    text-align: center;
  }

  .impact__grid_image > img {
    width: 100px;
  }

  .resources__wrapper {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .resources__wrapper_image,
  .resources__wrapper_copy {
    text-align: center;
    width: 100%;
  }

  .resources__wrapper_heading {
    text-align: center !important;
  }

  .resources__wrapper_download-button {
    padding: 15px;
  }

  .impact__progress-title {
    text-align: center;
  }

  .campaigns__carousel_card-image {
    height: auto !important;
    aspect-ratio: 1 / 1;
  }

  .popup-modal__content {
    padding: 25px;
  }

  .chief-message__quote-column {
    flex-direction: column-reverse;
    gap: 35px;
  }

  .chief-message__quote-wrapper {
    width: 100%;
  }

  .chief-message__description-wrapper {
    width: 100%;
  }

  .hero-banner__hero-button {
    margin-inline: auto;
  }

  .testimonails__grid-wrapper {
    padding-inline: calc(50vw - 260px);
  }

  .hero-banner__content-wrapper {
    padding-inline: 15px;
  }

  .testimonails__grid-wrapper {
    padding-inline: 15px;
  }

  .cmm-have-your-say--form {
    padding: 20px;
  }

  .cmm-have-your-say--form:after {
    width: 45px;
    height: 45px;
  }

  .cmm-mp-footer {
    margin-top: 25px;
  }

  .send-letter__description .col-md-6:nth-of-type(2) .form-control {
    margin-top: 0;
  }

  .send-letter {
    background: transparent;
  }

  .compare-tax__wrapper_map {
    display: block;
    padding-bottom: 35px;
  }

  .compare-tax__wrapper_map::after {
    content: "";
    width: 60px;
    height: 60px;
    background: url("/wp-content/uploads/2025/10/animated-horizontal-move-linear-icon.gif") no-repeat center center / 50px;
    position: absolute;
    inset: 0;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
    -moz-transition: opacity 0.5s ease;
    -ms-transition: opacity 0.5s ease;
    -o-transition: opacity 0.5s ease;
  }

  .compare-tax__wrapper_map.hide-after::after {
    opacity: 0;
    pointer-events: none;
  }

  .textarea-wrapper {
    min-height: auto;
  }

  .send-letter__to-premier {
    margin-top: 25px;
  }

  .hero-banner__video-sound {
    font-size: 18px;
    width: 35px;
    height: 35px;
    bottom: 10px;
    left: 10px;
  }

  .campaigns__carousel_card-content {
    padding: 10px;
    margin: 0;
  }

  .campaigns__carousel_card-image-wrapper:before {
    height: 75%;
  }

  .btn.campaigns__carousel_card-btton {
    width: 100%;
    padding-block: 5px;
  }

  .resources-tab__wrapper_tab-pane-btn-wrapper {
    flex-direction: column;
  }

  .resources-tab__wrapper_tab-pane-btn-wrapper > * {
    width: 100%;
  }
}

@media only screen and (max-width: 450px) {
  .stats-section__grid_card {
    width: 100% !important;
  }

  .stats-section__grid_card:after {
    top: 100%;
    left: 50%;
    right: inherit;
    transform: translate(-50%, -40%);
    -webkit-transform: translate(-50%, -40%);
    -moz-transform: translate(-50%, -40%);
    -ms-transform: translate(-50%, -40%);
    -o-transform: translate(-50%, -40%);
  }

  .stats-section__grid_card:nth-of-type(2n + 2):after {
    display: block;
  }

  .stats-section__grid_card:nth-of-type(4n + 4):after {
    display: none;
  }

  .grid-two.testimonials__grid > * {
    width: 100%;
  }
}

@media only screen and (max-width: 380px) {
  .keeping-strong__social-grid-wrapper {
    width: 295px;
  }

  .keeping-strong__social-grid_social-icon a {
    width: 55px;
    height: 55px;
  }

  footer p, .footer__copyrights p {
    font-size: 15px;
  }

  .footer__grid-wrapper {
    flex-direction: column;
  }
}