/* Header */
/* Mặc định trên desktop */
.mobile-menu-icon {
    display: none; /* Ẩn icon menu trên desktop */
}

@media (max-width: 1200px) {
    /* Header */
    /* Hiển thị icon menu trên mobile & tablet */
    .mobile-menu-icon {
        display: block;
        font-size: 28px;
        color: #90163f;
        cursor: pointer;
    }

    /* Ẩn ô tìm kiếm trên mobile & tablet */
    .search-container {
        display: none;
    }

    /* Thay đổi vị trí của icon menu */
    .mobile-menu-icon {
        position: absolute;
        right: 20px; /* Đưa icon menu ra góc phải */
        top: 15px;
    }
    .nav-menu-container {
        position: fixed;
        top: 0;
        left: -250px; /* Đẩy menu ra khỏi màn hình */
        width: 250px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        transition: 0.3s;
        padding-top: 5px;
        z-index: 1000;
    }

    /* Khi mở menu */
    .nav-menu-container.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        padding: 0;
        gap: 0px !important;
    }

    .nav-menu li {
        padding: 5px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .nav-menu li a {
        font-size: 18px;
        color: #90163f;
        text-decoration: none;
    }
    /* Dropdown hiển thị dưới dạng block và đẩy các mục bên dưới xuống */
    .nav-menu li.menu-item-has-children {
        position: relative;
    }

    .nav-menu li.menu-item-has-children > .sub-menu {
        display: none;
        position: relative;
        left: 0;
        top: 0;
        background: #f7f7f7;
        padding-left: 15px;
        border-left: 2px solid #90163f;
    }

    .nav-menu li.menu-item-has-children.open > .sub-menu {
        display: block;
    }

    .nav-menu li.menu-item-has-children > a::after {
        content: "▼";
        float: right;
        font-size: 12px;
        margin-top: 5px;
        transition: transform 0.3s;
    }

    .nav-menu li.menu-item-has-children.open > a::after {
        transform: rotate(180deg);
    }
    .nav-menu .sub-menu >li {
        padding: 10px 0px 10px 10px!important;
    }
    .nav-menu li.menu-item-has-children ul.sub-menu {
        display: none;
    }

    /* Khi li có class open thì hiện submenu */
    .nav-menu li.menu-item-has-children.open ul.sub-menu {
        display: block;
    }
    .sub-menu {
        box-shadow: none !important;
        padding: 0px !important ;
    }
    .sub-menu a {
        padding: 0px !important;
        font-size: 16px !important;
        font-weight: normal !important;
    }
     /* Slider */
    .slide {
        height: 500px !important;
    }

    .banner-slide {
        height: 500px !important;
    }

    .banner-slide-content {
        left: 12% !important;
        max-width: 60% !important;
    }

    .banner-slide-content h2 {
        font-size: 28px !important;
    }

    .banner-slide-content p {
        font-size: 14px !important;
    }

    .btn-xem-them {
        padding: 8px 40px !important;
        font-size: 14px !important;
    }

    /* Lý do lựa chọn SAKURA */
    .reason-item { 
        margin-bottom: 10px !important;
     }
     /* Dịch vụ của SAKURA */
         .service-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .service-item {
        width: 45% !important;
        margin: 5px 5px !important;
    }

}

@media (max-width: 992px) {
    /* Lý do lựa chon SAKURA */ 
    .why-choose-sakura {
        padding-top: 30px !important;
    }
    /* Slider */
    .slide {
        height: 400px !important;
    }

    .banner-slide {
        height: 400px !important;
    }

    .banner-slide-content {
        left: 12% !important;
        max-width: 60% !important;
    }

    .banner-slide-content h2 {
        font-size: 1.5rem !important;
    }

    .banner-slide-content p {
        font-size: 13px !important;
    }

    .btn-xem-them {
        padding: 6px 30px !important;
        font-size: 13px !important;
    }

    /* Thu nhỏ icon điều hướng */
    .carousel-control-prev i, 
    .carousel-control-next i {
        font-size: 60px !important;
    }

     /* Dịch vụ của SAKURA */
    .service-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .service-item {
        width: 45% !important;
        margin: 5px 5px !important;
    } 

    /* News Index */
    .news-section .row {
        flex-direction: column !important;
    }
    
    .news-content, .news-featured {
        width: 100% !important;
    }

    .news-featured {
        margin-top: 20px !important;
    }
    /* Single Responsive */
    .single-post-content {
        width: 100% !important;
    }
    .sidebar {
        display: none !important;
    } 
}

