/*
Theme Name: Mắt Thái Hà
Author: Anhnt
Description: Giao diện.
Version: 1.0
Text domain: mth
*/

:root {
    /* --primary-green: #2E8B57;  */
    /* --primary-green: #3CB371;  */
    --primary-green: #097C00;
    --primary-green-rgb: 9, 124, 0;
    --linear-green: linear-gradient(to right, #45696F, #01AC46);
    --dark-blue: #0A2351;
    --light-gray: #f4f4f4;
    --text-color: #333;
    --border-color: #ddd;
    --font-family: 'Be Vietnam Pro', sans-serif;
    --container-width-xl: 1170px;
    --container-width-lg: 1170px;
    --container-width-md: 960px;
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;;
}
@media screen and (min-width: 1280px) {
    .container{
        max-width: var(--container-width-xl);
    }
}
body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: var(--primary-green);
}

a:hover {
    color: #256d44;
}
img{
    max-width: 100%;
    height: auto;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}
.form-control, .form-select{
    box-shadow: none !important;
}
.section-basic{
    padding: 60px 0;
}
.main-header.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transform: translateY(-100%);
    animation: slideDown 0.5s forwards ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
.main-header .navbar-brand{
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}
.main-header .navbar-brand img{
    transition: all 0.3s;
    max-height: 100px;
}
.main-header.fixed-header .navbar-brand img{
    max-height: 90px;
}
.header-placeholder {
    display: none;
}
.header-top {
    background-color: var(--dark-blue);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}
.header-top a {
    color: white;
    transition: all 0.3s ease;
}
.header-top a:hover {
    color: #ccc;
}
.header-top a.btn-outline-light:hover{
    color: #333;
}
.header-top .social-icons i {
    font-size: 16px;
}
.main-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0;
}
.main-header .navbar-nav .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    color: var(--dark-blue);
    padding: 10px 15px;
}
.main-header .navbar-nav .submenu-toggler{
    margin-left: 7px;
}
.main-header .navbar-nav .nav-link:hover,
.main-header .navbar-nav .current-menu-item > .nav-link {
    color: var(--primary-green);
}
.header-btn .search-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-green);
    color: white;
    border-radius: 50%;
    font-size: 16px;
}

/* --- Page Title Banner --- */
.page-title-banner {
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.page-title-banner.has-bg{
    padding: 30px 0;
}
.page-title-banner:not(.has-bg) {
    background-color: var(--primary-green);
    background-image: var(--linear-green);
	margin-bottom: 30px;
}
.page-title-banner .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    width: 95%;
}
.page-title-banner.has-bg .page-title{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border:none;
}
.page-title-banner.has-bg .page-title-bg img{
    width: 100%;
}
.page-title-banner.has-bg .page-title-bg{
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}
.page-title-banner.has-bg .page-title-bg:after{
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(var(--primary-green-rgb), 0.3);
}
.page-title-banner.has-bg.left-bottom .page-title-bg:after,
.page-title-banner.has-bg.left .page-title-bg:after{
    display: none;
}
.page-title-banner.has-bg.left .page-title{
    left: 30px;
    transform: translate(0, -50%);
    color: var(--primary-green);
    text-align: left;
}
.page-title-banner.has-bg.left-bottom .page-title{
    left: 15px;
    bottom: 15px;
    transform: translate(0, 0);
    text-align: left;
    top: unset;
}



