/*
Theme Name: Gia Phong Việt
Theme URI: https://www.giaphongviet.com/
Author: Gia Phong Việt
Author URI: https://www.giaphongviet.com/
Description: Giao diện chuyên nghiệp cho Công ty TNHH Gia Phong Việt - Chuyên thiết kế và thi công Nhà gỗ cổ truyền, Nhà bê tông giả gỗ, Nội thất và Kiến trúc tâm linh.
Version: 1.2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: giaphongviet
Tags: custom-background, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

:root {
    --primary-color: #630000;
    --primary-dark: #460000;
    --primary-light: #8e1818;
    --accent-gold: #c89d47;
    --accent-gold-light: #dfb76c;
    --wood-color: #5c3a21;
    --wood-light: #8b5a2b;
    --text-color: #2c2c2c;
    --text-muted: #666666;
    --bg-light: #fbf9f5;
    --bg-pattern: #f5efe6;
    --white: #ffffff;
    --border-color: #e5ded3;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-heading: 'Merriweather', 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* TOPBAR (Đã ẩn hoàn toàn dải thông tin đen) */
.topbar {
    display: none !important;
}

/* HEADER MAIN */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    height: 65px;
    width: auto;
}

.site-title-box h1,
.site-title-box .site-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

.site-slogan {
    font-size: 12px;
    color: var(--wood-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* NAVIGATION */
.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #2b2b2b;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 0;
    display: block;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item>a::after {
    width: 100%;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item>a {
    color: var(--primary-color);
}

/* DROPDOWN */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    padding: 10px 0;
    border-radius: 4px;
    border-top: 3px solid var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    display: block;
}

.main-navigation li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    padding: 0;
}

.main-navigation ul ul a {
    padding: 8px 18px;
    font-size: 13px;
    text-transform: none;
    border-bottom: 1px solid #f2f2f2;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul a:hover {
    background-color: var(--bg-pattern);
    color: var(--primary-color);
    padding-left: 22px;
}

/* HEADER CTA */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-header-call {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(99, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-header-call:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 0, 0, 0.35);
}

.btn-header-call i {
    font-size: 16px;
    color: var(--accent-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* BANNER HERO SLIDER */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    background: #111;
}

.hero-slider {
    position: relative;
    height: 520px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    margin-left: max(20px, calc((100% - 1200px)/2));
}

.hero-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 2px;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-desc {
    font-size: 17px;
    color: #e5ded3;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(99, 0, 0, 0.3);
}

.btn-primary:hover {
    background: var(--accent-gold);
    color: #111;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.slider-nav {
    position: absolute;
    bottom: 25px;
    right: 40px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.slider-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* SECTION HEADINGS */
.section-header {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
}

.section-subtitle {
    font-size: 13px;
    color: var(--wood-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 6px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--accent-gold);
}

/* Khi không cần hoa văn gạch chân ở tiêu đề */
.section-title.no-pattern::after {
    display: none !important;
}

.section-title.no-pattern {
    padding-bottom: 0 !important;
}

.section-pattern {
    background-image: url('assets/images/2080-3ce352d6_hoa_v_n.png');
    background-repeat: repeat-x;
    background-position: center top;
}

/* INTRO / SERVICES SECTION */
.services-section {
    padding: 70px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #f7ebe0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
    border: 2px solid var(--accent-gold);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* PROJECTS / CÔNG TRÌNH NỔI BẬT */
.projects-section {
    padding: 70px 0;
    background: var(--bg-pattern);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 3px solid #ede4d8;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.project-thumb {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #eaeaea;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.08);
}

.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.project-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 10px;
}

.project-title a {
    color: inherit;
}

.project-title a:hover {
    color: var(--primary-color);
}

.project-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.project-meta i {
    color: var(--primary-color);
}

/* ABOUT SECTION */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--bg-light);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 2px solid var(--accent-gold);
}

.about-badge .number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
    line-height: 1;
}

