/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/


/*************** ADD CUSTOM CSS HERE.   ***************/

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/
}

#wide-nav {
    background: #871115;
    background: linear-gradient(90deg, rgba(135, 17, 21, 1) 0%, rgba(235, 84, 89, 1) 100%);
}


/* projectc */


/* Card container styling */

.project-category {
    margin-bottom: 40px;
}

.category-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #871115 0%, #eb5459 100%);
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.category-title {
    text-align: center;
    color: #871115;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 20px;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(25% - 15px);
    /* Hiển thị 4 card mỗi hàng */
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.project-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    height: 200px;
    object-fit: cover;
}

.project-title {
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    color: #333;
    min-height: 54px;
    display: flex;
    align-items: flex-start;
    line-height: 1.3;
}

.project-title a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.project-title a:hover {
    color: #0073aa;
    /* Màu khi hover */
}

.project-address,
.project-price,
.project-location,
.project-direction {
    font-size: 14px;
    margin: 10px 15px;
    color: #555;
}

.badge-status {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin: 10px 15px;
}


/* end project */


/* Project Contact Buttons */

.project-contact {
    margin: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.contact-buttons {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.contact-buttons .btn {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

.btn-zalo {
    background: linear-gradient(135deg, #0068ff 0%, #00a3ff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 104, 255, 0.3);
}

.btn-zalo:hover {
    background: linear-gradient(135deg, #0052cc 0%, #0080cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.4);
    color: white;
}

.btn-consult {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-consult:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e67a35 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn i {
    font-size: 16px;
}


/* Responsive design for project items */

@media only screen and (max-width: 1024px) {
    .project-item {
        width: calc(50% - 15px);
        /* Hiển thị 2 card mỗi hàng trên tablet */
    }
}


/* Responsive design for contact buttons */

@media only screen and (max-width: 768px) {
    .project-item {
        width: 100%;
        /* Hiển thị 1 card mỗi hàng trên mobile */
    }
    .project-title {
        min-height: auto;
        margin: 10px;
    }
    .taxonomy-project-title {
        min-height: auto;
    }
    .contact-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .contact-buttons .btn {
        padding: 10px 16px;
        font-size: 13px;
        white-space: normal;
        text-overflow: unset;
    }
    .taxonomy-contact-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .taxonomy-contact-buttons .btn {
        padding: 10px 16px;
        font-size: 13px;
        white-space: normal;
        text-overflow: unset;
    }
}


/* Category View More Button */

.category-view-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: #871115;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #871115;
    text-align: center;
}

.btn-view-more:hover {
    background: #871115;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(135, 17, 21, 0.3);
    text-decoration: none;
}

.btn-view-more i {
    transition: transform 0.3s ease;
}

.btn-view-more:hover i {
    transform: translateX(5px);
}


/* Responsive for view more button */

@media only screen and (max-width: 768px) {
    .btn-view-more {
        padding: 8px 16px;
        font-size: 13px;
    }
}


/* Single Project Page Styles - Namespace: .single-project-* */

.single-project-container {
    background: #f8f9fa;
}


/* Hero Section */

.single-project-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.single-project-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.single-project-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.single-project-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 60px 0;
}

.single-project-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.single-project-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-project-breadcrumb a:hover {
    color: white;
}

.single-project-breadcrumb .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.single-project-breadcrumb .current {
    color: white;
    font-weight: 600;
}

.single-project-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.single-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.single-project-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.single-project-meta-item i {
    color: #ffd700;
}


/* CTA Card */

.single-project-cta {
    position: relative;
    z-index: 3;
}

.single-project-cta-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.single-project-cta-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.single-project-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.single-project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.single-project-btn-primary {
    background: #28a745;
    color: #fff;
}

.single-project-btn-primary:hover {
    background: #218838;
    color: #fff;
}

.single-project-btn-secondary {
    background: #0068ff;
    color: #fff;
}

.single-project-btn-secondary:hover {
    background: #0052cc;
    color: #fff;
}

.single-project-btn-outline {
    background: transparent;
    color: #871115;
    border: 2px solid #871115;
}

.single-project-btn-outline:hover {
    background: #871115;
    color: white;
    transform: translateY(-2px);
}

.single-project-btn-block {
    width: 100%;
}


/* Project Content */

.single-project-content {
    padding: 60px 0;
}

.single-project-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-project-section-title {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.single-project-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #871115 0%, #eb5459 100%);
    border-radius: 2px;
}


/* Overview Grid */

.single-project-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.single-project-overview-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.single-project-overview-item:hover {
    transform: translateY(-2px);
}

.single-project-overview-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #871115 0%, #eb5459 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.single-project-overview-content h4 {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.single-project-overview-content p {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}


/* Project Description */

.single-project-description {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}


/* Gallery */

.single-project-gallery {
    margin-top: 20px;
}

.single-project-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.single-project-gallery-item:hover {
    transform: scale(1.02);
}

.single-project-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


/* Location */

.single-project-location-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.single-project-location-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-project-location-map iframe {
    width: 100%;
    height: 300px;
    border: none;
}


/* Sidebar */

.single-project-sidebar {
    position: sticky;
    top: 20px;
}


/* Sticky Contact Form */

.single-project-sidebar-card:last-child {
    position: sticky;
    top: 20px;
    z-index: 10;
}

.single-project-sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-project-status-badge {
    text-align: center;
    margin-bottom: 20px;
}

.single-project-status-badge .badge {
    background: linear-gradient(135deg, #871115 0%, #eb5459 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.single-project-card-title {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}


/* Features List */

.single-project-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.single-project-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.single-project-feature-item i {
    color: #28a745;
    font-size: 16px;
}

.single-project-feature-item span {
    color: #555;
    font-size: 14px;
}


/* Contact Form */

.single-project-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.single-project-form-group {
    margin-bottom: 0;
}

.single-project-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.single-project-form-control:focus {
    outline: none;
    border-color: #871115;
    box-shadow: 0 0 0 3px rgba(135, 17, 21, 0.1);
}

.single-project-form-control::placeholder {
    color: #999;
}


/* Responsive Design */

@media only screen and (max-width: 768px) {
    .single-project-title {
        font-size: 2rem;
    }
    .single-project-meta {
        flex-direction: column;
        gap: 10px;
    }
    .single-project-overview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .single-project-section {
        padding: 25px;
    }
    .single-project-cta-card {
        margin-top: 30px;
    }
    .single-project-sidebar {
        position: static;
        margin-top: 30px;
    }
    .single-project-sidebar-card:last-child {
        position: static;
        top: auto;
    }
}

.single-project-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}


/* Quick Contact Section */

.single-project-quick-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.single-project-quick-contact-title {
    text-align: center;
    margin-bottom: 15px;
}

.single-project-quick-contact-title span {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.single-project-quick-contact-buttons {
    display: flex;
    gap: 10px;
}

.single-project-btn-call {
    background: #28a745;
    color: white;
    flex: 1;
    border-radius: 6px;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    transition: background 0.2s;
}

.single-project-btn-call:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.single-project-btn-zalo {
    background: #0068ff;
    color: white;
    flex: 1;
    border-radius: 6px;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    transition: background 0.2s;
}

.single-project-btn-zalo:hover {
    background: #0052cc;
    color: white;
    text-decoration: none;
}


/* Taxonomy Project Category Page Styles */

.taxonomy-project-container {
    background: #f8f9fa;
}


/* Hero Section */

.taxonomy-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, #871115 0%, #eb5459 100%);
}

.taxonomy-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.taxonomy-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.taxonomy-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 60px 0;
}

.taxonomy-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.taxonomy-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.taxonomy-breadcrumb a:hover {
    color: white;
}

.taxonomy-breadcrumb .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.taxonomy-breadcrumb .current {
    color: white;
    font-weight: 600;
}

.taxonomy-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.taxonomy-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}


/* Content Section */

.taxonomy-content {
    /* padding: 60px 0; */
}


/* Project Grid for Taxonomy Page */

.taxonomy-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 50px;
}

.taxonomy-project-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.taxonomy-project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.taxonomy-project-image {
    position: relative;
    overflow: hidden;
}

.taxonomy-project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.taxonomy-project-item:hover .taxonomy-project-image img {
    transform: scale(1.05);
}

.taxonomy-project-content {
    padding: 25px;
}

.taxonomy-project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 52px;
    display: flex;
    align-items: flex-start;
}

.taxonomy-project-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.taxonomy-project-title a:hover {
    color: #871115;
}

.taxonomy-project-meta {
    margin-bottom: 15px;
}

.taxonomy-project-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.taxonomy-project-meta-item i {
    color: #871115;
    width: 16px;
}

.taxonomy-project-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.taxonomy-project-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.taxonomy-contact-buttons {
    display: flex;
    gap: 8px;
}

.taxonomy-contact-buttons .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Pagination */

.taxonomy-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.taxonomy-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.taxonomy-pagination .page-numbers:hover,
.taxonomy-pagination .page-numbers.current {
    background: #871115;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 17, 21, 0.3);
}

.taxonomy-pagination .prev,
.taxonomy-pagination .next {
    width: auto;
    padding: 0 15px;
    font-size: 14px;
}


/* No Projects */

.no-projects {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-projects-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-projects-content i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.no-projects-content h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-projects-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 14px;
}

.no-projects-content .btn-primary {
    background: transparent;
    color: #871115;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #871115;
}

.no-projects-content .btn-primary:hover {
    background: #871115;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(135, 17, 21, 0.2);
}


/* Responsive Design */

@media only screen and (max-width: 768px) {
    .taxonomy-title {
        font-size: 2rem;
    }
    .taxonomy-description {
        font-size: 16px;
    }
    .taxonomy-project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .taxonomy-project-content {
        padding: 20px;
    }
    .taxonomy-pagination .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}


/* Project Media Section */

.single-project-media {
    padding: 60px 0;
    background: #f8f9fa;
}

.single-project-media-title {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.single-project-media-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #871115 0%, #eb5459 100%);
    border-radius: 2px;
}


/* Project Images */

.single-project-images {
    margin-bottom: 60px;
}

.single-project-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.single-project-image-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.single-project-image-item:hover {
    transform: scale(1.02);
}

.single-project-image-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-project-image-item:hover img {
    transform: scale(1.05);
}


/* Project Video */

.single-project-video {
    margin-bottom: 40px;
}

.single-project-video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #000;
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.single-project-video-container iframe,
.single-project-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* Responsive Design for Media Section */

@media only screen and (max-width: 768px) {
    .single-project-media {
        padding: 40px 0;
    }
    .single-project-media-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .single-project-images-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .single-project-image-item img {
        height: 200px;
    }
    .single-project-images,
    .single-project-video {
        margin-bottom: 40px;
    }
}

.single-project-cta-buttons .single-project-btn {
    padding: 12px 20px;
    font-size: 16px;
    line-height: 1.2;
    border: none;
    background: none;
    vertical-align: middle;
    min-height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-project-cta-buttons .single-project-btn-call {
    background: #28a745;
    color: #fff;
}

.single-project-cta-buttons .single-project-btn-call:hover {
    background: #218838;
    color: #fff;
}

.single-project-cta-buttons .single-project-btn-zalo {
    background: #0068ff;
    color: #fff;
}

.single-project-cta-buttons .single-project-btn-zalo:hover {
    background: #0052cc;
    color: #fff;
}

.single-project-cta-buttons .single-project-btn-outline {
    background: #fff;
    color: #871115;
    border: 2px solid #871115;
    transition: all 0.2s;
}

.single-project-cta-buttons .single-project-btn-outline:hover {
    background: #871115;
    color: #fff;
    border-color: #871115;
}

.single-project-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item-large {
    grid-row: 1 / span 2;
    grid-column: 1 / 2;
    min-height: 380px;
}

.gallery-item:not(.gallery-item-large) {
    min-height: 180px;
}

.gallery-item-more .gallery-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: background 0.2s;
}

.gallery-item-more:hover .gallery-more-overlay {
    background: rgba(135, 17, 21, 0.8);
}


/* Responsive */

@media (max-width: 1024px) {
    .single-project-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-item-large {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
        min-height: 250px;
    }
}

@media (max-width: 600px) {
    .single-project-gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gallery-item-large,
    .gallery-item {
        min-height: 180px;
    }
}


/* Latest News Row Shortcode Styles */

.latest-news-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.latest-news-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
    padding-bottom: 16px;
}