/* --- Filter Buttons --- */
.filter-buttons>.row{
    justify-content: center;
}
.filter-buttons .btn-filter {
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 4px 18px;
    margin: 5px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.filter-buttons .btn-filter:hover,
.filter-buttons .btn-filter.active {
    background-color: #e9ecef;
    color: #333;
    border-color: var(--primary-green);
}

/* --- Post Category Section --- */
.section-header .section-title {
    display: inline-flex;
    align-items: end;
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 0;
}
.section-header .section-title img {
    width: 30px; 
    margin-right: 15px;
}
.section-header .btn-view-all {
    border: 1px solid var(--primary-green);
    padding: 6px 15px;
    border-radius: 20px;
    color: #333;
    text-transform: uppercase;
}
.section-header .btn-view-all:hover {
    background-color: #e9ecef;
}

/* --- Post Item & Slider --- */
.post-item {
    background: #fff;
    display: block;
}
.post-item a {
    color: inherit;
}
.post-item-thumbnail{
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
}
.post-item-thumbnail img{width: 100%; transition: all 0.3s;}
.post-item:hover .post-item-thumbnail img{
    transform: scale(1.1);
}
.post-item .post-item-meta {
    font-size: 13px;
    color: var(--primary-green);
    display: block;
    margin-bottom: 5px;
}
.post-item .post-item-meta{
    display: flex;
    gap: 10px;
}
.post-item .post-item-meta span{
    display: inline-block;
}
.post-item .post-item-meta span+span:before{
    content: '-';
    display: inline;
    margin-right: 10px;
}
.post-item .post-title {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    /* Giới hạn 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    min-height: 45px; /* 1rem * 1.4 * 2 dòng */
}

/* Slick Carousel Arrows */
.slick-track{
    min-width: 100%;
}
.slick-prev, .slick-next {
    width: 40px;
    height: 40px;
    background: white !important;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1;
}
.slick-prev { left: -20px; }
.slick-next { right: -20px; }
.slick-prev:before, .slick-next:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #333 !important;
    font-size: 20px;
}
.slick-prev:before { content: '\f053'; }
.slick-next:before { content: '\f054'; }

/* --- Appointment Form --- */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0px 15px rgba(0,0,0,0.1)
}
.form-booking .form-control, .form-booking .form-select {
    height: 50px;
    border-radius: 25px;
    padding-left: 20px;
    background-color: #f5f5f5;
    border: none;
    box-shadow: none !important;
}
.form-booking [type="submit"] {
    background-color: var(--primary-green);
    color: white;
    font-weight: 700;
    height: 50px;
    border-radius: 25px;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
}
.form-booking [type="submit"]:hover {
    background-color: #256d44;
}
.form-booking.submitting [type="submit"]{
    cursor: not-allowed;
    opacity: 0.6;
}
.appointment-form-section{
    margin-bottom: -50px;
    position: relative;
    padding-top: 30px;
}
.appointment-form-section h2 {
    color: var(--primary-green);
    margin-bottom: 30px;
}
.form-consulting p,
.form-booking p{
    margin-bottom: 0;
    position: relative;
}
.form-consulting .wpcf7-spinner,
.form-booking .wpcf7-spinner{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}
.form-consulting .wpcf7-response-output{margin-bottom: 0;}
.wpcf7 form .wpcf7-response-output{
    margin: 10px 0;
}
.wpcf7-not-valid-tip{
    padding: 0 5px;
    font-size: 0.92em;
}
/* --- Footer --- */
.site-footer {
    background-image: var(--linear-green);
    color: #e0e0e0;
    padding: 110px 0 20px 0;
    font-size: 14px;
}
.ft-desc { color: white; font-size: 1rem; }
.footer-socials a {
    display: inline-block;
}
.footer-socials a + a{
    margin-left: 10px;
}
.site-footer .widget-title {
    color: white;
    font-size: 1rem;
}
.site-footer .ft-menu ul{
    margin-top: 10px;
}
.site-footer ul li {
    margin-bottom: 10px;
}
.site-footer ul li a {
    color: #e0e0e0;
}
.site-footer ul li a:hover {
    color: white;
}
.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 30px 0;
}
.footer-contact-info a{
    color: #e0e0e0;
}
.footer-contact-info i {
    margin-right: 10px;
}
.certification-seal { max-height: 70px; }
.site-info {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    color: #c0c0c0;
}