.about-badge .text {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 34px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content p {
    color: #555;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.feature-item i {
    color: var(--accent-gold);
    font-size: 18px;
}

/* TEAM / BAN LÃNH ĐẠO */
.team-section {
    padding: 70px 0;
    background: var(--bg-pattern);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.team-photo {
    height: 270px;
    overflow: hidden;
    background: #eaeaea;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 20px 15px;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-role {
    font-size: 13px;
    color: var(--wood-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA BANNER */
.cta-banner {
    background: linear-gradient(135deg, rgba(99, 0, 0, 0.95), rgba(70, 0, 0, 0.95)), url('assets/images/2115-e270373a_b_a_web_8.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}

.cta-banner p {
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ede4d8;
}

.cta-banner .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* FOOTER */
.site-footer {
    background: #181513;
    color: #d1c8be;
    padding-top: 60px;
    border-top: 4px solid var(--accent-gold);
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-widget h3 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-about p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact-list i {
    color: var(--accent-gold);
    font-size: 16px;
    margin-top: 4px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.footer-bottom a {
    color: var(--accent-gold);
}

/* FLOATING CONTACT BUTTONS (HOTLINE & ZALO) */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: var(--transition);
}

.float-btn.zalo {
    background: #0088ff;
}

.float-btn.phone {
    background: #d82c2c;
    animation: quick-shake 2.5s infinite;
}

.float-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.float-btn img {
    width: 32px;
    height: 32px;
}

.float-btn i {
    font-size: 24px;
}

@keyframes quick-shake {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    10%,
    30% {
        transform: scale(1.08) rotate(-10deg);
    }

    20%,
    40% {
        transform: scale(1.08) rotate(10deg);
    }

    50% {
        transform: scale(1) rotate(0deg);
    }
}

/* ==========================================================================
   NEW MODULES: KHÁCH HÀNG TIN YÊU, VIDEO - XƯỞNG SX, TESTIMONIALS, CẤU KIỆN
   ========================================================================== */

/* 1. SECTION: KHÁCH HÀNG TIN YÊU */
.gpv-clients-section {
    padding: 70px 0;
    background-color: var(--white);
    position: relative;
}

.section-desc {
    max-width: 720px;
    margin: 14px auto 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.gpv-clients-slider-wrapper {
    position: relative;
    margin-top: 35px;
    padding: 0;
    overflow: hidden;
}

.gpv-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.gpv-clients-slider-wrapper .gpv-slider-track {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    will-change: transform;
}

.gpv-client-item {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: calc((100% - 60px) / 4);
}

.gpv-client-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.gpv-client-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.gpv-client-img-wrap {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #000;
}

.gpv-client-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gpv-client-card:hover .gpv-client-img-wrap img {
    transform: scale(1.06);
}

/* Nút mũi tên Khách Hàng Tin Yêu: Dưới 4 ảnh */
.gpv-clients-nav-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 25px;
}

.gpv-clients-nav-bottom .gpv-slider-arrow {
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gpv-clients-nav-bottom .gpv-slider-arrow:hover {
    background: var(--accent-gold);
    color: #111;
    transform: scale(1.08);
}

/* 2. SECTION: VIDEO - ẢNH XƯỞNG SẢN XUẤT */
.gpv-factory-section {
    padding: 75px 0;
}

.gpv-factory-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 25px;
    margin-top: 35px;
    align-items: stretch;
}

.gpv-factory-video-col {
    display: flex;
}

.gpv-factory-video-card {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    background: #111;
    display: flex;
    flex-direction: column;
}

.gpv-video-thumb-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 330px;
    overflow: hidden;
}

.gpv-video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.gpv-factory-video-card:hover .gpv-video-thumb-wrap img {
    transform: scale(1.04);
    opacity: 0.9;
}

.gpv-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(99, 0, 0, 0.9);
    border: 3px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    padding-left: 4px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.45);
    transition: var(--transition);
}

.gpv-factory-video-card:hover .gpv-play-btn {
    background: var(--accent-gold);
    color: #111;
    transform: translate(-50%, -50%) scale(1.12);
}

.gpv-factory-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #fff;
}

.gpv-factory-meta .badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e62117;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gpv-factory-meta h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin: 0;
    color: #fff;
}

.gpv-factory-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 100%;
}

.gpv-factory-img-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background: #000;
    height: 190px;
}

.gpv-factory-img-thumb {
    width: 100%;
    height: 100%;
    position: relative;
}

.gpv-factory-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gpv-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    opacity: 0;
    transition: var(--transition);
}

.gpv-factory-img-card:hover .gpv-zoom-overlay {
    opacity: 1;
}

.gpv-factory-img-card:hover .gpv-factory-img-thumb img {
    transform: scale(1.08);
}

.gpv-factory-img-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* 3. SECTION: KHÁCH HÀNG NÓI VỀ CHÚNG TÔI (TESTIMONIALS) */
.gpv-testimonials-section {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
}

.gpv-testi-carousel-wrapper {
    position: relative;
    margin-top: 40px;
    padding: 30px 60px;
}

.gpv-testi-viewport {
    overflow: hidden;
    padding: 30px 0;
    margin: -30px 0;
}

.gpv-testi-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1);
}

.gpv-testi-track.sliding-left {
    transform: translateX(-30px);
}

.gpv-testi-track.sliding-right {
    transform: translateX(30px);
}

