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

/*************** ADD CUSTOM CSS HERE.   ***************/
body {
	max-width: 100%;
	overflow: hidden;
}
@media only screen and (min-width: 1024px) {
    .widget ul.menu > li {
        position: relative;
    }
    .widget ul > li.has-child:hover >.sub-menu{
        display:block !important;
    }
    .widget ul.menu ul.sub-menu {
        display: none !important;
        position: absolute;
        width: 100%; 
        left:99%;
        top: 0;
        z-index: 999;
        border: 1px solid #e1e1e1 !important;
        background: #fff;
        margin: 0;
        padding: 0;
    }
    .widget .toggle{
        transform: rotate(-90deg);
        margin-right: 10px;
    }
    .widget ul.menu>li li {
        padding: 2px 0;
        border-bottom: 1px solid #e1e1e1;
    }
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .blog-archive .post-sidebar.col {
        padding: 0 15px !important;
    }

}
/* */
body.nav-dropdown-has-border .nav-dropdown {
    border: none;
    padding: 0;
}
body.nav-dropdown-has-border .nav-dropdown a {
    padding: 10px !important;
    margin: 0 !important;
    border-radius: 0;
}
.post_comments  {
    display: none;
}

/* Sidebar */

/* */
.blog-single .article-inner > .entry-header {
    display: none;
}
/* */
.product-small.box ins *,
.product-small.box .price > .amount * {
    color: red;
    font-size: 16px;
}
.product-small.box del * {
    color: #333;
}
.product-small.box .product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 22px;
    height: 44px;
}
.product-small.box .box-image img {
    height: 200px;
    object-fit: cover;
}
/* */
@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1)
    }
    50% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1)
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}

@keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1)
    }
    50% {
        -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
        transform: scale(1.1)
    }
    100% {
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1)
    }
}
.pulse {
    transition: all 150ms linear 0s;
    animation-name: pulse;
    -webkit-animation-name: pulse;
    animation-delay: 1s;
    -webkit-animation-delay: 1s;
    animation-duration: 1s;
    -webkit-animation-duration: 1s;
    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
}

blockquote {

    font-size: 110%;
    color:#666;

    margin: 0 auto;
    border-left:0px;
    margin-left: 20px;
    padding-bottom: 50px;
}
blockquote h1 {
    font-size: 3rem;
}
blockquote p {
    font-style: italic;
    margin-bottom: 0;
}
blockquote p::before,
blockquote p::after {
    content: "“";
    font-family: Georgia;
    font-size: 6rem;
    margin: -3rem 0 0 -4rem;
    position: absolute;
    opacity: 0.5;
    color:var(--primary-color);
}
blockquote p::after {
    content: "”";
    margin: -2rem -3rem 0 0;
}
blockquote cite {
    font-size: 1.5rem;
}
.custom-blog.row-full-width .flickity-viewport,
.team_custom.row-full-width .flickity-viewport {
    overflow: visible;
}


.post-list .post-list-item .col-inner {
    box-shadow: 0px 109px 31px 0px rgba(212, 212, 212, 0), 0px 70px 28px 0px rgba(212, 212, 212, 0.01), 0px 39px 24px 0px rgba(212, 212, 212, 0.05), 0px 17px 17px 0px rgba(212, 212, 212, 0.09), 0px 4px 10px 0px rgba(212, 212, 212, 0.1);
}
.post-list .post-list-item .col-inner .box-text {
    padding: 20px;
}
.post-list .post-list-item .title-post {
    font-size: 18px;
    text-transform: uppercase;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.post-list .post-list-item:first-child .title-post {
    font-size: 28px;
    text-transform: uppercase;
}
.post-list .post-list-item .entry-image-attachment img {
    height: 222px;
    object-fit: cover;
}
.post-list .post-list-item:first-child .entry-image-attachment img {
    height: 536px;
}
.post-list:after {
    display: none;
}




.category-style-2 .post-list .post-list-item:nth-child(2) .entry-image-attachment img, 
.category-style-2 .post-list .post-list-item:first-child .entry-image-attachment img {
    height: 390px;
}
.category-style-2 .post-list .post-list-item:first-child .title-post {
    font-size: 18px;
}

@media (min-width: 850px) {
    .category-style-2 .post-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    /* Hai bài đầu tiên chiếm 2 cột */
    .category-style-2 .post-list .post-list-item:nth-child(1),
    .category-style-2 .post-list .post-list-item:nth-child(2) {
        grid-column: span 2;
    }

    /* Các bài còn lại hiển thị bình thường với 3 cột */
    .category-style-2 .post-list .post-list-item:nth-child(n+3) {
        grid-column: span 1;
    }

    .category-style-1 .post-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .category-style-1 .post-list .post-list-item:first-child {
        grid-column: 2 span;
        grid-row: span 2;
    }


    .team_custom.row-full-width, 
    .custom-blog.row-full-width {
        padding-left: calc(47vw - 750px) !important;
        margin: 0 -30px 0 0;
    }
}

.related-heading {
    text-align: center;
    font-size: 34px;
    color: var(--primary-color);
}
.filter-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}
.filter-tabs >div {
    gap: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 880px;
    margin-bottom: 8px;
    text-align: center;
}
.filter-tabs >div img {
    width: 80px;
    height: 80px;
    border: 1px solid #efefef;
    border-radius: 50px;
    margin-bottom: 10px;
}
.filter-tabs .tit_cate {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 18px;
    color: #75757a;
}
.filter-tabs >div.active img {
    border: 1px solid var(--primary-color);
}
.filter-tabs >div.active .tit_cate {
    color: var(--primary-color);
}