.latest-news-item:hover {
    box-shadow: 0 6px 20px rgba(135, 17, 21, 0.12);
    transform: translateY(-4px);
}

.latest-news-item .img-fluid {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.latest-news-title {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 16px 8px 16px;
    line-height: 1.3;
}

.latest-news-title a {
    color: #871115;
    text-decoration: none;
    transition: color 0.2s;
}

.latest-news-title a:hover {
    color: #eb5459;
}

.latest-news-meta {
    margin: 0 16px 8px 16px;
    color: #888;
    font-size: 13px;
}

.latest-news-excerpt {
    margin: 0 16px 12px 16px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.latest-news-readmore {
    display: block;
    margin: 0 16px;
    padding: 8px 0;
    text-align: center;
    background: #fff;
    color: #871115;
    border: 1px solid #871115;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
}

.latest-news-readmore:hover {
    background: #871115;
    color: #fff;
    border-color: #871115;
}

@media (max-width: 1200px) {
    .latest-news-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .latest-news-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .latest-news-item .img-fluid {
        height: 140px;
    }
}


/* Contact Form 7 - Hiển thị ngang, đồng bộ kích thước input và submit */

.wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    justify-content: center;
    margin: 0 auto;
    /* max-width: 900px; */
    width: auto;
}

.wpcf7-form p {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    margin: 0;
    align-items: center;
    justify-content: center;
}

.wpcf7-form .wpcf7-form-control-wrap {
    flex: 1 1 180px;
    min-width: 120px;
    max-width: 200px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"] {
    width: 100%;
    max-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="email"]:focus {
    border-color: #871115;
    outline: none;
}

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    min-width: 120px;
    max-width: 200px;
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #871115 0%, #eb5459 100%);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    height: 40px;
    box-sizing: border-box;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: linear-gradient(90deg, #eb5459 0%, #871115 100%);
}

.wpcf7-form .wpcf7-spinner {
    margin-left: 10px;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .wpcf7-form {
        max-width: 100%;
        width: 100%;
        padding: 0 8px;
    }
    .wpcf7-form p {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 12px;
        align-items: stretch;
    }
    .wpcf7-form .wpcf7-form-control-wrap {
        flex: none !important;
    }
    .wpcf7-form .wpcf7-form-control-wrap,
    .wpcf7-form input[type="submit"],
    .wpcf7-form .wpcf7-submit,
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form input[type="email"] {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 48px !important;
        font-size: 15px !important;
        box-sizing: border-box;
    }
    .wpcf7-form input[type="submit"],
    .wpcf7-form .wpcf7-submit {
        margin-top: 10px;
        /* padding: 12px 16px !important; */
    }
}

.apr-timeline .timeline-item {
    display: flex;
}

.apr-timeline .timeline-item .year {
    position: relative;
    min-width: 57px;
    padding-right: 19px;
    font-weight: 700;
    font-size: 11px;
    line-height: 15px;
    color: #4f4f4f;
}

@media (min-width: 1201px) {
    .apr-timeline .timeline-item .year {
        font-size: 14px;
        line-height: 20px;
    }
}

.apr-timeline .timeline-item .year:before {
    content: '';
    position: absolute;
    top: 3px;
    right: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #cc9036;
}

.apr-timeline .timeline-item .year:after {
    content: '';
    position: absolute;
    right: -8px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(204, 144, 54, .3);
}

.apr-timeline .timeline-item .content {
    position: relative;
    overflow: hidden;
    padding-left: 33px;
}

.apr-timeline .timeline-item:not(:last-child) .content:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 1px;
    height: 100%;
    background-color: #ddd;
}

