/* Ninh Binh Main Content Container */
.nb-main-content {
    flex: 1;
    background: #FFFFFF;
    padding: 1px;
    border-radius: 4px;
}

/* Utility Class */
.nb-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Typography - Line Height Only */
.nb-main-content p,
.nb-main-content li,
.nb-article-item p,
.nb-news-list li {
    line-height: 1.6;
}

/* Photo Grid - 2x2 on portrait mobile (default) */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}
.photo-grid a {
    display: block;
    overflow: hidden; /* Ensures the zoom stays within bounds */
    border-radius: 4px; /* Adds rounded corners to the container */
}
.photo-grid img {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
    transition: transform 0.3s ease; /* Smooth transition effect */
}
.photo-grid img:hover {
    transform: scale(1.1); /* Zoom in by 10% on hover */
}
/* 1x4 on landscape mobile */
@media (orientation: landscape) and (max-width: 900px) {
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* 1x4 on desktop */
@media (min-width: 901px) {
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Article Styles */
.nb-article-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.nb-article-item:last-child {
    border-bottom: none;
}

.nb-article-item h4 {
    font-family: Verdana, sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.nb-article-item h4 a {
    color: #448ccb;
    text-decoration: none;
}

.nb-article-item h4 a:hover {
    text-decoration: underline;
}

.nb-article-item img {
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
    width: 150px;
    height: 100px;
    border-radius: 4px;
}

/* News Section */
.nb-news-section h2 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.nb-news-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 90%;
}

.nb-news-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.nb-news-list li:before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #448ccb;
    font-weight: bold;
}

.nb-news-list a {
    color: #448ccb;
    text-decoration: none;
}

.nb-news-list a:hover {
    text-decoration: underline;
}

.nb-news-list .more-link {
    font-style: italic;
    font-weight: bold;
}

/* --- TABLET AND MOBILE STYLES --- */

/* Tablet landscape and below (max-width: 959px) */
@media only screen and (max-width: 959px) {
    .nb-main-content {
        padding: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        border-radius: 0;
    }
    
    .nb-northwest-section {
        margin: 0;
        padding: 5px;
        border-radius: 0;
    }
}

/* Max 959px, Landscape Orientation */
@media only screen and (max-width: 959px) and (orientation: landscape) {
    .nb-icon-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Max 959px, Portrait Orientation */
@media only screen and (max-width: 959px) and (orientation: portrait) {
    .nb-icon-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Smaller Screens (Max-width: 767px) */
@media only screen and (max-width: 767px) {
    .nb-article-item img {
        width: 100%;
        height: auto;
        float: none;
        margin-bottom: 10px;
    }
    
    .nb-news-list {
        max-width: 100%;
    }
    
    .nb-news-section h2 {
        font-size: 1.6em;
    }
}

/* Mobile Devices (Max-width: 480px) */
@media only screen and (max-width: 480px) {
    .nb-news-section h2 {
        font-size: 1.4em;
    }
}