/* ============================
   XL - max-width: 1399.98px
   ============================ */
@media (max-width: 1399.98px) {
  .card-section__img-box {
    width: unset;
  }

  .post-content__growth-img img {
    max-height: 500px;
  }
}

/* ============================
   LG - max-width: 1199.98px
   ============================ */
@media (max-width: 1199.98px) {

  .error-section .error-section__img {
    min-height: 500px;
    max-height: 500px;
    min-width: 500px;
    max-width: 500px;
  }

  .error-section {
    padding: 140px 0;
  }

  .modal-dialog {
    max-width: 85%;
  }

  .modal-body {
    padding: 40px;
    padding-top: 0px;
  }
  .contact-us-aside__contact a {
    padding: 20px;
    font-size: var(--font-size-base)
  }

  .post-content__counter-header-no h2 {
    font-size: 30px;
  }

  .post-content .card-section__list-box ul li {
    font-size: var(--font-size-base);
  }

  .blog-list-container,
  .project-list-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-us__content-body-icon {
    min-height: 50px;
    min-width: 50px;
    padding: 10px;
  }

  .chart-box {
    padding: 20px;
    margin: unset;
    width: 100%;
  }

  .what-we-do__box-image {
    top: -45px;
    right: -45px;
  }

  .pricing-plan__card {
    padding: 30px;
  }

  .pricing-plan__card-body {
    padding-top: 20px;
  }

}

/* ============================
   MD-LG - max-width: 1024px
   ============================ */
@media (max-width: 1024px) {

  .post-social-sharing {
    text-align: start;
    margin-top: 5px;
  }

  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-choose-us {
    padding: 100px 20px;
  }

  .watch-story__box {
    padding: 80px 20px 40px;
  }

  .watch-story__ticker-content span {
    font-size: 28px;
  }

  .pricing-plan__card-header,
  .pricing-plan__card-price,
  .pricing-plan__card-btn {
    margin-bottom: 20px;
  }

  .blog__card,
  .project-card,
  .service-card {
    min-height: 350px;
  }

  .blog__card-content,
  .project-card__content,
  .service-card__content {
    padding: 20px 10px;
  }

  .footer-box {
    padding: 100px 20px;
  }

  .footer-box__links-list {
    margin-left: unset;
  }
}

/* ============================
   MD - max-width: 991.98px
   ============================ */
