/*
Theme Name: cokhiantanphat
Description: This is a child theme for Flatsome Theme - Tai hien giao dien cokhithaithinhphat.com
Author: Antigravity Team
Template: flatsome
Version: 3.15.3
*/

:root {
    --primary-color: #067299;
}

html {
    background-color: #E6E2DE !important;
}

.header.show-on-scroll, .stuck .header-main {
    height: 85px !important;
}

body {
    color: #222;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
#header {
    border-bottom: 5px solid #37b8eb;
}

.header-top {
    background: linear-gradient(45deg, #067299 55%, #161414 45%) !important;
    min-height: 38px;
}

.header-main {
    height: 100px;
    background: #fff;
}

#logo {
    width: 221px !important;
    max-width: 221px !important;
}

#logo img {
    max-height: 85px !important;
    height: auto !important;
    width: auto !important;
    max-width: 221px !important;
    padding: 5px 0 !important;
}

.header-logo-dark {
    display: none !important;
}

/* Fix mobile/tablet header & logo overflow */
@media (max-width: 849px) {
    .header-main {
        height: 90px !important;
    }
    #logo {
        width: auto !important;
        max-width: 200px !important;
        margin: 0 auto !important;
    }
    #logo a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #logo img {
        max-height: 64px !important;
        height: auto !important;
        width: auto !important;
        max-width: 200px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }
}

@media (max-width: 549px) {
    .header-main {
        height: 85px !important;
    }
    #logo {
        width: auto !important;
        max-width: 175px !important;
        margin: 0 auto !important;
    }
    #logo a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #logo img {
        max-height: 56px !important;
        height: auto !important;
        width: auto !important;
        max-width: 175px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }
}

.stuck .header-main {
    height: 70px !important;
}
.stuck #logo img {
    max-height: 50px !important;
    padding: 0 !important;
}

/* ==========================================================================
   HEADER BOTTOM & NAVIGATION
   ========================================================================== */
div#wide-nav {
    border-bottom: 5px solid #383939 !important;
}

.header-bottom {
    background: #067299 !important;
    height: 45px !important;
    min-height: 43px !important;
}

.header-bottom .flex-row {
    height: 45px !important;
    min-height: 43px !important;
}

.header-bottom-nav {
    flex-wrap: nowrap !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    height: 45px !important;
}

.header-bottom-nav > li {
    padding: 0 !important;
    margin: 0 !important;
    height: 45px !important;
    position: relative !important;
    display: inline-block !important;
}

