/* Min-width */
@media (min-width: 576px) {
}

@media (min-width: 768px) {
  /* .container,
  .container-sm {
    max-width: 100%;
  } */
}

@media (min-width: 992px) {
}

@media (min-width: 1200px) {
  .category-lists .col-xl-2 {
    width: 14.28%;
  }

  .category-lists span {
    max-width: 80%;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

/* Max-width */
@media (max-width: 1299.98px) {
  .header-bottom .header-ul .line {
    margin: 0px 5px;
  }
}

@media (max-width: 1199.98px) {
  .menu {
    display: none;
  }
  .menu-bar-res {
    display: flex;
    align-items: center;
    border-radius: 0;
  }
  .search-wrapper.active {
    width: 100%;
    border-radius: 0;
  }
}

@media (max-width: 991.98px) {
  .item_year:not(.slick-current)::before {
    bottom: -5px;
  }
  .header-bottom .header-ul {
    display: none !important;
  }
  img {
    max-width: 100% !important;
    height: auto !important;
    vertical-align: top;
  }
  .header-top {
    text-align: right;
  }
  .header-top marquee {
    width: calc(100% - 150px);
    margin-right: 0px;
  }
  .slideshow {
    width: 100%;
  }

  .footer-title {
    margin-bottom: 0px;
  }
  .visao-item {
    margin: 0px 0px 20px 0px !important;
    max-width: 100%;
  }
  #product-title {
    width: 100%;
    -webkit-line-clamp: 3;
  }

  .left-pro-detail {
    width: 400px;
  }

  .right-pro-detail {
    width: calc(100% - 415px);
    padding: 0px;
  }
  .camket-pro-detail {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .wrap-partner {
    background: #1c1c1c;
  }
  .wrap-partner p {
    max-width: 100%;
  }
  .item_mission .info {
    position: relative;
    top: 0;
    left: 0;
    color: #fff;
    transform: translateY(0);
    padding: 10px;
  }

  html,
  body {
    overflow-x: hidden;
  }
  div#header {
    z-index: 1000;
    /* min-height: 90px; */
  }
  .header-top marquee {
    width: calc(100%);
  }

  .search-wrapper.active {
    width: 100%;
    position: relative;
  }

  .slideshow .slider {
    width: 100%;
  }

  .title-main {
    margin-bottom: 15px;
  }
  .wrap-cauhoi {
    background: none;
  }
  .wrap-cauhoi .accordion {
    max-width: 100%;
  }

  .doitac-col {
    gap: 10px;
  }
  .doitac-item {
    padding: 5px;
  }

  .wrap-newsletter .hotline {
    min-height: 135px;
    padding-left: 120px;
  }
  .wrap-newsletter .hotline span {
    font-size: 20px;
    padding-bottom: 10px;
  }
  .wrap-newsletter .hotline a {
    font-size: 35px;
    line-height: 40px;
  }

  .footer {
    padding-bottom: 50px;
  }
  .footer-ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .footer-ul li.line {
    display: none;
  }
  .footer-ul li {
    width: 50%;
  }
  .wrap-product-list .slider-products,
  .wrap-product-list .slider-product-thumbs {
    width: 100%;
  }
  .wrap-product-list .slider-product-thumbs {
    margin-bottom: 30px;
  }
  .product-item .image,
  .product-item .info {
    width: 100%;
  }
  .footer-statistic,
  .footer-copyright {
    text-align: center;
  }
  .vanhoa-item {
    max-width: 100%;
  }
  #chuyenkhoaTabs .nav-item {
    width: 49.5%;
    margin-bottom: 3px;
  }

  #chuyenkhoaTabs .nav-link {
    font-size: 14px;
    width: 100%;
  }
  #chuyenkhoaTabs .nav-link img {
    width: 20px;
  }

  .giatri-item .info {
    min-height: auto;
  }
  .news-item .name {
    min-height: auto;
  }
  .news-item .line {
    margin-top: 0px;
  }
  .wrap-history {
    background: #f8f8f8;
  }
  .wrap-history .slider-nav,
  .wrap-history .slider-for {
    width: 100%;
  }
  .year-item.slick-current span {
    padding-left: 20px;
  }
  .year-item.slick-current::before {
    right: auto;
    left: 0px;
  }

  .attr-pro-detail,
  .camket-pro-detail {
    width: 100%;
  }

  .left-pro-detail {
    margin: 0px auto;
  }

  .left-pro-detail {
    width: 100%;
  }

  .right-pro-detail {
    width: 100%;
  }

  .menu-wrapper .menu-toggle {
    width: 54px;
  }
  .menu-header {
    padding: 10px;
  }
  .menu-header .btn-close-menu {
    border: 1px solid #e0e0e0;
    color: #333;
    line-height: 21px;
    padding: 7px 5px 7px 0;
    position: relative;
    text-align: right;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #6e6e6e;
  }
  .menu-header .btn-close-menu::before,
  .menu-header .btn-close-menu::after {
    content: "";
    position: absolute;
    width: 1px;
    top: 4px;
    left: 8px;
    background-color: #fff;
    height: 8px;
  }
  .menu-header .btn-close-menu::before {
    transform: rotate(45deg);
  }
  .menu-header .btn-close-menu::after {
    transform: rotate(-45deg);
  }

  .menu-dropdown {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 100vw; /* toàn bộ chiều ngang */
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    border: none;
    border-radius: 0px;
    padding: 0px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
  }
  .menu-dropdown.open {
    display: block !important;
    right: 0;
    z-index: 1002;
  }
  .menu-body {
    height: calc(100vh - 49px);
    align-items: stretch;
  }
  .menu-left {
    width: 100px;
    flex-shrink: 0;
    height: auto;
    max-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: 0px;
  }
  .menu-right {
    padding: 10px;
    background: #fff;
    max-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .menu-panel .category-item {
    width: calc(100% / 3);
    padding: 0px;
  }
  #thuong-hieu .category-item {
    width: calc(100% / 3 - 6px);
    padding: 0px;
  }

  .search-wrapper {
    height: 38px;
    border-radius: 5px;
    /* margin-bottom: 5px; */
  }
}

