/*
Theme Name: Phongthuybaotran.vn 
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


.icon-angle-down:before {
    color: #fc6060;
}

.home-slider {
    position: relative;
}

.home-slider .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 30px;
}

.home-slider .owl-nav button {
    pointer-events: auto;
}

.home-slider .owl-nav .owl-prev,
.home-slider .owl-nav .owl-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.home-slider .owl-nav .owl-prev:hover,
.home-slider .owl-nav .owl-next:hover {
    background-color: #ff6b6b;
}

.home-slider .owl-nav .owl-prev::after {
    content: '\2190';
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.home-slider .owl-nav .owl-next::after {
    content: '\2192';
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.home-slider .owl-nav .owl-prev span,
.home-slider .owl-nav .owl-next span {
    display: none;
}

.home-slider .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px 0;
}

.home-slider .owl-dot span {
    width: 16px;
    height: 16px;
    display: block;
    background: #c9c9c9;
    border-radius: 2px;
    transition: background-color 0.25s ease;
}



.home-slider button{
    margin: 0px;
}

.owl-theme .owl-dots .owl-dot span {
    width: 15px;
    height: 15px;
    margin: 3px 1px;
    border-radius: 0px;
    background: #a3a3a3;
}

.home-slider .owl-dot.active span,
.home-slider .owl-dot:hover span {
    background: #e54728 !important;
}

/* Home product layout */
.home-product-layout {
    margin-top: 30px;
    margin-bottom: 40px;
}

.home-product-wrapper {
    display: flex;
    gap: 30px;
}

