/* Base Styles */
.main-container {
    background: url('/system/shading.png');
    padding: 20px 0;
}

.content-wrapper {
    max-width: 950px;
    margin: 0 auto;
}

.content-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sidebar {
    flex: 0 0 250px;
    background: #fff;
    padding: 15px;
    border-radius: 4px;
}

.main-content {
    flex: 1;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
}

.video-container {
    margin: 20px 0;
}

.video-container iframe {
    width: 100%;
    border-radius: 4px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Typography & Text Blocks */
.sidebar-section {
    margin-bottom: 25px;
    font-family: Verdana, sans-serif;
    font-size: 13px; /* Desktop base size */
    line-height: 1.6;
    text-align: justify;
    color: #000;
}

.main p,
.main li,
.sidebar-section p,
.article-item p,
.news-list li {
    font-size: 13px; /* Desktop base size */
}

.news-section h2 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 90%;
}

.news-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.news-list li:before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #448ccb;
    font-weight: bold;
}

.news-list a {
    color: #448ccb;
    text-decoration: none;
}

.news-list a:hover {
    text-decoration: underline;
}

.news-list .more-link {
    font-style: italic;
    font-weight: bold;
}


/* Banner and Section Styles */
.banner-section {
    margin-bottom: 0px; /* From first block */
    margin-bottom: 20px; /* From second block - using second block's value */
    margin-top: -15px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.northwest-content {
    background: #fff url(/Image/system/home-bg3.png) repeat-y left top;
    padding: 10px;
    border-radius: 4px;
}

/* Article Styles */
.article-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item h4 {
    font-family: Verdana, sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.article-item h4 a {
    color: #448ccb;
    text-decoration: none;
}

.article-item h4 a:hover {
    text-decoration: underline;
}

.article-item img {
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
    width: 150px;
    height: 100px;
    border-radius: 4px;
}

/* Icon Links Grid */
.icon-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    justify-items: center;
}

.icon-links a {
    text-align: center;
    width: 100%;
}

.icon-links img {
    width: 100px;
    height: auto;
    border: 0;
    transition: transform 0.3s;
}

.icon-links img:hover {
    transform: scale(1.05);
}

/* --- Media Queries --- */

/* Desktop / Large Screen */
@media only screen and (min-width: 960px) {
    .banner-image {
        max-height: 400px;
    }
}

/* Tablet landscape and below (max-width: 959px) */
@media only screen and (max-width: 959px) {
    .content-wrapper {
        padding: 0 10px;
    }
    
    .content-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .sidebar {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        order: 1;
        padding: 10px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .main-content {
        order: 2;
        padding: 5px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar ul {
        display: none; /* Hide desktop navigation */
    }
    
    .northwest-section {
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
    }

    /* Banner fixes for tablet/mobile */
    .banner-section {
        margin-top: -5px;
        margin-bottom: 10px;
        margin-left: 0; 
        margin-right: 0;
        width: 100%;
    }
    
    .banner-section img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .banner-section * {
        max-width: 100% !important; /* Override fadeshow inline styles */
    }
}

/* Max 959px, Landscape Orientation */
@media only screen and (max-width: 959px) and (orientation: landscape) {
    .banner-image {
        max-height: 300px;
    }

    .icon-links {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Mobile landscape font size (from second block, overriding desktop base) */
    .main p,
    .main li,
    .sidebar-section p,
    .article-item p,
    .news-list li {
        font-size: 16px !important;
    }
}

/* Max 959px, Portrait Orientation */
@media only screen and (max-width: 959px) and (orientation: portrait) {
    .banner-image {
        max-height: 250px;
    }
    
    .icon-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Smaller Screens (Max-width: 767px) */
@media only screen and (max-width: 767px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 1.8em;
    }
    
    .video-container iframe {
        height: 200px;
    }
    
    .northwest-header h3 {
        font-size: 1.8em;
    }
    
    .article-item img {
        width: 100%;
        height: auto;
        float: none;
        margin-bottom: 10px;
    }
    
    .news-list {
        max-width: 100%;
    }

    /* Mobile portrait font size (from second block, overriding smaller landscape) */
    .main p,
    .main li,
    .sidebar-section p,
    .article-item p,
    .news-list li {
        font-size: 17px !important;
    }
}

/* Mobile Devices (Max-width: 480px) */
@media only screen and (max-width: 480px) {
    .banner-image {
        max-height: 200px; /* Duplicate, but kept for clarity/precedence */
    }
    
    .content-wrapper {
        padding: 0 10px;
    }
    
    .tour-item {
        flex-direction: column;
    }
    
    .tour-item img {
        width: 100%;
        height: auto;
    }
    
    .main-title {
        font-size: 1.5em;
    }
    
    .northwest-header h3 {
        font-size: 1.4em;
    }
    
    .banner-section img {
        max-height: 200px; /* Duplicate, but kept for clarity/precedence */
    }
}