/*
Theme Name: Bảo Hiểm Xe Ô tô
Theme URI: muabaohiemxe247.com
Author: muabaohiemxe247.com
Author URI: muabaohiemxe247.com
Description: Theme WordPress chuyên nghiệp cho dịch vụ bảo hiểm xe.
Version: 1.0.0
Text Domain: muabaohiemxe247.com
*/

/* 
Thông tin liên hệ tác giả:
SĐT: 0975510794
Facebook: https://www.facebook.com/nguyenxuanbinh1990/
*/

:root {
    --primary-color: #0a2540; /* Xanh Navy Đậm - Uy tín */
    --secondary-color: #ad8a4e; /* Vàng Gold - Sang trọng */
    --accent-color: #f4f4f4;
    --text-color: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --container-width: 1240px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.7; /* Tăng line-height cho sang trọng */
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #fcfcfc;
    overflow-x: hidden; /* Tránh thanh cuộn ngang do animation */
}

/* ... (Giữ nguyên các style khác) ... */

/* =========================================
   LUXURY FORM GLOBAL STYLE
   ========================================= */
.luxury-form {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
}

.luxury-form .form-group {
    margin-bottom: 20px;
}

.luxury-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.luxury-form input,
.luxury-form select,
.luxury-form textarea {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.luxury-form input:focus,
.luxury-form select:focus,
.luxury-form textarea:focus {
    background: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(173, 138, 78, 0.1);
    outline: none;
}

.luxury-form .form-row {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .luxury-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================
   BLOG & PAGE LAYOUT
   ========================================= */
.site-content-wrapper {
    background: #f9f9f9;
}

.row-layout {
    display: flex;
    gap: 40px;
}

.site-main {
    flex: 2; /* Chiếm 2/3 */
}

.widget-area {
    flex: 1; /* Chiếm 1/3 */
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Breadcrumb */
.baohiemxe-breadcrumb {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #888;
}

.baohiemxe-breadcrumb a {
    color: #888;
}

.baohiemxe-breadcrumb .sep {
    margin: 0 8px;
    font-size: 0.8rem;
    color: #ccc;
}

.baohiemxe-breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2rem;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.entry-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.entry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.entry-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.entry-body {
    padding: 25px;
}

.entry-meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.entry-meta i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.entry-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.entry-excerpt {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Pagination Luxury Style */
.blog-pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid #eee;
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.pagination .page-numbers.current {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(173, 138, 78, 0.3);
}

.pagination .page-numbers:not(.current):hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* Product Card Alignment */
.insurance-card, .service-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Bắt buộc card phải cao bằng nhau trong Grid */
}

.ins-content, .service-card {
    display: flex;
    flex-direction: column;
    flex: 1; /* Chiếm hết chiều cao còn lại */
}

.ins-actions, .service-link {
    margin-top: auto; /* Đẩy nút xuống đáy cùng */
}

/* Service Card Tweaks */
.service-card .service-text {
    flex: 1;
    margin-bottom: 20px;
}
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}
.widget {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 4px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    position: relative;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

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

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
}

.widget li a {
    color: #555;
}

.widget li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Single Post */
.entry-single .entry-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.entry-single .entry-meta {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.single-thumbnail img {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.entry-content {
    font-size: 1.05rem;
    color: #3a3a3a;
    line-height: 1.8;
}

/* Optimized Headings for Article */
.entry-content h2 {
    font-size: 1.6rem;
    margin-top: 45px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.entry-content h2:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

.entry-content h3 {
    font-size: 1.3rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Improved Lists (Bullets) */
.entry-content ul, .entry-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.entry-content ul li {
    margin-bottom: 12px;
    position: relative;
    list-style: none;
}

.entry-content ul li:before {
    content: "\f058"; /* Check circle font-awesome */
    font-family: FontAwesome;
    position: absolute;
    left: -25px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Table Responsiveness & Luxury Style */
.table-responsive {
    width: 100%;
    margin: 40px 0;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(10, 37, 64, 0.1); /* Đổ bóng đa tầng sâu hơn */
    background: #fff;
}

.entry-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
}

/* Header Styling */
.entry-content table th {
    background: #f8f9fb; /* Nền nhạt sang trọng cho header */
    color: var(--primary-color);
    text-align: left;
    padding: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    border-bottom: 2px solid var(--secondary-color);
}

.entry-content table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.2s ease;
    background: #fff;
}

/* Cố định cột đầu tiên trên Mobile */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .entry-content table th:first-child,
    .entry-content table td:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background: #fff;
        border-right: 1px solid #eee;
        box-shadow: 5px 0 10px rgba(0,0,0,0.03); /* Bóng đổ nhẹ khi các cột khác chui vào dưới */
        min-width: 120px;
        white-space: normal; /* Cho phép cột đầu tiên xuống dòng nếu cần */
    }

    .entry-content table th:first-child {
        background: #f8f9fb;
        z-index: 11;
    }

    .entry-content table td {
        white-space: nowrap; /* Các cột khác giữ trên 1 dòng để kích hoạt scroll */
    }
}

/* Thiết kế lại chỉ báo Vuốt ngang sang trọng hơn */
.table-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #fcf8f2, #fff);
    padding: 10px 20px;
    border-radius: 30px;
    width: fit-content;
    margin: 0 auto 15px;
    font-size: 0.7rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid #f1e3cc;
    box-shadow: 0 5px 15px rgba(173, 138, 78, 0.1);
}

.table-scroll-hint i {
    font-size: 1rem;
    margin-right: 10px;
}

@media (min-width: 769px) {
    .table-scroll-hint {
        display: none;
    }
    .entry-content table td {
        white-space: normal; /* Trên PC cho phép xuống dòng bình thường */
    }
}

/* Images in content */
.entry-content img {
    border-radius: 8px;
    margin: 20px 0;
}

/* Mobile Specific Tweaks for Content */
@media (max-width: 768px) {
    .entry-single .entry-title {
        font-size: 1.6rem !important;
    }
    
    .entry-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .entry-content h2 {
        font-size: 1.4rem !important;
        margin-top: 35px;
    }
    
    .entry-content h3 {
        font-size: 1.2rem !important;
    }

    .entry-content blockquote {
        border-left: 4px solid var(--secondary-color);
        padding-left: 20px;
        margin-left: 0;
        font-style: italic;
        background: #f9f9f9;
        padding: 20px;
        border-radius: 0 8px 8px 0;
    }
}

.share-buttons a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 50%;
    margin-left: 10px;
    color: #555;
}

.share-buttons a:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Mobile */
@media (max-width: 992px) {
    .row-layout {
        flex-direction: column;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .widget-area {
        position: static;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn-luxury {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 2px; /* Bo góc nhẹ */
    border: 1px solid var(--secondary-color);
}

.btn-luxury:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-outline {
    display: inline-block;
    padding: 14px 35px;
    background-color: transparent;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 2px;
    border: 1px solid var(--white);
}

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

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

/* Helper Classes */
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: #f8f9fa; }

/* =========================================
   GLOBAL RESPONSIVE FIXES
   ========================================= */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    .section-padding {
        padding: 50px 0;
    }
    h1, .hero-title, .page-title {
        font-size: 2.2rem !important;
    }
    h2, .section-title {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 768px) {
    h1, .hero-title {
        font-size: 1.8rem !important;
    }
    .row-layout, .ai-wrapper, .cim-wrapper, .ceo-wrapper, .calculator-wrapper {
        flex-direction: column !important;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .hero-actions .btn-luxury, .hero-actions .btn-outline {
        width: 100%;
        margin: 0;
        text-align: center;
    }
}


/* --- TINH CH?NH RESPONSIVE TRANG CH? --- */
@media (max-width: 768px) {
    .site-main > section {
        margin-bottom: 40px; /* T?o kho?ng c�ch gi?a c�c section l?n */
    }
    
    /* Calculator Section Mobile */
    .calculator-wrapper {
        padding: 30px 20px !important;
    }
    
    /* FAQ Section Mobile */
    .faq-header h3 {
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .footer-col {
        text-align: left;
    }
    .footer-title:after {
        left: 0;
        transform: none;
    }
}


/* --- FINAL RESPONSIVE SPACING ADJUSTMENTS --- */
@media (max-width: 768px) {
    .section-padding { padding: 40px 0 !important; }
    .section-header { margin-bottom: 30px !important; }
    .site-main > section { margin-bottom: 40px !important; }
    .footer-col { margin-bottom: 30px !important; }
    .hero-desc { margin-bottom: 25px !important; }
}