.apr-timeline .timeline-item .title {
    margin: 0 0 8px 0;
}


/* --- Shortcode Khóa học (course-list) --- */

.course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.course-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 16px;
    width: calc(25% - 18px);
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}

.course-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.course-item .img-fluid,
.course-item-img-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    background: #f3f3f3;
    margin-bottom: 12px;
    display: block;
}

.course-item-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 32px;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0 6px 0;
    line-height: 1.3;
}

.course-title a {
    color: #1a237e;
    text-decoration: none;
}

.course-title a:hover {
    color: #3949ab;
}

.course-address,
.course-price,
.course-location,
.course-direction {
    font-size: 0.97rem;
    margin: 2px 0;
    color: #444;
}

.course-contact {
    margin-top: auto;
    width: 100%;
}

.contact-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 5px;
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    cursor: pointer;
    border: none;
}

.btn-zalo {
    background: #008fe5;
    color: #fff;
}

.btn-zalo:hover {
    background: #005fa3;
}

.btn-consult {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-consult:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e67a35 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-view-more {
    background: #fff;
    padding: 8px 20px;
    margin-top: 18px;
    font-weight: 600;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.18s, color 0.18s, border 0.18s;
}

.btn-view-more:hover {
    background: #871115;
    color: #fff;
    border-color: #871115;
}

.category-view-more {
    text-align: center;
    margin-top: 18px;
}

@media (max-width: 1024px) {
    .course-item {
        width: calc(50% - 12px);
    }
}

@media (max-width: 600px) {
    .course-list {
        gap: 12px;
    }
    .course-item {
        width: 100%;
        min-width: 0;
        padding: 10px;
    }
}


/* --- End Shortcode Khóa học --- */


/* --- Mobile Bottom Menu --- */

.mobile-bottom-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0 5px 0;
}

