/* Keep side-by-side layout for screens between 768px and 1067px */
@media (min-width: 768px) and (max-width: 1067px) {
    .accordion-body-custom .row > .col-12.col-md-6 {
      flex: 0 0 50%;
      max-width: 50%;
    }
  
    .accordion-body-custom .col-12.col-md-6:last-child {
      justify-content: flex-end;
    }
  
    .accordion-body-custom .col-12.col-md-6:last-child > div {
      margin-left: auto;
      margin-right: 0;
      position: relative;
    }
  
    .accordion-image-wrapper {
      max-width: 100%;
      height: auto;
    }
  
    .accordion-image-wrapper img {
      height: auto;
      width: 100%;
    }
  
    /* Make content widths flexible in this range */
    .accordion-body-custom .w-700,
    .accordion-body-custom .w-600 {
      width: 100% !important;
      max-width: 100% !important;
    }
  }
  
  /* Stack columns below 1068px */
  @media (max-width: 1067px) {
    .accordion-body-custom .col-12.col-md-6:last-child {
      justify-content: center !important;
    }
  
    .accordion-body-custom .col-12.col-md-6:last-child > div {
      margin: 0 auto !important;
      position: relative !important;
    }
  
    .accordion-body-custom .row > .col-12.col-md-6 {
      flex: 0 0 100%;
      max-width: 100%;
    }
  
    .accordion-body-custom .row > .col-12.col-md-6 + .col-12.col-md-6 {
      margin-top: 24px;
    }
  
    .accordion-image-wrapper {
      max-width: 90%;
      height: auto;
      margin: 0 auto;
    }
  
    .accordion-image-wrapper img {
      height: auto;
    }
  
    .accordion-image-wrapper .position-absolute {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
  
  /* Responsive styles for w-756px */
  @media (max-width: 992px) {
    .w-756px {
      width: 100%;
    }
  
    .solution-image-wrapper {
      min-height: auto;
      margin-top: 1.5rem;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  
    .solution-image-wrapper img {
      position: static !important;
      width: 90%;
      max-width: none;
      aspect-ratio: 1 / 1;
      height: auto;
    }
  
    .compatibility-image-wrapper {
      min-height: auto;
      margin: 0 auto 1.5rem;
      max-width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0;
      background: none !important;
    }
  
    .compatibility-image-wrapper img {
      position: static !important;
      width: 90%;
      max-width: none;
      aspect-ratio: 1 / 1;
      height: auto;
    }
  
    .compatibility-section .compatibility-text {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
  
    .compatibility-section .row {
      display: flex;
      flex-direction: column;
    }
  
    .compatibility-section .compatibility-text-col {
      order: 1;
    }
  
    .compatibility-section .compatibility-image-col {
      order: 2;
    }
  
    .compatibility-section {
      padding-top: 5rem;
      padding-bottom: 5rem;
    }
  
    .compatibility-section .container {
      padding-left: 2rem;
      padding-right: 2rem;
    }
  
    .sovereign-section .container {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
  
    .sovereign-section .sovereign-title {
      margin-bottom: 3rem !important;
    }
  
    .sovereign-row {
      justify-content: center;
      gap: 1.5rem;
    }
  
    .sovereign-row > .col-12.col-md-6.col-lg-3 {
      flex: 0 0 320px;
      max-width: 320px;
    }
  
    .sovereign-row .sovereign-card {
      width: 100%;
    }
  }
  
  @media (max-width: 768px) {
    .w-756px {
      width: 100%;
    }
  
    .w-700 {
      width: 100% !important;
      max-width: 100% !important;
    }
  
    .compatibility-section {
      padding-top: 4rem;
      padding-bottom: 4rem;
    }
  
    .compatibility-section .container {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
  
    .sovereign-section .container {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  
    .sovereign-section .sovereign-title {
      margin-bottom: 2rem !important;
    }
  
    .sovereign-row {
      gap: 1rem;
    }
  
    .problems-section .row .text-end {
      text-align: left !important;
    }
  
    .problems-section .row .text-end .ms-auto {
      margin-left: 0 !important;
    }
  }
  
  @media (max-width: 576px) {
    .w-756px {
      width: 100%;
    }
  }
  
  /* Responsive styles for accordion image positioning - for screens above 1068px */
  @media (min-width: 1068px) {
    .accordion-body-custom .col-12.col-md-6:last-child > div {
      margin-right: -70px;
    }
  }
  
  /* Gradually reduce content width below 1280px as image pushes in */
  /* At 1280px: image pushes -70px, content reduces by ~10% (70px/700px) */
  @media (max-width: 1279px) and (min-width: 1200px) {
    .accordion-body-custom .w-700,
    .accordion-body-custom .w-600 {
      width: calc(100% + 80px) !important;
      max-width: calc(100% + 1000px) !important;
    }
  }
  
  /* At 1200px: reduce more as screen gets smaller */
  @media (max-width: 1199px) and (min-width: 1100px) {
    .accordion-body-custom .w-700,
    .accordion-body-custom .w-600 {
      width: calc(100% + 70px) !important;
      max-width: calc(100% + 70px) !important;
    }
  }
  
  /* At 1100px: reduce further */
  @media (max-width: 1099px) and (min-width: 1068px) {
    .accordion-body-custom .w-700,
    .accordion-body-custom .w-600 {
      width: calc(100% + 60px) !important;
      max-width: calc(100% + 60px) !important;
    }
  }
  
  /* Reset margins for accordion images below 1068px */
  @media (max-width: 1067px) {
    .accordion-body-custom .col-12.col-md-6:last-child > div {
      margin-left: 0 !important;
      margin-right: 0 !important;
    }
  }
  
  @media screen and (max-width: 1920px) {
    .custom-padding-left {
      padding-left: 132px;
    }
  
    .h-screen-banner-full {
      height: auto;
      /* Cho phép nội dung co giãn ở màn nhỏ */
      padding-bottom: 1rem;
      background: #ffffff !important;
    }
  
    .h-screen-banner-full::before {
      display: none !important;
    }
  
    /* Giữ overlay đen cho trang myatn-tech */
    .banner-dark-overlay {
      background: transparent !important;
    }
  
    .banner-dark-overlay::before {
      display: block !important;
    }
    .custom-padding {
      padding: 2.5rem;
    }
  }
  
  @media screen and (max-width: 1920px) {
    .mega-menu {
      width: 50%;
      max-width: 960px;
    }
  }
  
  @media screen and (max-width: 1600px) {
    .mega-menu {
      width: 55%;
      max-width: 880px;
    }
  }
  
  @media screen and (max-width: 1600px) {
    .mega-menu {
      width: 55%;
      max-width: 880px;
    }
    
    .mega-menu-parent {
      width: 280px;
    }
    
    .mega-sub-menu-parent {
      width: 280px;
    }
    
    .mega-sub-menu-parent ul {
      min-width: 130px;
    }
  }
  
  @media screen and (max-width: 1440px) {
    .mega-menu {
      left: 50%;
      transform: translateX(-50%);
      width: 60%;
      max-width: 864px;
    }
    
    .mega-menu-parent {
      width: 260px;
    }
    
    .mega-sub-menu-parent {
      width: 260px;
    }
    
    .mega-sub-menu-parent ul {
      min-width: 130px;
    }
    .bg-banner {
      width: 100%;
      max-width: 1440px;
      height: auto;
      min-height: 6px;
    }
    .mt--50 {
      margin-top: 30px;
    }
    .mb-4 {
      margin-bottom: 0.5rem;
    }
    .custom-padding {
      padding: 0rem;
      padding-left: 3rem;
    }
    .line-banner {
      z-index: 10;
      margin-top: -10px;
    }
    .mt-100 {
      margin-top: 50px;
    }
  }
  
  @media screen and (max-width: 1280px) {
    .mega-menu {
      width: 70%;
      max-width: 896px;
    }
    
    .mega-menu-parent {
      width: 240px;
    }
    
    .mega-sub-menu-parent {
      width: 240px;
    }
    
    .mega-sub-menu-parent ul {
      min-width: 130px;
    }
  
    .toggle-chabot {
      bottom: 15px;
    }
  
    .custom-padding-left {
      padding-left: 15px;
    }
  
    .heading-ecosystem {
      margin-top: 1rem;
      /* Giảm xuống từ mt-160 (~10rem) */
    }
  
    .container.bg-banner {
      padding-left: 3rem;
      padding-right: 3rem;
    }
  
    .custom-padding-left {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  
    .col-lg-6:last-child {
      justify-content: center;
    }
  
    .col-lg-6 img.mt--80 {
      margin-top: -10px;
      /* nhẹ hơn -80 để tránh tràn */
      max-width: 100%;
      height: auto;
  
      object-fit: cover;
  
      position: relative;
      z-index: 2;
    }
    .max-w-495 {
      max-width: 55%;
    }
  
    .solution-section .solution-tagline {
      padding: 0 0.75rem;
    }
  
    .compatibility-section .compatibility-text {
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
    }
  
    .compatibility-section .compatibility-tagline {
      padding: 0 0.75rem;
    }
  }
  
  @media screen and (max-width: 1283px) {
    .contact-section .text-center.text-white {
      margin-top: 3rem;
    }
    .pad-left {
      padding-left: 3rem;
    }
  }
  
  @media screen and (max-width: 1024px) {
    .mega-menu {
      width: 80%;
      max-width: 819px;
    }
    
    .mega-menu-parent {
      width: 220px;
    }
    
    .mega-sub-menu-parent {
      width: 220px;
    }
    
    .mega-sub-menu-parent ul {
      min-width: 130px;
    }
  
    /* Ẩn thanh địa chỉ dưới 1024px */
    .bg-midnight.large-screen,
    .bg-boldblue.large-screen {
      display: none !important;
    }
  
    /* Dưới 1024px, luôn hiển thị mobile menu */
    .small-screen {
      display: block !important;
    }
  
    .header.small-screen {
      z-index: 1000;
      position: fixed;
      top: 0;
      width: 100%;
      background-color: white;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
  
    .large-screen {
      display: none !important;
    }
    
    /* Đảm bảo header menu desktop không hiển thị */
    .header-menu.large-screen {
      display: none !important;
    }
  
    /* Thêm padding-top cho body/main để tránh nội dung bị che bởi fixed header */
    body > main {
      padding-top: 80px;
    }
  
    /* Điều chỉnh banner section để hiển thị đúng với fixed header */
    .h-screen-banner-full {
      margin-top: 0;
      padding-top: 80px;
      min-height: calc(100vh - 80px);
    }
  
    .h-screen-banner-full::before {
      top: 0;
      height: 100%;
    }
  
    .h-screen-banner-full > img {
      top: 0 !important;
      height: 100% !important;
    }
  
    .h-screen-banner-full .no-wrap {
      white-space: normal !important;
    }
  
    .h-260 {
      height: auto;
    }
  
    .bg-lightblue.sticky-content {
      position: unset;
    }
  
    .services-banner {
      background-size: cover;
    }
  
    .image-curtain .content {
      max-width: unset;
      width: 100%;
    }
  
    .image-curtain .content-right {
      margin-left: 0;
    }
  
    .image-curtain .content-left {
      margin-right: 0;
    }
  
    .long-image.position-absolute {
      position: unset !important;
      height: auto;
      width: 100%;
    }
  
    .custom-padding-left {
      padding-left: 15px;
    }
  
    .col-lg-5.text-end {
      text-align: center !important;
    }
  
    .col-lg-5 img {
      width: 90%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
    }
  
    .col-lg-6 h2,
    .col-lg-6 p,
    .col-lg-6 ul,
    .col-lg-6 h5 {
      max-width: 100% !important;
    }
  
    .mt-110 {
      margin-top: 2rem !important;
    }
  
    .mt-50 {
      margin-top: 2rem !important;
    }
  
    .max-w-400,
    .max-w-495 {
      max-width: 100% !important;
    }
  
    section.position-relative.text-white.overflow-hidden.h-screen-banner-full
      > img {
      content: url("/assets/front/images-atn/bg-banner-full.jpg");
    }
  
    .team-scroll-mobile .row {
      flex-wrap: nowrap !important;
    }
  
    .team-scroll-mobile .col-md-6 {
      flex: 0 0 auto;
      width: 80%;
      /* Hoặc width: 280px tuỳ bạn */
      padding-right: 16px;
    }
    .mt--50 {
      margin-top: 0px;
    }
    .pad-left {
      padding-left: 2rem;
    }
    .mt-100 {
      margin-top: -50px;
    }
    .pricing-section .custom-card1,
    .pricing-section .custom-card2 {
      min-height: 280px !important;
    }
    .pricing-section .text-3xxl {
      font-size: 2rem !important;
    }
  
    .pricing-section .text-2xl {
      font-size: 1.25rem !important;
    }
    .pricing-section .text-lg {
      font-size: 1rem !important;
    }
  
    .pricing-section .text-x {
      font-size: 0.9375rem !important;
    }
    .custom-card1,
    .custom-card2 {
      padding: 1.5rem 1rem;
      min-height: 480px; /* tăng chiều cao nền */
    }
  
    .solution-section .solution-tagline .line-title {
      display: none;
    }
  
    .solution-section .solution-tagline {
      flex-direction: column;
      align-items: flex-start !important;
      padding: 0 !important;
    }
  
    .solution-section .solution-tagline .line-title {
      margin-bottom: 1rem;
    }
  
    .solution-section .solution-tagline p,
    .solution-section .max-w-420 {
      max-width: 100% !important;
    }
  
    .solution-section .list-dotted {
      padding-left: 1.25rem;
    }
  
    .compatibility-section .compatibility-text {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
  
    .compatibility-section .compatibility-tagline .line-title {
      display: none;
    }
  
    .compatibility-section .compatibility-tagline {
      flex-direction: column;
      align-items: flex-start !important;
      padding: 0 !important;
    }
  
    .compatibility-section .compatibility-tagline p,
    .compatibility-section .max-w-245 {
      max-width: 100% !important;
    }
  
    .compatibility-section .compatibility-list {
      padding-left: 1.25rem;
    }
  }
  
  @media screen and (max-width: 900px) {
    .hover-img-scale:hover {
      transform: translateY(0px);
    }
  
    .card-bar-expand {
      height: 100%;
    }
  
    .card-bar {
      color: white;
    }
    .pricing-section.d-flex {
      gap: 0 !important;
    }
  
    .pricing-section .d-flex {
      gap: 0 !important;
      row-gap: 0 !important;
      column-gap: 0 !important;
    }
  
    .pricing-section [class*="gap-"] {
      gap: 0 !important;
    }
  
    .pricing-section .mt-3,
    .pricing-section .mt-5,
    .pricing-section .mb-3,
    .pricing-section .mb-4,
    .pricing-section .p-4,
    .pricing-section .p-2 {
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      padding: 0 !important;
    }
  
    .pricing-section ul {
      margin-bottom: 0 !important;
    }
    .pricing-section .text-lg {
      font-size: 0.75rem !important;
    }
  }
  
  @media screen and (max-width: 768px) {
    .mega-menu {
      left: 50% !important;
      transform: translateX(-50%) !important;
      width: 95% !important;
      max-width: 100% !important;
    }
  
    .mega-menu .container {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  
    .mega-menu-parent {
      width: 100% !important;
    }
  
    body {
      --text-sm: 10px;
      --text-md: 14x;
      --text-lg: 16px;
      --text-xl: 18px;
      --text-2xl: 20px;
      --text-3xl: 24px;
    }
  
    h2 {
      font-size: 24px;
    }
  
    .container {
      padding: 0 10px;
    }
  
    .video-home .banner {
      margin-top: 0px;
      object-fit: cover;
    }
  
    .w-half {
      width: 100%;
    }
  
    .slick-content {
      bottom: 0;
    }
  
    .tab-pane.position-absolute {
      position: unset !important;
    }
  
    .h-220,
    .h-200 {
      height: auto;
    }
  
    .image-curtain {
      min-height: 70vh;
    }
  
    .col-1 {
      display: none;
    }
  
    .item-icon {
      width: 120px;
      height: auto;
      right: 10px;
    }
  
    .custom-card2 {
      flex-direction: column !important;
    }
  
    .custom-card2 .card-icon {
      order: 0;
    }
  
    .custom-card2 .card-title {
      order: 1;
    }
  
    .custom-card2 .card-content {
      order: 2;
    }
  
    .py-5 {
      padding-top: 1rem;
      padding-bottom: 1rem;
    }
    section.spacing-section {
      margin-top: 60px !important;
    }
    .hide-on-mobile {
      display: none !important;
    }
    .copyright {
      font-size: 12px;
    }
    .custom-padding {
      padding: 2rem;
    }
    .ms-5 {
      margin-left: 0rem !important;
    }
  
    .compatibility-section {
      padding-top: 3rem;
      padding-bottom: 3rem;
    }
  
    .compatibility-section .container {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  
    .sovereign-section .container {
      padding-left: 0.75rem;
      padding-right: 0.75rem;
    }
  
    .sovereign-section .sovereign-title {
      margin-bottom: 1.5rem !important;
    }
  
    .sovereign-row {
      gap: 0.75rem;
    }
  }
  
  @media screen and (max-width: 500px) {
    .bg-footer .social-footer {
      justify-content: center;
    }
  
    .center-slick .slick-slide {
      opacity: 1;
      transform: scale(1);
    }
  
    .small-screen-tab {
      display: block;
    }
  
    .small-screen-tab .nav-tabs .nav-item .tab-link.active {
      background-color: var(--var-color-lightblue);
      color: white;
      border-radius: 12px;
    }
  
    .large-screen-tab {
      display: none;
    }
  
    .text-x span {
      padding-left: 0.7rem;
      /* hoặc 0.5rem tùy */
    }
    .mt-143 {
      margin-top: 90px;
    }
    .text-lgx {
      font-size: 12px;
    }
  }
  
  @media (max-width: 678px) {
    .accordion-button-custom {
      padding: 24px 20px;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
  
    .accordion-button-custom .header-text-content {
      gap: 12px;
    }
  
    .accordion-button-custom .text-40 {
      font-size: 24px !important;
      line-height: 1.3 !important;
    }
  
    .accordion-button-custom .text-26 {
      font-size: 18px !important;
      line-height: 1.4 !important;
    }
  
    .accordion-button-custom .text-lg {
      font-size: 16px !important;
      line-height: 1.4 !important;
    }
  
    .accordion-button-custom .w-340,
    .accordion-button-custom .w-md-340,
    .accordion-button-custom .w-sm-100 {
      width: 100% !important;
      max-width: 100% !important;
    }
  }
  
  @media (max-width: 678px) {
    .solution-image-wrapper {
      margin-top: 2rem;
    }
  
    .mb-5.d-flex.flex-column.gap-32px.align-items-center.text-center {
      margin-bottom: 0 !important;
    }
  }
  
  /* Responsive styles for h-screen-banner-full */
  @media (max-width: 400px) {
    .h-screen-banner-full h1 {
      font-size: 40px !important;
    }
    .h-screen-banner-full
      a.bg-red-orange.px-4.py-3.rounded-pill.fw-semibold.text-white.d-inline-flex.align-items-center.gap-2.mt-4 {
      font-size: 14px !important;
    }
  }
  
  /* Responsive styles for CTA buttons */
  @media (max-width: 767.98px) {
    .cta-buttons {
      flex-direction: column;
      align-items: center;
      gap: 24px !important;
    }
  
    .cta-buttons a.max-w-378 {
      flex: 1 1 auto;
      max-width: 100%;
      width: 100%;
    }
  }
  
  /* Responsive styles for problems section */
  @media (min-width: 768px) {
    .problems-list-container {
      padding: 3rem;
      padding-bottom: 140px;
    }
  
    .problems-bg-1 {
      max-width: 25%;
      opacity: 1;
    }
  
    .problems-bg-2 {
      max-width: 25%;
      opacity: 1;
    }
  }
  
  /* Responsive styles for ad banner modal */
  @media (min-width: 769px) {
    .ad-banner-wrapper {
      flex-direction: row;
      align-items: flex-start;
      justify-content: center;
      padding-top: calc((100vh - 85vh) / 2);
    }
  
    .ad-banner-link {
      flex-shrink: 0;
      position: relative;
    }
  
    .ad-banner-close {
      position: absolute;
      top: 0;
      right: -55px;
      margin-left: 15px;
      margin-top: 0;
    }
  }
  
  @media (max-width: 768px) {
    .ad-banner-wrapper {
      flex-direction: column;
      align-items: center;
    }
  
    .ad-banner-link {
      position: relative;
    }
  
    .ad-banner-close {
      position: absolute;
      top: 5px;
      right: 5px;
      width: 14px;
      height: 14px;
      z-index: 20;
      padding: 0.5rem;
    }
  
    .ad-banner-close i {
      font-size: 16px;
    }
  }
  @media (max-width: 767.98px) {
    .step-number {
      transform: translateY(-4px);
    }
  }
  