* {
  box-sizing: border-box;
}

@media only screen and (max-width: 768px) {
  .carousel-images #banner-1 {
    background-image: url("./img/Nen_Mobile_367x170.webp");
    background-size: contain;
    background-repeat: no-repeat;
  }

  .carousel-images #banner-2 {
    background-image: url("./img/Banner_Mobile.webp");
    background-size: contain;
    background-repeat: no-repeat;
  }

  .carousel-images #banner-3 {
    background-image: url("./img/Banner2_Mobile.webp");
    background-size: contain;
    background-repeat: no-repeat;
  }
  .banner-carousel {
    position: relative;
    width: 100%;
    height: calc(38vh - 34px) !important;
    overflow: hidden;
    box-shadow: 0 4px 8px rgb(0, 0, 0, 0.2);
  }
  .first-section {
    padding-bottom: 26px !important;
    padding-top: 23px !important;
  }
  .first-section .container {
    flex-direction: column-reverse;
  }

  .first-section .container .content {
    padding-left: 0;
    width: -webkit-fill-available;
    position: relative;
  }

  .homepage-second-section {
    margin-bottom: 16px;
  }

  #hinhray {
    display: none;
  }

  #hinhtra {
    display: none;
  }

  .first-section .container .content p {
    font-size: 10px;
  }

  .content h3 {
    text-align: center;
  }

  .picture.row {
    width: -webkit-fill-available;
    position: relative;
  }

  /* .content div {
    position: absolute;
    bottom: -135%;
    left: 43%;
  } */

  .pic-1,
  .pic-2 {
    display: none;
  }

  .pic-3 {
    display: none;
    align-items: center;
    width: -webkit-fill-available !important;
    border-radius: 30px !important;
  }

  .view-more {
    padding: 7px 8px;
    font-size: 12px;
  }

  .index_video {
    width: 730px;
    height: 411px;
  }

  .agent-pic-1 {
    border-radius: 50%;
    background-color: #ffffff;
    width: 6.625rem;
    height: 6.625rem;
    margin: 0 34px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .agent-pic-1 img {
    width: 1.313rem;
    height: 1.625rem;
  }

  #carousel-vp {
    height: 170px;
    width: 348px;
  }

  .cCarousel-item {
    width: 107px;
    height: 158px;
  }

  .cCarousel-item img {
    width: 70%;
    min-height: 78px;
    margin: 2px;
  }

  .infos .text-desc h5,
  .infos .text-desc p {
    font-size: 10px;
    margin: 0;
    text-align: center;
  }

  .infos .text-desc p {
    font-weight: 700;
    color: var(--textTitle);
  }

  .cCarousel-item .infos .text-desc {
    padding: 0 10px;
  }

  .cCarousel-item .infos a {
    font-size: 8px;
    padding: 0;
  }

  #cCarousel {
    padding: 0;
  }

  #cCarousel #prev {
    left: -32px;
  }

  #cCarousel #next {
    right: -27px;
  }

  #cCarousel .arrow {
    width: 23px;
    height: 22px;
    font-size: 8px;
  }

  .cCarousel-item .infos a button {
    font-size: 10px;
    padding: 4px 0;
  }

  .second-carousel-homepage {
    height: 229px;
  }

  .homepage-second-section {
    height: 227px;
  }

  .homepage-second-section h3 {
    font-size: 20px;
  }

  .gradient-tea {
    flex-direction: column;
  }
  .third-section {
    padding-bottom: 30px !important;
  }
  .third-section .container .text-content h1 {
    font-size: 21px;
    text-align: center;
  }

  .text-content p {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .text-content {
    margin: 0;
  }

  .pic-4 {
    width: -webkit-fill-available;
    width: -moz-available;
    height: 391px;
    border-radius: 5px;
  }

  .agent-pic-1 {
    width: 48px;
    height: 48px;
    margin: 0 11px 0 0;
  }

  .agent-banner {
    height: 75px;
    border-radius: 10px;
  }

  .agent-content h3 {
    font-size: 11px;
  }

  .four-section-homepage {
    padding-right: 12px;
    padding-left: 12px;
  }

  .text-title-h1 {
    font-size: 21px;
  }

  .third-section h1 {
    font-size: 21px;
    text-align: center;
    padding-left: 0;
  }

  .user_img img,
  .user_img {
    width: 61.11px !important;
    height: 61.11px !important;
  }

  .user_img {
    top: auto;
    left: -29px;
  }

  .card-container {
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-end;
  }

  .profile_card {
    display: inline-flex;
    width: 94%;
    height: auto;
    flex-direction: row;
    border-radius: 6px;
    padding: 3%;
    margin-top: 20px;
  }

  .user_details {
    padding-left: 26px !important;
  }

  .user_details h5 {
    font-size: 14px;
  }

  .user_details p,
  .user_details a,
  .user_details {
    margin: 0;
    padding: 0;
  }

  .user_details a {
    font-size: 9px;
    margin: 4px 12px;
    padding: 2px 8px;
  }

  .user_img img {
    border: 3px solid var(--primary);
  }

  .user_details span,
  .user_details p {
    font-size: 13px;
    letter-spacing: normal;
  }

  .four-section-homepage {
    padding-bottom: 14px;
  }

  .customer-tab-row {
    margin-top: -17px;
  }

  .tab-btn {
    font-size: 16px !important;
  }

  .picture-news .container h2 {
    font-size: 21px;
    padding-bottom: 20px;
  }

  .mb-4 {
    margin-bottom: 0 !important;
  }

  .fifth-section {
    padding-bottom: 0;
  }

  .second-carousel-homepage div .text-bold {
    color: white;
    font-weight: 700;
    font-size: 14px;
  }

  .pic-content {
    order: -1;
    align-self: center;
  }

  /* .text-content h1 {
        position: absolute;
        bottom: -89%;
        padding-left: 22%;
    } */

  .button_tht {
    padding-right: 44%;
  }

  .card {
    width: 198px !important;
  }

  /* .card-img {
    width: 196px !important;
    height: none !important;
  } */

  /* .card-img img {
    width: 196px !important;
  } */

  .content h3 {
    font-size: 21px !important;
  }

  .view-more-button {
    display: flex;
    justify-content: center;
  }
}

