/**
 * Responsive overrides – loaded last so they take precedence.
 * Product + global: fit layout on tablet and mobile without changing look.
 * All overrides are inside media queries so desktop uses base styles only.
 */

/* ----- 1440px: header menu – tighten spacing, reduce spread ----- */

.operating-domains .domain-item:last-child {
  border-inline-end: 0 none;
}
@media (max-width: 1441px) {
  .iai-mm-top > li > a.menu-link {
    line-height: 1;
  }
  .menu-wrapper .iai-mm-top > li.search-btn a:before {
    display: none !important;
  }
  .menu-wrapper .iai-mm-top > li.search-btn a {
    padding: 5px 20px !important;
  }
  nav.gp-breadcrumb {
    display: flex;
    align-items: anchor-center;
    line-height: 1;
    text-align: center;
  }
}
@media (max-width: 1024px) {
  .header-navigation {
    padding-inline-start: 10px;
    padding-inline-end: 10px;
  }
  .menu-wrapper {
    margin-inline-start: auto;
    order: -1;
  }
}
@media (max-width: 991px) {
  /* Hero bar: keep inside container, prevent float/overflow */
  .product-hero-bar {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .product-hero-bar .hero-bar-inner {
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .product-hero-bar .hero-bar-right {
    min-width: 0;
    overflow: hidden;
  }

  .product-hero-bar .hero-bar-right .btn-orange,
  .product-hero-bar .hero-bar-right .brief-btn-new,
  .product-hero-bar .hero-bar-right a {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Single product: hero bar inner = row; hero-bar-right buttons equal size */
  .single-product .product-hero-bar .hero-bar-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .single-product .hero-bar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .single-product .hero-bar-right .btn-orange,
  .single-product .hero-bar-right .brief-btn-new,
  .single-product .hero-bar-right .btn,
  .single-product .hero-bar-right a {
    font-size: 1.2rem;
    padding: 6px 18px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .single-product .banner-content {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    bottom: 24px;
  }

  .single-product .hero-text-new {
    max-width: 100%;
  }

  .single-product .is-sticky-bar .product-hero-bar {
    width: 100% !important;
  }

  .single-product .product-hero-bar .hero-bar-inner {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0;
  }

  .single-product .hero-bar-left,
  .single-product .hero-bar-middle {
    min-width: 0;
  }

  .single-product .tabs-blocks .tab-panel {
    max-width: 100%;
  }

  .single-product .block-middle_banner_block .middle-banner {
    min-height: clamp(320px, 50vh, 500px);
  }

  .single-product .block-middle_banner_block .middle-content {
    padding: 16px;
  }
}

/* ----- Mobile (e.g. 767px and below) ----- */
@media (max-width: 767px) {
  .single-product .banner-content {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 14px;
    bottom: 16px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .single-product .product-hero .hero-title {
    font-size: clamp(2rem, 10vw, 4rem);
    color: #fff;
  }

  .single-product .product-hero .hero-subtitle {
    font-size: clamp(1.25rem, 5vw, 2.25rem);
  }
  .product-hero {
    padding-bottom: 20px;
  }
  .product-hero .hero-ctas{
    margin-top  : 0;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 0px;
  }
  /* Mobile hero video: small circular play button instead of the poster thumbnail */
  .product-hero .hero-ctas a#video-popup {
    width: 60px;
    height: 60px;
    max-width: none;
    border-radius: 50%;
    overflow: visible;
    background: none;
  }
  .product-hero .hero-ctas a#video-popup .hero-video-poster,
  .product-hero .hero-ctas a#video-popup .hero-video-cta {
    display: none;
  }
  .product-hero .hero-ctas a#video-popup .hero-video-play {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid var(--global-color-blue, #0033a0);
  }
  .product-hero .hero-ctas a#video-popup .hero-video-play::after {
    left: 53%;
    border-width: 11px 0 11px 17px;
    border-color: transparent transparent transparent var(--global-color-blue, #0033a0);
  }
  .product-hero .hero-ctas a#video-popup.is-ready:hover .hero-video-play {
    background: #fff;
  }
  .single-product .product-main .box-padding {
    padding-left: 16px;
    padding-right: 16px;
  }

  .single-product .product-main .overview,
  .single-product .product-main .highlights {
    padding-left: 0;
  }

  .single-product .block-icon_blocks,
  .single-product .block-faq_block,
  .single-product .block-form_block {
    padding-left: 16px;
    padding-right: 16px;
  }

  .single-product .block-middle_banner_block .middle-content h3 {
    font-size: 2.25rem;
  }

  .single-product .block-middle_banner_block .middle-content p {
    font-size: 1.25rem;
  }

  .single-product .detail-item {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .single-product .detail-title {
    max-width: 100%;
    padding-left: 0;
  }

  .single-product .detail-content {
    width: 100%;
  }

  .single-product .external-logos {
    padding: 16px;
  }

  .single-product .external-logos .external-logos-intro {
    padding: 0 0.5rem;
  }

  .single-product .overview-highlights .highlights li {
    margin-left: 0;
    padding-left: 1.5rem;
  }

  .single-product .gallery-slide a,
  .single-product .gallery-slide img {
    max-height: 70vh;
  }

  .single-product .related-solutions {
    gap: 1.5rem;
    padding-left: 16px;
    padding-right: 16px;
  }

  .single-product .related-product h4 {
    font-size: 1.5rem;
  }

  .single-product .block-related_solutions {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 3rem;
  }

  .single-product #related-solutions-3 {
    padding-bottom: 2rem;
  }

  .gform-theme--foundation .gform_fields {
    row-gap: 20px !important;
  }
  .gform-theme--foundation .gfield h6 {
    font-size: 1rem;
    margin: 20px 0 0;
  }
  .gform-theme--foundation .gfield h6 br {
    display: none;
  }
  #gform_submit_button_2 {
    width: 100%;
  }
}