.gpv-testi-card {
    display: none;
    /* Chỉ hiển thị khi có class .is-visible */
    flex: 0 0 calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
    cursor: pointer;
    padding: 15px 5px;
    transition: transform 0.38s ease, opacity 0.38s ease;
}

.gpv-testi-card.is-visible {
    display: block;
}

/* Thứ tự hiển thị 1 - 2 - 3 trong flexbox */
.gpv-testi-card.pos-1 {
    order: 1;
}

.gpv-testi-card.pos-2 {
    order: 2;
}

.gpv-testi-card.pos-3 {
    order: 3;
}

.gpv-testi-card-inner {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 24px 24px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.38s ease;
    display: flex;
    flex-direction: column;
    min-height: 290px;
}

.gpv-testi-card.active-prev .gpv-testi-card-inner,
.gpv-testi-card.active-next .gpv-testi-card-inner {
    opacity: 0.72;
    transform: scale(0.92);
}

.gpv-testi-card.active-center {
    z-index: 2;
}

.gpv-testi-card.active-center .gpv-testi-card-inner {
    background: #fff;
    border: 2px solid var(--accent-gold);
    transform: scale(1.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.gpv-testi-quote-icon {
    font-size: 26px;
    color: var(--accent-gold);
    margin-bottom: 12px;
    opacity: 0.8;
}

.gpv-testi-quote-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gpv-testi-card.active-center .gpv-testi-quote-text {
    -webkit-line-clamp: 5;
    color: #222;
    font-size: 15px;
}

.gpv-testi-rating {
    color: #f5a623;
    font-size: 13px;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.gpv-testi-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.gpv-testi-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    flex-shrink: 0;
}

.gpv-testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gpv-testi-info {
    overflow: hidden;
}

.gpv-testi-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gpv-testi-address {
    font-size: 12.5px;
    color: var(--text-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gpv-testi-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 5;
}

.gpv-testi-btn:hover {
    background: var(--accent-gold);
    color: #111;
    transform: translateY(-50%) scale(1.08);
}

.gpv-testi-btn.prev {
    left: 0;
}

.gpv-testi-btn.next {
    right: 0;
}

.gpv-testi-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.gpv-testi-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4c8b8;
    cursor: pointer;
    transition: var(--transition);
}

.gpv-testi-dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 10px;
}

/* 4. SECTION: HÌNH ẢNH CẤU KIỆN */
.gpv-components-section {
    padding: 75px 0;
}

.gpv-comp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 35px;
}

.gpv-comp-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.gpv-comp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.gpv-comp-thumb {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #2a1810;
}

.gpv-comp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gpv-comp-card:hover .gpv-comp-thumb img {
    transform: scale(1.08);
}

.gpv-comp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gpv-comp-card:hover .gpv-comp-overlay {
    opacity: 1;
}

.gpv-comp-view-btn {
    padding: 8px 16px;
    background: var(--accent-gold);
    color: #111;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.gpv-comp-name-bar {
    background: var(--primary-color);
    padding: 12px 16px;
    text-align: center;
    transition: background 0.3s ease;
}

.gpv-comp-card:hover .gpv-comp-name-bar {
    background: var(--primary-color);
}

.gpv-comp-name-bar h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
    font-family: var(--font-heading);
}

/* 5. LIGHTBOX MODAL (XEM CHI TIẾT) */
.gpv-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gpv-lightbox-modal.is-open {
    opacity: 1;
    visibility: visible;
}

body.gpv-modal-open {
    overflow: hidden;
}