/* --- Floating Socials --- */
.floating-socials {
    position: fixed;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    z-index: 888;
    display: flex;
    flex-direction: column;
}
.floating-socials .social-icon {
    width: 50px;
    height: 50px;
    background-image: var(--linear-green);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    font-size: 16px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.15);
    border-radius: 100%;
}
.floating-socials .social-icon i{
    font-size: 20px;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .slick-prev { left: 0; }
    .slick-next { right: 0; }

    .form-container {
        padding: 20px;
        border-radius: 35px;
    }
}

@media (max-width: 767.98px) {
    .page-title-banner h1 {
        font-size: 2rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
     .section-header .btn-view-all {
        margin-top: 10px;
    }
    .appointment-form-section .btn-submit {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .filter-buttons .btn-filter {
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }
}

/* Chỉ áp dụng cho màn hình lớn hơn 992px (breakpoint của Bootstrap cho 'lg') */
@media (min-width: 992px) {
    /* Khi hover vào item dropdown (li.dropdown) */
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0; /* Loại bỏ khoảng cách thừa nếu có */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.3s ease-in-out;
    }

    /* Giúp link menu cha vẫn có thể click được */
    .navbar-nav .nav-item.dropdown > a.dropdown-toggle::after {
        /* Dịch chuyển mũi tên dropdown ra xa một chút để dễ click vào link cha hơn */
        margin-left: .5em; 
    }
    
    /* Thiết lập trạng thái ẩn ban đầu cho menu con */
    .navbar-nav .nav-item.dropdown .dropdown-menu {
        display: block; /* Luôn là block để có thể transition */
        opacity: 0;
        visibility: hidden; /* Ẩn hoàn toàn, không thể tương tác */
        transform: translateY(10px); /* Hiệu ứng trượt lên khi hiện ra */
        transition: all 0.3s ease-in-out;
    }
}

/* Thêm một chút CSS để đảm bảo menu cha vẫn click được dễ dàng */
.main-header .navbar-nav .dropdown-toggle::after {
    pointer-events: none; /* Mũi tên sẽ không bắt sự kiện click */
}

.doctor-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    height: 100%;
    transition: all 0.3s ease;
}
.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.doctor-card a {
    color: inherit;
    display: block;
    height: 100%;
}
.doctor-thumbnail {
    position: relative;
    background-color: #f0f0f0; /* Màu nền xám cho desktop */
}
.doctor-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.doctor-info {
    padding: 15px;
}
.doctor-date {
    font-size: 13px;
    color: #00A651; /* Màu xanh lá cho ngày tháng */
    display: block;
    margin-bottom: 5px;
}
.doctor-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.doctor-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Pagination Styles */
.pagination-container .pagination {
    justify-content: center;
    --bs-pagination-color: var(--primary-green);
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-bg: var(--primary-green);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(46, 139, 87, 0.25);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--primary-green);
    --bs-pagination-active-border-color: var(--primary-green);
}
.navigation.pagination{
    display: flex;
    justify-self: center;
    margin-top: 30px;
}
.pagination .nav-links,
.woocommerce nav.woocommerce-pagination ul,
.pagination-container ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 5px;
    justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li{
    border: none;
}
.pagination .nav-links span,
.pagination .nav-links a,
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li a,
.pagination-container .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    color: #333;
    border: none;
    background: none !important;
}
.pagination .nav-links span.current,
.woocommerce nav.woocommerce-pagination ul li>span,
.pagination-container .page-numbers.current{
    font-weight: bold;
}
.pagination .nav-links span.current,
.pagination .nav-links a:hover,
.woocommerce nav.woocommerce-pagination ul li>span,
.woocommerce nav.woocommerce-pagination ul a:hover,
.pagination-container .page-numbers.current,
.pagination-container .page-numbers:hover {
    color: var(--primary-green) !important;
}

