﻿/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Header Styling */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px; /* Bo góc phần header */
    /*margin: 10px;*/
    padding: 10px 0; /*thêm*/
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Căn giữa theo chiều dọc */
    background-color: #87CEEB; /*#4CAF50;*/
    color: white;
    padding: 0 10px;
    border-radius: 10px 10px 0 0; /* Bo góc phía trên */
}

    .top-bar .hotline {
        font-size: 14px;
    }

    .top-bar .login-link {
        display: flex;
        align-items: center; /* Đảm bảo văn bản "Đăng nhập" căn giữa theo chiều dọc */
        font-size: 14px;
    }

        .top-bar .login-link a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            margin-left: 5px; /* Cách chữ Đăng nhập một chút để tách biệt */
        }

            .top-bar .login-link a:hover {
                color: #00008B;
            }

nav {
    display: flex;
    justify-content: space-between; /* Phân bố đều các phần tử (logo, h1, menu) */
    align-items: center;
    padding: 0 20px;
}

.logo {
    width:120px;
    align-items: center; /* Căn giữa theo chiều dọc cho logo */
}

    .logo img {
        width: 80px;
        height: auto;
        margin-right: 10px; /* Khoảng cách giữa logo và dòng chữ */
    }

h1 {
    width:auto;
    align-items: center; /* Căn giữa theo chiều dọc cho logo */
    font-size: 30px;
    color: #00008B; /* Màu xanh đậm */
    margin: 0; /* Loại bỏ khoảng cách thừa */
    font-family: 'Playfair Display', serif; /* Font mềm mại bạn đã chọn */
}

/* Styling cho danh sách liên kết trong menu */
.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
    /*width:200px;*/
    /*align-items:end;*/
}

    .nav-links li {
        /*width: 200px;*/
        flex: 1;
        text-align: center;
        /* margin-left: 15px; Khoảng cách giữa các mục menu */
    }

        .nav-links li a {
            text-decoration: none;
            font-size: 16px;
            color: #4682B4;
            font-weight: bold;
            /*padding: 10px 20px;*/
        }

            /* Hiệu ứng khi hover vào thẻ a trong menu */
            .nav-links li a:hover {
                color: #4682B4;
            }

.cta-highlight {
    background-color: #fe734d; /* Màu nền nổi bật */
    color: white;
    font-weight: bold;
    padding: 10px 20px; /* Kích thước nút */
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Bóng đổ mặc định */
    text-decoration: none; /* Loại bỏ gạch chân */
    animation: pulse 1.5s infinite; /* Hiệu ứng động lặp lại */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: end;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    width: 200px; /* hoặc chiều rộng mà bạn muốn */
    border: 1px solid #ccc; /* Bạn có thể thêm viền nếu muốn */
}

    .cta-highlight span {
        display: inline-block;
        padding-left: 100%; /* Bắt đầu từ bên ngoài khung */
        animation: scroll 5s linear infinite; /* Điều chỉnh thời gian để điều chỉnh tốc độ */
    }
/* Hiệu ứng nhấp nháy nhẹ */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Bóng đổ lúc bình thường */
    }

    50% {
        transform: scale(1.05); /* Phóng to nhẹ */
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); /* Tăng bóng đổ */
    }
}