.header-bottom-nav > li > a {
    color: #FFFFFF !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    line-height: 45px !important;
    height: 45px !important;
    padding: 0 11px !important;
    white-space: nowrap !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    letter-spacing: 0 !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.header-bottom-nav > li:first-child > a {
    border-left: none !important;
}

.header-bottom-nav > li:last-child > a {
    border-right: none !important;
}

.header-bottom-nav > li > a i.icon-angle-down {
    margin-left: 4px;
    font-size: 10px;
    opacity: 0.85;
}

.header-bottom-nav > li:hover > a,
.header-bottom-nav > li.active > a,
.header-bottom-nav > li.current-menu-item > a,
.header-bottom-nav > li.current_page_item > a {
    background: #37b8eb !important;
    color: #ffffff !important;
}

/* Submenu dropdown - Đồng bộ 100% với website mục tiêu cokhithaithinhphat.com */
.header-bottom-nav ul.sub-menu,
.header-bottom-nav .nav-dropdown,
ul.sub-menu.nav-dropdown.nav-dropdown-default,
ul.sub-menu.nav-dropdown.nav-dropdown-default li,
ul.sub-menu.nav-dropdown,
ul.sub-menu.nav-dropdown li {
    background: #067299 !important;
    border: none !important;
}

.header-bottom-nav ul.sub-menu,
.header-bottom-nav .nav-dropdown,
ul.sub-menu.nav-dropdown,
ul.sub-menu.nav-dropdown.nav-dropdown-default {
    padding: 10px 0 !important;
    box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 !important;
}

.header-bottom-nav .nav-dropdown li a,
.header-bottom-nav ul.sub-menu li a,
.nav-dropdown-default .nav-column li > a,
.nav-dropdown.nav-dropdown-default > li > a,
ul.sub-menu.nav-dropdown > li > a,
ul.sub-menu.nav-dropdown li a {
    color: #ffffff !important;
    min-width: max-content !important;
    text-transform: capitalize !important;
    font-family: "Times New Roman", Times, serif !important;
    font-size: 16px !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    margin: 0 10px !important;
    padding: 10px 0 !important;
    display: block !important;
    border-bottom: 1px solid #ececec !important;
    background: transparent !important;
    transition: color 0.15s ease !important;
}

.header-bottom-nav .nav-dropdown li:last-child a,
.header-bottom-nav ul.sub-menu li:last-child a,
.nav-column > li:last-child:not(.nav-dropdown-col) > a,
.nav-dropdown > li:last-child:not(.nav-dropdown-col) > a,
ul.sub-menu.nav-dropdown > li:last-child > a,
ul.sub-menu.nav-dropdown li:last-child a {
    border-bottom: 0 !important;
}

.header-bottom-nav .nav-dropdown li a:hover,
.header-bottom-nav .nav-dropdown li:hover > a,
.header-bottom-nav ul.sub-menu li a:hover,
.header-bottom-nav ul.sub-menu li:hover > a,
ul.nav-dropdown.nav-dropdown-default > li > a:hover,
.nav-dropdown.nav-dropdown-default > li > a:hover,
ul.sub-menu.nav-dropdown > li > a:hover,
ul.sub-menu.nav-dropdown li a:hover,
ul.sub-menu.nav-dropdown li:hover > a,
.nav-dropdown.nav-dropdown-default > li:hover > a,
.nav-dropdown > li:hover > a {
    color: #fffc00 !important; /* Chữ chuyển màu vàng trên web mục tiêu */
    background: transparent !important; /* Không có vệt nền đen xám */
}

/* Header search & hotline boxes */
#row-header-contacts {
    align-items: center;
    margin-top: 5px;
}

#row-header-contacts .icon-box {
    padding: 5px;
}

#row-header-contacts .icon-box-text p {
    margin-bottom: 0;
    line-height: 1.3;
}

/* ==========================================================================
   TITLES & SECTIONS
   ========================================================================== */
.section-title-center span {
    color: #067299;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Thanh tiêu đề vát góc đặc trưng */
h3.section-title.section-title-normal {
    border-bottom: 2px solid #067299 !important;
    margin-bottom: 20px;
    position: relative;
}

h3.section-title.section-title-normal span {
    background-color: #067299 !important;
    color: #ffffff !important;
    padding: 7px 18px 5px !important;
    font-weight: 700 !important;
    position: relative !important;
    font-size: 17px !important;
    display: inline-block !important;
    text-transform: uppercase;
}

h3.section-title.section-title-normal span:before {
    content: '';
    border-bottom: 36px solid #067299;
    border-right: 20px solid transparent;
    position: absolute;
    top: 0px;
    right: -20px;
    z-index: 1;
}

h3.section-title.section-title-normal span:after {
    content: '';
    width: 12px;
    height: 26px;
    transform: skew(31deg);
    background: #211f20;
    position: absolute;
    z-index: 0;
    right: -24px;
    bottom: 0px;
}

h3.section-title.section-title-normal a {
    float: right;
    font-size: 13px;
    color: #067299;
    margin-top: 8px;
    font-weight: 600;
}

h3.section-title.section-title-normal a:hover {
    color: #ff0000;
}

/* Khối giới thiệu .xdmhp */
.xdmhp {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px dashed #067299 !important;
    border-radius: 6px !important;
    padding: 20px !important;
    box-shadow: 0px 0px 10px 0px rgba(21, 142, 251, 0.3) !important;
}

/* ==========================================================================
   CARDS & POST ITEMS & SLIDERS
   ========================================================================== */
.post-item .col-inner {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 4px solid #37b8eb;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding-bottom: 8px;
}

.post-item .col-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

.post-item .box-image {
    overflow: hidden;
}

.post-item h5.post-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    margin: 10px 8px 6px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 42px;
}

.post-item h5.post-title:hover {
    color: #067299;
}

.post-item p.from_the_blog_excerpt {
    font-size: 13px;
    color: #666;
    padding: 0 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
}