@media (max-width: 991.98px) {

  /* Stacked under the Growth Strategy card, the 500px min-height turned this
     photo into a full-screen wall the user had to scroll past. */
  .post-content__growth-img img {
    min-height: unset;
    height: 300px;
  }

  .special-btn button,
  .special-btn a {
    font-size: 15px;
    padding: 13px 48px 13px 18px;
    border-radius: 10px;
  }

  .special-btn button i,
  .special-btn a i {
    width: 34px;
    height: 34px;
    font-size: 18px;
    border-radius: 6px;
  }

  .error-section .error-section__img {
    min-height: 400px;
    max-height: 400px;
    min-width: 400px;
    max-width: 400px;
  }

  .error-section {
    padding: 80px 0;
  }

  .modal-dialog {
    max-width: 95%;
  }

  .modal-body {
    padding: 30px;
  }

  .modal-dialog .our-service__header {
    margin-bottom: 20px;
  }

  /* Stack columns vertically */
  .modal-body .col-6 {
    width: 100%;
  }

  /* Hide contact info block on tablet — keeps modal compact */
  .modal-body .contact-us__info-list {
    display: none;
  }

  .carousel {
    height: 70vh;
    margin-top: 20px;
  }

  .carousel .list .item .content {
    top: 15%;
    padding-right: 10%;
  }

  .carousel .list .item .content .title,
  .carousel .list .item .content .topic {
    font-size: 3.5em;
  }

  .thumbnail {
    display: none;
  }

  .arrows {
    top: 85%;
    right: unset;
    left: 50%;
    transform: translateX(-50%);
    width: unset;
    z-index: 1;
  }

  .arrows button {
    width: 45px;
    min-width: 45px;
    height: 45px;
    min-height: 45px;
    font-size: large;
  }

  @keyframes hideCarouselImage {
    from {
      top: 0;
      border-radius: 30px !important;
      left: unset;
    }

    to {
      width: unset;
      height: unset;
      opacity: 0;
      filter: blur(20px);
      border-radius: 30px !important;
      left: unset;
      bottom: 0;
    }
  }

  .carousel.prev .list .item:nth-child(2) {
    animation: hideCarouselImage 1s linear 1 forwards;
  }


  .post-content__counter-header-no h2 {
    font-size: 46px;
    margin-bottom: 20px;
  }

  .post-content h2,
  .post-content__faq h2 {
    font-size: 36px;
  }

  .contact-us-aside__contact a {
    font-size: var(--font-size-md);
    padding: 20px 40px;
    ;
  }

  .our-approuch__card-text,
  .our-approach .our-approuch__card-text {
    margin-bottom: 30px;
  }

  .home-section {
    padding: 80px 20px;
  }
  .our-service__header {
    width: 100%;
    margin-bottom: 40px;
  }

  .our-service__navigation-tab button,
  .projects-filter__tab button {
    padding: 10px 15px;
  }

  .our-service__card-section-2 {
    gap: 20px;
  }

  .our-service__card {
    padding: 30px;
  }

  .our-feature__card {
    padding: 30px;
    justify-items: space-between;
  }

  .card-section__list-box ul li span {
    max-width: 20px;
    max-height: 20px;
  }

  .our-feature__card-img {
    height: 150px;
  }

  .what-we-do__box-1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }


  .footer-box__header .footer-box__header-title h2 {
    font-size: 70px;
  }

  .footer-box {
    padding: 80px 20px
  }

  .footer-box__header {
    justify-content: center;
  }

  header {
    margin: unset;
  }

  .navbar {
    border-radius: unset;
    margin: unset;
    padding: 20px 10px;
  }

  .navbar__menu-item a {
    display: flex;
    padding: 10px 5px;
    gap: 5px;
  }

  .navbar__menu-list {
    position: absolute;
    top: 100%;
    left: -100%;
    z-index: -99999;
    flex-direction: column;
    align-items: start !important;
    background: var(--bg-color-1);
    transition: var(--transition-fast);
    width: 60%;
    height: 100vh;
    padding: 10px;
    padding-top: 20px;
    visibility: hidden;
    opacity: 0;
  }

  .navbar__menu-list.--active {
    left: 0;
    width: 40%;
    z-index: 10;
    visibility: visible;
    opacity: 1;
  }

  .navbar__menu-item:hover a {
    color: var(--color-white-1);
  }

  .submenu ul {
    display: none;
    position: relative;
    border-radius: unset;
    background: unset;
    gap: 5px;
    transition: none;
    transform: none;
    opacity: 1;
  }

  /* Disable CSS hover for submenu on mobile — JS toggle takes over */
  .submenu:hover ul {
    display: none;
  }

  .submenu:hover>a>i {
    transform: none;
  }

  .submenu.--open>ul {
    top: 0;
    left: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none;
    position: relative;
    background: var(--bg-color-1);
    border-radius: unset;
  }

  header .submenu.--open>ul {
    max-height: 220px;
    overflow-y: scroll;
  }

  /* Rotate chevron when open */
  .submenu.--open>a i {
    transform: rotate(180deg);
  }

  .submenu>a i {
    transition: transform 0.3s ease-in-out;
  }

  .navbar__menu-item a:hover {
    color: var(--color-white-1);
  }

  .submenu ul>li>a {
    padding: 5px 20px;
  }

  /* switcher stays visible next to the burger — it is the only action left there */
  .navbar__actions {
    gap: 10px;
    margin-left: auto;
    margin-right: 10px;
  }

  .lang-switcher__toggle {
    padding: 8px 12px;
  }

  .page-banner {
    margin-top: 40px;
  }
}

/* ============================
   SM - max-width: 767.98px
   ============================ */
