/* Phân trang */
.vp18h_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.vp18h_page-link {
    padding: 8px 12px;
    margin: 0 5px;
    color: #333333;
    text-decoration: none;
    border: 1px solid #ccc;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.vp18h_page-link:hover {
    background-color: #f4f4f4;
}

.vp18h_page-link.active {
    background-color: #333333;
    color: #ffffff;
}
/* Tiêu đề trang */
.title-section {
    position: relative;
    width: 100%;
    height: 117px;
    background: url('image/bg-banggia2.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.title-section h2 {
    position: relative;
    font-size: 21px;
    z-index: 2;
}
.title-section h4 {
    position: relative;
    font-size: 15px;
    font-style: italic;
    letter-spacing: 1.2px;
    word-spacing: 2px;
    line-height: 1.8;
    z-index: 2;
}

/* Lớp phủ màu đen trong suốt */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

/* Hiệu ứng vệt sáng di chuyển */
.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: radial-gradient(rgba(255, 255, 255, 0.2), transparent 70%);
    animation: waveEffect 3s infinite linear;
}

@keyframes waveEffect {
    0% { transform: translateX(-50%) translateY(50%) scale(1); }
    50% { transform: translateX(0) translateY(-20%) scale(1.1); }
    100% { transform: translateX(50%) translateY(50%) scale(1); }
}

.content-grid {
    display: grid;
    grid-template-columns: 2.7fr 1fr;
    gap: 20px;
}

/* Cột 1: Nội dung bài viết */
.article-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
}
.article-content img {
    max-width: 100%;
    height: auto; 
    display: block; 
    margin: 15px auto; 
}

.article-content h1 {
    font-size: 1.8em;
}

.gttoc {
    position: relative;
    background: #F2F2F2;
    padding: 10px;
    border-radius: 5px;
}
.gttoc h3 {
    font-size: 19px;
}
.gttoc a {
    color: #DB2020;
    font-size: 17px;
}
.gttoc a:hover {
    color: #45484D;
}
/* Mục lục trên mobile */
.mobile-toc {
    display: none;
}

/* ======= SECTION BÀI VIẾT LIÊN QUAN ======= */
.related-posts {
    padding: 40px 20px;
    text-align: center;
}

.related-posts h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

/* Grid bài viết liên quan */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: auto;
}

.post-item {
    background: #f1f1f1;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    transition: transform 0.3s;
}

.post-item:hover {
    transform: scale(1.05);
}
.vp18h-title-container h2 {
    position: relative; 
    display: inline-block; 
    padding-bottom: 5px;
    font-size: 23px;
}

.vp18h-title-container h2::after {
    content: "";
    display: block;
    width: 80%;
    height: 4px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    position: absolute;
    padding-left: 50px;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 2px;
}
.projects-grid h3 {
    text-align: center;
}
/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .gttoc {
        display: none; /* Ẩn mục lục cột 2 trên mobile */
    }

    .mobile-toc {
        display: inline-block;
        position: relative;
        background: #eee;
        padding: 10px;
        width: 100%;
        margin-bottom: 15px;
        border-radius: 5px;
    }
    .mobile-toc h3 {
        font-size: 16px;
    }
    .mobile-toc a {
        color: #DB2020;
        font-size: 14px;
    }
    .mobile-toc a:hover {
        color: #45484D;
    }

    .posts-grid {
        grid-template-columns: 1fr; /* Mỗi bài viết 1 hàng */
    }
}
.post-content {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}
/* Nút chia sẻ */
.share-buttons {
    margin-top: 20px;
}

.share-buttons span {
    font-weight: bold;
    margin-right: 10px;
}

.share-btn {
    display: inline-block;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    margin-right: 5px;
    transition: 0.3s;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.instagram { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
.share-btn.tiktok { background: #000; border: 1px solid #ff0050; } /* TikTok màu đen với viền đỏ */

.share-btn:hover {
    opacity: 0.8;
}
/* Responsive cho mobile */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    .share-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}
/* Công trình */
.featured-projects {
    background: #fff; /* Nền trắng */
    padding: 60px 20px;
    text-align: center;
}

/* Tiêu đề và mô tả */
.content-project {
    max-width: 800px;
    margin: 0 auto 40px;
}

.content-project h2 {
    font-size: 36px;
    color: #333;
}

.content-project p {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

/* Grid dự án */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 1260px;
    margin: 0 auto;
}

/* Mỗi công trình */
.project-item {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 7px;
    border: 1px solid #F4F4F4;
    transition: transform 0.3s ease-in-out;
}

.project-item h3 {
    margin-top: 15px;
    font-size: 18px;
    color: #333;
}

/* Hình ảnh */
.image-container-pr {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.image-container-pr img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    display: block;
    transition: transform 0.3s ease-in-out;
}

/* Hiệu ứng lớp phủ sóng nước */
.hover-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 0%;
    background: rgba(255, 255, 255, 0.3); /* Màu trắng trong suốt */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-out, height 0.5s ease-out, opacity 0.5s;
    opacity: 0;
}

/* Hover vào hình */
.image-container-pr:hover img {
    transform: scale(1.1);
}

.image-container-pr:hover .hover-overlay {
    width: 250%;
    height: 250%;
    opacity: 0.8;
}

/* Responsive */
/* iPad và điện thoại: 1 cột */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .image-container-pr img {
        width: 100%;
        object-fit: cover;
        height: auto;
        display: block;
        transition: transform 0.3s ease-in-out;
    }
    .content-project h2 {
        font-size: 28px;
    }

    .content-project p {
        font-size: 16px;
    }
}
/* Tin tức */
.vp18h_section {
    width: 100%;
    padding: 20px 0;
}