@media (max-width: 575.98px) {
  .dichvu {
    padding-top: 10px;
  }
  .phuongcham {
    padding-top: 10px;
  }
  .duan-tab {
    height: 37px;
  }
  .gkt-box .gkt .accord-btn::after {
    line-height: 40px;
    width: 40px;
    height: 40px;
  }
  .slideshow .slide-caption {
    display: none;
  }
  .item_history .info {
    padding: 0;
  }
  .list-about {
    margin-bottom: 15px;
  }
  .title-about p {
    font-size: clamp(25px, 2vw, 35px);
  }
  .title-about {
    margin-bottom: 15px;
  }

  .pj-tabs {
    display: none;
  }
  .pj-block {
    margin-top: 10px;
  }
  .pj-spec {
    margin: 0px 0 0;
  }
  .doingu {
    padding: 10px 0;
  }
  .hoatdong {
    padding-top: 10px;
  }
  .gkt-box .gkt {
    margin-bottom: 0px;
    padding-bottom: 10px;
  }
  .wrap-about {
    padding: 10px 0;
  }
  .mb-50px {
    margin-bottom: 10px;
  }
  .box-product {
    margin-bottom: 10px;
  }
  .footer-colum {
    flex-direction: column;
  }
  .header-logo-mb {
    width: 100%;
    text-align: center;
  }
  .newsletter-button input {
    /* margin-bottom: 15px; */
  }
  .footer-end {
    padding-bottom: 27px;
  }
  .doingu-item .info p {
    font-size: 12px;
    margin-top: 14px;
  }
  .giatri-right .giatri-item,
  .giatri-right .giatri-item .desc {
    text-align: start;
  }
  .giatri-left,
  .giatri-right,
  .giatri-center {
    width: 100%;
  }
  .giatri-center {
    order: 3;
  }
  .giatri {
    padding-top: 5px;
    flex-direction: column;
  }
  .menu-left {
    width: 30%;
  }
  .flex-lg-column {
    flex-direction: column;
  }
  .footer-content {
    width: 100%;
  }
  .title-cauhoi {
    padding: 15px 0;
  }
  .question {
    flex-direction: column;
    gap: 1px !important;
  }
  .question-list {
  }
  .question-img {
    width: 100%;
  }
  .taisao-item {
    margin-bottom: 2px;
  }
  .sc-doingu .title-main h2 span::after {
    top: 50px;
    right: -80px;
  }
  .doingu-item .info h1 {
    font-size: 16px;

    margin-bottom: 10px;
  }
  .giatri-item {
    margin-bottom: 0px;
  }
  .giatri-item .info {
    width: 100%;
  }
  .phuongphap-item:nth-child(3),
  .phuongphap-item:nth-child(6) {
    margin-bottom: 0;
  }
  .phuongphap-center {
    order: 3;
  }
  .phuongphap-item {
    margin-bottom: 5px;
  }
  .phuongphap-left,
  .phuongphap-right,
  .phuongphap-center {
    width: 100%;
  }
  .phuongphap {
    padding-top: 8px;
    flex-direction: column;
  }
  .sc-phuongphap .title-main h2 span::after,
  .sc-camnhan .title-main h2 span::after {
    top: 86px;
    right: -35px;
  }
  .title-main h2 {
    padding-top: 6px;
  }
  .taisao-left,
  .taisao-right,
  .taisao-center {
    width: 100%;
  }
  .taisao-center {
    order: 3;
  }
  .taisao {
    padding-top: 12px;
    flex-direction: column;
  }
  .title-main h2 span::after {
    top: 30px;
  }
  .sc-form {
    padding: 20px 0;
  }
  .wrap-uudai {
    padding-top: 1rem;
    transform: translateY(0);
  }

  .wrap-counter .num {
    display: none;
  }
  .banner h2 {
    font-size: 20px;
  }

  .btn-submain {
    font-size: 14px;
  }
  header#header.fixed {
    position: relative;
  }
  .title-main h2 {
    font-size: 22px;
  }
  .title-main::before {
    font-size: 5rem;
    line-height: 65px;
  }

  .wrap-diadiem-hot .service-list h2.name {
    font-size: 16px;
  }

  .wrap-counter .num {
    font-size: 4.5rem;
  }
  .wrap-counter .counter {
    font-size: 2.5rem;
  }

  .wrap-service-list .service-list .name {
    font-size: 17px;
  }
  .wrap-service-list .service-list .info h3 {
    font-size: 16px;
  }
  .wrap-service-list .service-list .info .line {
    margin: 5px auto;
  }

  .news-item .name a {
  }
  .news-item .desc {
    font-size: 13px;
  }

  .service-item .name {
    font-size: 18px;
  }
  .service-item .desc {
    font-size: 14px;
  }
  .item_history .name {
    font-size: 20px;
  }
  .item_year {
    font-size: 17px;
  }
  #frm-newsletter {
    padding: 0px;
  }
  .notify-popup {
    bottom: 85px;
  }

  .news-item.list .image {
    width: 120px;
  }
  .news-item.list .info {
    width: calc(100% - 120px);
    padding: 0px 10px;
  }

  .title-main h2,
  .title-main h3,
  .title-main h4 {
    white-space: normal !important;
  }

  .choose-list button {
    font-size: 16px;
    margin-bottom: 5px;
    padding: 7px 15px 4px;
  }
  .left-pro-detail {
    width: 100%;
  }
  .khachhang-item {
    width: 300px;
  }
  .accordion-button {
    font-size: 16px;
  }
  .footer-payments {
    text-align: center;
  }
  .item_history .desc {
    margin-bottom: 0px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
  }
  .meta-toc-fixed {
    top: 15%;
  }
  .hoa .meta-toc-fixed.fixed {
    display: none;
  }

  .category-item {
    padding: 5px;
    width: calc(100% / 4);
  }

  .wrap-brand .brand-item,
  .wrap-doitac .brand-item {
    width: calc(100% / 3 - 0.5rem);
  }
  .filter-brand .filter-dropdown-item {
    width: calc(100% / 3 - 0.5rem);
  }
  .cart-fixed {
    bottom: 100px;
  }

  .wrap-about .about-img {
    position: relative;
    text-align: left;
    padding-bottom: 2%;
  }
  .wrap-about .about-img img:nth-child(2) {
    margin-left: 0px;
    margin-top: 0px;
    position: absolute;
    right: 0px;
    top: 15%;
  }

  .gallery-pro-detail .gallery-pro-detail-left {
    width: 100%;
    margin: 0px;
  }
  .gallery-pro-detail .slider-product-thumbs {
    width: calc(100% - 85px);
  }
  .gallery-pro-detail .slider-products {
    width: 100%;
  }
}