.home-product-sidebar {
    width: 260px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.home-product-sidebar__title {
    margin: 0;
    padding: 12px 18px;
    background-color: #9b0000;
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
}

.home-product-menu {
    margin: 0;
}

.home-product-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-product-menu__list li a {
    display: block;
    padding: 10px 18px;
    border-top: 1px solid #f0f0f0;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
}

.home-product-menu__list li a:hover {
    background-color: #f7f7f7;
    color: #9b0000;
}

.home-product-menu__notice {
    margin: 0;
    padding: 10px 18px;
    font-size: 13px;
    color: #777777;
}

.home-product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.home-product-grid__item {
    text-align: center;
}

.home-product-grid__thumb {
    width: 100%;
    height: 230px;
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-product-grid__thumb img,
.home-product-grid .archive-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-product-grid__title {
    margin-top: 8px;
    font-size: 14px;
}

.home-product-menu li{
    margin-bottom: 0px;
}



.footer-layout {
    background: #b80000; /* đỏ đậm */
    color: #fff;
    font-size: 13px;
}

.footer-partners {
    background: #ffffff;
    padding: 20px 0;
}

.footer-partners-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-partners-logos{
    text-align: center;
}

.footer-partners-logos img {
    max-height: 50px;
    margin-right: 25px;
}

.footer-main {
    background: #b80000;
    padding: 30px 0 15px;
}

.footer-column {
    margin-bottom: 20px;
}

.footer-title {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social li {
    margin-bottom: 5px;
}

.footer-social a {
    color: #fff;
    text-decoration: none;
}

.footer-social a:hover {
    text-decoration: underline;
}

.footer-newsletter-group {
    display: flex;
}

.footer-newsletter-group input[type="email"] {
    flex: 1;
    padding: 6px 8px;
    border: none;
    background: #ffffff;
    border-radius: 0px;
}

.footer-newsletter-group button {
    padding: 0px 14px;
    border: none;
    background: #ff4d4d;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0px;
}

.footer-newsletter-group .flex-row.form-flat .flex-col {
    padding-right: 0px;
}


.footer-copy {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 20px;
    padding-top: 10px;
    text-align: center;
    font-size: 12px;
}

.archive-breadcrumb{
    font-size: 12px;
    border-bottom: 1px solid #e0e0e0;
}

@media (max-width: 991px) {
    .home-product-wrapper {
        flex-direction: column;
    }

    .home-product-sidebar {
        width: 100%;
    }

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

@media (max-width: 575px) {
    .home-product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Post list layout (Tư vấn phong thủy) */
.post-list-layout {
    margin-top: 40px;
}

.post-list-layout__title {
    margin: 0 0 25px;
    text-align: center;
    font-size: 24px;
    text-transform: uppercase;
    color: #9b0000;
    position: relative;
}

.post-list-layout__title::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background-color: #9b0000;
    margin: 8px auto 0;
}

.post-list-layout__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 30px;
}

.post-list-layout__item {
    display: flex;
    align-items: flex-start;
}

.post-list-layout__thumb {
    display: block;
    width: 80px;
    flex-shrink: 0;
    margin-right: 15px;
}

.post-list-layout__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.post-list-layout__content {
    flex: 1;
}

.post-list-layout__item-title {
    margin: 0 0 6px;
    font-size: 14px;
    border-bottom: 1px solid #000000;
}

.post-list-layout__item-title a {
    color: #333333;
    text-decoration: none;
}

.post-list-layout__item-title a:hover {
    color: #9b0000;
}


.post-list-layout__excerpt {
    font-size: 13px;
    color: #666666;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em; /* fallback for browsers not supporting line-clamp */
    line-height: 1.4em;
}


.post-list-layout__readmore {
    font-size: 13px;
    color: #9b0000;
    text-decoration: none;
    font-weight: 600;
}

.post-list-layout__readmore:hover {
    text-decoration: underline;
}

.single-post-title{
    margin-bottom: 0px;
}

@media (max-width: 991px) {
    .post-list-layout__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .post-list-layout__grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Archive & search product grid images */
.archive-grid .archive-product-thumb,
.list-post-grid .archive-post-thumb {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-grid .archive-product-thumb img,
.archive-grid .archive-product-img,
.list-post-grid .archive-post-thumb img,
.list-post-grid .archive-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Archive & single breadcrumb top-right */
.archive-layout .archive-main,
.single-layout .archive-main {
    position: relative;
}

.archive-breadcrumb{
    text-align: end;
    padding-bottom: 10px;
    margin-bottom: 10px;
    padding-top: 10px;
}

.archive-breadcrumb a {
    color: #777777;
    text-transform: uppercase;
    font-weight: bold;
}

.archive-breadcrumb a:hover {
    color: #9b0000;
}

.archive-breadcrumb span {
    color: #9b0000;
    text-transform: uppercase;
    font-weight: bold;
}

.breadcrumb-divider{
    margin: 0px 3px;
}

.archive-title{
    font-size: 20px;
}

.archive-product-title{
    font-size: 16px;
    list-style: 22px;
    margin-top: 10px;
}

@media (max-width: 767px) {
    .archive-layout .archive-main,
    .single-layout .archive-main {
        padding-top: 10px;
    }

    .archive-breadcrumb {
        position: static;
        text-align: left;
        margin-bottom: 10px;
    }

    /* Đưa danh mục sản phẩm xuống dưới nội dung trên mobile */
    .archive-layout .archive-main,
    .single-layout .archive-main {
        order: 1;
    }

    .archive-layout .archive-sidebar,
    .single-layout .archive-sidebar {
        order: 2;
    }
}

/* Pagination page numbers */
.page-numbers {
    display: inline-block;
    min-width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    margin: 0 2px;
    background-color: #e5e5e5;
    color: #555555;
    font-size: 13px;
    text-decoration: none;
    border-radius: 0;
}

.page-numbers.current,
.page-numbers:hover {
    background-color: #c40000;
    color: #ffffff;
}

.page-numbers.prev,
.page-numbers.next {
    padding: 0 6px;
    min-width: auto;
}

/* Single – danh sách "Tin tức khác" */
.single-related-list {
    margin-top: 25px;
}

.single-related-list__title {
    font-size: 18px;
    font-weight: bold;
    color: #b80000;
    margin: 0 0 10px;
}

.single-related-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-related-list__item {
    margin-bottom: 4px;
}

.single-related-list__item a {
    position: relative;
    padding-left: 14px;
    color: #b80000;
    text-decoration: none;
    font-size: 14px;
}

.single-related-list__item a::before {
    content: "#";
    position: absolute;
    left: 0;
    top: 0;
    color: #b80000;
}

.single-related-list__item a:hover {
    text-decoration: underline;
}