.mobile-bottom-menu .menu-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
}

.mobile-bottom-menu .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 60px;
    position: relative;
}

.mobile-bottom-menu .menu-item:hover,
.mobile-bottom-menu .menu-item:active {
    color: #1a237e;
    background: rgba(26, 35, 126, 0.05);
}

.mobile-bottom-menu .menu-item.active {
    color: #1a237e;
    background: rgba(26, 35, 126, 0.1);
}


/* Featured Hotline Button */

.mobile-bottom-menu .menu-item.featured {
    background: linear-gradient(135deg, #e53935 0%, #ff5252 100%);
    color: #fff;
    transform: translateY(-8px);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
    animation: hotlinePulse 2s infinite;
    min-width: 70px;
    padding: 8px 12px;
}

.mobile-bottom-menu .menu-item.featured:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #ff4444 100%);
    color: #fff;
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
    animation: none;
}

.mobile-bottom-menu .menu-item.featured .menu-icon {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.mobile-bottom-menu .menu-item.featured .menu-text {
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
}

@keyframes hotlinePulse {
    0% {
        box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(229, 57, 53, 0.5), 0 0 0 8px rgba(229, 57, 53, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
    }
}

.mobile-bottom-menu .menu-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.mobile-bottom-menu .menu-text {
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}


/* Specific menu item styles */

.mobile-bottom-menu .menu-item.home .menu-icon {
    color: #1a237e;
}

.mobile-bottom-menu .menu-item.zalo .menu-icon {
    color: #0084ff;
}

.mobile-bottom-menu .menu-item.news .menu-icon {
    color: #ff6b35;
}

.mobile-bottom-menu .menu-item.courses .menu-icon {
    color: #4caf50;
}


/* Add bottom padding to body when menu is visible */

body.has-mobile-menu {
    padding-bottom: 80px;
}


/* Show mobile menu only on mobile devices */

@media (max-width: 768px) {
    .mobile-bottom-menu {
        display: block;
    }
    body {
        padding-bottom: 80px;
    }
    /* Optimize for 5 items */
    .mobile-bottom-menu .menu-items {
        gap: 5px;
    }
    .mobile-bottom-menu .menu-item {
        min-width: 55px;
        font-size: 0.7rem;
    }
    .mobile-bottom-menu .menu-item.featured {
        min-width: 65px;
        font-size: 0.75rem;
    }
}


/* Hide on larger screens */

@media (min-width: 769px) {
    .mobile-bottom-menu {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}


/* Animation for menu items */

.mobile-bottom-menu .menu-item {
    transform: translateY(0);
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mobile-bottom-menu .menu-item:active {
    transform: translateY(2px);
}

.mobile-bottom-menu .menu-item.featured:active {
    transform: translateY(-6px);
}


/* Ripple effect for menu items */

.mobile-bottom-menu .menu-item {
    position: relative;
    overflow: hidden;
}

.mobile-bottom-menu .menu-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(26, 35, 126, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.mobile-bottom-menu .menu-item:active::before {
    width: 40px;
    height: 40px;
}

.mobile-bottom-menu .menu-item.featured::before {
    background: rgba(255, 255, 255, 0.2);
}


/* Safe area for devices with home indicator */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-menu {
        padding-bottom: calc(5px + env(safe-area-inset-bottom));
    }
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}


/* --- Desktop Floating Contact Buttons --- */

.desktop-floating-buttons {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.desktop-floating-button {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.desktop-floating-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: -1;
}

.desktop-floating-button:hover::before {
    transform: scale(1.1);
}

.desktop-floating-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.desktop-floating-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* Zalo Button */

.desktop-floating-button.zalo {
    background: linear-gradient(135deg, #0084ff 0%, #00a3ff 100%);
    animation: zaloPulse 2s infinite;
}

.desktop-floating-button.zalo:hover {
    background: linear-gradient(135deg, #0073e6 0%, #0099ff 100%);
    animation: none;
}


/* Hotline Button */

.desktop-floating-button.hotline {
    background: linear-gradient(135deg, #e53935 0%, #ff5252 100%);
    animation: hotlinePulse 2s infinite;
}

.desktop-floating-button.hotline:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #ff4444 100%);
    animation: none;
}


/* Pulse Animations */

@keyframes zaloPulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 132, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 132, 255, 0.5), 0 0 0 10px rgba(0, 132, 255, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 132, 255, 0.3);
    }
}

@keyframes hotlinePulse {
    0% {
        box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(229, 57, 53, 0.5), 0 0 0 10px rgba(229, 57, 53, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
    }
}


/* Tooltip */

.desktop-floating-button::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.desktop-floating-button::before {
    content: '';
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.desktop-floating-button:hover::after,
.desktop-floating-button:hover::before {
    opacity: 1;
    visibility: visible;
}


/* Ripple Effect */

.desktop-floating-button .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* Floating Animation */

.desktop-floating-button {
    animation: floating 3s ease-in-out infinite;
}

.desktop-floating-button.zalo {
    animation-delay: 0s;
}

.desktop-floating-button.hotline {
    animation-delay: 1.5s;
}

@keyframes floating {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}


/* Show only on desktop */

@media (max-width: 768px) {
    .desktop-floating-buttons {
        display: none;
    }
}


/* Responsive adjustments */

@media (max-width: 1024px) {
    .desktop-floating-buttons {
        right: 15px;
    }
    .desktop-floating-button {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}


/* High contrast mode support */

@media (prefers-contrast: high) {
    .desktop-floating-button {
        border: 2px solid #fff;
    }
}


/* Reduced motion support */

@media (prefers-reduced-motion: reduce) {
    .desktop-floating-button {
        animation: none;
    }
    .desktop-floating-button:hover {
        transform: translateY(-2px);
    }
}