﻿
/*css main*/
:root {
    --menu-bg: #004c97;
    --menu-bg2: #0071e1;
    --menu-color: #ffffff;
    --menu-color-active: #ffca00;
    --font-family: "Times New Roman";
    --font-family2: "Roboto";
}

body {
    font-family: var(--font-family); /*Roboto; */ /*Mulish, sans-serif !important;*/
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family2);
}

.title {
    color: #333;
}

.text-bold {
    font-weight: bold !important;
}

.text-justify {
    text-align: justify;
}

.hidden {
    display: none;
}



/*css home header*/
.ds-header-logo {
    max-width: 45px;
    max-height: 45px;
}







/*css product*/

.ds-list-product_img {
    height: 320px;
    text-align: center;
}

.ds-list-product_img::before {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

    .ds-list-product_img img {
        max-height: 100%
    }

.product:hover .ds-list-product_img {
    background-color: lightgray;
}
 

.ds-product_img {
    height: 320px;
    text-align: center;
}

    .ds-product_img img {
        max-height: 100%
    }

    .ds-product_img::before {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        background-color: rgba(0,0,0,0.2);
        opacity: 0;
        transition: all 0.5s ease-in-out;
        z-index: 1;
    }

.product:hover .ds-product_img {
    background-color: lightgray;
}

.ds-rating_wrap {
    text-align: center;
    display: block !important;
}



/*css trang tin tức*/
.ds-blog_img img {
    height: 230px;
    max-height: 100%;
}

/*.blog_text {
    height: 160px;
    overflow: hidden;
    text-align: justify;
}*/

/*css trang hình ảnh*/
.ds-sale-banner img {
    height: 320px;
}


.ds-page-title {
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}



/*css khác*/
.ds-price {
    font-size: larger;
    vertical-align: middle
}

.ds-center-rating_wrap .rating {
    margin: auto;
}




/*css footer*/
.ds-footer_logo {
    float: left;
    width: 80px;
    margin-right: 20px;
    margin-bottom: 5px;
}

.ds-footer_top {
    padding-top: 30px;
    padding-bottom: 30px;
}

.ds-footer {
    background-color: var(--menu-bg2);
    color: white;
}



/*css menu*/
.ds-top-header {
    padding: 0px !important;
    max-width: 100%;
    overflow: hidden;
}

    .ds-top-header img {
        width: 100%;
    }

.ds-main-menu {
    background-color: var(--menu-bg);
}

    .ds-main-menu li {
        color: var(--menu-color);
    }

    .ds-main-menu .active {
        color: var(--menu-color-active) !important;
    }

    .ds-main-menu .nav-link {
        color: var(--menu-color);
    }

        .ds-main-menu .nav-link.show {
            color: var(--menu-color);
        }

    .ds-main-menu .navbar .navbar-nav li:hover {
        background-color: var(--menu-bg2);
    }

        .ds-main-menu .navbar .navbar-nav li:hover > a {
            color: var(--menu-color-active);
        }

        .ds-main-menu .navbar .navbar-nav li:hover > .dropdown-menu {
            background-color: var(--menu-bg2);
        }

    .ds-main-menu .navbar .navbar-nav li > .dropdown-item {
        color: white;
    }

    .ds-main-menu .navbar .navbar-nav .dropdown-menu li a:hover {
        color: var(--menu-color-active) !important;
    }

@media only screen and (max-width: 991px) {
    .ds-main-menu .navbar-collapse .navbar-nav {
        background-color: var(--menu-bg2) !important;
    }
}




/*css orrder*/
.ds-heading_s1 {
    padding-top: 20px;
}




/*css trang home banner*/
.screen {
    display: block;
}
.mobile{
    display:none;
}

@media screen and (max-width: 768px) {
    .screen {
        display: none;
    }

    .mobile {
        display: block;
    }
}

/*
@media screen and (max-width: 1200px) {
    .screen {
        display: none;
    }

    .screen-xl {
        display: block;
    }

    .screen-lg {
        display: none;
    }

    .screen-md {
        display: none;
    }

    .screen-sm {
        display: none;
    }
}
@media screen and (max-width: 992px) {
    .screen {
        display: none;
    }

    .screen-xl {
        display: none;
    }

    .screen-lg {
        display: block;
    }

    .screen-md {
        display: none;
    }

    .screen-sm {
        display: none;
    }
}
@media screen and (max-width: 768px) {
    .screen {
        display: none;
    }

    .screen-xl {
        display: none;
    }

    .screen-lg {
        display: none;
    }

    .screen-md {
        display: block;
    }

    .screen-sm {
        display: none;
    }
}
@media screen and (max-width: 576px) {
    .screen {
        display: none;
    }

    .screen-xl {
        display: none;
    }

    .screen-lg {
        display: none;
    }

    .screen-md {
        display: none;
    }

    .screen-sm {
        display: block;
    }
}*/






.ds-header_wrap:not([class*="bg_"]):not([class*="bg-"]) {
    background-color: #fff;
}
.ds-header_wrap.fixed-top {
    position: relative;
    padding-right: 0 !important;
}
.ds-header_wrap {
    transition: all 0.5s ease 0s;
}



.ds-video .blog_text{
    height: 60px !important;
}
.ds-video img{
    height: 180px;
}

.ds-list-video {
    padding-top: 10px;
    padding-bottom: 20px;
}

/*style lại các padding*/
.breadcrumb_section.page-title-mini{
    padding: 15px 0;
}
.section{
    padding: 20px 0;
}





/* thanh trên cùng website */
.ds-light-text{
    color: white;
}
.ds-light-text li{
    color: white;
}

/*nút xem thêm*/
.btn-blue {
    background-color: #3284ff;
    color: #fff !important;
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

    .btn-blue:hover {
        background-color: #256ad1;
        box-shadow: 0 4px 8px rgba(50, 132, 255, 0.3);
        transform: translateY(-2px);
    }

/*slide bài viết*/

.blog_slider_section .blog_post {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 380px;
    /* Tăng chiều cao của item */
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Thêm bóng đổ nhẹ */
}

.blog_slider_section .blog_img {
    height: 300px;
    /* Cố định chiều cao vùng chứa ảnh */
    overflow: hidden;
}

    .blog_slider_section .blog_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Tự động cắt ảnh để lấp đầy khung hình mà không bị méo */
    }

.blog_slider_section .blog_post:hover {
    transform: translateY(-5px);
}

.blog_slider_section .blog_title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 15px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Thêm thuộc tính chuẩn */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-section .blog_img{
    aspect-ratio: 16/9;
    overflow: hidden;
}
    .blog-post-section .blog_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
.blog-post-section .blog_title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    height: 60px;
}
.blog-post-section .blog_text p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    height: 56px;
}