/* ----- Small mobile (e.g. 480px and below) ----- */
@media (max-width: 480px) {
  .single-product .banner-content {
    padding-left: 10px;
    padding-right: 10px;
    bottom: 12px;
  }

  .single-product .product-hero .hero-ctas {
    gap: 0.75rem;
  }

  .single-product .product-hero .hero-ctas a {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }

  .single-product .operating-domains .domain-item {
    padding-left: 12px;
    padding-right: 12px;
  }

  .single-product .icon-blocks {
    gap: 16px;
  }

  .single-product .icon-blocks .icon-block {
    padding: 12px;
  }

  .single-product .icon-blocks .icon-block img {
    width: 56px;
    height: 56px;
  }

  .single-product h3.block-title,
  .single-product .overview-highlights .overview h3,
  .single-product .overview-highlights .highlights h3 {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }
}

/* ----- Footer bottom strip: keep inside container, menu wraps ----- */
.footer-bottom-strip {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.footer-bottom-inner {
  max-width: 100%;
  box-sizing: border-box;
}

.footer-bottom-right {
  min-width: 0;
}

.footer-bottom-menu {
  flex-wrap: wrap;
  min-width: 0;
}

.footer-bottom-menu li {
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .footer-bottom-inner {
    margin-inline: 20px;
    padding-block: 12px 12px; padding-inline: 0 12px;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .footer-bottom-menu {
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .footer-bottom-inner {
    margin-inline: 16px;
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-bottom-left,
  .footer-bottom-right {
    width: 100%;
  }

  .footer-bottom-menu {
    gap: 0.75rem 1.25rem;
  }

  .footer-bottom-menu a {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  body .header-navigation {
    padding: 10px 25px !important;
  }
  .nav-midd .footer-navigation-menu {
    column-gap: 30px;
  }
  .menu-wrapper {
    margin-inline-start: auto;
    order: -1;
    margin-inline-end: auto;
  }
  .mobile-search {
    order: -2;
  }
  .main-fact .num {
    font-size: 11rem;
    line-height: 1;
  }
  .main-fact {
    padding: 0;
  }
  .main-fact-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .main-fact .sufix {
    margin: -20px 0 20px;
    padding: 0 20px;
  }
  .fact-item .text {
    text-align: center;
  }
  .fact-item .icon-wrapper {
    height: 10vh;
    margin: 0;
    justify-content: flex-start;
  }
  div#fact-item-3,
  div#fact-item-6 {
    order: 1;
  }
  .overlay-content {
    top: 8%;
  }
  .fcc-title {
    margin-bottom: 0;
  }
  .solution-card .term-description p {
    color: #fff;
  }
  .solution-card:hover .full-card-content .fcc-link .site-link {
    font-size: 13px;
  }
  .fcc-link .site-link::after {
    width: 10px;
    height: 10px;
  }
  .fcc-title h4,
  .fcc-title h3,
  .overlay-content h3 {
    font-size: 1.8rem;
    line-height: 0.8rem;
    font-weight: 500;
  }
  .solution-card:hover .full-card-content .term-description p {
    font-size: 16px;
    min-height: auto;
  }
  .value-content p,
  .vision-values .vision-text > p.sub-title,
  .vision-values .vision-text > p {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 1rem;
  }
  .nav-col {
    padding: 10px 25px !important;
  }
  .nav-midd .footer-navigation-menu li a,
  .nav-col li {
    margin: 0;
  }
  .site-footer {
    padding-top: 0;
  }
  .footer-bottom-menu a {
    font-size: 1rem;
  }
  .site-footer .footer-grid {
    border-bottom: 0;
    margin-bottom: -25px;
  }
  /* Product page: Mobile responsive ----- */
  .product-hero#hero {
    min-height: 35vh;
  }
  .single-product .banner-content {
    bottom: 0;
  }
  .single-product .product-hero .hero-subtitle {
    margin-bottom: 0;
  }
  .one-container .site-content {
    padding: 0 0 60px 0;
  }
  .archive.tax-solution .product-hero {
    height: 50vh;
  }
  .product-hero .hero-text {
    padding-top: 0;
  }
  .wrapper-section {
    min-height: auto;
  }
  ul.solution-subnav-list {
    margin: 0 0 20px;
    flex-wrap: wrap;
    flex-direction: column;
  }
  ul.solution-subnav-list > li {
    margin-right: 0;
  }
  .solution-subnav-label {
    padding: 8px 14px 8px 0;
  }
  #contact-modal .gform_description {
    font-size: 1.3rem;
    color: #000;
    margin: 10px 0 10px 0;
  }

  .product-hero .hero-ctas {
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 10px;
  }
  .hero-bar-middle > .system-segment,
  .hero-bar-middle > .operating-domains {
    width: 100%;
    justify-content: center;
  }
  .single-product .product-main .overview,
  .single-product .product-main .highlights {
    padding-left: 20px;
  }
  .tabs-blocks .tabs-list[role="tablist"] {
    padding-inline-start: 0;
  }
  .single-product .overview-highlights .highlights li {
    margin-left: 0;
    padding-left: 0;
  }
  .single-product .related-solutions {
    gap: 1.5rem;
    padding-left: 0;
    padding-right: 0;
  }
  .single-product .related-solutions {
    display: flex;
  }
  .product-hero .hero-title {
    margin: 0;
    line-height: 1.03;
    letter-spacing: 0;
    font-size: clamp(45px, 4.6vw, 68px);
    color: var(--hero-muted);
    text-align: left;
    font-weight: 700;
  }
  .product-hero .hero-subtitle p {
    font-size: 1.2rem;
    padding-right: 20px;
  }
  #main-solution-image {
    background-color: transparent;
    opacity: 0.15;
    display: none;
  }
  .mosaic .tile {
    height: auto !important;
    min-height: 35vh;
    padding: 50px 10px;
  }
  .content-over-mosaic .site-link {
    font-size: 1rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  .content-over-mosaic .description{

  }
  ul.solution-products-nav-list.msc-wrapper.container {
    display: none;
  }
  
}

@media (max-width: 767.98px) {
  .general-hero-title {
    font-size: clamp(38px, 9vw, 44px);
    line-height: 1.15;
  }

  .homepage-hero .slide-content h3 {
    font-size: clamp(34px, 8vw, 40px) !important;
    line-height: 1.15;
  }

  .product-hero .hero-title {
    font-size: clamp(34px, 8vw, 40px);
    line-height: 1.15;
  }

  .group-page-main .product-hero .hero-title {
    font-size: clamp(40px, 10vw, 48px);
    text-align: right;
    line-height: 1.15;
  }

  .group-page-main .product-hero .hero-text {
    width: 100%;
    text-align: right;
  }

  .group-page-main .product-hero .hero-subtitle {
    max-width: 100%;
    margin-inline-start: auto;
  }

  .group-page-main .product-hero .hero-subtitle p {
    font-size: 1.5rem;
    line-height: 1.35;
  }

  .entry-content h1,
  .general-content h1 {
    font-size: clamp(32px, 8vw, 40px);
    line-height: 1.2;
  }

  .entry-content h2,
  .general-content h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  .entry-content h3,
  .general-content h3 {
    font-size: 22px;
    line-height: 1.3;
  }

  body.page-template-page-history.one-container .general-hero {
    height: clamp(320px, 55svh, 460px);
    min-height: 320px;
  }

  .page-template-page-history .general-hero-split {
    margin-top: 20px;
  }

  .page-template-page-team .team-grid .container {
    margin: 24px auto;
  }

  .page-template-page-team .product-category-title-inner {
    font-size: 28px;
    line-height: 1.25;
  }

  body.page-template-page-team.one-container .site-content {
    padding-bottom: 0;
  }

  .page-id-1749 .single-page-content .entry-content h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.25;
  }

  .page-id-1749 .single-page-content .entry-content ul {
    margin: 0 0 24px;
    padding-inline-start: 18px;
  }
}