/* service */
.core-services-section{
    background-image: url('./assets/images/dv.jpg');
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
}
#service-grid-slider{
    padding-bottom: 5px;
}
/* Thẻ <a> container */
.service-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
/* .service-card:after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, rgba(var(--primary-green-rgb), 0) 0%, rgba(var(--primary-green-rgb), 0.3) 100%);
    z-index: 2;
} */
.service-card .view-more{
    position: absolute;
    right: 10px;
    bottom: 20px;
    background-color: #fff;
    border-radius: 20px;
    padding: 6px 22px;
}
.service-card-bg {
    transition: transform 0.4s ease;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-card:hover .service-card-bg {
    transform: scale(1.05);
}
/* Lớp phủ chứa nội dung */
.service-card-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: absolute;
    left: 15px;
    bottom: 15px;
    right: 40%;
    z-index: 3;
    padding-left: 10px;
}
.service-card-title::after{
    content: '';
    display: block;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 35px;
    position: absolute;
    background: linear-gradient(270deg, rgba(var(--primary-green-rgb), 0) 20%, rgba(var(--primary-green-rgb), 0.7) 100%);
    z-index: -1;
}
/* end service */
/* Single */

.single-post-banner {
    max-height: 385px;
    overflow: hidden;
    border-radius: 20px;
}
.single-post-banner img {
    width: 100%;
    height: auto;
}

.single-post-content .entry-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.single-post-content .entry-meta {
    font-size: 0.9rem;
    color: #6c757d;
}
.entry-meta .share-buttons {
    display: inline-flex;
    align-items: center;
}
.entry-meta .share-buttons span {
    margin-right: 10px;
}
.entry-meta .social-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
    margin-right: 5px;
}
.entry-meta .social-icon.facebook { background-color: #3b5998; }
.entry-meta .social-icon.twitter { background-color: #1da1f2; }

.entry-content {
    line-height: 1.8;
}
.entry-content h2, .entry-content h3, .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--dark-blue);
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.entry-content ul, .entry-content ol {
    padding-left: 25px;
}
#breadcrumbs{
    font-size: 0.9rem;
}
/* --- SIDEBAR STYLES --- */
#secondary .widget {
    margin-bottom: 2.5rem;
}
#secondary .widget-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-blue);
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
#secondary .sticky-sidebar {
    position: sticky;
    top: 20px;
}
.sticky-sidebar .post-item{
    margin-bottom: 17px;
}
.sticky-sidebar .post-item-thumbnail{
    margin-bottom: 7px;
}
.sticky-sidebar .post-item .post-item-meta{
    margin-bottom: 2px;
}
.related-post-item {
    margin-bottom: 20px;
}
.related-post-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: inherit;
}
.related-post-thumbnail .placeholder-thumb,
.related-post-thumbnail img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f0f0f0;
}
.related-post-info .related-post-date {
    font-size: 0.8rem;
    color: #6c757d;
}
.related-post-info .related-post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
/* end single */

/* Home */
/* --- FRONT PAGE STYLES (DESKTOP) --- */
.section-padding { padding: 60px 0; }
.section-padding-alt { background-color: #f8f9fa; padding: 60px 0; }

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 3rem;
}
.section-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}
.btn-outline{
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 20px;
    background-color: #fff;
}
.btn-outline-custom {
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 20px;
    padding: 8px 25px;
    font-weight: 500;
    background-color: #fff;
}
.btn-outline:hover,
.btn-outline-custom:hover {
    background-color: var(--primary-green);
    color: white;
}

/* Hero Section */
.hero-slider-section {
    position: relative;
    color: white;
}
/* Style chung cho cả 2 slider */
.hero-slider-pc, .hero-slider-mobile {
    position: relative;
}
.hero-slider-pc .hero-slide-item,
.hero-slider-mobile .hero-slide-item {
    position: relative;
    /* height: 700px; */
}
/* .hero-slider-pc .slide-content-wrapper,
.hero-slider-mobile .slide-content-wrapper {
    display: block;
    width: 100%;
    height: 100%;
} */
/* .hero-slider-pc .hero-slide-bg,
.hero-slider-mobile .hero-slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
} */