@media (max-width: 380.98px) {
  .footer-content:last-child .footer-ul {
    flex-direction: column;
  }
  .footer-content:last-child .footer-ul li {
    margin: 0 !important;
  }
  .khoahoc-info .desc {
    font-size: 14px;
  }
  .khoahoc-item {
    min-height: 390px !important;
  }
  .khoahoc-info {
    padding: 11px 6px;
  }
  .khoahoc-btn {
    left: 7px;
  }
  .khoahoc-btn a {
    font-size: 13px;
  }
  .product-video {
    width: 60px;
    height: 60px;
  }
  .khoahoc-info .desc {
    font-size: 14px;
  }
}

/* ==========================================================================
   FOOTER RESPONSIVE
   .footer-grid truoc day la 4 cot pixel cung (194+355+249+265 = 1063px) va
   khong co media query nao, nen moi viewport duoi ~1093px deu vo layout.
   .footer co overflow:hidden nen phan tran bi cat am tham thay vi hien thanh cuon.
   ========================================================================== */
@media (max-width: 1199.98px) {
  .footer-grid {
    grid-template-columns: 160px minmax(0, 1.4fr) minmax(0, 1fr) minmax(
        0,
        1.05fr
      );
    column-gap: 26px;
  }
  .footer-brand img {
    /* Dung width chu khong dung max-width: responsive.css co
       img { max-width: 100% !important } tu 991.98px tro xuong, se de len */
    width: 160px;
  }
  .footer-ul a {
    font-size: 15px;
    line-height: 30px;
  }
}

