/* Đồng bộ chiều cao các mục trong danh sách sản phẩm/dịch vụ */

/* Typography: force Roboto site-wide */
:root {
    --font-primary: "Roboto", sans-serif;
    --font-secondary: "Roboto", sans-serif;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
.title,
.pre-title {
    font-family: "Roboto", sans-serif !important;
}

.service-two-inner .thumbnail {
    height: 300px;
    /* Chiều cao cố định cho hình ảnh */

    overflow: hidden;
}

.service-two-inner .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Đảm bảo hình nh vừa khung mà không bị méo */
}

/* Đảm bảo cc thẻ trong row có cùng chiều cao */
.service.padding-controler .col-xl-4 {
    display: flex;
    flex-direction: column;
}

.service.padding-controler .col-xl-4 > .service-two-inner {
    flex-grow: 1;
}

.filter-area {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-area .input-group {
    transition: all 0.3s ease;
}

.filter-area .input-group-text {
    background: #fff;
    border: 1px solid #ced4da;
    border-right: none;
    color: #666;
}

.filter-area .filter-input {
    border: 1px solid #ced4da;
    border-radius: 0 8px 8px 0;
    padding: 12px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-area .filter-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
}

.filter-area .filter-select {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-area .filter-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
}

.filter-area .filter-btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-area .btn-primary {
    background: #007bff;
    border: none;
}

.filter-area .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.filter-area .btn-secondary {
    background: #6c757d;
    border: none;
}

.filter-area .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .filter-area {
        padding: 15px;
    }

    .filter-area .filter-input,
    .filter-area .filter-select,
    .filter-area .filter-btn {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .filter-area .filter-input,
    .filter-area .filter-select,
    .filter-area .filter-btn {
        font-size: 12px;
        padding: 8px;
    }

    .filter-area .col-md-4,
    .filter-area .col-md-3 {
        margin-bottom: 10px;
    }
}

.custom-pagination-wrapper {
    margin-top: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    width: 100%;
}

.custom-pagination .page-item {
    margin: 0;
}

.custom-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-pagination .page-link:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.custom-pagination .page-item.active .page-link {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.custom-pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e5e5e5;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-pagination .page-item.disabled .page-link:hover {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e5e5e5;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination-info {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.pagination-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
    text-align: center;
    font-weight: 400;
}

/* Ensure uniform image sizes */
.portfolio-wrapper .img-fluid {
    position: relative;
    width: 100%;
    height: 300px;
    /* Fixed height for consistency */
    overflow: hidden;
}

.portfolio-wrapper .img-fluid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Maintain aspect ratio, cover container */
    object-position: center;
    /* Center the image */
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-wrapper:hover .img-fluid img {
    transform: scale(1.05);
    /* Slight zoom effect on hover */
}

@media (max-width: 768px) {
    .custom-pagination .page-link {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .custom-pagination {
        gap: 6px;
    }

    .portfolio-wrapper .img-fluid {
        height: 300px;
        /* Adjust height for smaller screens */
    }
}

@media (max-width: 480px) {
    .custom-pagination .page-link {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .custom-pagination {
        gap: 4px;
    }

    .portfolio-wrapper .img-fluid {
        height: 250px;
        /* Further adjust height for mobile */
    }
}

.rts-gallery-area {
    background: #f8f9fa;
    padding: 60px 0;
}

.thumbnail-gallery {
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.bg-right-gallery {
    background: #131a29;

    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    /* Đảm bảo chiều cao ti thiểu bằng với hình nh */
}

.bg-right-gallery .icon {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 15px;
}

.bg-right-gallery .title {
    font-size: 24px;
    color: #f5f1f1;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.bg-right-gallery .title:hover {
    color: #ffffff;
}

.bg-right-gallery .disc {
    font-size: 16px;
    color: #ebe4e4;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Đảm bảo mô tả chiếm không gian còn lại */
}

.bg-right-gallery .rts-btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
    background: #007bff;
    color: #fff;
    transition: background 0.3s ease;
}

.bg-right-gallery .rts-btn:hover {
    background: #0056b3;
}

.swiper-slide .row {
    display: flex;
    align-items: stretch;
    /* Đảm bảo các cột có chiều cao bằng nhau */
}

@media (max-width: 991px) {
    .bg-right-gallery {
        min-height: 300px;
        /* Loại bỏ min-height trên mobile để tránh quá cao */
        padding: 15px;
    }

    .thumbnail-gallery img {
        height: 300px;
        /* Giảm chiu cao hình ảnh trên mobile */
    }
}

@media (max-width: 767px) {
    .thumbnail-gallery img {
        height: 250px;
    }

    .bg-right-gallery {
        padding: 10px;
    }

    .bg-right-gallery .title {
        font-size: 20px;
    }

    .bg-right-gallery .disc {
        font-size: 14px;
    }

    .bg-right-gallery .rts-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Custom CSS for full-width header */
.header-top-one .container-fluid,
.header-main-one .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
}

@media (max-width: 768px) {
    .header-top-one .container-fluid,
    .header-main-one .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .header-top-one .container-fluid,
    .header-main-one .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Custom CSS for compact dropdown menu */
.mainmenu li.has-droupdown .submenu.menu-link1 {
    min-width: 350px !important;
    max-width: 400px;
}

.mainmenu li.has-droupdown .submenu.menu-link1 .menu-item .tag {
    margin-bottom: 8px;
}

.mainmenu li.has-droupdown .submenu.menu-link1 .menu-item ul li a {
    transition: color 0.3s ease;
}

.mainmenu li.has-droupdown .submenu.menu-link1 .menu-item ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

/* Prevent wrapping of contact info on small screens */
@media (max-width: 767px) {
    .mapdetails-inner-one .left-area .details .time,
    .mapdetails-inner-one .left-area .details a,
    .mapdetails-inner-one .right-area .details a,
    .mapdetails-inner-one .right-area .details .office {
        white-space: nowrap;
    }
}