/* Custom styles for Featured News Layout */
.featured_blog_post .blog_img {
    aspect-ratio: 16 / 9; /* Giữ tỷ lệ khung hình 16:9 bất kể kích thước màn hình */
}

    .featured_blog_post .blog_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Tự động cắt ảnh để lấp đầy khung hình mà không bị méo */
    }

.news_list_divided .post_img {
    height: 54px;
    width: 80px;
    flex: 0 0 80px;
    overflow: hidden;
    border-radius: 4px;
}

    .news_list_divided .post_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Tự động cắt ảnh để lấp đầy khung hình mà không bị méo */
    }

.featured_blog_post .blog_title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    height: 2.6em;
}

.featured_blog_post .blog_text p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    height: 56px;
}

.news_list_divided li {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    /* Dòng kẻ mờ */
}

    .news_list_divided li:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }



/*image galery */

.gallery_section {
    padding: 80px 0;
}

.gallery_item {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

.gallery_img {
    height: 250px;
    width: 100%;
    overflow: hidden;
}

    .gallery_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

/* Hiệu ứng Hover */
.gallery_item:hover .gallery_img img {
    transform: scale(1.1);
}

.gallery_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery_item:hover .gallery_overlay {
    opacity: 1;
}

.zoom_icon {
    width: 50px;
    height: 50px;
    background-color: #FF324D;
    /* Màu chủ đạo của Shopwise */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery_item:hover .zoom_icon {
    transform: translateY(0);
}

.gallery_title {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.gallery_item:hover .gallery_title {
    opacity: 1;
    transform: translateY(0);
}

/*nhúng bản đồ*/

.embed_section {
    padding: 50px 0;
    background-color: #f3f3f3;
}

.fb_embed_box,
.map_embed_box {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    height: 300px;
    /* Giảm chiều cao xuống 500px */
}

    .fb_embed_box iframe,
    .map_embed_box iframe {
        width: 100% !important;
        height: 100% !important;
        border: none;
    }

.embed_title {
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
}

    .embed_title i {
        margin-right: 10px;
        font-size: 22px;
    }

.title_fb {
    color: #1877F2;
}

.title_map {
    color: #EA4335;
}



/* Custom Sidebar Styles */
.sidebar .widget_title {
    background-color: #0056b3; /* Premium blue */
    color: #fff !important;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}
.sidebar .post_img{
    width: 80px;
    aspect-ratio: 7/5;
}
.sidebar .post_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget_recent_post li,
.widget_text_group li {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 12px;
    margin-bottom: 12px;
    list-style: none;
}

    .widget_recent_post li:last-child,
    .widget_text_group li:last-child {
        border-bottom: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.widget_text_group a {
    display: block;
    font-weight: 500;
    color: #292b2c;
    transition: color 0.3s ease;
}

    .widget_text_group a:hover {
        color: #0056b3;
    }

.widget_image_gallery .gallery_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

    .widget_image_gallery .gallery_grid img {
        width: 100%;
        height: 80px;
        object-fit: cover;
        border-radius: 4px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

        .widget_image_gallery .gallery_grid img:hover {
            transform: scale(1.05);
        }

.widget_links li {
    list-style: none;
    margin-bottom: 8px;
}

.widget_links a {
    color: #687188;
    display: flex;
    align-items: center;
}

    .widget_links a i {
        margin-right: 10px;
        color: #0056b3;
    }

    .widget_links a:hover {
        color: #0056b3;
        padding-left: 5px;
    }

/* Single post adjustments */
.single_post .blog_img img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/*khacs*/
.ds-line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 1;
}

.ds-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;


}