/* Tablet: 2 cot */
@media (max-width: 991.98px) {
  .duan-card {
    min-height: 171px;
  }
  .duan-card__logo {
    display: none;
  }

  .duan-card .duan-card__media,
  .duan-card .duan-card__media img {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 30px;
    padding: 32px 15px 28px;
  }
  .footer-connect {
    margin-top: 28px;
  }
  .footer-brand {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .footer-brand img {
    width: 150px;
  }
}

/* Mobile: 1 cot, logo va QR nam ngang cho do dai trang */
@media (max-width: 767.98px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 26px;
    padding: 26px 15px 22px;
  }
  .footer-brand {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  .footer-brand img {
    width: 140px;
  }
  .footer-brand .footer-qr {
    margin-top: 0;
    width: 118px;
  }
  .footer-social {
    flex-wrap: wrap;
  }
  /* Ghi de .footer-ul li {width:50%} o tren cho khoi lech chu */
  .footer-ul li {
    width: 50%;
    padding-right: 10px;
  }
  .footer-ul a {
    line-height: 28px;
  }
  .title-footer {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .thongso-wrap {
    margin-top: 10px;
  }
  .phuongcham-item h3 {
    margin: 10px 0;
  }
  .header-bottom .logo img {
    /* width: 70%; */
    align-items: center;
  }
  .header-bottom .logo {
    display: flex !important;
    justify-content: center;
  }
  .right-about {
    min-height: 48px; /* đo chiều cao thực tế của menu này khi đã render, set đúng số đó */
  }
  .giatri-box .giatri-item {
    padding: 0px;
    margin-left: 0px;
    gap: 20px;
    margin-top: 10px;
  }
  .video {
    margin-bottom: 0px;
  }
  .giatri-box .giatri-item .info .desc {
    padding-bottom: 10px;
  }
  .giatri .desc1 {
    padding-right: 0px;
  }
  .tamnhin {
    padding-top: 10px;
  }
  .phuongcham-box::before,
  .phuongcham-box::after {
    content: none;
  }
  .phuongcham-item {
    padding-right: 10px;
  }
  .khohang-box::before,
  .khohang-box::after {
    width: 0;
    height: 0;
  }
  .khohang {
    padding-top: 10px;
  }
  .item_year:not(.slick-current)::before {
    bottom: 0px;
  }
  .item_year.slick-current::before {
    bottom: 0px;
  }
  #gioithieu {
    padding: 10px 0;
  }
  .footer-brand {
    gap: 10px;
  }
  .footer-brand img {
    width: 118px;
  }
  .footer-brand .footer-qr {
    width: 98px;
  }
  .title-footer {
    font-size: 17px;
  }
  .footer-info p,
  .footer-ul a {
    font-size: 15px;
  }
  .footer-copyright {
    padding: 8px 0;
    font-size: 14px;
    line-height: 24px;
    padding-bottom: 20px;
  }
  .giatri-box {
    border-left: none;
  }
  .thongso-item::before {
    content: none;
  }
  .counter-item {
    margin-bottom: 10px;
  }
  .thitruong {
    padding-top: 10px;
  }
  .duan-tabs {
    margin-top: 10px;
  }
  .duan-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 10px;
    gap: 10px;
  }
  .duan-card__logo img {
    display: none;
  }
  .duan-card__body {
    padding: 10px;
    padding-top: 15px;
  }
  .duan-card__media {
    height: auto;
  }
  .wrap-duan,
  .wrap-linhvuc {
    padding: 10px 0;
  }
  .gallery {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }
  .wrap-hinhanh {
    padding: 0 0 10px;
  }
  .tabs-pro-detail {
    margin-top: 0px;
  }
  #toc-content {
    padding-top: 0;
  }
}