/* Slick Carousel Arrows & Dots */
.hero-slider-pc .slick-dots,
.hero-slider-mobile .slick-dots {
    bottom: 25px;
}
.hero-slider-pc .slick-dots li button:before,
.hero-slider-mobile .slick-dots li button:before {
    color: white;
    font-size: 10px;
    opacity: 0.7;
}
.hero-slider-pc .slick-dots li.slick-active button:before,
.hero-slider-mobile .slick-dots li.slick-active button:before {
    opacity: 1;
}
.hero-slider-pc .slick-arrow {
    width: 50px;
    height: 50px;
    z-index: 5;
}
.hero-slider-pc .slick-prev { left: 25px; }
.hero-slider-pc .slick-next { right: 25px; }

/* Why Choose Us Section */
.why-choose-card {
    border-radius: 35px;
    overflow: hidden;
    text-align: center;
    background-color: white;
    padding: 15px 15px 75px 12px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}
.why-choose-card img{border-radius: 25px; width: 100%;}
.why-choose-card .card-body {margin-top: 20px;}
.why-choose-card .card-title { font-weight: 700; color: var(--primary-green); margin-bottom: 15px; font-size: 22px;}
.why-choose-card .card-text { margin-bottom: 0; }
.why-choose-card a.btn-outline-custom{
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Testimonials Section */
.testimonials-section {
    background-image: var(--linear-green);
}
.testimonials-section .section-title{
    margin-bottom: 1rem;
}
.testimonials-section .testimonials-header,
.testimonials-section .section-title,
.testimonials-section .section-subtitle{
    color: white;
}
.video-testimonials-slider-wrapper {
    margin: 60px 0;
}
@media screen and (min-width: 992px) {
    .video-testimonials-slider-wrapper {
        padding-left: calc((100vw - var(--container-width-md)) / 2 - 1.5rem);
    }
}
@media screen and (min-width: 1200px) {
    .video-testimonials-slider-wrapper {
        padding-left: calc((100vw - var(--container-width-lg)) / 2 - 1.5rem);
    }
}
@media screen and (min-width: 1280px) {
    .video-testimonials-slider-wrapper {
        padding-left: calc((100vw - var(--container-width-xl)) / 2 - 1.5rem);
    }
}
.video-testimonials-slider .slick-arrow{
    opacity: 0.4;
}
.video-testimonials-slider:hover .slick-arrow{
    opacity: 1;
}
.video-testimonials-slider .slick-prev{
    left: unset;
    right: 60px;
    top: -50px;
    transform: none;
}
.video-testimonials-slider .slick-next{
    top: unset;
    right: 60px;
    bottom: -50px;
    transform: none;
}
.video-testimonial-item {
    padding: 0 0.75rem;
}
a.video-popup-trigger {
    display: block;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
    color: #333;
}
.video-testimonial-bg {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}
.video-testimonial-bg img{
    transition: all 0.3s;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
}
a.video-popup-trigger:hover .video-testimonial-bg>img{
    transform: scale(1.1);
}

.play-button-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: background-color 0.3s ease;
}
.play-button-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.play-button-icon i {
    font-size: 24px;
    color: var(--primary-green);
    margin-left: 4px; /* Căn chỉnh icon play vào giữa */
}