@media (max-width: 768px) {
    /* Slider */
    .slide {
        height: 500px !important;
    }
    
    .banner-slide {
        height: 500px !important;
    }

    .banner-slide-content {
        left: 12% !important;
        max-width: 70% !important;
        top: 60% !important;
    }

    .banner-slide-content h2 {
        font-size: 1.5rem !important;
    }

    .banner-slide-content p {
        font-size: 12px !important;
    }

    .btn-xem-them {
        padding: 5px 25px !important;
        font-size: 12px !important;
    }

    /* Thu nhỏ icon điều hướng */
    .carousel-control-prev i, 
    .carousel-control-next i {
        font-size: 50px !important;
    }

     /* Dịch vụ của SAKURA */
    .service-item {
        width: 90% !important;
        margin-bottom: 20px !important;
        height: 300px !important;
    }
    .overlay-1, .overlay-2 {
        height: 35% !important;
    }
    .overlay-2 {
        width: 95% !important;
        height: 85% !important;
    }
    .overlay-2-content h3 a {
        font-size: 18px !important;
    }
    .overlay-2-content p {
        font-size: 13px !important;
    }
    .btn-service {
        padding: 8px 20px !important;
    }
    /* News Index */
     /* Căn chỉnh title tin tức */
    .news-content .title-news {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .news-content .title-news-left {
        font-size: 20px !important;
    }

    .news-content .title-news a {
        font-size: 16px !important;
    }

    /* Giảm kích thước ảnh */
    .news-content-left .item-news img {
        height: 200px !important;
        object-fit: cover !important;
    }

    .news-content-right .item-news img {
        height: 120px !important;
    }

    /* Giảm font-size tiêu đề bài viết */
    .news-content-left .item-news h3 a,
    .news-content-right .item-news h3 a {
        font-size: 16px !important;
    }

    /* Giảm số dòng hiển thị mô tả bài viết */
    .news-sumary p, .news-sumary-right p {
        -webkit-line-clamp: 2 !important;
    }

    /* Phần archive dịch vụ */
    .archive-service .archive-service-item {
        height: 300px;
    }
    
    .archive-service .archive-service-overlay {
        padding: 1rem;
    }
    
    .archive-service .archive-service-overlay h2 {
        font-size: 1.2rem;
    }
     /* Single Responsive */
    .single-post-content {
        width: 100% !important;
    }
    .sidebar {
        display: none !important;
    }

    /* Footer */
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    /* Thanh liên hệ nổi */ 
    .contact-bar {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        display: flex !important;
        justify-content: space-around !important;
        padding: 10px 0 !important;
        border-radius: 0 !important;
        background-color: #343a40 !important;
        z-index: 9999 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2) !important;
    }

    .contact-item {
        margin: 0 !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
    }

    .contact-item i,
    .contact-item svg {
        font-size: 24px !important;
    }

}

@media (max-width: 576px !important) {
    /* Slider */
    .slide {
        height: 250px !important;
    }

    .banner-slide {
        height: 250px !important;
    }

    .banner-slide-content {
        left: 8% !important;
        max-width: 70% !important;
        top:60% !important;
    }

    .banner-slide-content h2 {
        font-size: 18px !important;
    }

    .banner-slide-content p {
        font-size: 11px !important;
    }

    .btn-xem-them {
        padding: 4px 20px !important;
        font-size: 11px !important;
    }

    /* Thu nhỏ icon điều hướng */
    .carousel-control-prev i, 
    .carousel-control-next i {
        font-size: 40px !important;
    }

     /* Dịch vụ của SAKURA */
     .service-item {
        width: 90% !important;
        margin-bottom: 20px !important;
        height: 300px !important;
    }
    .overlay-1, .overlay-2 {
        height: 35% !important;
    }
    .overlay-2 {
        width: 95% !important;
        height: 85% !important;
    }
    .overlay-2-content h3 a {
        font-size: 18px !important;
    }
    .overlay-2-content p {
        font-size: 13px !important;
    }
    .btn-service {
        padding: 8px 20px !important;
    }

    /* News Index */
     /* Căn chỉnh title tin tức */
    .news-content .title-news {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .news-content .title-news-left {
        font-size: 20px !important;
    }

    .news-content .title-news a {
        font-size: 16px !important;
    }

    /* Giảm kích thước ảnh */
    .news-content-left .item-news img {
        height: 200px !important;
        object-fit: cover !important;
    }

    .news-content-right .item-news img {
        height: 120px !important;
    }

    /* Giảm font-size tiêu đề bài viết */
    .news-content-left .item-news h3 a,
    .news-content-right .item-news h3 a {
        font-size: 16px !important;
    }

    /* Giảm số dòng hiển thị mô tả bài viết */
    .news-sumary p, .news-sumary-right p {
        -webkit-line-clamp: 2 !important;
    }
    /* Single Responsive */
    .single-post-content {
        width: 100% !important;
    }
    .sidebar {
        display: none !important;
    }

     /* Footer */
    .footer-logo {
        display: flex;
        justify-content: center;
    } 

}