@media (max-width: 380.98px) {
  .footer-brand {
    flex-direction: column;
    align-items: center;
  }
  .footer-ul li {
    width: 100%;
    padding-right: 0;
  }
}

/* ==========================================================================
   KHOI TIN TUC CHAY DOC (.newshome-scroll) - MAN HINH NHO
   Loi goc: css goc cua plugin simplyScroll khoa cung
   .vert .simply-scroll-list li { height: 200px }, trong khi tu 575px tro xuong
   .info-newshome bi ep flex-basis:100% nen xuong dong, noi dung can ~333px.
   Item bi tran ra ngoai va de len item ke tiep.
   Da sua thu tu nap css trong templates/layout/css.php de height:auto co hieu luc.
   Duoi day xep lai thanh the ngang gon cho do cao vua man hinh.
   ========================================================================== */
@media (max-width: 575.98px) {
  .newshome-scroll .newshome-normal {
    position: relative;
    flex-wrap: nowrap !important;
    align-items: flex-start;
  }
  /* Day badge ngay len goc anh de tiet kiem be ngang */
  .newshome-scroll .time-newshome {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 46px;
    padding: 2px 0 3px;
    border-bottom-width: 3px;
  }
  .newshome-scroll .time-newshome p {
    font-size: 20px;
    line-height: 1.25;
  }
  .newshome-scroll .time-newshome span {
    font-size: 11px;
  }
  /* !important de ghi de .ml-3 / .mr-3 cua bootstrap */
  .newshome-scroll .pic-newshome {
    flex: 0 0 118px;
    width: 118px;
    margin: 0 12px 0 0 !important;
  }
  .newshome-scroll .pic-newshome img {
    width: 100%;
    height: 100px;
    object-fit: cover;
  }
  /* Go flex-basis:100% cua style-old.css va mt-3 cua bootstrap */
  .newshome-scroll .info-newshome {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    margin-top: 0 !important;
  }
  .newshome-scroll .name-newshome {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 4px;
  }
  .newshome-scroll .desc-newshome {
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 4px;
  }
  .newshome-scroll ul li {
    margin-bottom: 12px !important;
    padding-bottom: 12px;
  }

  .tabs-pro-detail .ul-tabs-pro-detail {
    padding: 0px;
    list-style: none;
    margin-bottom: 5px;
    margin-top: 5px;
    border-bottom: 1px dashed #b2b2b2;
    margin-left: 0;
    width: 100%;
  }
  .footer-grid {
    row-gap: 10px;
    padding: 10px;
  }
}