.gpv-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.gpv-lightbox-dialog {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    background: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.gpv-lightbox-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.gpv-lightbox-close:hover {
    background: var(--primary-color);
    color: #fff;
}

.gpv-lightbox-content {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 65vh;
    overflow: hidden;
}

.gpv-lightbox-content img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gpv-lightbox-content video {
    max-width: 100%;
    max-height: 65vh;
    outline: none;
}

.gpv-lightbox-responsive-media {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
}

.gpv-lightbox-responsive-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gpv-lightbox-info {
    padding: 16px 20px;
    background: #242424;
    color: #fff;
}

.gpv-lightbox-title {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 18px;
    margin: 0 0 6px;
}

.gpv-lightbox-desc {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* RESPONSIVE CHO CÁC MODULE */
@media (max-width: 992px) {
    .gpv-client-item {
        flex: 0 0 calc((100% - 30px) / 3);
        min-width: calc((100% - 30px) / 3);
    }

    .gpv-client-img-wrap {
        height: 150px;
    }

    .gpv-factory-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gpv-factory-video-col {
        min-height: unset;
        display: block;
    }

    .gpv-video-thumb-wrap {
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 240px;
    }

    .gpv-testi-card {
        flex: 0 0 100%;
    }

    .gpv-testi-card.active-prev,
    .gpv-testi-card.active-next {
        display: none;
    }

    .gpv-testi-card.active-center .gpv-testi-card-inner {
        transform: none;
    }

    .gpv-comp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gpv-comp-thumb {
        height: 190px;
    }
}

@media (max-width: 768px) {
    /* 1. KHUNG ẢNH NGANG MODULE SLIDE */
    .hero-slider {
        width: 100%;
        height: 56.25vw;
        aspect-ratio: 16 / 9;
        max-height: 420px;
        min-height: 190px;
    }

    .hero-slide {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .slider-nav {
        bottom: 12px;
        right: 15px;
        gap: 8px;
    }

    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
        background: rgba(0, 0, 0, 0.45);
    }
}

@media (max-width: 600px) {
    .gpv-clients-section,
    .gpv-factory-section,
    .gpv-components-section {
        padding: 45px 0;
    }

    /* 2. KHÁCH HÀNG TIN YÊU TRÊN MOBILE: 2 ảnh / hàng, mũi tên phía dưới */
    .gpv-clients-slider-wrapper .gpv-slider-track {
        gap: 12px;
    }

    .gpv-client-item {
        flex: 0 0 calc((100% - 12px) / 2);
        min-width: calc((100% - 12px) / 2);
    }

    .gpv-client-img-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        min-height: 115px;
    }

    .gpv-clients-nav-bottom {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 14px;
        margin-top: 18px;
    }

    .gpv-clients-nav-bottom .gpv-slider-arrow {
        display: inline-flex !important;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* 3. VIDEO - ẢNH XƯỞNG TRÊN MOBILE: Video 16:9 ở trên, 4 ảnh dạng lưới 2x2 ở dưới */
    .gpv-factory-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 22px;
    }

    .gpv-video-thumb-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 190px;
    }

    .gpv-play-btn {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .gpv-factory-images-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        height: auto;
    }

    .gpv-factory-img-card {
        height: auto;
        aspect-ratio: 4 / 3;
        min-height: 105px;
    }

    /* 4. HÌNH ẢNH CẤU KIỆN TRÊN MOBILE: Lưới 2 cột, ảnh tỉ lệ 4:3, thanh tên cấu kiện rõ ràng */
    .gpv-comp-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 20px;
    }

    .gpv-comp-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        min-height: 110px;
    }

    .gpv-comp-name-bar {
        padding: 8px 10px;
    }

    .gpv-comp-name-bar h3 {
        font-size: 13px;
        line-height: 1.35;
        white-space: normal;
    }
}

/* ==========================================================================
   SINGLE POST LAYOUT & CONSULTATION FORM (BÀI VIẾT CHI TIẾT)
   ========================================================================== */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 45px;
    align-items: start;
}

.single-post-content-col {
    min-width: 0;
}

.single-post-sidebar {
    position: relative;
}

.consult-form-sticky {
    position: sticky;
    top: 90px;
}

.consult-form-card {
    background: #ffffff;
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(99, 0, 0, 0.08);
    overflow: hidden;
}

.consult-form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    padding: 24px 22px;
    text-align: center;
}

.consult-form-header .sub-tag {
    display: inline-block;
    background: var(--accent-gold);
    color: #111;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.consult-form-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.consult-form-header p {
    font-size: 13px;
    line-height: 1.5;
    color: #e5ded3;
    margin: 0;
}

.consult-form-body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fbf9f5;
}

.consult-form-body .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.consult-form-body label {
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.consult-form-body label i {
    color: var(--primary-color);
    font-size: 13px;
}

.consult-form-body input[type="text"],
.consult-form-body input[type="tel"],
.consult-form-body select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    color: #333;
    outline: none;
    transition: var(--transition);
}

.consult-form-body input:focus,
.consult-form-body select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 0, 0, 0.1);
}

.consult-form-body select {
    cursor: pointer;
}

.btn-submit-consult {
    width: 100%;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 13px 20px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(99, 0, 0, 0.25);
    transition: var(--transition);
    margin-top: 5px;
}

.btn-submit-consult:hover {
    background: var(--accent-gold);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 157, 71, 0.35);
}

.consult-direct-hotline {
    text-align: center;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.consult-direct-hotline span {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.consult-direct-hotline a {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.consult-direct-hotline a:hover {
    color: var(--accent-gold);
}

.consult-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid #c8e6c9;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 15px 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .consult-form-sticky {
        position: static;
    }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px;
    }

    .main-navigation.is-active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .main-navigation li.menu-item-has-children.open>ul {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .topbar {
        display: none !important;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        width: 100%;
        height: 56.25vw;
        aspect-ratio: 16 / 9;
        max-height: 420px;
        min-height: 190px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-desc {
        font-size: 14px;
    }
}