/* Resetting margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body{
    height: 100%;
}

body {
    /* font-family: Arial, sans-serif; */
    font-family: arial, helvetica, sans-serif;
}
a{
    text-decoration: none !important;
}
a:focus,
a:active {
    outline: none !important;
}

/* Header Styles */
.custom-header {
    background-color: #ffffff;
    padding: 0px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease;
}

.custom-header .logo h1 {
    font-size: 20px;
    color: #D4AF37;
}

.custom-header .logo img {
    width: 50px;
    height: auto;
    margin-right: 10px;
    transition: all 0.3s ease;
}
.custom-header.shrink .logo img {
    width: 50px;
}

.custom-header.shrink {
    background-color: #ffffff;
    padding: 10px 20px;
}
.custom-header.shrink {
    padding: 5px 20px;
}
.custom-header .logo.expand img {
    width: 70px;
}
.custom-header.menu-open .logo img {
    width: 70px;
}
/* Navigation Menu (Desktop) */
#navbar-menu {
    display: block;
}

.navbar-toggler {
    background: none;
    font-size: 24px;
    color: #176a7b;
    cursor: pointer;
    outline: none;
    background-color: transparent;
}
/* Hidden menu for mobile */
.mobile-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    z-index: 1000;
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transition: left 0.3s ease;
    display: none;
}

#mobile-menu.show {
    left: 0;
}

.mobile-menu .nav {
    padding: 0;
    margin: 0;
}

.mobile-menu .nav-item {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.mobile-menu .nav-link {
    color:rgba(102, 102, 102, 0.85) !important;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none !important;
}

#mobile-menu .nav-item:hover {
    background-color: #f0f0f0;
}

#mobile-menu .nav-item:hover .nav-link {
    color: #000;
}

#mobile-menu .nav-item:active {
    background-color: #e0e0e0;
}

.nav-link{
    font-weight: bold;
    color: #176a7b !important;
}
.mobile-menu .nav-item:hover {
    background-color: #f0f0f0;
    color: #000;
}
.mobile-menu:focus {
    outline: none !important;
}

#mobile-menu .nav-link:active {
    background-color: #e0e0e0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    display: none; 
}
#overlay.show {
    display: block;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 30px;
    font-weight: bold;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close-btn:focus {
    outline: none;
}
.close-btn:hover {
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .custom-header .logo {
        flex: 1;
        text-align: center;
    }

    .custom-header .logo img {
        margin: 0 auto;
    }
    
    .custom-header .navbar-toggler {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color:rgba(102, 102, 102, 0.85);
    }
    .navbar-toggler:hover{

    }
    .navbar-toggler:focus {
        outline: none;
    }
    
    #navbar-menu {
        display: none;
    }
    .nav-link{
        font-weight: bold;
        color: rgba(102, 102, 102, 0.85) !important;
    }
    .mobile-menu {
        display: none;
    }

    .d-none {
        display: none !important;
    }
    
    .show {
        display: block !important;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

main {
    flex: 1;
    width: 100%;
}
main.container {
    width: 100%;
    max-width: 100%; 
    padding: 0;
}

/* Padding cho tất cả các section */
main.container section {
    padding: 20px;
    margin: 0 auto;
}

main.container img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    color: black;
}

.text-gold {
    color: #D4AF37;
}

/* Main Image Section */
.main-image img {
    margin-top: 83px;
    width: 100%;
    max-height: 900px;
    object-fit: cover;
}

/* Title Section */
.title {
    text-align: center;
    margin: 20px 0;
}

.title h2 {
    font-size: 24px;
    font-weight: bold;
}

/* Section Overview */
.overview{
    margin-top: 40px;
}
.overview h1 {
    font-size: 28px;
}
.overview h3 {
    font-size: 24px;
}
.overview p, .overview li {
    font-size: 17px;
    text-align: justify
}

.overview ul{
    margin-left: 1.3em;
}
.overview li{
    margin-bottom: .6em;
}

.project-details th,
.project-details td {
    padding: 10px; 
    text-align: left; 
    border: none; 
    border-bottom: 1px solid #ececec !important;
}
.project-details th {
    font-weight: bold;
}