.vp18h_container_new {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}

.vp18h_row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
}

.vp18h_image-container-new {
    flex: 0 0 250px;
    overflow: hidden;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.vp18h_image-container-new img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vp18h_image-container-new:hover img {
    transform: scale(1.1);
}

.vp18h_text-content {
    flex: 1;
}

.vp18h_text-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
    transition: color 0.3s ease;
}

.vp18h_text-content p {
    color: #555;
    line-height: 1.6;
}

.vp18h_text-content a {
    text-decoration: none;
    color: inherit;
}

.vp18h_text-content a:hover h3 {
    color: #FAA537;
}
/* Mục lục desktop & mobile */
#toc-mobile, #toc-desktop {
    /* background: #f9f9f9; */
    padding: 8px 9px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    display: block;
    height: 100%;
}

#toc-mobile ul, #toc-desktop ul {
    list-style-type: none;
    padding-left: 10px;
}

#toc-mobile li, #toc-desktop li {
    font-size: 0.9em;
    margin-bottom: 6px;
}

#toc-mobile li span, #toc-desktop li span {
    margin-right: 5px;
}

#toc-mobile li a, #toc-desktop li a {
    text-decoration: none;
    color: #FAA537;
}

#toc-mobile li a:hover, #toc-desktop li a:hover {
    text-decoration: underline;
    color: #FAA537;
}
/* Liên hệ */
/* General Styles */
.vp18h_contact-section {
    padding: 20px 0;
}

.vp18h_container_contact {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 15px;
}

.vp18h_row_contact {
    margin-bottom: 30px;
}
.text-center {
    text-align: center;
}
.vp18h_contact-section h1 {
    font-size: 2.1em;
    margin-bottom: 10px;
}
.vp18h_contact-section h3 {
    font-size: 1.2em;
    margin-bottom: 6px;
}
/* Hàng 2: Bố cục 2 cột */
.vp18h_contact-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.vp18h_column {
    flex: 1;
    min-width: 300px;
}

/* Cột 1: Thông tin liên hệ */
.vp18h_contact-info p {
    font-size: 1em;
    margin-bottom: 15px;
}

.vp18h_contact-info .icon {
    margin-right: 10px;
}

/* Cột 2: Form liên hệ */
.vp18h_contact-form form {
    display: flex;
    flex-direction: column;
}

.vp18h_form-row {
    margin-bottom: 15px;
    display: flex; 
    gap: 10px; 
}

.vp18h_form-row input,
.vp18h_form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em; 
    box-sizing: border-box;
}
textarea {
    font-family: 'Be Vietnam Pro', sans-serif; 
    font-size: 1em; 
    font-weight: 400; 
    line-height: 1.5; 
    color: #333; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box; 
    resize: none; 
    width: 100%;
    outline: #333; 
    background-color: #fff; 
    -webkit-appearance: none; 
    -moz-appearance: none; 
    appearance: none; 
}

.vp18h_form-row input[type="text"],
.vp18h_form-row input[type="tel"] {
    flex: 1; 
}

.vp18h_form-row textarea {
    resize: vertical;
    height: 120px;
}

.vp18h_form-row button {
    width: 100%;
    padding: 10px;
    background-color: #0080C0;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vp18h_form-row button:hover {
    background-color: #005f80;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .vp18h_contact-content {
        flex-direction: column;
    }
    .vp18h_contact-section h1 {
        font-size: 1.4em;
        margin-bottom: 5px;
    }
}
.input-label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    pointer-events: none; /* Đảm bảo rằng nhãn không chặn các thao tác với input */
    color: #999; /* Màu sắc của nhãn khi ở trên input */
    transition: 0.2s ease all;
}

.align-text-ftv:focus + .input-label,
.align-text-ftv:not(:placeholder-shown) + .input-label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #333; /* Màu sắc của nhãn khi input được focus hoặc đã có nội dung */
}
.bg-formtv {background-color: #FFF;}.align-text-ftv{text-align: right;}.anthongbao-tuvan{display:none; color: red; background-color: #FFF;}
.antb-tvan2 {display:none; color: green;}.antb-tuvan3 {display:none; color: red;}