/*
 * Import the main stylesheet from the original static site
 * This file will be copied from the original css/style.css
 */

/* WordPress-specific styles */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1em;
}

.alignright {
    float: right;
    margin-left: 1em;
}

/* Latest References Section Styles */
.latest-references {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.latest-references .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.latest-references .section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 600;
}

.latest-references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.latest-reference-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.latest-reference-item:hover {
    border-color: #0066cc;
}

.latest-reference-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background-color: #f5f5f5;
}

.latest-reference-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.latest-reference-year {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.latest-reference-title {
    font-size: 1rem;
    margin: 0;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

.view-all-references {
    text-align: center;
    margin-top: 2.5rem;
}

.view-all-references .btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: #0066cc;
    border: 1px solid #0066cc;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-references .btn:hover {
    background-color: #0066cc;
    color: #fff;
}

.view-all-references .btn:after {
    content: "→";
    margin-left: 0.5rem;
}

/* Responsive design for Latest References */
@media (max-width: 992px) {
    .latest-references-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .latest-references-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .latest-references .section-title {
        font-size: 1.75rem;
    }
    
    .latest-reference-thumb {
        height: 140px;
    }
}

/* References Archive Styles */
.references-archive {
    background-color: #fff;
    padding: 2rem 0;
}

.references-archive .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.references-archive .page-header {
    margin-bottom: 2rem;
}

.references-archive .page-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.references-archive .showing-results {
    color: #666;
    font-size: 0.9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.references-list {
    display: flex;
    flex-direction: column;
}

.reference-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.reference-item:hover {
    background-color: #f8f9fa;
}

.reference-thumbnail {
    flex: 0 0 120px;
}

.reference-thumbnail img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    background-color: #f5f5f5;
}

.reference-content {
    flex: 1;
    min-width: 0; /* Prevent content from overflowing */
}

.reference-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reference-type {
    color: #0066cc;
    font-size: 0.85rem;
}

.reference-year {
    color: #666;
    font-size: 0.85rem;
}

.reference-year::before {
    content: "•";
    margin: 0 0.5rem;
    color: #ccc;
}

.reference-title {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.reference-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reference-title a:hover {
    color: #0066cc;
}

/* Pagination Styles */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination .current {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.pagination a.page-numbers:hover {
    background-color: #f8f9fa;
    border-color: #0066cc;
    color: #0066cc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reference-item {
        gap: 1rem;
    }
    
    .reference-thumbnail {
        flex: 0 0 100px;
    }
    
    .reference-thumbnail img {
        width: 100px;
        height: 133px;
    }
    
    .reference-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .references-archive .page-title {
        font-size: 1.75rem;
    }
    
    .reference-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .reference-year::before {
        display: none;
    }
}
    

/* Header and Navigation Styles */
.site-header {
    padding: 1rem 0;
}

/* Logo styles */
.custom-logo-link {
    display: block;
}

.custom-logo {
    height: 110px;
    width: auto;
}

/* Navigation styles */
.nav-menu {
    font-size: 1.25rem; /* Tăng size chữ menu lên lớn hơn */
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    padding: 0.75rem 1.25rem; /* Tăng padding để menu dễ nhìn hơn */
    transition: color 0.3s ease;
    font-weight: 500; /* Semi-bold cho menu */
}

.nav-menu a:hover {
    color: #007cba;
}

.nav-menu .current-menu-item > a {
    color: #007cba;
    font-weight: 600;
}

/* Navigation menu spacing */
.nav-menu > li {
    margin: 0 0.75rem;
}

.nav-menu > li:first-child {
    margin-left: 0;
}

.nav-menu > li:last-child {
    margin-right: 0;
}

/* Responsive styles */
@media (max-width: 992px) {
    .custom-logo {
        height: 90px; /* Giảm size logo trên tablet */
    }
    
    .nav-menu {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .custom-logo {
        height: 80px; /* Giảm size logo trên mobile */
    }
    
    .nav-menu {
        font-size: 1rem;
        padding: 1rem 0;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
    }
}

/* WordPress comment styles */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* WordPress form styles */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.wpcf7-form input[type="submit"] {
    background-color: #007cba;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #005a87;
}

/* WordPress widget styles */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007cba;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* WordPress search form */
.search-form {
    display: flex;
    margin-bottom: 1rem;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-form input[type="submit"] {
    padding: 0.5rem 1rem;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* WordPress responsive images */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* WordPress gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
}

/* WordPress breadcrumbs */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* WordPress sidebar */
.sidebar {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* WordPress footer */
.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background-color: #333;
    color: white;
    text-align: center;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* WordPress admin bar adjustments */
.admin-bar .main-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .main-header {
        top: 46px;
    }
}

/* WordPress accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding-top: 100px;
    color: #333;
    background: linear-gradient(120deg, #f8fafc 0%, #e3f0ff 100%);
    min-height: 100vh;
}

/* Article Detail Page Styles */
.breadcrumb {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #0077ff;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #ccc;
}

.article-detail {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: none; }
}

.article-header {
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f0ff 100%);
    border-bottom: 1px solid #e3e3e3;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
}

.meta-label {
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
}

.article-image-container {
    padding: 2rem;
    text-align: center;
    background: #fafafa;
}

.article-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-image-container img:hover {
    transform: scale(1.02);
}

.article-content {
    padding: 2.5rem 2rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e3f0ff;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 0 0.8rem 0;
}

.article-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.article-content ul, .article-content ol {
    margin: 1.2rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.article-actions {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e3e3e3;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    background: #fff;
    border: 2px solid #0056b3;
    color: #0056b3;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.action-btn:hover {
    background: #0056b3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,86,179,0.3);
}

.btn-icon {
    font-size: 1.1rem;
}

.related-articles {
    padding: 2rem;
    background: #f8fafc;
    border-top: 1px solid #e3e3e3;
}

.related-articles h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-article {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.related-article h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
}

.related-article .read-more {
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.related-article .read-more:hover {
    color: #0077ff;
    text-decoration: underline;
}

.back-navigation {
    text-align: center;
    margin: 2rem 0;
}

.error-message {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    margin: 2rem 0;
}

.error-message h2 {
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-message p {
    color: #666;
    margin-bottom: 2rem;
}

/* Gallery Grid for Pictures */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item .caption {
    padding: 1rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    background: #f8fafc;
}

/* Responsive Design for Article Detail */
@media (max-width: 900px) {
    .article-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .article-actions {
        padding: 1.5rem;
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .related-articles {
        padding: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-content {
        padding: 1.5rem 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .breadcrumb {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    animation: fadeIn 0.7s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #0077ff;
    text-decoration: underline;
}

/* Header */
.main-header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e3e3e3;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-header .logo img {
    height: 110px;
    transition: transform 0.2s;
}
.main-header .logo img:hover {
    transform: scale(1.08) rotate(-3deg);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}
.nav-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
}
.nav-menu li {
    margin-left: 20px;
    position: relative;
}
.nav-menu li a {
    font-weight: 600;
    color: #333;
    padding: 7px 16px;
    border-radius: 6px;
    border-bottom: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.3s;
}
.nav-menu li a:hover,
.nav-menu li a.active {
    background: #e3f0ff;
    color: #0056b3;
    border-color: #0056b3;
}

/* Desktop navigation - ensure it works on large screens */
@media (min-width: 901px) {
    .nav-menu {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .nav-menu li {
        margin-left: 20px !important;
        width: auto !important;
        border-bottom: none !important;
    }
    
    .nav-menu li a {
        display: inline-block !important;
        padding: 7px 16px !important;
        font-size: inherit !important;
        border-radius: 6px !important;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}
.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #0056b3;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Ensure mobile menu is completely hidden by default */
@media (max-width: 900px) {
    .nav-menu {
        overflow: hidden !important;
        pointer-events: none !important;
    }
    
    .nav-menu.active {
        pointer-events: auto !important;
    }
}

/* Mobile menu states - ensure proper display */
@media (max-width: 900px) {
    .nav-menu {
        display: flex !important;
        right: -100% !important;
        visibility: hidden !important;
        transition: right 0.3s ease, visibility 0.3s ease, opacity 0.3s ease, transform 0.3s ease !important;
    }
    
    .nav-menu.active {
        right: 0 !important;
        visibility: visible !important;
    }
}

/* Button style (for download, read more, etc.) */
.download-btn, button {
    background: linear-gradient(90deg, #0056b3 0%, #0077ff 100%);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,86,179,0.08);
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
}
.download-btn:hover, button:hover {
    background: linear-gradient(90deg, #0077ff 0%, #0056b3 100%);
    transform: translateY(-2px) scale(1.04);
    color: #fff;
}

/* Section titles */
h2, h3 {
    color: #0056b3;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 0 #e3f0ff;
}

/* Page Header for List Pages */
.page-header {
    text-align: center;
    margin: 2rem 0 3rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,86,179,0.07);
    animation: fadeIn 0.8s;
}
.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0056b3;
}
.page-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    color: #0056b3;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0056b3 0%, #0077ff 100%);
    border-radius: 2px;
}

/* Upcoming Events Section */
.upcoming-events {
    margin: 3rem 0;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,86,179,0.07);
    animation: fadeIn 0.9s;
}
.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Event Items */
.event-item {
    background: #f9f9f9;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.18s;
    animation: fadeIn 0.9s;
}
.event-item:hover {
    box-shadow: 0 8px 32px rgba(0,86,179,0.13);
    transform: translateY(-4px) scale(1.025);
    background: #f4faff;
}
.event-item.upcoming {
    border: 2px solid #ff6b35;
    background: linear-gradient(135deg, #fff5f0 0%, #f9f9f9 100%);
}
.event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.event-item:hover .event-image img {
    transform: scale(1.1);
}
.upcoming-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8c42 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.event-content {
    padding: 1.5rem;
}
.event-content h4 {
    color: #0056b3;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}
.event-date, .event-location, .event-type {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.event-date::before {
    content: '📅';
}
.event-location::before {
    content: '📍';
}
.event-type::before {
    content: '🏷️';
}
.event-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Filter Section */
.filter-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,86,179,0.07);
    margin: 2rem 0;
    animation: fadeIn 0.9s;
}
.filter-section .search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.filter-section .search-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e3e3e3;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.filter-section .search-box input:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}
.filter-section .search-box button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(90deg, #0056b3 0%, #0077ff 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
.filter-section .search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,86,179,0.2);
}
.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.filter-controls select {
    padding: 0.8rem 1rem;
    border: 2px solid #e3e3e3;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 150px;
}
.filter-controls select:focus {
    outline: none;
    border-color: #0056b3;
}

/* External News Section */
.external-news {
    margin: 3rem 0;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,86,179,0.07);
    animation: fadeIn 1s;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.news-article {
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    padding: 1.5rem;
    background: #f9f9f9;
    transition: box-shadow 0.25s, transform 0.18s;
}
.news-article:hover {
    box-shadow: 0 8px 32px rgba(0,86,179,0.13);
    transform: translateY(-4px) scale(1.025);
    background: #f4faff;
}
.news-article h4 {
    color: #0056b3;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}
.news-article h4 a {
    color: inherit;
    text-decoration: none;
}
.news-article h4 a:hover {
    color: #0077ff;
}
.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}
.news-article p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,86,179,0.07);
    margin-bottom: 2rem;
    animation: fadeIn 0.9s;
}
.search-box {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}
.search-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e3e3e3;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.search-box input:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}
.search-box button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(90deg, #0056b3 0%, #0077ff 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,86,179,0.2);
}
.sort-options select {
    padding: 0.8rem 1rem;
    border: 2px solid #e3e3e3;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}
.sort-options select:focus {
    outline: none;
    border-color: #0056b3;
}

/* Articles Container */
.articles-container {
    margin: 2rem 0;
}

/* Pagination */
.pagination-container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,86,179,0.07);
    margin: 2rem 0;
    animation: fadeIn 1s;
}
.pagination-info {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1rem;
}
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.pagination-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(90deg, #0056b3 0%, #0077ff 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,86,179,0.2);
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.page-number {
    padding: 0.6rem 1rem;
    border: 2px solid #e3e3e3;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}
.page-number:hover {
    border-color: #0056b3;
    background: #e3f0ff;
}
.page-number.active {
    background: linear-gradient(90deg, #0056b3 0%, #0077ff 100%);
    color: #fff;
    border-color: #0056b3;
}
.page-number.dots {
    border: none;
    cursor: default;
    background: none;
}

/* Back to Outcomes Button */
.back-to-outcomes {
    text-align: center;
    margin: 2rem 0;
}
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #0056b3 0%, #0077ff 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,86,179,0.08);
}
.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,86,179,0.15);
    color: #fff;
    text-decoration: none;
}

/* Document List for Outcomes Page */
.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.document-list li {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,86,179,0.07);
    transition: box-shadow 0.25s, transform 0.18s;
    animation: fadeIn 0.9s;
}
.document-list li:hover {
    box-shadow: 0 8px 32px rgba(0,86,179,0.13);
    transform: translateY(-4px) scale(1.025);
    background: #f4faff;
}
.doc-title {
    font-weight: 600;
    color: #0056b3;
    font-size: 1.1rem;
    flex: 1;
    margin-right: 1rem;
    line-height: 1.4;
}

/* Map Placeholder */
.map-placeholder {
    background: linear-gradient(135deg, #e3f0ff 0%, #b3d1f7 100%);
    border: 2px dashed #0056b3;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    color: #0056b3;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}
.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Content Blocks for Events Page */
.content-block {
    margin: 3rem 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,86,179,0.07);
    padding: 2rem;
    animation: fadeIn 0.8s;
}
.block-title {
    color: #0056b3;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}
.block-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0056b3 0%, #0077ff 100%);
    border-radius: 2px;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Article Items */
.article-item {
    background: #f9f9f9;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.18s;
    animation: fadeIn 0.9s;
    display: flex;
    flex-direction: column;
}
.article-item:hover {
    box-shadow: 0 8px 32px rgba(0,86,179,0.13);
    transform: translateY(-4px) scale(1.025);
    background: #f4faff;
}
.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.article-item:hover .article-image img {
    transform: scale(1.1);
}
.article-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex: 1;
}

.article-content h4 {
    color: #0056b3;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}
.article-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
    font-style: italic;
}
.article-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-content .read-more {
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    margin-top: auto;
    align-self: flex-start;
    display: inline-block;
    background: linear-gradient(90deg, #0056b3 0%, #0077ff 100%);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,86,179,0.08);
    transition: background 0.2s, transform 0.15s;
}

.article-content .read-more:hover {
    background: linear-gradient(90deg, #0077ff 0%, #0056b3 100%);
    transform: translateY(-2px) scale(1.04);
    color: #fff;
    text-decoration: none;
}

/* Hidden Articles */
.hidden-articles {
    display: none;
    margin-top: 2rem;
}
.hidden-articles.show {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    animation: slideDown 0.5s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* View More Container and Button */
.view-more-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e3e3e3;
}
.view-more-btn {
    background: linear-gradient(90deg, #0056b3 0%, #0077ff 100%);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,86,179,0.08);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.view-more-btn:hover {
    background: linear-gradient(90deg, #0077ff 0%, #0056b3 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(0,86,179,0.15);
    color: #fff;
}
.view-more-btn:active {
    transform: translateY(0) scale(1.02);
}
.view-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}
.view-more-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card hover effect */
.team-card, .event-item, .location-card, .news-article, .document-list li {
    box-shadow: 0 2px 8px rgba(0,86,179,0.07);
    transition: box-shadow 0.25s, transform 0.18s;
}
.team-card:hover, .event-item:hover, .location-card:hover, .news-article:hover, .document-list li:hover {
    box-shadow: 0 8px 32px rgba(0,86,179,0.13);
    transform: translateY(-4px) scale(1.025);
    background: #f4faff;
}

/* Team Page */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.team-card {
    background: #f9f9f9;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: visible;
}
.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #b3d1f7;
    box-shadow: 0 2px 8px rgba(0,86,179,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}
.team-card img:hover {
    box-shadow: 0 8px 32px rgba(0,86,179,0.18);
    transform: scale(1.07);
}
.team-bio {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    color: #222;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px rgba(0,86,179,0.10);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10;
    font-size: 0.98rem;
    min-height: 80px;
    max-height: 180px;
    overflow-y: auto;
    transform: translateY(20px);
}
.team-card:hover .team-bio {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Key Figures Section */
.key-figures {
    margin: 2.5rem auto 1.5rem auto;
}
.key-figures .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 2rem;
}
.key-figure-item {
    flex: 1 1 180px;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #e3f0ff;
    padding: 1.2rem 0.5rem 1.1rem 0.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s, transform 0.18s;
    animation: fadeIn 1.2s;
}
.key-figure-item:hover {
    box-shadow: 0 8px 32px #b3d1f7;
    transform: scale(1.06) rotate(-2deg);
}
.key-figure-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 8px #b3d1f7);
    transition: filter 0.2s, transform 0.2s;
}
.key-figure-item img:hover {
    filter: drop-shadow(0 8px 24px #b3d1f7);
    transform: scale(1.15);
}
.key-figure-item .number {
    font-size: 2rem;
    font-weight: bold;
    color: #0056b3;
}
.key-figure-item .label {
    font-size: 1.05rem;
    color: #333;
    margin-top: 0.5rem;
}

/* SFI Intro Section */
.sfi-intro {
    background: #f7fafd;
    padding: 2.5rem 0;
    margin: 2.5rem 0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,86,179,0.07);
    animation: fadeIn 0.8s;
}
.sfi-intro .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}
.sfi-logos {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.sfi-logos img {
    width: 90px;
    max-width: 100%;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
}
.sfi-logos img:hover {
    box-shadow: 0 8px 32px rgba(0,86,179,0.15);
    transform: scale(1.08);
}
.sfi-content {
    flex: 1 1 320px;
    min-width: 220px;
}
.sfi-content h3 {
    margin-top: 0;
    color: #0056b3;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.sfi-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}
.sfi-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 1rem 0;
}
.sfi-content li {
    margin-bottom: 0.5rem;
    color: #333;
}

/* Collaborators & Funding Agency */
.funding-agency, .collaborators {
    margin: 2.5rem auto;
    max-width: 900px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,86,179,0.07);
    padding: 2rem 2rem 1.5rem 2rem;
    animation: fadeIn 0.8s;
}
.funding-agency {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.funding-agency-logo img {
    width: 90px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px #e3f0ff);
    transition: filter 0.2s;
}
.funding-agency-logo img:hover {
    filter: drop-shadow(0 8px 24px #b3d1f7);
}
.funding-agency-content h3 {
    margin-top: 0;
    color: #0056b3;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.collaborator-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 2rem;
    margin-top: 1.5rem;
}
.collaborator {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    transition: transform 0.18s;
}
.collaborator img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #b3d1f7;
    box-shadow: 0 2px 8px #e3f0ff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.collaborator:hover {
    transform: scale(1.08) rotate(-2deg);
}
.collaborator img:hover {
    box-shadow: 0 8px 32px #b3d1f7;
    transform: scale(1.12);
}
.collaborator span {
    font-size: 1.05rem;
    color: #0056b3;
    margin-top: 0.2rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
}



/* Main image/banner section */
.main-image-section {
    position: relative;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 2px 16px rgba(0,86,179,0.07);
    margin-bottom: 0.5rem;
}
.main-image-section img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    filter: brightness(0.93) saturate(1.1);
    transition: filter 0.2s;
}
.main-image-section img:hover {
    filter: brightness(1) saturate(1.2);
}
.main-image-title {
    position: absolute;
    left: 0; right: 0; top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 2px 16px #000, 0 1px 2px #333;
    padding: 0 1rem;
    letter-spacing: 0.5px;
    animation: fadeIn 1.2s;
}

/* Project intro, map, key figures */
.project-intro p {
    background: #e3f0ff;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px #e3f0ff;
    color: #222;
    font-size: 1.13rem;
    animation: fadeIn 1.1s;
}

/* Map/illustration section */
.project-map-illustration {
    text-align: center;
    margin: 2rem 0;
}

.project-map-illustration h3 {
    margin-bottom: 1.5rem;
    color: #0056b3;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Container cho 3 hình ảnh */
.project-map-illustration .images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-map-illustration .map-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px #b3d1f7;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Bỏ width và height cố định */
}

.project-map-illustration .map-item:hover {
    box-shadow: 0 8px 32px #b3d1f7;
    transform: scale(1.05);
}

.project-map-illustration .map-item img {
    display: block; /* Đảm bảo không có khoảng trống */
    max-width: 400px; /* Giới hạn kích thước tối đa */
    max-height: 280px;
    width: auto; /* Tự động điều chỉnh theo tỷ lệ */
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 14px;
}

/* Hiệu ứng phóng to cho từng map */
.project-map-illustration .map-item.nongkhai:hover img {
    transform: scale(4.0) translate(-13%, +30%);
}

.project-map-illustration .map-item.phnompenh:hover img {
    transform: scale(4.0) translate(3%, -15%);
}

.project-map-illustration .map-item.cantho:hover img {
    transform: scale(4.0) translate(3%, -40%);
}

/* Overlay với thông tin khi hover */
.project-map-illustration .map-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
    pointer-events: none;
}

.project-map-illustration .map-item:hover::after {
    opacity: 1;
}

/* Text overlay */
.project-map-illustration .map-item .map-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.7) 0%, rgba(0, 119, 255, 0.5) 100%);
    color: white;
    padding: 0.8rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.project-map-illustration .map-item:hover .map-info {
    transform: translateY(0);
}

.project-map-illustration .map-item .map-info h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.project-map-illustration .map-item .map-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.project-map-illustration p {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    text-align: justify;
}


/* References */


/* Responsive cho mobile */
@media (max-width: 900px) {
    .project-map-illustration .images-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-map-illustration .map-item img {
        max-width: 320px;
        max-height: 180px;
    }
}

@media (max-width: 600px) {
    .project-map-illustration .map-item img {
        max-width: 280px;
        max-height: 160px;
    }
    
    .project-map-illustration .map-item .map-info {
        padding: 0.6rem;
    }
    
    .project-map-illustration .map-item .map-info h4 {
        font-size: 1rem;
    }
    
    .project-map-illustration .map-item .map-info p {
        font-size: 0.8rem;
    }
}

/* Footer */
.main-footer {
    background: linear-gradient(90deg, #0056b3 0%, #0077ff 100%);
    color: #fff;
    text-align: center;
    padding: 1.2rem 0 1rem 0;
    margin-top: 2rem;
    letter-spacing: 0.5px;
    font-size: 1.05rem;
    box-shadow: 0 -2px 8px #b3d1f7;
}

/* Responsive improvements */
@media (max-width: 900px) {
    .main-header .container {
        flex-direction: row;
        align-items: center;
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 2rem 2rem 2rem;
        box-shadow: -2px 0 8px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        gap: 0;
        z-index: 1000;
        display: flex;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #e3e3e3;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: none;
        border-radius: 0;
        transition: color 0.2s, background 0.2s;
    }
    
    .nav-menu li a:hover,
    .nav-menu li a.active {
        background: #e3f0ff;
        color: #0056b3;
        border-color: transparent;
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .funding-agency, .collaborators, .sfi-intro .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
    .key-figures .container {
        gap: 1.5rem 1rem;
    }
    .article-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .content-block {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    .document-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .doc-title {
        margin-right: 0;
    }
    .hidden-articles.show {
        grid-template-columns: 1fr;
    }
    .filter-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    .search-box {
        max-width: none;
    }
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
    .upcoming-grid {
        grid-template-columns: 1fr;
    }
    .events-grid {
        grid-template-columns: 1fr;
    }
    .filter-controls {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .main-image-title { font-size: 1.1rem; }
    .funding-agency, .collaborators, .sfi-intro { padding: 1rem; }
    .collaborator { width: 90px; }
    .collaborator img { width: 50px; height: 50px; }
    .key-figure-item { min-width: 120px; font-size: 0.98rem; }
    .main-header .logo img { height: 40px; }
    .sfi-logos { flex: 0 0 auto; }
    .sfi-content { min-width: auto; }
    .content-block { padding: 1rem; }
    .article-content { padding: 1rem; }
    .block-title { font-size: 1.5rem; }
    .document-list li { padding: 1rem; }
    .map-placeholder { padding: 2rem 1rem; font-size: 1rem; }
    .view-more-btn { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
    .page-header h2 { font-size: 2rem; }
    .filter-section { padding: 1rem; }
    .pagination-container { padding: 1rem; }
    .section-title { font-size: 1.5rem; }
    .event-content { padding: 1rem; }
    .upcoming-events, .external-news { padding: 1rem; }
    
    /* Mobile navigation adjustments */
    .nav-menu {
        width: 100% !important;
        right: -100% !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(100%) !important;
        transition: right 0.3s ease, visibility 0.3s ease, opacity 0.3s ease, transform 0.3s ease !important;
    }
    
    .nav-menu.active {
        right: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }
} 

/* Filter section styles */
.filter-section {
    background: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.search-box button {
    padding: 0.75rem 1.5rem;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background: #005a8b;
}

.filter-controls {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.filter-controls select {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
    transition: border-color 0.3s ease;
}

.filter-controls select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Loading state */
.article-grid.loading {
    position: relative;
    min-height: 200px;
}

.article-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* No results message */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Responsive filter controls */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .filter-group label {
        min-width: 80px;
    }
    
    .filter-controls select {
        flex: 1;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box button {
        width: 100%;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group label {
        min-width: auto;
    }
} 