.video-testimonial-info {
    padding: 15px;
    background-color: #fff;
    font-size: 1rem;
}
.video-testimonial-info h5 {
    font-weight: 700;
    margin: 0;
    font-size: 1.2rem;
}
.video-popup-modal {
    display: none; /* Ẩn mặc định */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.video-popup-modal.show {
    display: flex; /* Hiện ra khi có class 'show' */
}
.popup-content {
    position: relative;
    width: 90%;
    max-width: 960px;
}
.close-popup {
    position: absolute;
    top: -40px;
    right: -10px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 99;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Tỷ lệ 16:9 */
    height: 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.promotion-section .promotion-slide{
    margin-right: calc(var(--bs-gutter-x) * -.5);
    margin-left: calc(var(--bs-gutter-x) * -.5);
}
.promotion-section .promotion-item{
    padding: 0 calc(var(--bs-gutter-x) * .5);
}
.promotion-section a{
    display: block;
    position: relative;
    margin-top: 15px;
    aspect-ratio: 16/9;
}
.promotion-section a img{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.promotion-section a span{
    position: absolute;
    right: 13px;
    top: 0;
    display: inline-block;
    padding: 0px 6px;
    background-color: #fff;
    border-radius: 5px;
    border: var(--primary-green) thin solid;
    transform: translateY(-50%);
    font-size: 0.8rem;
}
.blog-cat-slide{
    position: relative;
    margin-bottom: 0 !important;
}
.blog-cat-slide .slick-dots{
    bottom: 5px;
}
.blog-cat-slide .slick-dots li button:before {
    color: white;
    font-size: 10px;
    opacity: 0.7;
}
.blog-cat-slide .slick-dots li.slick-active button:before {
    opacity: 1;
}
.blog-cat-item{
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.flash {
  animation: flash 0.5s infinite;
}
@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.blog-cat-item .blog-cat-title{
    position: absolute;
    left: 15px;
    top: 25px;
    right: 15px;
    z-index: 1;
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    padding: 3px 15px;
    text-transform: uppercase;
    border-radius: 10px;
    overflow: hidden;
}
.blog-cat-item .blog-cat-title:before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(270deg, rgba(var(--primary-green-rgb), 0) 20%, var(--primary-green) 100%);
    z-index: -1;
    width: 100%;
}
.blog-cat-slide-item{
    position: relative;
    padding-bottom: 145%;
}
.blog-cat-slide-item>img{
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    object-fit: cover;
}
.blog-cat-slide-item-content{
    position: absolute;
    left: 15px;
    bottom: 35px;
    right: 15px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0, 0.5);
    margin-bottom: 20px;
}
/* End home */

/* --- Section Giới thiệu & Cam kết --- */
.commitment-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-left: 3px solid transparent; /* Border ẩn ban đầu */
    cursor: pointer;
    transition: all 0.3s ease;
}

.commitment-item:hover {
    border-color: #f0f8f4; /* Màu nền nhẹ khi hover */
}
.commitment-item.active {
    border-color: var(--primary-green);
}
.commitment-image img {
    width: 100%;
    border-radius: 15px;
    transition: opacity 0.4s ease-in-out; /* Hiệu ứng mờ dần khi đổi ảnh */
}
.commitment-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-size: 28px;
    color: var(--primary-green);
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.commitment-icon img{
    max-width: 30px;
    max-height: 30px;
}
.commitment-icon .hover-icon{
    display: none;
}
.commitment-item:hover .commitment-icon,
.commitment-item.active .commitment-icon {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.commitment-item:hover .commitment-icon .hover-icon,
.commitment-item.active .commitment-icon .hover-icon{
    display: block;
}
.commitment-item:hover .commitment-icon .normal-icon,
.commitment-item.active .commitment-icon .normal-icon{
    display: none;
}
.commitment-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-blue);
}
.commitment-text p {
    margin: 0;
    color: #666;
}
.commitment-image img {
    width: 100%;
    border-radius: 15px;
}

/* --- Section các dòng kính --- */
.intro-content{
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
}
.eyewear-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Tỷ lệ ảnh trong thiết kế là chữ nhật */
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 0 16px rgba(0,0,0,0.1);
}
.eyewear-card-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: all 0.3s;
}
.eyewear-card:hover .eyewear-card-bg{
    transform: scale(1.05);
}
.eyewear-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    z-index: 2;
    display: flex;
}
.eyewear-card-title {
    background-image: linear-gradient(270deg, rgba(var(--primary-green-rgb), 0) 0%, var(--primary-green) 60%);
    color: white;
    padding: 8px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}