@keyframes scroll {
    0% {
        transform: translateX(0); /* Bắt đầu từ vị trí ban đầu */
    }

    100% {
        transform: translateX(-100%); /* Kết thúc khi hết chiều dài */
    }
}
/* Secondary nav styling */
.secondary-nav {
    display: flex;
    justify-content: end;
    padding: 5px 0;
}

    .secondary-nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .secondary-nav li {
        margin: 0 15px;
    }

    .secondary-nav a {
        text-decoration: none;
        font-size: 16px;
        color: #4682B4;
        font-weight: bold;
        padding: 5px 10px;
        border-radius: 5px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        .secondary-nav a:hover {
            background-color: #87CEEB;
            color: white;
        }
/* Slideshow */
.slideshow {
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
}

    .slideshow img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Slider Section */
/* Slider Section */
.slider {
    position: relative;
    width: 100%;
    max-width: 95%; /* Chiều rộng tối đa của slider */
    /*height: 700px;  Đặt chiều cao cố định cho slider */
    margin: auto;
    overflow: hidden;
    border-radius: 10px; /* Bo tròn góc */
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: 0.5s ease;
}

.slide {
    flex: 1 0 100%; /* Mỗi slide chiếm 100% chiều rộng của slider */
    height: 100%; /* Đảm bảo chiều cao của mỗi slide bằng với slider */
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Đảm bảo hình ảnh bao phủ toàn bộ khung mà không bị tràn */
        display: block;
    }


.description {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 5px;
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

    button.prev:hover, button.next:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

/* Important Links */
.important-links {
    text-align: center;
    padding: 40px 20px;
    background-color: #f0f0f0;
    border-radius: 10px; /* Bo góc phần khung liên kết */
}

    .important-links h2 {
        margin-bottom: 30px;
        font-size: 24px;
        color: #00008B;
    }

.link-container {
    display: flex;
    justify-content: space-around; /* Căn giữa các khối theo chiều ngang */
    margin-top: 20px;
}

.link-box {
    flex: 1; /* Chia đều không gian cho các khối */
    margin: 0 10px; /* Thêm khoảng cách giữa các khối */
    text-align: center;
    background-color: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


    .link-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .link-box p {
        margin-bottom: 10px;
    }

.cta-button {
    padding: 10px 20px; /* Giảm kích thước nút */
    background-color: #87CEEB; /*#4CAF50;*/
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    display: inline-block;
    width: auto; /* Nút nằm gọn trong khung */
    margin-top: 10px;
}

    .cta-button:hover {
        background-color: #4682B4; /*#45a049;*/
    }
/* Featured News Section */
.featured-news {
    display: flex;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

    .featured-news img {
        width: 300px;
        height: auto;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

.featured-content {
    padding: 20px;
    font-size: 16px;
}

    .featured-content h2 {
        font-size: 24px;
        color: #00008B;
    }

    .featured-content h3 {
        font-size: 20px;
        margin-top: 10px;
        font-weight: bold;
    }

    .featured-content p {
        font-size: 16px;
        margin-top: 10px;
    }

    .featured-content .read-more {
        display: inline-block;
        margin-top: 10px;
        color: #87CEEB;
        font-weight: bold;
        text-decoration: none;
        transition: color 0.3s;
    }

        .featured-content .read-more:hover {
            color: #4682B4;
        }
/* News List Section */
.news-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 20px 20px 20px;
}

.news-item {
    background-color: #fff;
    width: 32%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

    .news-item:hover {
        transform: translateY(-5px);
    }

    .news-item img {
        width: 100%;
        height: 200px;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        object-fit: cover;
        object-position: center;
    }

    .news-item h3 {
        font-size: 20px;
        padding: 10px;
        color: #00008B;
    }

    .news-item p {
        padding: 0 10px;
        font-size: 14px;
        color: #666;
    }

    .news-item .read-more {
        display: inline-block;
        padding: 10px;
        color: #87CEEB;
        font-weight: bold;
        text-decoration: none;
        transition: color 0.3s;
        font-size: 14px;
    }

        .news-item .read-more:hover {
            color: #4682B4;
        }
/* Main Document page */
.document-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

    .document-page h2 {
        font-size: 24px;
        color: #333;
        margin-bottom: 20px;
    }

/* Document List */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Document Item */
.document-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f0f8ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .document-item h3 {
        font-size: 18px;
        color: #333;
        margin: 0 0 5px;
    }

    .document-item p {
        font-size: 14px;
        color: #666;
        margin: 0 0 10px;
    }

/* Summary (Trích yếu) Styling */
.summary {
    font-size: 14px;
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
}

/* Download Button */
.download-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4682B4;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

    .download-btn:hover {
        background-color: #5b9bd5;
    }
/* Login Container */
.login-container {
    /*width: 320px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;*/
    display: flex;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    height: 80vh; /* Chiều cao toàn màn hình */
}

.login-form {
    width: 320px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

    .login-form h2 {
        font-size: 24px;
        margin-bottom: 20px;
        color: #333;
    }

    /* Form Fields */
    .login-form label {
        display: flex;
        font-size: 14px;
        margin-bottom: 5px;
        color: #333;
    }

    .login-form input[type="text"],
    .login-form input[type="password"] {
        width: 90%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
    }

/* Password Field with Toggle */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 18px;
}



/* Register Link */
.register-link {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

    .register-link a {
        color: #4682B4;
        text-decoration: none;
    }

        .register-link a:hover {
            text-decoration: underline;
        }
/* Register */

/*
.registration-container {
    width: 100%;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f8f8f8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

    .registration-container h2 {
        color: #4682B4;
        margin-bottom: 20px;
    }

    .registration-container label {
        display: block;
        margin: 10px 0 5px;
        text-align: left;
        color: #333;
    }

    .registration-container input,
    .registration-container select {
        width: 100%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        margin-bottom: 15px;
    }

.submit-button {
    background-color: #4682B4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

    .submit-button:hover {
        background-color: #87CEEB;
    }
*/

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 0 0 10px 10px; /* Bo góc phần cuối footer */
}

.footer-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.footer-box {
    display: flex;
    align-items: center;
}

    .footer-box img {
        margin-right: 10px;
        width: 30px;
        height: 30px;
    }

footer p {
    margin: 10px 0;
}

    footer p:last-child {
        font-size: 14px;
        color: #999;
    }

/*.zalo-chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

.fb-customerchat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
*/
.news-highlight {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    /*font-weight: bold;*/
    margin-bottom: 25px;
    text-align: center;
    /*color: #1e3a8a;*/ /* xanh nhẹ nhàng */
    color: #00008B;
}

.news-card {
    height:400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 15px;
    transition: transform 0.3s ease;
}

    .news-card img {
        width: 200px;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .news-card h3 {
        font-size: 18px;
        margin: 10px 0;
    }

    .news-card a {
        color: #4682B4; /* xanh chủ đạo */
        text-decoration: none;
    }

        .news-card a:hover {
            text-decoration: none;
            background-color: #87CEEB;
            color: white;
        }

    .news-card:hover {
        transform: translateY(-5px);
    }

.news-date {
    font-size: 14px;
    color: #6b7280;
}
.document-grid .pager {
    text-align: center; /* căn giữa */
    padding: 10px 10px;
}

    .document-grid .pager a,
    .document-grid .pager span {
        margin: 0 5px;
        padding: 5px 10px;
        border: 1px solid #ccc;
        text-decoration: none;
        border-radius: 4px;
    }

    .document-grid .pager span { /* trang hiện tại */
        background-color: #007bff;
        color: #fff;
        font-weight: bold;
    }
.news-highlight .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.news-highlight .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 12px;
}

.news-card {
    width: 100%;
    height: 350px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