/* 9 Khối Dịch vụ */
.box.box-overlay {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.box.box-overlay .box-text h3 {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.box.box-overlay:hover .box-text {
    background-color: rgba(6, 114, 153, 0.85) !important;
}

/* ==========================================================================
   WOOCOMMERCE ARCHIVE & SINGLE PRODUCT
   ========================================================================== */
.product-small.box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-bottom: 3px solid #37b8eb;
    overflow: hidden;
    padding-bottom: 10px;
    transition: transform 0.25s ease;
}

.product-small.box:hover {
    transform: translateY(-3px);
}

.product-title a {
    color: #111;
    font-weight: 700;
    font-size: 14px;
}

.product-title a:hover {
    color: #067299;
}

.html_after_addtocart {
    background-color: #fff1dd;
    padding: 12px 16px;
    border: 1px dotted red;
    font-size: 18px;
    border-radius: 6px;
    margin: 18px 0;
}

p.lien-he-tv {
    background: #067299;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    padding: 14px 0;
    font-size: 18px;
    border-radius: 6px;
    margin-top: 15px;
}

p.lien-he-tv a {
    color: #fff !important;
    display: block;
}

p.lien-he-tv a:hover {
    color: #00ffdc !important;
}

span.widget-title {
    background: #067299;
    width: 100%;
    display: block;
    color: #fff;
    padding: 10px 14px;
    margin-bottom: 0px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px 4px 0 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#footer {
    background-color: #151414;
    color: #ddd;
}

#footer p, #footer li, #footer a {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

#footer a:hover {
    color: #37b8eb;
}

#footer h3 {
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 2px solid #067299;
    padding-bottom: 6px;
    display: inline-block;
}

.absolute-footer {
    background-color: #0c0c0c !important;
    padding: 18px 0;
    border-top: 1px solid #222;
}

.copyright-footer {
    color: #aaa;
    font-size: 13px;
}

/* ==========================================================================
   FLOATING CALL & ZALO WIDGET
   ========================================================================== */
.ring-wrap {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ring-item {
    position: relative;
    width: 50px;
    height: 50px;
}

.ring-item a {
    display: block;
    width: 50px;
    height: 50px;
}

.ring-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: circleImgZoom 2s infinite ease-in-out;
}

@keyframes circleImgZoom {
    0%, 100% { transform: scale(1) rotate(0deg); }
    10%, 30% { transform: scale(1.1) rotate(-12deg); }
    20%, 40% { transform: scale(1.1) rotate(12deg); }
    50% { transform: scale(1) rotate(0deg); }
}

/* --- Hotline Capsule Pill Bar (Giống hình mẫu) --- */
.hotline-phone-bar {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
}

.hotline-pill-link {
    display: inline-flex;
    align-items: center;
    position: relative;
    height: 46px;
    background: linear-gradient(90deg, #ff232a 0%, #ff3b35 100%);
    border-radius: 50px;
    padding: 0 24px 0 54px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(255, 35, 42, 0.4), 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.hotline-pill-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 35, 42, 0.55), 0 3px 8px rgba(0, 0, 0, 0.2);
}

.hotline-pill-circle {
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #ff2a32 0%, #eb0511 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(235, 5, 17, 0.45);
    z-index: 2;
}

/* Hiệu ứng vòng sóng lan tỏa (Pulse ripple) quanh nút tròn */
.hotline-pill-circle::before,
.hotline-pill-circle::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid rgba(255, 35, 42, 0.75);
    border-radius: 50%;
    animation: hotlinePulse 2s infinite ease-out;
    pointer-events: none;
}

.hotline-pill-circle::after {
    animation-delay: 0.7s;
}

@keyframes hotlinePulse {
    0% {
        transform: scale(0.85);
        opacity: 0.95;
    }
    100% {
        transform: scale(1.42);
        opacity: 0;
    }
}

/* Icon điện thoại rung chuông */
.hotline-svg-icon {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    animation: phoneWiggle 1.8s infinite ease-in-out;
    transform-origin: center center;
}

@keyframes phoneWiggle {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-14deg); }
    20%, 40% { transform: rotate(14deg); }
    50% { transform: rotate(0deg); }
}

