﻿/* Base Variables */
:root {
    --primary-color: #003d7a; /* Dark blue for active filters */
    --primary-hover: #00285c; /* Darker blue for hover states */
    --secondary-color: #15a4b8; /* Teal for read more buttons */
    --secondary-hover: #108294; /* Darker teal for hover states */
    --accent-color: #69a449; /* Green for tags */
    --accent-hover: #5a8f3e; /* Darker green for hover states */
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 0.25rem;
    --container-width: 1200px;
}

#news-articles {
    background-color: #f5f5f5;
}

/* Base Styles */
body {
    background-color: #f9fafb;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Banner */
.news-hero {
    position: relative;
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 4rem 0;
    overflow: hidden;
}

    .news-hero::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, rgba(30, 41, 59, 0.9), rgba(30, 41, 59, 0.6));
        z-index: 1;
    }

.news-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.news-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-left: 2rem;
}

.news-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.news-hero .back-to-articles {
    align-self: flex-end;
    margin-bottom: 0;
}

.news-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.news-hero-content .article-date {
    display: block;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: #ffffff;
    font-size: 0.9em;
}

    .news-hero-content .article-date i {
        margin-right: 0.5rem;
    }

/* Tags styling */
.article-tags {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    text-align: center;
    border-radius: 0.2rem;
    max-width: fit-content;
    transition: background-color 0.2s ease;
}

.article:hover .article-tags {
    background: var(--accent-hover);
}

/* Mobile filter toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
    justify-content: space-between;
    align-items: center;
}

    .mobile-filter-toggle i {
        transition: transform 0.3s ease;
    }

.filters-wrapper {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Filters Section */
.news-filters {
    position: sticky;
    top: 0;
    background-color: var(--light-color);
    padding: 1rem 0;
    border: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition);
}

    .news-filters.sticky {
        top: 0;
        width: 100%;
        z-index: 1000;
        background-color: rgba(248, 249, 250, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

.filters-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

    .filters-list li {
        margin: 0;
        margin-right: 1rem;
        margin-top: 0.5rem;
    }

    /* Button styling */
    .filters-list a {
        background-color: #fff;
        border: 0 solid #e2e8f0;
        border-radius: 1.5rem;
        box-sizing: border-box;
        color: #0d172a;
        cursor: pointer;
        display: inline-block;
        font-family: "Basier circle",-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1;
        padding: 1rem 1.6rem;
        text-align: center;
        text-decoration: none #0d172a solid;
        text-decoration-thickness: auto;
        transition: all .2s cubic-bezier(.4, 0, .2, 1);
        box-shadow: 0px 1px 2px rgba(166, 175, 195, 0.25);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
    }

        .filters-list a:hover {
            background-color: #1e293b;
            color: #fff !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .filters-list .isactive, .filters-list a.isactive {
            background: linear-gradient(145deg, var(--primary-color), var(--primary-hover));
            box-shadow: 0 4px 10px rgba(0, 61, 122, 0.3);
            color: #fff;
            font-weight: 500;
            transform: translateY(-2px);
        }

/* Filter Controls */
.news-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0 1rem 0 1rem;
    box-shadow: var(--shadow);
}

.result-count {
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-right: 1rem;
    padding: 0.5rem 0;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.year-filter-container {
    position: relative;
}

.year-filter {
    appearance: none;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    width: 150px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .year-filter:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(0, 61, 122, 0.2);
    }

.year-filter-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    pointer-events: none;
}

.selected-year {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: 0.5rem;
    animation: fadeIn 0.3s ease;
}

    .selected-year button, #clear-year-btn {
        background: transparent;
        border: none;
        color: white;
        margin-left: 0.5rem;
        cursor: pointer;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        width: 1.25rem;
        height: 1.25rem;
        transition: transform 0.2s ease;
    }

        .selected-year button:hover, #clear-year-btn:hover {
            transform: scale(1.2);
        }

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    gap: 0.5rem;
}

    .view-toggle button, #card-view-btn, #list-view-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        background-color: #f8f9fa;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .view-toggle button:hover, #card-view-btn:hover, #list-view-btn:hover {
            background-color: #e9ecef;
        }

        .view-toggle button.active, #card-view-btn.active, #list-view-btn.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
            box-shadow: 0 2px 6px rgba(0, 61, 122, 0.3);
        }

/* Card View Styling */
.news-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .article:hover {
        transform: translateY(-5px);
        box-shadow: var(--hover-shadow);
    }

    .article-link, .article a {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-decoration: none;
        color: inherit;
        width: 100%;
    }