.heading {
    text-align: center;
    font-size: 34px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin: 30px 0;
}
.row-service .box-image img {
    height: 255px;
    object-fit: cover;
}
.row-service .box-text {
    border-radius: 0 0 6px 6px;
    padding: 10px;
}
.row-service .post-item:hover .box-text {
    background-color: var(--primary-color);
}
.row-service .post-item:hover .box-text h3 {
    color: #fff;
}
.category-image img {
    height: 620px;
    object-fit: cover;
    width: 100%;
}

.team_custom .post-item .tag-label,
.team_custom .post-item .post-blog-meta {
    display: none;
}
.team_custom .post-item .post-title {
    font-size: 20px;
}
.chucv {
    font-size: 16px;
    color: #CCCCCC;
}

.custom-doctor.icon-box-left {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.custom-doctor.icon-box-left .icon-box-img img {
    background: none repeat scroll 0 0 #ffffff;
    border: 1px solid #cccccc;
    border-radius: 50%;
    padding: 2px;
}
.custom-doctor.icon-box-left .icon-box-text p {
    margin-bottom: 0;
}
.custom-doctor.icon-box-left .icon-box-text img {
    margin-bottom: 3px;
}
.related-post {
    background: #f3f7ff;
    padding: 60px 0;
}
.related-post .box-blog-post .box-text {
    background-color: #fff;
    padding: 10px;
    text-align: left;
}
.related-post .box-blog-post .box-text .post-title {
    font-weight: normal;
    font-size: 18px;
    height: 40px;
    line-height: 20px;
    overflow: hidden;
}
.title-section {
    text-align: center;
}
.title-section h2 {
    color: var(--primary-color);
    font-size: 34px;
    margin-bottom: 5px;
}



.sticky-custom.fixed {
    top: 0;
    background-color: #fff;
    width: 100%;
    left: 0;
    box-shadow: 0px 22px 6px 0px rgba(222, 222, 222, 0), 0px 14px 6px 0px rgba(222, 222, 222, 0.01), 0px 8px 5px 0px rgba(222, 222, 222, 0.05), 0px 4px 4px 0px rgba(222, 222, 222, 0.09), 0px 1px 2px 0px rgba(222, 222, 222, 0.1);
}
.sticky-custom ul {
    margin-bottom: 0;
}
.sticky-custom .nav-item {
    display: inline-block;
    padding: 25px 0px;
    transition: background 0.3s ease-in-out;
    border-bottom: 2px solid transparent;
    margin-bottom: 0;
    margin: 0 30px;
}

.sticky-custom .nav-item a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.sticky-custom .nav-item.active {
    border-bottom: 2px solid var(--primary-color);
}

.page-title-bar {
    padding-top: 20px;
    min-height: 233px;
    background: linear-gradient(90deg, #f0e3ec 0%, #fffaf7 13%, #faecf2 28%, #a2b1ec 100%);
}

.page-title-bar .title {
    line-height: 56px;
    font-size: 40px;
    color: #27338c;
    letter-spacing: 2px;
    margin: 70px 0 50px 0;
    text-transform: uppercase;
    text-align: center;
    text-align: center;
}
.breadcrumb {
    font-size: 16px;
    color: #75757a;
}
.breadcrumb a {
    color: #75757a;
}
.tax-service_cat .breadcrumb {
    margin-top: 20px;
}
.tax-service .page-numbers {
	margin: 0 auto 40px;
}

/* Overlay khi popup mở */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup box */
.popup-box {
    position: relative;
    max-width: 700px;
}

.popup-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Nút đóng */
.popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    color: #000;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}
.popup-title {
    display: none;
}
.popup-content {
    background: #202124;
    opacity: 0.9;
    padding: 20px;
    color: #fff;
}
.popup-content h2, 
.popup-content h3,
.popup-content h4 {
    color: #dcaf26;
}

.breadcrumb_customer {
    background-image: url(images/bg-breadcrumb-story.png);
    background-size: 100% 100%;
    padding: 20px;
}
.breadcrumb_customer h1 {
    margin-top: 70px;
}

.nav-outline>li>a {
    border-radius: 6px;
    font-size: 18px;
}

@media (max-width: 480px) {
    .sticky-custom {
        overflow-x: scroll;
    }
    .sticky-custom ul {
        margin-bottom: 0;
        width: 900px;
        display: flex;
        padding: 0;
        }
    .sticky-custom .nav-item {
        margin: 0 15px;
    }
    .row-service .box-image img {
        height: 145px;
    }
    .filter-tabs-block {
        overflow-x: scroll;
    }
    .filter-tabs {
        width: 790px;
    }
    .filter-tabs >div img {
        width: 40px;
        height: 40px;
        border: 1px solid #efefef;
    }
    .filter-tabs .tit_cate {
        font-size: 14px;
    }
    .heading {
        font-size: 27px;
    }
    .popup-box {
        padding: 5px;
    }
}
.link-term-service {
	text-align: center;
}
.link-term-service a {
	display: inline-block;
	border: 1px solid #e1e1e1;
	padding: 10px 20px;
	margin: 0 10px;
	border-radius: 10px;
}
.link-term-service a:hover {
	background: var(--primary-color);
	color: #fff;
}
/* */
.img-hv.box:hover .box-text * {
    color: #000073;
}