/* Số điện thoại hiển thị trên thanh capsule */
.hotline-pill-text {
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

@media (max-width: 549px) {
    .hotline-pill-link {
        height: 40px;
        padding: 0 18px 0 46px;
    }
    .hotline-pill-circle {
        width: 44px;
        height: 44px;
    }
    .hotline-svg-icon {
        width: 19px;
        height: 19px;
    }
    .hotline-pill-text {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
}

/* ==========================================================================
   RESPONSIVE (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 849px) {
    #header {
        height: auto;
    }
    #logo {
        width: 180px;
    }
    .header-main {
        height: 70px;
    }
    #logo img {
        max-height: 60px;
    }
    .header-bottom {
        display: none;
    }
    h3.section-title.section-title-normal span {
        font-size: 15px !important;
        padding: 5px 12px 3px !important;
    }
    h3.section-title.section-title-normal span:before {
        border-bottom-width: 30px;
        border-right-width: 16px;
        right: -16px;
    }
    .ring-wrap {
        bottom: 20px;
        left: 15px;
    }
}

@media (max-width: 549px) {
    .section-title-center span {
        font-size: 18px;
    }
    .post-item h5.post-title {
        font-size: 13px;
        min-height: 36px;
    }
    .xdmhp {
        padding: 12px !important;
    }
}

/* ==========================================================================
   SIDEBAR & WIDGETS - ĐỒNG BỘ 100% VỚI WEBSITE MỤC TIÊU
   ========================================================================== */
div#secondary {
    padding: 5px !important;
    box-shadow: 0px 0px 6px #717171ee !important;
    border-bottom: 4px solid #37b8eb !important;
    border-radius: 5px !important;
    background: #ffffff !important;
}

/* Tiêu đề Widget đồng bộ chuẩn #067299 */
#secondary span.widget-title,
#secondary .widget-title,
.widget-area span.widget-title,
.widget-area .widget-title {
    background: #067299 !important;
    width: 100% !important;
    display: block !important;
    color: #ffffff !important;
    padding: 10px 0px 10px 10px !important;
    margin-bottom: 0px !important;
    text-transform: uppercase !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 4px 4px 0 0 !important;
}

#secondary span.widget-title span,
#secondary .widget-title span,
.widget-area span.widget-title span,
.widget-area .widget-title span {
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
}

/* Ẩn divider mặc định của Flatsome */
#secondary .is-divider.small,
.widget-area .is-divider.small {
    display: none !important;
}

#secondary .widget,
.widget-area .widget {
    margin-bottom: 15px !important;
}

/* Menu danh mục có viền nét đứt chuẩn cokhithaithinhphat.com */
.widget .menu {
    border: 1px dashed #067299 !important;
    border-top: 0 !important;
    margin-bottom: 15px !important;
    border-radius: 0 0 6px 6px !important;
    padding: 0 !important;
    list-style: none !important;
    background: #ffffff !important;
}

.widget .menu li + li {
    border-top: 1px dashed rgba(6, 114, 153, 0.32) !important;
}

.widget .menu > li {
    margin: 0 !important;
    padding: 0 !important;
}

.widget .menu > li > a {
    color: #000000 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
    padding: 8px 10px !important;
    display: block !important;
    transition: all 0.2s ease !important;
    line-height: 1.5 !important;
}

.widget .menu > li > a::before {
    content: "➔" !important;
    margin-right: 8px !important;
    color: #067299 !important;
    font-size: 12px !important;
    display: inline-block !important;
    transition: transform 0.2s ease !important;
}

.widget .menu > li > a:hover,
.widget .menu > li.current-menu-item > a {
    color: #126700 !important; /* Xanh lá đậm chuẩn web mục tiêu */
    background: #ffffff !important;
    padding-left: 15px !important;
}

.widget .menu > li > a:hover::before {
    color: #126700 !important;
}

/* Widget Sản phẩm WooCommerce */
.product_list_widget .woocommerce-Price-amount {
    color: #60b301 !important;
}

.product_list_widget li a {
    color: #000000 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.product_list_widget li a:hover {
    color: #067299 !important;
}

.product_list_widget li img {
    border-radius: 4px !important;
}

/* Widget Bài viết mới nhất */
.widget.flatsome_recent_posts a {
    color: #000000 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.widget.flatsome_recent_posts a:hover {
    color: #067299 !important;
}