/**
 * Theme Name:     K-Tech
 * Author:         K-Tech
 * Template:       flatsome
 * Text Domain:	   k-tech
 * Description:    Theme Build by Dai
 * Theme URI:      https://k-tech.net.vn/
 * Author URI:     https://k-tech.net.vn/
 * Version:        20250916
 * License:        2NRJM-B46WR-K6VQR-Y4T3D-QRWPX
 * License URI:    https://k-tech.net.vn/
 */

/*************** ADD CUSTOM CSS HERE.   ***************/
body {
    font-family: "Inter", sans-serif;
    line-height: 1.3;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "HV Harietta B";
    margin-bottom: 0.8rem;
    padding: 0;
}

h1,
h2,
h3 {
    font-weight: bold;
}

.button.is-outline, input[type=button].is-outline, input[type=reset].is-outline, input[type=submit].is-outline {
    border-width: 1px;
}

.button.icon.circle, .button.icon.round {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons {
    display: flex !important;
    align-items: center;
}

.menu_footer {
    font-size: 0.8em;
}

.menu_footer a {
    text-transform: uppercase;
    font-weight: 700;
}

.button.icon.circle > i, .button.icon.round > i {
    margin-top: 4px !important;
}

.video_banner .wp-video {
    width: 100% !important;
}

.stuck .header-main .nav > li > a {
    line-height: auto !important;
}

.video_banner .wp-video .mejs-container,
.video_banner .wp-video .mejs-container video {
    width: 100% !important;
    height: 100vh !important;
}

.post-hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.post-header {
    max-width: 860px;
    margin: 40px auto 0;
    text-align: center;
}

.post-excerpt {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.post-meta {
    font-size: 0.85rem;
    opacity: 0.6;
}

.post-content {
    margin: 40px auto;
}

.post-share {
    max-width: 860px;
    margin: 60px auto;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.share-list {
    display: flex;
    gap: 16px;
}

.nav-vertical + .tab-panels, .nav-vertical > li + li {
    border-color: #434343;
}

.related-posts {
    max-width: 1200px;
    margin: 80px auto;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.post-body {
    max-width: 1200px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    align-items: flex-start;
}

.sticky-share {
    position: sticky;
    top: 120px; /* cách header */
}

.post-share {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.share-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-list a {
    text-decoration: none;
    opacity: 0.7;
}

.share-list a:hover {
    opacity: 1;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 1rem;
}

.form-row .form-group.form-half {
    width: calc(50% - 10px);
}

.form-row .form-group {
    width: 100%;
}

.form-row .form-group input,
.form-row .form-group select,
.form-row .form-group textarea {
}

.form-row.submit-row {
    margin-top: 1rem;
}

.form-row .form-group input::placeholder, .form-row .form-group select::placeholder, .form-row .form-group textarea::placeholder {
    font-size: 13px;
}

.form-row.submit-row input {
    background: var(--primary-color);
}

/* header#header {
    padding: 15px 0;
} */

.menu_footer {
    flex-direction: row;
    gap: 2rem;
    justify-content: end;
}

.menu_footer .ux-menu-link {
    width: max-content;
}

.header-wrapper.stuck {
    padding: 15px 0;
}

.book_now {
    display: block !important;
    padding: 0rem 1rem !important;
    background: var(--primary-color);
    color: #fff !important;
    font-weight: 700;
    min-height: 45px;
    line-height: 45px !important;
}

ul.header-nav.header-nav-main.nav.nav-left.nav-size-large {
    margin-left: 50px;
}
.tab_menu .tab-panels {
    width: 75%;
	border: none;
}
.tab_menu ul.nav {
    border: none;
}

.tab_menu .tab-panels li a {
    border: none !important;
}

.tab_menu ul.nav li {
    border: none !important;
}

.tab_menu ul.nav li a:before {
    width: 16px !important;
    height: 13px !important;
    border-radius: 0 10px 10px 0;
	top: 12px;
}


.map iframe {
    border-radius: 10px;
    overflow: hidden;
}


.form-wrapper .form-row input {
    height: 50px;
    border-radius: 7px;
    overflow: hidden;
}

.form-wrapper .form-row textarea {
    border-radius: 7px;
    overflow: hidden;
}


.txt-justify {
    text-align: justify !important;
}

.border2 {
    border-radius: 10px;
    overflow: hidden;
}


.img-company {
    border-radius: 10px;
    overflow: hidden;;
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/
	.menu_footer .menu-item {
    width: calc(50% - 2rem);
}

.menu_footer {
    flex-direction: unset;
    flex-wrap: wrap;
    justify-content: start;
    gap: 0.7rem;
}
}






.custom-layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* --- SIDEBAR TRÁI --- */
.sidebar-taxonomy {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-title {
    background-color: #d32f2f;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

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

.taxonomy-list li {
    margin-bottom: 10px;
}

.taxonomy-list li a {
    display: block;
    background-color: #b71c1c;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 15px;
    transition: all 0.3s ease;

    @media only screen and (max-width: 768px) {
        padding: 10px 15px;
    }
}

.taxonomy-list li.active a,
.taxonomy-list li a:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

/* --- CỘT PHẢI: LƯỚI SẢN PHẨM --- */
.product-grid-content {
    flex-grow: 1;
    width: calc(100% - 290px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PC: 3 sản phẩm */
    gap: 20px;
}

.product-card {
    background: #ce2831;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Khung chứa ảnh & Zoom */
.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image img {
    transform: scale(1.08); /* Zoom in */
}

/* Nội dung chữ */
.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 15px;
    margin: 0 0 8px;
    line-height: 1.4;
    font-weight: bold;
}

.product-title a {
    font-size: 22px;
    font-weight: 600;
    color: var(--fs-color-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.product-desc {
    font-size: 13px;
    color: #fefefe;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 12px;
}

.product-price {
    font-weight: bold;
    color: #d32f2f;
    font-size: 15px;
}

.product-price.contact {
    color: #fefefe;
    font-style: italic;
}

/* --- PHÂN TRANG CSS --- */
.pagination {
    grid-column: 1 / -1;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}
.pagination .page-numbers.current {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

/* --- RESPONSIVE MOBILE & TABLET --- */
@media (max-width: 991px) {
    .custom-layout-wrapper {
        flex-direction: column;
    }
    .sidebar-taxonomy, .product-grid-content {
        width: 100%;
    }
    .taxonomy-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .taxonomy-list li {
        margin-bottom: 0;
        flex: 1 1 calc(50% - 5px);
    }
}

@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
    }
    .product-info {
        padding: 10px;
    }
    .product-title {
        font-size: 13px;
        height: 36px;
        overflow: hidden;
    }
    .product-desc {
        display: none;
    }
    .product-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding-top: 8px;
    }
    .product-price {
        font-size: 13px;
    }
}

.sec-single {
	margin-top: 25px;
}

.sec-single .title {
    font-size: 30px;
    font-weight: 700;
    display: block;
    white-space: normal;
    word-break: break-word;
    color: var(--primary-color);
}

.sec-single .content * {
	color: #222;
    text-align: justify;
    line-height: 1.65;
}

.form-group label {
	color: #222;
}


.form-group input, .form-group textarea {
	background: #0000001f !important;
	border-color: #222;
}

