/* --- General Layout and Containers --- */
.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;
}

.main-content,
.sidebar {
    background: #fff;
    border-radius: 4px;
}

.main-content {
    flex: 1;
    padding: 10px;
}

.sidebar {
    flex: 0 0 250px;
    padding: 15px;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* --- Banner Section Styles --- */

.banner-section {
    margin-bottom: 20px;
    margin-top: -15px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Base style for banner image (max-height set in media queries) */
.banner-image {
    /* Base style, specific max-heights are in the first media query block */
}

/* --- Sidebar and Specific Content Sections --- */

.sidebar-section {
    margin-bottom: 25px;
    font-family: Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    text-align: justify;
    color: #000;
}

.video-container {
    margin: 20px 0;
}

.video-container iframe {
    width: 100%;
    border-radius: 4px;
}

.northwest-content {
    background: #fff url(/Image/system/home-bg3.png) repeat-y 0 0;
    padding: 10px;
    border-radius: 4px;
}

/* --- Icon Links Section --- */

.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 .3s;
}

.icon-links img:hover {
    transform: scale(1.05);
}

/* --- Article/News Section Styles --- */

.article-item p {
    font-family: Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    text-align: justify;
    color: #000;
}

.news-section {
    margin-top: 10px;
    padding-top: 5px;
}

.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 {
    font-family: Verdana, sans-serif;
    font-size: 13px;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.news-list li:before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #448ccb;
    font-weight: 700;
}

.news-list a {
    color: #448ccb;
    text-decoration: none;
}

.news-list a:hover {
    text-decoration: underline;
}

.news-list .more-link {
    font-style: italic;
    font-weight: 700;
}

/* --- Base Font Sizing for Content --- */

.article-item p,
.main li,
.main p,
.news-list li,
.sidebar-section p {
    font-size: 13px;
}

/* =========================================================================
   Media Queries (Responsive Design)
   ========================================================================= */

/* --- Banner Image Sizing by Viewport/Orientation --- */

@media only screen and (min-width: 960px) {
    .banner-image {
        max-height: 400px;
    }
}

@media only screen and (max-width: 959px) and (orientation: landscape) {
    .banner-image {
        max-height: 300px;
    }
}

@media only screen and (max-width: 959px) and (orientation: portrait) {
    .banner-image {
        max-height: 250px;
    }
}

@media only screen and (max-width: 480px) {
    .banner-image {
        max-height: 200px;
    }
}

/* --- Tablet/Small Desktop (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;
        order: 1; /* Sidebar above main content on small screens */
        padding: 10px;
    }

    .main-content,
    .sidebar {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .main-content {
        order: 2;
        padding: 5px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar ul {
        display: none;
    }

    .northwest-section {
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
    }

    /* Banner Section specific adjustments for 959px max-width */
    .banner-section {
        margin: -5px 0 10px;
        width: 100%;
    }

    .banner-section img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }

    .banner-section * {
        max-width: 100% !important;
    }
}

/* Icon Links Grid Adjustments for Tablet Orientation */

@media only screen and (max-width: 959px) and (orientation: landscape) {
    .icon-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media only screen and (max-width: 959px) and (orientation: portrait) {
    .icon-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* --- Mobile (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;
    }

    .news-list {
        max-width: 100%;
    }

    /* Font size override for max-width: 768px */
    .article-item p,
    .main li,
    .main p,
    .news-list li,
    .sidebar-section p {
        font-size: 17px !important;
    }
}

/* --- Small Mobile (Max-Width: 480px) --- */

@media only screen and (max-width: 480px) {
    .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 Image specific adjustment for 480px max-width */
    .banner-section img {
        max-height: 200px;
    }
}

/* --- Landscape Tablet Font Adjustment (Max-Width: 1024px) --- */

@media (max-width: 1024px) and (orientation: landscape) {
    /* Font size override for 1024px landscape */
    .article-item p,
    .main li,
    .main p,
    .news-list li,
    .sidebar-section p {
        font-size: 16px !important;
    }
}