.eyewear-card .view-more{
    position: absolute;
    right: 10px;
    bottom: 15px;
    background-color: #fff;
    border-radius: 20px;
    padding: 6px 22px;
    z-index: 2;
}
/* End eye template */

/* SHOP */
/* --- WOOCOMMERCE SHOP PAGE STYLES (DESKTOP) --- */
/* Filter Bar */
.product-filter-bar {
    background-color: var(--primary-green);
    border-radius: 10px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}
.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-wrapper .filter-info{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-label {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: white;
    margin-right: 10px;
}
.product-filter-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 30px 8px 20px;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Product Grid */
.product-card-link {
    color: inherit;
}
.woocommerce .product-grid-container .product{
    margin-bottom: 15px;
}
.woocommerce .product-item .product-thumbnail {
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 15px;
    background-color: #f5f5f5;
}
.woocommerce .product-grid-container .product a img {
    transition: all 0.3s;
    margin-bottom: 0;
    width: 100%;
}
.woocommerce .product-item .product-thumbnail:hover img{
    transform: scale(1.1);
}
.woocommerce-loop-product__title {
    font-size: 1rem !important;
    font-weight: 400;
    color: var(--primary-green);
    margin-bottom: 10px;
}
.woocommerce .product-item .price {
    display: block;
    font-weight: 600;
    color: #333 !important;
}
/* End shop */
/* Single product */
.product-detail-page .product-summary-top {
    padding: 40px 0;
    position: relative;
}

/* Gallery ảnh (bên trái) */
.woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images{
    width: 100%;
}

/* Thông tin sản phẩm (bên phải) */
.product-info-wrapper .product_title {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 0.5em;
}
.product-info-wrapper .sku_wrapper {
    display: block;
    font-size: 1rem;
    color: #555;
    margin-bottom: 1em;
}
.product-info-wrapper .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.5em;
}

/* Các nút CTA */
.custom-cta-buttons {
    margin-bottom: 1.5em;
    gap: 15px;
    display: inline-flex;
}
.custom-cta-buttons .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 12px;
    border: 2px solid var(--primary-green);
}
.custom-cta-buttons .btn-contact {
    background-color: white;
    color: var(--primary-green);
}
.custom-cta-buttons .btn-support {
    background-color: var(--primary-green);
    color: white;
}
.custom-cta-buttons .btn i {
    margin-right: 8px;
}

/* Mô tả ngắn */
.woocommerce-product-details__short-description {
    line-height: 1.7;
    color: #333;
}
.nswiper-slide{
    overflow: hidden;
    border-radius: 20px;
}
.nswiper-slide iframe.product_video_iframe{
    height: 500px !important;
}

/* Sản phẩm liên quan */
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins,
.woocommerce .product-grid-container .product .price ins{
    text-decoration: none;
}
.onsale{display: none;}

.product-full-content {
    line-height: 1.7;
    color: #333;
}
.product-full-content p {
    margin-bottom: 1em; /* Tạo khoảng cách giữa các đoạn văn */
}
.product-full-content ul {
    list-style-position: inside;
    padding-left: 0;
}
/* --- CUSTOM MODAL (POPUP) STYLES --- */

/* Lớp phủ nền */
.modal-backdrop.show {
    opacity: 0.7;
}

/* Nội dung modal */
.custom-modal-content {
    background-color: #f8f9fa;
    border: none;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Header của modal */
.custom-modal-header {
    border-bottom: none;
    padding: 20px 25px;
    position: relative;
    display: block; /* Ghi đè display:flex mặc định */
    text-align: center;
}

/* Icon điện thoại */
.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -60px auto 15px auto; /* Đẩy icon lên trên */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.modal-icon-wrapper img {
    width: 45px;
}

/* Tiêu đề modal */
.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
}

/* Nút đóng (X) */
.custom-btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e0e0e0;
    border-radius: 50%;
    opacity: 1;
    padding: 10px;
    transition: all 0.3s ease;
}
.custom-btn-close:hover {
    background-color: #ccc;
}