.project-details {
    border: none !important; 
    border-collapse: collapse;
}
/* Section Styling */
.consultation-section {
    background-color: rgb(23, 106, 123);
    color: white;
    padding: 40px 0px 20px 0px;
}
.consultation-section h3{
    color: white;
    font-size: 1.25em;
}

.consultation-section .form-control {
    border-radius: 20px;
    padding: 10px 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    max-width: 300px;
    min-width: 200px;
}

.consultation-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.consultation-section form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Đảm bảo không bị tràn màn hình nếu kích thước nhỏ */
    width: 100%;
    gap: 10px;
    margin: 0;
    padding: 0 20px;
}

.consultation-section .form-control {
    flex: 1; 
    max-width: none;
    min-width: 150px;
    width: 100%;
}

.consultation-section .form-control {
    transition: none;
}

.consultation-section .form-control:hover {
    border-color: #ddd;
    box-shadow: none;
}

.consultation-section .form-control:focus {
    border-color: #ddd;
    box-shadow: none;
    outline: none;
}

/* Button Styling */
.consultation-section .btn-orange {
    background-color: #f46b22;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.consultation-section .btn-orange:hover {
    background-color: #d45d1c;
}

/* News Section */
.news-section{
    justify-content: center;
    margin: 50px 10px 0px 10px;
}

/* Swiper container */
.swiper {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center; /* Căn giữa các slide */
    align-items: center; /* Căn giữa theo chiều dọc */
}

/* Swiper slide */
/* Các slide của Swiper */
.swiper-slide h5{
    font-size: 16px;
    font-weight: bold;
}
/* Đảm bảo Swiper hiển thị chính xác */
.swiper-slide {
    width: auto;
    flex-shrink: 0;
    flex: 0 0 calc((100% / 3) - 20px);
    max-width: calc((100% / 3) - 20px);
    text-align: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    padding-right: 0px !important;
}

.swiper-slide img {
    width: 100%;
    height: 220px;
    margin-bottom: 10px;
}
.news-date {
    position: absolute;
    top: 25px;
    left: 5px;
    background-color: white;
    color: #f68b1f;
    padding: 8px 13px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #f68b1f;
}

.news-date:hover {
    background-color: #f68b1f; /* Màu nền cam khi hover */
    color: white; /* Màu chữ trắng khi hover */
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide p {
    font-size: 14px;
    color: #333;
}

/* Swiper navigation buttons */

.swiper-button-next,
.swiper-button-prev {
    width: 10px !important;
    height: 10px !important;
    font-size: 10px !important;
    color: rgba(189, 180, 180, 0.5) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
/* .swiper-button-next{
    right: 15% !important;
} */
/* .swiper-button-prev{
    left: 17% !important;
} */
.button-next, .button-prev {
    position: absolute;
    top: 0;
    bottom: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease;
    /* opacity: 0; */
}
.button-prev {
    left: 0;
}
.button-next {
    right: 0;
}
.button-next .button-prev:hover {
    background: white;
    background: rgba(255, 255, 255, 255);
    transform: scale(1.1);
    width: 40px;
}

.button-next .button-prev::before {
    content: attr(data-content);
    opacity: 0; 
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #f29a16 !important;
}

/* Swiper pagination */
.swiper-pagination {
    bottom: 10px;
    text-align: center;
}

.swiper-pagination-bullet {
    background: #176a7b;
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background: #333;
    opacity: 1;
}


.img-logo {
    height: 70px;
    width: 70px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Footer */
footer {
    background-color: #176a7b;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 20px 0px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    width: 30%;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 19px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.is-divider-smail{
    margin: 0 auto;
    display: block;
    background-color: #fff000;
    margin: 1em 0 1em;
    width: 80%;
    margin-top: .5em;
    margin-bottom: .5em;
    height: 2px;
    margin-right: auto;
}

.footer-column p,
.footer-column ul,
.footer-column li {
    color: #fff;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 20px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    background-color: #5b5b5b;
    text-align: center;
    padding-top: 5px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 14px;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin-bottom: 10px;
}

.social-links a {
    /* text-decoration: none !important; */
    color: white;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}


/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .footer-column {
        width: 100%;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .news-items .news-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .footer-column h3 {
        font-size: 16px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}