.featured-img {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #ffff;
    flex-shrink: 0;
    position: relative;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

    .featured-img img {
        width: 180px;
        height: auto;
    }

/* Article Content */
.article-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.5rem;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.article-date {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

    .article-date i {
        margin-right: 0.5rem;
        color: var(--secondary-color);
    }

.article-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.read-more-inline {
    font-size: 0.92rem;
    color: #15a4b8; /* Same as your original button color */
    font-weight: 400;
}

  
    .article-desc p {
        display: inline;
    }

/* List View Styling */
.list-view .news-articles {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.list-view .article {
    display: flex;
    flex-direction: row !important;
    height: auto;
    position: relative;
    border-radius: 8px;
    background-color: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .list-view .article:hover {
        transform: translateY(-3px);
        box-shadow: var(--hover-shadow);
    }

.list-view .article-link {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.list-view .featured-img {
    width: 170px;
    min-width: 200px !important;
    height: 150px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    align-self: center;
    margin: 1rem;
}

.list-view .article-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.list-view .article-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.list-view .article-desc {
    margin-bottom: 0.75rem;
}

.list-view .article-tags {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    margin: 0;
}

/* Container Styles */
#news-articles-container {
    display: block !important;
}

    #news-articles-container.card-view .news-articles {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }

    #news-articles-container.list-view .news-articles {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

/* No Results Message */
.no-results-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background-color: #f8f9fa;
    border-radius: var(--radius);
    border: 1px dashed var(--border-color);
    text-align: center;
    margin: 2rem 0;
}

.no-results-content {
    max-width: 400px;
}

.no-results-message i {
    font-size: 3rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.no-results-message p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.clear-all-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
}

/* Back to Articles Button */
.back-to-articles {
    display: inline-flex;
    align-items: center;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 0.45rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: var(--transition);
}

    .back-to-articles:hover {
        background-color: #108294;
        color: var(--text-light);
    }

    .back-to-articles i {
        margin-right: 0.5rem;
    }

/* Single Article Styles */
.single-article-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    min-height: 300px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}


.single-article {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: var(--shadow);
    padding: 1.4rem;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    min-height: 500px;
}

    .single-article ul li {
        margin-top: 19px;
        font-size: 1.1rem;
    }

    .single-article .no-gutters > .col, .single-article .no-gutters > [class*=col-] {
        padding-right: 1rem;
        padding-left: 0;
    }

    .single-article .no-gutters > .col-md-4 > img.fullwidth:only-child {
        margin-right: calc(-1rem + 2px); /* add a tiny buffer to avoid overflow clipping */
    }


.single-article-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.4rem !important;
    height: 100%;
}

.single-article-description {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1.3rem;
    line-height: 1.8;
}

.single-article-body h2 {
    font-size: 1.5rem !important;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.single-article-body h3 {
    font-size: 1.5rem !important;
    font-weight: 600;
    margin: 2rem 0 .6rem;
}

.single-article-body p {
    font-size: 1.15rem;
    margin-bottom: 1.4rem;
}

.single-article-body img {
    max-width: 100%;
    height: auto;
}

/* Lists in Articles */
.single-article-body ul:not(.fa-ul),
.article-body ul:not(.fa-ul) {
    list-style-type: square;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.single-article-body ol,
.article-body ol {
    list-style-type: decimal;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.single-article-body li:not(.fa-ul li),
.article-body li:not(.fa-ul li) {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-dark);
    padding-left: 0.5rem;
}

.single-article-body li:last-child:not(.fa-ul li:last-child),
.article-body li:last-child:not(.fa-ul li:last-child) {
    margin-bottom: 0;
}

/* For nested lists */
.single-article-body ul:not(.fa-ul) ul:not(.fa-ul),
.single-article-body ol ul:not(.fa-ul),
.article-body ul:not(.fa-ul) ul:not(.fa-ul),
.article-body ol ul:not(.fa-ul) {
    list-style-type: square;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.single-article-body ul:not(.fa-ul) ol,
.single-article-body ol ol,
.article-body ul:not(.fa-ul) ol,
.article-body ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Font Awesome Lists */
.single-article .fa-ul {
    margin-left: 2.5rem;
    padding-left: 0;
    list-style-type: none;
}

    .single-article .fa-ul li {
        position: relative;
        margin-bottom: 1rem;
    }

.single-article .fa-li {
    position: absolute;
    left: -2.5rem;
    width: 2rem;
    text-align: center;
}

.single-article .fa-check-circle.green {
    color: #69a449;
}

.single-article .fa-ul li b {
    font-weight: 600;
}

/* Single Article Navigation */
.single-article-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

    .single-article-navigation a {
        display: inline-flex;
        align-items: center;
        color: var(--secondary-color);
        font-weight: 500;
        text-decoration: none;
        transition: var(--transition);
    }

        .single-article-navigation a:hover {
            color: #108294;
        }

    .single-article-navigation .prev-article {
        margin-right: auto;
    }

        .single-article-navigation .prev-article i {
            margin-right: 0.5rem;
        }

    .single-article-navigation .next-article {
        margin-left: auto;
    }

        .single-article-navigation .next-article i {
            margin-left: 0.5rem;
        }

    .single-article-navigation .disabled {
        color: #999;
        cursor: not-allowed;
        pointer-events: none;
    }

/* Layout Utilities */
.single-article .pageleft {
    float: left;
    margin-right: 1rem;
    margin-top: .5rem;
}

.single-article .pageright {
    float: right;
    margin: 0 0 2rem .5rem;
}

.single-article .row img {
    display: block;
    text-align: center;
    margin: 1rem auto 1.5rem auto;
}

.single-article .col-md-10 img {
    margin-bottom: 1.4rem;
}

.single-article .right img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.single-article .right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.single-article .grid-fluid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px; 
}

.single-article .col-md-8 {
    flex: 0 0 calc(66.66% - 10px); /* 2/3 of the container minus half the gap */
    max-width: calc(66.66% - 10px);
}

.single-article .col-md-4 {
    flex: 0 0 calc(33.33% - 10px); /* 1/3 of the container minus half the gap */
    max-width: calc(33.33% - 10px);
}

    .single-article .col-md-4.right {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

        .single-article .col-md-4.right img {
            display: block;
            max-width: 100%;
            height: auto;
            margin-bottom: 15px;
        }

/* Responsive adjustments */
@media (max-width: 767px) {
    .single-article-body p {
        font-size: 1.05rem;
    }

    .single-article img.align-r, .single-article .pageright {
        float: none !important;
        margin: 0 0 2rem 0rem;
    }

    .single-article .grid-fluid {
        flex-direction: column;
    }

    .single-article .caveat {
        font-size: .9rem;
    }

    .single-article .no-gutters > .col-md-4 > img.fullwidth:only-child {
        margin: 0 auto;
    }

    .single-article ul li {
        margin-top: 6px;
        font-size: 1rem;
    }
        .single-article .col-md-8, .single-article .col-md-4, .single-article .col-md-4.right {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.single-article-body img.fullwidth + p{
    margin-top:1rem !important;
}

.single-article-body .col-md-4 img.fullwidth{
    padding-right:0px !important;
}

.single-article .fullwidth:not(table):not(img) {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


.single-article.margin-top-3 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.single-article .mr-3 {
    margin-right: 1rem;
}

.single-article .mt-3 {
    margin-top: 1rem;
}

.single-article .p-3 {
    padding: 1rem;
}

.single-article .tip-green {
    background-color: #e8f5e9;
    border-radius: 4px;
}

.single-article .bold {
    font-weight: 600;
}


/* Center positioning */
.single-article center {
    display: block;
    text-align: center;
    width: 100%;
}

.single-article center img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.single-article img.align-r {
    float: right;
}

/* Table Styles */
table.fullwidth {
    width: 100%;
    height: auto;
}

table tbody{
    border:1px solid #eee;
}


.info table td {
    padding: 5px;
    border-top: #d2d3d0 solid 1px;
    border-left: #d2d3d0 solid 1px;
    vertical-align: middle;
}

.info table thead th {
    padding: 5px;
    border-left: #d2d3d0 solid 1px;
    font-weight: bold;
    vertical-align: middle;
    text-align: center;
    color: #000;
}

.info table thead.left th {
    padding: 5px;
    border-left: #d2d3d0 solid 1px;
    font-weight: bold;
    vertical-align: middle;
    text-align: left;
    color: #000;
}

.info table thead th.width10 {
    width: 10%;
}

.info table thead th.width15 {
    width: 15%;
}

.info table thead th.width20 {
    width: 20%;
}

.info table thead th.width25 {
    width: 25%;
}

.info table tbody th {
    padding: 5px;
    border: #d2d3d0 solid 1px;
    font-weight: bold;
    vertical-align: middle;
    text-align: left;
}

.info tbody.altrows tr:nth-child(even) {
    background-color: #e4e4e4;
}

.info tbody.altrows tr:nth-child(odd) {
    background-color: #fff;
}

.info tbody.altrows th {
    background-color: #fff;
    vertical-align: top;
}

.info tbody tr td {
    text-align: left;
}

.info tr:last-child {
    border-bottom: #d2d3d0 solid 1px;
}

td .red {
    color: #ff2c2c;
}

.single-article p em {
    font-size: 1rem;
}

.single-article .caveat {
    font-weight: 400;
    font-size: 1rem;
    margin-top: 15px;
    color: #322d2db0;
}

/* Width Helper Classes */
.w100 {
    width: 100px !important;
}

.w200 {
    width: 200px !important;
}

.w250 {
    width: 250px !important;
}

.w300 {
    width: 300px !important;
}

.w400 {
    width: 400px !important;
}

.w500 {
    width: 500px;
}

/* Media Queries */
/* For larger screens */
@media (min-width: 768px) {
    .flex-sm-column {
        flex-direction: row !important;
    }
}

/* Extra small screens */
@media (max-width: 575px) {
    .news-hero {
        padding: 2.5rem 0;
    }

    .news-hero-content {
        padding-left: 0;
    }

        .news-hero-content h1 {
            font-size: 1.5rem;
        }

    .filter-controls {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .year-filter-container {
        width: 100%;
    }

    .year-filter {
        width: 100%;
    }

    .selected-year {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .view-toggle {
        width: 100%;
        justify-content: flex-end;
    }

    .single-article-body h2 {
        font-size: 1.5rem !important;
    }

    .single-article-body h3 {
        font-size: 1.3rem !important;
    }
}

.single-article table{
    margin-bottom:1rem;
    width:100%;
}
/* Large screens */
@media (max-width: 1200px) {
    .news-articles, #news-articles-container.card-view .news-articles {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Medium screens */
@media (max-width: 991px) {
    .news-hero-content h1 {
        font-size: 2rem;
    }

    .news-articles,
    #news-articles-container.card-view .news-articles {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .list-view .featured-img {
        width: 180px !important;
        min-width: 180px !important;
    }
}

/* Small screens */
@media (max-width: 767px) {
    .news-hero {
        padding: 3rem 0;
    }

    .news-hero-content h1 {
        font-size: 1.75rem;
    }

    .single-article-navigation {
        gap: 1rem;
    }

        .single-article-navigation a,
        .single-article-navigation .disabled {
            margin: 0.5rem 0;
        }

    .mobile-filter-toggle {
        display: flex;
    }

    .filters-wrapper {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }

        .filters-wrapper.expanded {
            max-height: 500px;
            opacity: 1;
            margin-bottom: 1rem;
        }

    .filters-list {
        flex-direction: column;
        align-items: stretch;
    }

        .filters-list li {
            margin-right: 0;
        }

        .filters-list a {
            display: block;
            text-align: left;
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
        }

    .news-controls {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom:1rem;
    }

    .filter-controls {
        width: 100%;
        justify-content: space-between;
    }

    .list-view .article,
    .list-view .article-link {
        flex-direction: column !important;
    }

    .list-view .featured-img {
        width: 100% !important;
        height: 200px !important;
        margin: 0;
        border-radius: 8px 8px 0 0;
    }

    .list-view .article-content {
        width: 100%;
        padding: 1.25rem;
    }

    .list-view .article-tags {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 0.5rem;
    }

    .news-articles,
    #news-articles-container.card-view .news-articles {
        grid-template-columns: 1fr !important;
    }

    .single-article .col-md-10 img {
        margin-bottom: 0rem;
    }

    .single-article .col-md-8, .single-article .col-md-4 {
        width: 100%;
    }

    .single-article .col-xs-3 {
        width: 25%;
    }

    .single-article .col-xs-9 {
        width: 75%;
    }

    .single-article .flex-sm-column {
        flex-direction: column;
    }

    .single-article-content {
        padding: 0rem !important;
    }

    /* Mobile filter toggle styling */
    .mobile-filter-toggle {
        display: block;
        width: 100%;
        background-color: #003d7a;
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 4px;
        margin-bottom: 10px;
        text-align: left;
        position: relative;
    }

        .mobile-filter-toggle i {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
        }

    /* Hide filters by default on mobile */
    .filters-wrapper {
        display: none;
    }

        .filters-wrapper.open {
            display: block;
        }
}