/* Body của modal */
.modal-body {
    padding: 0 30px 30px 30px;
}

/* Các trường input trong form */
.form-group-custom p{margin: 0}
.form-group-custom {
    position: relative;
    margin-bottom: 20px;
}
.form-group-custom .img-input {
    position: absolute;
    left: 15px;
    top: 10px;
    width: 30px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.form-group-custom.textarea-input img{
    top: 13px;
    transform: none;
}
.form-control-custom {
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    height: 55px;
    padding: 10px 20px 10px 55px; /* Tạo không gian cho icon */
    font-size: 1rem;
}
.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-green);
}
textarea.form-control-custom {
    height: auto;
    padding-top: 15px;
}

/* Nút Đăng ký */
.btn-submit-modal {
    background: linear-gradient(to right, #2E8B57, #3CB371);
    color: white !important;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}
.btn-submit-modal:hover {
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.4);
}
/* End single product */

/* --- 404 ERROR PAGE STYLES --- */

.error-404-section {
    display: flex;
    align-items: center;
    min-height: 70vh; /* Đảm bảo section chiếm phần lớn chiều cao màn hình */
    padding: 80px 0;
    background-color: #fff;
}

.error-404-content {
    max-width: 700px;
    margin: 0 auto;
}

.error-404-image {
    margin-bottom: 30px;
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-green);
}
.error-404-image img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
}

.error-404-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.error-404-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Style cho form tìm kiếm */
.error-404-search {
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.error-404-search .search-form {
    position: relative;
    display: flex;
}
.error-404-search .search-field {
    width: 100%;
    height: 55px;
    padding: 10px 120px 10px 25px; /* Tạo không gian cho nút */
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
}
.error-404-search .search-field:focus {
    outline: none;
    border-color: var(--primary-green);
}
.error-404-search .search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
}

/* Style cho các nút hành động */
.error-404-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.error-404-actions .btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.error-404-actions .btn i {
    margin-right: 8px;
}
.btn-primary-404 {
    background-color: var(--primary-green);
    color: white;
    border: 2px solid var(--primary-green);
}
.btn-primary-404:hover {
    background-color: #256d44;
    border-color: #256d44;
    color: white;
}
.btn-secondary-404 {
    background-color: transparent;
    color: var(--dark-blue);
    border: 2px solid #ddd;
}
.btn-secondary-404:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

/* Responsive cho mobile */
@media (max-width: 767.98px) {
    .error-404-image{
        font-size: 3rem;
    }
    .error-404-title {
        font-size: 1.8rem;
    }
    .error-404-text {
        font-size: 1rem;
    }
}

/* --- SEARCH OVERLAY STYLES --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px); /* Hiệu ứng làm mờ nền (tùy chọn) */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}
.search-overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 48px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}
.search-overlay-close:hover {
    transform: rotate(90deg);
}
.search-overlay-content {
    width: 100%;
    max-width: 700px;
    padding: 20px;
}
.search-form-overlay {
    position: relative;
    display: inline-block;
    background: #fff;
    width: 600px;
    max-width: 95%;
    padding: 8px 12px;
    background: #fff;
    border-radius: 15px;
}
.search-form-overlay label{
    display: block;
}
.search-field-overlay {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid #ccc;
    padding: 10px 50px 10px 0;
    font-size: 1.2rem;
    color: var(--dark-blue);
    font-weight: 500;
    transition: border-color 0.3s ease;
}
.search-field-overlay:focus {
    outline: none;
    border-bottom-color: var(--primary-green);
}
.search-field-overlay::placeholder {
    color: #aaa;
    font-weight: 400;
}
.search-submit-overlay {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
}
@media (max-width: 767.98px) {
    .search-field-overlay {
        font-size: 1.5rem;
    }
    .search-submit-overlay {
        font-size: 1.5rem;
    }
}
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}