@media (max-width: 767.98px) {

  /* --------------------------------------------------------------
     Phone sizing.

     Measured on a 408x728 viewport (Nexus 5X): the home page ran to
     ~20 screens and single images ate up to 92% of the fold. Every
     value below is a cap, not a redesign — the desktop layout is
     untouched.
     -------------------------------------------------------------- */

  /* was aspect-ratio 1/1.81 — a portrait crop that filled the whole fold */
  .what-we-do__img-box img {
    aspect-ratio: 4 / 3;
  }

  /* hard-coded 450px on a 728px screen */
  .our-projects__card {
    height: 300px !important;
  }

  .blog__card,
  .project-card,
  .service-card {
    min-height: 320px;
  }

  .our-feature__card-img {
    height: 200px;
  }

  /* same size as the section heading above it */
  .our-feature__card-text h3 {
    font-size: 22px;
  }

  /**
   * Images whose container has no height of its own: without a cap they render
   * at the file's own proportions, so a tall upload becomes a full-screen wall.
   */
  .why-choose-us__img img,
  .post-content__banner img,
  .post-content__img img,
  .post-content__challenge-img img,
  .post-content__growth-img img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
  }

  /**
   * Project filter on a phone.
   *
   * Wrapped and centred, six categories became six ragged rows of different
   * widths — a third of the screen before any work was visible. One horizontally
   * scrollable row of chips reads as a filter bar, keeps the page short, and
   * shows at a glance that there is more to the right.
   */
  .projects-filter__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    /* full-bleed strip, but the first and last chip still clear the edge */
    padding: 2px 20px 12px;
    margin: 0;
    scrollbar-width: none;
  }

  .projects-filter__list::-webkit-scrollbar {
    display: none;
  }

  .projects-filter__tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .projects-filter__tab a,
  .projects-filter__tab button {
    padding: 10px 16px;
    font-size: var(--font-size-sm);
    border-radius: var(--border-radius-3);
  }

  .see-more__text {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .slider-nav {
    width: 42px;
    height: 42px;
  }

  .slider-nav i {
    font-size: 18px;
  }

  .slider-nav--prev {
    left: 10px;
  }

  .slider-nav--next {
    right: 10px;
  }

  .modal-dialog {
    max-width: 100%;
    margin: 10px;
  }

  .modal-content {
    border-radius: var(--border-radius-4);
    min-height: unset;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-dialog .our-service__header h2 {
    font-size: 22px;
  }

  .modal-dialog textarea {
    min-height: 100px;
  }

  .modal-body .row.g-5 {
    --bs-gutter-y: 1rem;
  }

  .navbar__menu-list.--active {
    width: 60%;
  }

  .carousel {
    height: 60vh;
    margin-top: unset;
  }

  .carousel .list .item img {
    border-radius: unset;
  }

  .carousel .list .item .content {
    top: 50%;
    left: 50%;
    max-width: 90%;
    transform: translate(-50%, -50%);
  }

  .carousel .list .item .content .title,
  .carousel .list .item .content .topic {
    font-size: 2.5em;
    text-wrap: wrap;
  }

  .carousel .list .item .content .description {
    font-size: var(--font-size-sm);
    line-height: 1.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel .list .item .content .author,
  .carousel .list .item .content .title,
  .carousel .list .item .content .topic,
  .carousel .list .item .content .description,
  .carousel .list .item .content .buttons {
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .carousel .list .item .content .buttons {
    grid-template-columns: repeat(2, 200px);
    margin-top: 20px;
  }

  .arrows {
    z-index: 1;
    width: unset;
  }

  .blog-list-container,
  .project-list-container {
    margin-top: unset;
    grid-template-columns: repeat(1, 1fr);
  }

  .contact-us__info-img img {
    max-width: 120px;
  }

  .post-content h2,
  .post-content__faq h2 {
    font-size: 28px;
  }

  .contact-us__info-hotline {
    flex-wrap: nowrap;
  }

  .page-banner__body .bread-crumbs {
    gap: 5px;
  }

  .post-content .post-content__strategies-card,
  .post-content__growth-card,
  .post-content__counter {
    padding: 20px;
  }

  .About-us-content .page-banner,
  .services-content .page-banner,
  .contact-us-content .page-banner,
  .blog-single-content .page-banner,
  .service-single-content .page-banner,
  .error-content .page-banner,
  .blog-list-content .page-banner {
    padding: 80px 0px;
    border-radius: unset;
    margin-top: unset;
  }

  .why-choose-us {
    border-radius: unset;
  }

  .content {
    margin: unset;
  }

  header {
    top: 0;
  }

  .page-banner__slider {
    margin-top: 40px;
  }

  .page-banner {
    padding: 40px 20px;
  }  .home-section {
    padding: 50px 0;
  }

  .our-feature__card-img {
    height: 300px;
  }

  .what-we-do__box-1 {
    grid-template-columns: repeat(1, 1fr);
  }

  .what-we-do__footer {
    margin-top: 15px;
  }


  /* 400px was 55% of a 728px phone screen — one card per fold, and the caption
     sat below the fold on the card above it */
  .blog__card,
  .project-card,
  .service-card {
    min-height: 320px;
  }

  .footer-box__header .footer-box__header-title h2 {
    font-size: 56px;
  }


  .why-choose-us::after,
  .why-choose-us::before {
    width: 100px;
    height: 100px;
  }

  .watch-story__box::before,
  .watch-story__box::after {
    width: 100px;
    height: 100px;
  }

  .watch-story__play-btn {
    width: 90px;
    height: 90px;
    font-size: 24px;
  }

  .services-list {
    grid-template-columns: repeat(1, 1fr);
  }

  .gallery-image-modal .modal-dialog {
    max-width: 100%;
  }

  .gallery-image-modal .modal-body {
    padding: 0 10px 10px;
  }

  .gallery-image-modal .modal-body img {
    max-height: 90vh;
  }

}

/* ============================
    XS - max-width: 575.98px
   ============================ */
@media (max-width: 575.98px) {

  .modal-dialog {
    margin: 5px;
  }

  .modal-body {
    padding: 30px 15px;
  }

  .gallery-image-modal .modal-body {
    padding: 0 5px 5px;
  }

  .gallery-image-modal .modal-body img {
    max-height: 95vh;
  }

  .modal-dialog .our-service__header h2 {
    font-size: var(--font-size-md);
  }

  .modal-body .form-group.col-md-6 {
    width: 100%;
  }

  .carousel {
    height: 60vh;
    border-radius: unset;
    margin-top: unset;
  }

  .carousel .list .item .content .title,
  .carousel .list .item .content .topic {
    font-size: 2em;
  }

  .carousel .list .item .content .description {
    -webkit-line-clamp: 2;
  }

  .post-content h2,
  .post-content__faq h2 {
    font-size: 22px;
  }

  .contact-us-form {
    padding: 20px;
  }

  .contact-us .our-service__header {
    margin-bottom: 10px;
  }

  .how-it-works__card-list {
    grid-template-columns: repeat(1, 1fr);
  }

  .content {
    overflow: hidden;
  }

  .home-content {
    margin: 0px;
  }

  .page-banner {
    border-radius: unset;
    margin-top: unset;
  }  .our-service__navigation-tab button,
  .projects-filter__tab button {
    font-size: var(--font-size-sm);
    padding: 10px 8px;
  }

  .our-service__navigation-list,
  .projects-filter__list {
    gap: 15px 10px !important;
  }

  .tab-icon {
    max-width: 16px;
  }

  .our-feature__card {
    gap: 10px !important;
  }

  .our-projects-slider {
    padding: 0px 20px
  }

  .why-choose-us {
    border-radius: unset;
    padding: 50px 20px;
  }


  .footer-box {
    padding: 80px 0;
  }

  .footer-box__header .footer-box__header-title h2 {
    font-size: 36px;
  }

  .footer-box__header .footer-box__contact h3,
  .footer-box__header .footer-box__contact h2 {
    font-size: var(--font-size-md);
  }

  .footer-box__links-list {
    gap: 15px;
  }


  .watch-story__box {
    padding: 60px 15px 30px;
    border-radius: unset;
  }

  .watch-story__play-btn {
    width: 80px;
    height: 80px;
    font-size: 20px;
  }

  .watch-story__ticker-box {
    --gap: 20px;
  }

  .watch-story__ticker-content span {
    font-size: 20px;
    gap: 8px;
  }

  .why-choose-us .why-choose-us__img-badge {
    top: 60%;
  }

  .why-choose-us .why-choose-us__img-badge i {
    font-size: 30px;
  }

}

/* Price Builder — ported with the page from the design's responsive.css */
@media (max-width: 575.98px) {
  .price-builder {
    padding: 30px 0 80px;
  }

  .price-builder__topbar {
    flex-direction: column-reverse;
    gap: 14px;
    margin-bottom: 40px;
  }

  .price-builder__progress {
    width: 100%;
  }

  .price-builder__option {
    padding: 16px 18px;
    gap: 12px;
  }
}

/* ============================
   Project detail preview - SM
   ============================ */
@media (max-width: 767.98px) {

  .site-preview__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .site-preview__devices,
  .site-preview__actions {
    justify-content: center;
  }

  .site-preview__device span,
  .site-preview__load span,
  .site-preview__open span {
    font-size: 13px;
  }

  .site-preview__stage {
    padding: 10px;
  }

  /* a phone frame inside a phone screen is just a smaller phone */
  .site-preview[data-device="tablet"],
  .site-preview[data-device="mobile"] {
    --site-preview-width: 100%;
  }

  .project-facts {
    padding: 24px;
  }

  .project-facts__grid {
    grid-template-columns: 1fr;
  }

}