@media only screen and (max-width: 480px) {
  .banner-carousel {
    position: relative;
    width: 100%;
    height: calc(26vh - 43px) !important;
    overflow: hidden;
    box-shadow: 0 4px 8px rgb(0, 0, 0, 0.2);
  }

  .dot {
    width: 5px;
    height: 5px;
  }

  /* .first-section{
    margin-bottom: 60px !important;
  } */
  .view-more-button {
    display: flex;
    justify-content: center;
  }

  .video {
    padding-top: 70px;
    display: flex;
    justify-content: center;
  }

  .index_video {
    width: 366px;
    height: 207px;
  }

  .third-section h1 {
    font-size: 21px;
    text-align: center;
    padding-left: 0;
  }

  .pic-4 {
    height: 400px;
    margin-bottom: 20px;
  }

  /* .content div {
    position: absolute;
    bottom: -97%;
    left: 38%;
  } */

  .pic-content {
    order: -1;
    align-self: center;
  }

  .homepage-second-section {
    margin-bottom: 40px !important;

    /* .text-content h1 {
        position: absolute;
        bottom: -100%;
        padding-left: 7%;
    } */
  }
}

@media only screen and (max-width: 430px) {
  .first-section {
    padding-top: 50px !important;
  }

  .pic-content {
    order: -1;
    align-self: center;
  }

  /* .text-content h1 {
        position: absolute;
        bottom: -100%;
        padding-left: 10%;
    } */

  .profile_card {
    height: 240px;
    padding: 20px 10px;
    padding-top: 30px;
  }

  .button_tht {
    padding-right: 35%;
  }
}

@media only screen and (max-width: 414px) {
  .first-section {
    padding-top: 50px !important;
  }

  .pic-content {
    order: -1;
    align-self: center;
  }

  /* 
    .text-content h1 {
        position: absolute;
        bottom: -102%;
        padding-left: 7%;
    } */

  .profile_card {
    height: 225px;
    padding: 20px 10px;
    padding-top: 30px;
  }

  .button_tht {
    padding-right: 35%;
  }
}

@media only screen and (max-width: 390px) {
  .content h3 {
    font-size: 14px !important;
  }

  .pic-content {
    order: -1;
    align-self: center;
  }

  .text-content h1 {
    /* position: absolute;
        bottom: -116%;
        padding-left: 18%; */
    font-size: 14px !important;
  }

  .profile_card {
    height: 240px;
  }

  .button_tht {
    padding-right: 35%;
  }

  .text-title-h1 {
    font-size: 14px !important;
  }

  .picture-news .container h2 {
    font-size: 14px !important;
    padding-bottom: 20px;
  }
}

@media only screen and (max-width: 386px) {
  .third-section h1 {
    font-size: 14px;
    text-align: center;
    padding-left: 0;
  }

  .pic-4 {
    height: 300px;
    margin-bottom: 15px;
  }

  .card {
    width: 79px !important;
    border-radius: 10px !important;
    height: 148px !important;
    justify-content: space-between;
  }

  .card-img {
    position: relative;
    width: 79px;
    height: 79px;
    background-color: #169e50;
    border-radius: 10px 10px 0 0;
  }

  .card-img img {
    width: 79px;
    height: 79px;
    border-radius: 10px 10px 0 0;
  }

  .profile_card {
    /* width: 115.49px; */
    height: 250px;
    padding: 9px 8px;
    border-radius: 6px;
    padding-top: 30px;
  }

  #cCarousel #next {
    right: -12px;
  }

  #cCarousel .arrow {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  #cCarousel #prev {
    left: -15px;
  }

  .button_tht {
    padding-right: 36%;
  }

  .third-section .container .text-content h1 {
    font-size: 14px;
    text-align: center;
  }

  .content h3 {
    font-size: 14px !important;
    text-align: center;
  }

  .first-section {
    padding-top: 50px !important;
  }

  /* .text-content h1 {
        position: absolute;
        bottom: -149%;
        padding-left: 18%;
    } */

  .first-section .container .content p {
    font-size: 10px;
  }

  .text-title-h1 {
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
  }

  .pic-4 {
    height: 320px;
    margin-bottom: 15px;
  }

  .text-content-third {
    font-size: 10px;
  }

  .pic-content {
    order: -1;
    align-self: center;
  }

  .picture-news .container h2 {
    font-size: 14px;
    padding-bottom: 15px;
  }

  .card {
    width: 198px !important;
  }

  .card-img {
    width: 196px !important;
    height: none !important;
  }

  .card-img img {
    width: 196px !important;
  }
}

@media only screen and (max-width: 360px) {
  .pic-content {
    order: -1;
    align-self: center;
  }

  .text-content h1 {
    /* position: absolute;
        bottom: -134%;
        padding-left: 15%; */
    font-size: 14px !important;
  }

  .button_tht {
    padding-right: 35%;
  }

  .card {
    width: 198px !important;
  }

  .card-img {
    width: 196px !important;
    height: none !important;
  }

  .card-img img {
    width: 196px !important;
  }

  .profile_card {
    /* width: 115.49px; */
    height: 250px;
    padding: 9px 6px;
    border-radius: 6px;
    padding-top: 30px;
  }
}
