* {
    font-family: var(--font-family)
}

:root {
    --navbar-height: 120px;
    --button-color: #FF0000;
    --button-color-darker: #CC0000;
    --primary-color: #006600;
    --primary-color-darker: #004400;
    --navbar-color: #333333;
    --dark-color: #2A2A2A;
    --light-color: #FFFFFF;
    --transition-speed: 0.2s;
    --font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif
}

body,
html {
    height: 100%;
    overflow-x: hidden;
    width: 100%
}

body {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    margin: 0;
    min-height: 100vh;
    padding-top: var(--navbar-height)
}

br {
    content: "";
    display: block;
    margin-top: 5px
}

main {
    flex: 1 0 auto
}

footer {
    align-items: flex-end;
    background-color: var(--dark-color);
    color: var(--light-color);
    display: flex;
    flex-shrink: 0;
    font-size: .875rem;
    justify-content: center;
    padding: 1rem 0
}

.news-grid {
    display: grid;
    gap: 1rem;
    height: calc(100vh - var(--navbar-height));
    margin-top: calc(var(--navbar-height) + 2rem);
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    width: 100%
}

.news-grid,
.news-grid.has-featured {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))
}

.news-grid.has-featured {
    grid-template-rows: auto auto
}

.news-card.featured {
    background: linear-gradient(135deg, rgba(255, 75, 75, .02), hsla(0, 0%, 100%, .98));
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: row;
    grid-column: 1/-1;
    max-height: 60vh;
    transform: none;
    transition: box-shadow var(--transition-speed), transform var(--transition-speed)
}

.news-card.featured:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, .12);
    transform: translateY(-2px)
}

.news-card.featured .article-image-container {
    border-radius: 12px 0 0 12px;
    flex: 1;
    max-width: 50%;
    overflow: hidden;
    position: relative
}

.news-card.featured .news-image {
    border-radius: 12px 0 0 12px;
    height: 100%;
    object-fit: cover;
    width: 100%
}

.news-card.featured .card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem
}

.news-card.featured .card-title {
    color: var(--dark-color);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem
}

.news-card.featured .card-meta {
    margin-bottom: 1rem
}

.news-card.featured .card-category {
    color: var(--primary-color-darker);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .1em
}

.news-card.featured .card-date {
    font-size: .9rem
}

.news-card.featured .card-text {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.news-card.featured .btn-read-more {
    align-self: flex-start;
    background: var(--primary-color-darker);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    margin: 0;
    padding: 1rem 2rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed)
}

.news-card.featured .btn-read-more:hover {
    box-shadow: 0 4px 16px rgba(255, 75, 75, .3);
    transform: translateY(-1px)
}

.news-card.featured .share-button {
    background: hsla(0, 0%, 100%, .9);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    right: 20px;
    top: 20px
}

.news-card.featured .share-button:hover {
    background: var(--button-color);
    color: #fff
}

.news-card.featured:before {
    background: var(--primary-color-darker);
    border-radius: 20px;
    color: #fff;
    content: "FEATURED";
    font-size: .75rem;
    font-weight: 700;
    left: 1.5rem;
    letter-spacing: .1em;
    padding: .5rem 1rem;
    position: absolute;
    top: 1.5rem;
    z-index: 10
}

.news-grid.list-view {
    height: auto;
    margin-top: 0;
    overflow: visible;
    padding-bottom: 2rem;
    padding-top: calc(var(--navbar-height) + 2rem);
    position: static
}

.news-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    height: 550px;
    position: relative;
    transition: transform var(--transition-speed);
    width: 100%
}

.card-body,
.content-wrapper,
.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.card-body,
.content-wrapper {
    flex: 1;
    height: auto;
    max-height: 100%;
    padding: 1rem
}

.card-body .content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px
}

.card-text {
    margin: 0;
    overflow: visible
}

.news-card:hover {
    transform: translateY(-5px)
}

.news-image {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    height: 200px;
    object-fit: cover;
    width: 100%
}

.btn-read-more {
    background-color: var(--button-color);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: .95rem;
    margin: 1rem 1rem .5rem;
    min-height: 44px;
    padding: .75rem 1.25rem;
    text-align: center
}

.btn-read-more:hover,
.btn.btn-primary.btn-read-more:hover {
    background-color: var(--button-color-darker) !important;
    color: #fff !important
}

.btn-read-more:hover i {
    transform: translateX(5px)
}

.content-wrapper {
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none
}

.content-wrapper::-webkit-scrollbar {
    width: 0
}

.content-wrapper:hover {
    scrollbar-width: thin;
    -ms-overflow-style: auto
}

.content-wrapper:hover::-webkit-scrollbar {
    width: 4px
}

.content-wrapper:hover::-webkit-scrollbar-track {
    background: #f1f1f1
}

.content-wrapper:hover::-webkit-scrollbar-thumb {
    background: #888
}

.share-button:hover {
    background: var(--button-color);
    color: #fff
}

.article-page .view-toggle-container,
body[class*=article] .view-toggle-container {
    display: none !important
}

.filter-chip {
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    cursor: pointer;
    font-weight: 500;
    letter-spacing: .02em;
    margin: 0 .375rem;
    padding: .5rem 1.25rem;
    transition: all var(--transition-speed)
}

.filter-chip.active,
.filter-chip:hover {
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 75, 75, .3);
    color: #fff;
    transform: translateY(-2px)
}

@media (max-width:991.98px) {
    .news-grid {
        gap: 1.5rem;
        margin-top: calc(var(--navbar-height));
        padding: 1.5rem
    }

    .news-card.featured {
        height: 400px;
        max-height: 400px
    }

    .news-card.featured .card-title {
        font-size: 1.5rem
    }

    .news-card.featured .card-text {
        font-size: 1rem;
        -webkit-line-clamp: 5;
        line-clamp: 5
    }

    .news-card.featured .card-body {
        padding: 1.5rem
    }

    .news-card.featured .btn-read-more {
        font-size: 1rem;
        padding: .75rem 1.5rem
    }
}

@media (max-width:768px) {
    :root {
        --filters-height: 0
    }

    body {
        height: 100%;
        overflow: hidden
    }

    .news-grid,
    body {
        position: fixed;
        width: 100%
    }

    .news-grid {
        bottom: 0;
        display: block;
        height: calc(var(--vh, 1vh)*100 - var(--navbar-height));
        height: calc(100% - var(--navbar-height)) !important;
        left: 0;
        margin: 0;
        margin-top: var(--navbar-height);
        overflow-y: scroll;
        padding: 0;
        right: 0;
        scroll-snap-type: y mandatory;
        top: var(--navbar-height);
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain
    }

    .news-card.featured {
        background: linear-gradient(135deg, rgba(255, 75, 75, .02), hsla(0, 0%, 100%, .98));
        border: none;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
        flex-direction: column;
        height: calc(var(--vh, 1vh)*100 - var(--navbar-height));
        margin: 0;
        max-height: calc(var(--vh, 1vh)*100 - var(--navbar-height));
        scroll-snap-align: start;
        scroll-snap-stop: always
    }

    .news-card.featured .article-image-container {
        border-radius: 0;
        flex: none;
        height: 45vh;
        height: calc(var(--vh, 1vh)*45);
        max-width: 100%
    }

    .news-card.featured .news-image {
        border-radius: 0;
        height: 100%
    }

    .news-card.featured .card-body {
        flex: 1;
        height: calc(55vh - 100px);
        height: calc(var(--vh, 1vh)*55 - 100px);
        overflow-y: auto;
        padding: 1.5rem
    }

    .news-card.featured .card-title {
        font-size: 1.4rem;
        margin-bottom: .75rem
    }

    .news-card.featured .card-text {
        font-size: 1rem;
        -webkit-line-clamp: 8;
        line-clamp: 8
    }

    .news-card.featured .btn-read-more {
        border-radius: 0;
        font-size: 1rem;
        margin-top: auto;
        padding: 1rem;
        width: 100%
    }

    .news-grid.list-view .news-card.featured:before {
        font-size: .7rem;
        left: 1rem;
        padding: .4rem .8rem;
        top: 1rem
    }

    .news-grid:not(.list-view) .news-card:not(.featured) {
        border: none;
        border-radius: 0;
        box-shadow: none;
        height: calc(var(--vh, 1vh)*100 - var(--navbar-height));
        margin: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always
    }

    .news-image {
        border-radius: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        height: 40vh;
        height: calc(var(--vh, 1vh)*40);
        min-height: 40vh;
        min-height: calc(var(--vh, 1vh)*40)
    }

    .card-body {
        border: none;
        display: flex;
        flex-direction: column;
        height: calc(60vh - 100px);
        height: calc(var(--vh, 1vh)*60 - 100px);
        padding: 1rem;
        position: relative
    }

    .content-wrapper {
        margin-bottom: 1rem
    }

    .article-footer {
        bottom: 10%;
        margin-left: -1.5rem;
        position: absolute;
        width: calc(100% + 3rem);
        z-index: 21
    }

    .card-body .card-text {
        -webkit-line-clamp: 6;
        line-clamp: 6
    }

    .navbar-wrapper {
        padding-bottom: .5rem
    }

    .filter-chips,
    .filters-bar,
    .themes-nav {
        overflow-x: auto;
        padding: .5rem;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch
    }

    .filter-chips {
        backdrop-filter: blur(10px);
        background: hsla(0, 0%, 100%, .95)
    }

    .filters-container {
        justify-content: space-between;
        padding: .5rem 0
    }

    .main-nav.hide-nav {
        transform: translateY(-100%);
        transition: transform var(--transition-speed) ease-in-out
    }

    .news-grid {
        margin-top: 0
    }

    .news-grid.list-view {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        height: auto;
        overflow-y: auto;
        padding: 1rem;
        padding-top: calc(var(--navbar-height) + 1rem);
        scroll-snap-type: none
    }

    .news-grid.list-view .news-card.featured {
        background: linear-gradient(135deg, rgba(255, 75, 75, .02), hsla(0, 0%, 100%, .98));
        border: 1px solid #ddd;
        box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
        flex-direction: column;
        height: auto;
        min-height: fit-content;
        position: relative
    }

    .news-grid.list-view .news-card.featured:before {
        background: var(--primary-color-darker);
        border-radius: 10px;
        color: #fff;
        content: "FEATURED";
        font-size: .55rem;
        font-weight: 700;
        left: .5rem;
        letter-spacing: .1em;
        padding: .25rem .5rem;
        position: absolute;
        top: .5rem;
        z-index: 10
    }

    .news-grid.list-view .news-card.featured .article-image-container {
        background-color: #f0f0f0;
        flex-shrink: 0;
        font-size: 0;
        height: 200px;
        line-height: 0;
        min-width: 100%;
        overflow: hidden;
        position: relative;
        width: 100%
    }

    .news-grid.list-view .news-card.featured .news-image {
        border: none;
        border-radius: 8px 8px 0 0;
        display: block !important;
        height: 100% !important;
        margin: 0 !important;
        max-height: 100% !important;
        max-width: 100% !important;
        min-height: 100% !important;
        min-width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        padding: 0 !important;
        width: 100% !important
    }

    .news-grid.list-view .news-card.featured .article-image-container .news-image,
    .news-grid.list-view .news-card.featured .article-image-container img,
    .news-grid.list-view .news-card.featured .article-image-container img[style*=object-fit],
    .news-grid.list-view .news-card.featured img.news-image {
        border: none !important;
        border-radius: 8px 8px 0 0 !important;
        display: block !important;
        height: 100% !important;
        margin: 0 !important;
        max-height: 100% !important;
        max-width: 100% !important;
        min-height: 100% !important;
        min-width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        padding: 0 !important;
        width: 100% !important
    }

    .news-grid.list-view .news-card.featured .card-body {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 1rem;
        width: 100%
    }

    .news-grid.list-view .news-card.featured .content-wrapper {
        display: flex;
        flex: 1;
        flex-direction: column;
        height: auto;
        justify-content: flex-start;
        margin: 0;
        padding: 0
    }

    .news-grid.list-view .news-card.featured .card-title {
        color: var(--dark-color);
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: .5rem;
        margin-top: .5rem;
        overflow: visible
    }

    .news-grid.list-view .news-card.featured .card-meta {
        font-size: .8rem;
        margin-bottom: .5rem
    }

    .news-grid.list-view .news-card.featured .card-category {
        color: var(--primary-color-darker);
        font-size: .75rem;
        font-weight: 700
    }

    .news-grid.list-view .news-card.featured .card-date {
        color: #666;
        font-size: .75rem;
        margin-left: .5rem
    }

    .news-grid.list-view .news-card.featured .card-text {
        color: #666;
        display: block;
        font-size: .9rem;
        line-height: 1.4;
        overflow: visible
    }

    footer {
        display: none
    }

    .article-image-container,
    .news-image {
        border-radius: 0 !important
    }

    .news-grid.list-view .news-card {
        border: 1px solid #eee !important;
        border-radius: 8px;
        box-shadow: none;
        cursor: pointer;
        flex-direction: row;
        height: 100px;
        margin-bottom: .5rem;
        margin-top: .5rem;
        max-height: 100px;
        min-height: 100px;
        transition: background-color var(--transition-speed)
    }

    .news-grid.list-view .news-card:hover {
        background-color: #f8f9fa
    }

    .news-grid.list-view .news-card:active {
        background-color: #f0f0f0
    }

    .news-grid.list-view .news-image {
        border-radius: 12px 0 0 12px;
        height: 100px;
        max-height: 100px;
        min-height: unset;
        min-width: 100px;
        object-fit: cover;
        width: 100px
    }

    .news-grid.list-view .card-body {
        justify-content: flex-start;
        padding: .5rem;
        pointer-events: auto;
        position: relative;
        width: calc(100% - 150px);
        z-index: 20
    }

    .news-grid.list-view .content-wrapper {
        height: 100%;
        margin: 0;
        padding: 0
    }

    .news-grid.list-view .card-date {
        margin: 0 0 2.5rem
    }

    .news-grid.list-view .card-body {
        margin: 0;
        padding: .5rem .75rem
    }

    .news-grid.list-view .card-title {
        margin-bottom: .125rem
    }

    .news-grid.list-view .btn-read-more,
    .news-grid.list-view .card-text {
        display: none
    }

    .news-grid.card-view .btn-read-more {
        margin-left: -1.5rem;
        right: 10px;
        top: 10px;
        width: calc(100% + 3rem)
    }

    .news-grid.list-view .share-dropdown {
        z-index: 22
    }

    .news-grid.list-view .card-body .share-dropdown {
        bottom: calc(2rem + 8px);
        right: .5rem;
        top: auto
    }

    .news-grid.list-view .card-body {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: space-between;
        overflow: hidden;
        padding: .75rem 1rem;
        width: calc(100% - 100px)
    }

    .news-grid.list-view .card-title {
        font-size: .75rem;
        line-height: 1.2;
        width: calc(100% - 1.5rem);
        word-wrap: break-word;
        white-space: normal
    }

    .news-grid.list-view .card-date {
        color: #666;
        font-size: .75rem;
        margin: 0;
        padding: 0;
        white-space: nowrap
    }

    .news-grid.list-view .card-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: .85rem;
        font-weight: 500;
        line-height: 1.3;
        margin: 0;
        overflow: hidden;
        padding: 0;
        text-overflow: ellipsis;
        width: calc(100% - 2rem)
    }

    .news-grid.list-view .article-footer {
        align-items: center;
        bottom: auto;
        display: flex;
        justify-content: flex-end;
        margin-left: 0;
        position: static;
        width: auto;
        z-index: 21
    }

    .news-grid.list-view .share-button {
        display: flex !important;
        height: 2rem;
        margin: 0;
        position: static;
        width: 2rem
    }

    .share-dropdown {
        left: 50%;
        max-width: 320px;
        position: fixed;
        top: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 32px)
    }

    .news-grid.list-view .card-title {
        -webkit-line-clamp: 4;
        margin-bottom: .25rem;
        max-height: none
    }
}

@supports (padding:env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom)
    }

    @media (max-width:768px) {
        .news-card {
            height: calc(100vh - var(--navbar-height) - env(safe-area-inset-bottom));
            height: calc(var(--vh, 1vh)*100 - var(--navbar-height) - env(safe-area-inset-bottom))
        }

        .btn-read-more {
            bottom: env(safe-area-inset-bottom);
            margin-left: -1.5rem;
            width: calc(100% + 3rem)
        }

        .news-grid {
            height: calc(100vh - var(--navbar-height) - env(safe-area-inset-bottom));
            height: calc(var(--vh, 1vh)*100 - var(--navbar-height) - env(safe-area-inset-bottom))
        }

        .news-grid.list-view .article-footer .share-button:hover,
        .news-grid.list-view .article-image-container .share-button:hover,
        .news-grid.list-view .share-button:hover {
            background: var(--button-color) !important;
            color: #fff !important
        }

        .news-grid.list-view .article-footer .share-button:active,
        .news-grid.list-view .article-image-container .share-button:active,
        .news-grid.list-view .share-button:active {
            background: var(--button-color-darker) !important;
            color: #fff !important
        }
    }
}

@supports not (padding:env(safe-area-inset-bottom)) {
    @media (max-width:768px) {
        .news-card {
            height: calc(100vh - var(--navbar-height) - 20px);
            height: calc(var(--vh, 1vh)*100 - var(--navbar-height) - 20px)
        }
    }
}

.navbar-wrapper {
    backdrop-filter: blur(15px);
    background: linear-gradient(135deg, hsla(0, 0%, 100%, .98), hsla(0, 0%, 100%, .95));
    border-bottom: 1px solid hsla(0, 0%, 100%, .2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030
}

.themes-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-darker));
    box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, .1);
    padding: .75rem 1rem
}

.themes-nav .nav-link {
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    letter-spacing: .02em;
    padding: .5rem 1.25rem;
    transition: all var(--transition-speed)
}

.themes-nav .nav-link.active,
.themes-nav .nav-link:hover {
    background: hsla(0, 0%, 100%, .25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    color: #fff;
    transform: translateY(-1px)
}

.filters-bar {
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    padding: .75rem 1rem
}

.filters-bar,
.filters-container {
    align-items: center;
    display: flex;
    gap: 1rem
}

.filters-container {
    justify-content: flex-end
}

.filter-group {
    align-items: center;
    display: flex;
    gap: .5rem;
    white-space: nowrap
}

.btn-primary {
    background-color: var(--button-color);
    border-color: var(--button-color);
    border-radius: 2rem
}

.btn-primary:hover {
    background-color: var(--button-color-darker);
    border-color: var(--button-color-darker)
}

.btn-outline-primary {
    border-color: var(--button-color);
    color: var(--button-color)
}

.btn-outline-primary:hover {
    background-color: var(--button-color-darker);
    color: var(--button-color-darker)
}

.share-button {
    align-items: center;
    background: hsla(0, 0%, 100%, .9);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    cursor: pointer;
    display: flex;
    height: 2.5rem;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 20px;
    transition: background-color var(--transition-speed);
    width: 2.5rem;
    z-index: 101 !important
}

.news-card .article-image-container .share-button {
    top: 20px;
    z-index: 10
}

.article-content .article-image-container .share-button {
    right: 20px;
    top: 20px
}

.share-dropdown {
    display: none;
    min-width: 200px
}

.share-option {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color var(--transition-speed)
}

.share-option:hover {
    background-color: #f5f5f5
}

.share-option i {
    font-size: 1.2em;
    margin-right: 8px
}

.share-option {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: .5rem;
    padding: .5rem 1rem
}

.share-option:hover {
    background-color: #f8f9fa
}

.news-article {
    margin: 0 auto;
    max-width: 800px;
    padding: 2rem 1rem
}

.news-article img {
    max-height: 500px;
    object-fit: cover;
    width: 100%
}

@media (max-width:768px) {
    .news-article {
        padding: 1rem
    }
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8
}

@media (max-width:768px) {
    .article-detail {
        padding: 1rem
    }
}

.article-content {
    margin: 0 auto;
    max-width: 800px;
    overflow-wrap: break-word;
    padding: 1rem .5rem;
    word-wrap: break-word
}

.article-content img {
    border-radius: 0;
    box-shadow: none;
    height: auto;
    max-height: 70vh;
    max-height: calc(var(--vh, 1vh)*70);
    object-fit: cover;
    width: 100%
}

.article-content h1 {
    color: #1a202c;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem
}

@media (max-width:768px) {
    .article-content {
        padding: 1rem
    }
}

.article-image-container {
    border-radius: 8px;
    max-width: 100%;
    overflow: hidden;
    position: relative
}

.article-image-container img {
    display: block;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    width: 100%
}

.article-image-container .share-dropdown {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    display: none;
    min-width: 200px;
    position: absolute;
    right: 0;
    top: calc(2.5rem + 10px);
    z-index: 1000
}

#article-container .img-fluid {
    display: block;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    width: 100%
}

.nav-link.active {
    font-weight: 500
}

.nav-link.active,
.navbar-text.active {
    color: var(--primary-color) !important
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600
}

.navbar .nav-link {
    color: var(--light-color) !important;
    transition: color var(--transition-speed)
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--primary-color) !important
}

.themes-nav .nav-link.active {
    background: hsla(0, 0%, 100%, .25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    color: #fff !important;
    transform: translateY(-1px)
}

#article-container {
    height: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch
}

.example-class {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column
}

#timeFilter {
    background-color: #343a40;
    border: 1px solid #6c757d;
    color: #fff;
    min-width: 120px;
    width: auto
}

#timeFilter:focus {
    border-color: #fff;
    box-shadow: 0 0 0 .25rem hsla(0, 0%, 100%, .25)
}

#timeFilter option {
    background-color: #343a40;
    color: #fff
}

.no-articles-container {
    align-items: center;
    display: flex;
    grid-column: 1/-1;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem
}

.no-articles-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center
}

.no-articles-content h3 {
    color: #2a2a2a
}

.no-articles-content p {
    margin-bottom: .5rem
}

.no-articles-content .btn {
    transition: transform var(--transition-speed)
}

.no-articles-content .btn:hover {
    transform: translateY(-2px)
}

@media (max-width:768px) {
    .no-articles-container {
        min-height: calc(100vh - var(--navbar-height))
    }

    .no-articles-content {
        padding: 1.5rem;
        width: 100%
    }
}

.share-overlay.show {
    display: flex
}

@media (max-width:768px) {
    .share-dropdown {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
        left: 50%;
        max-width: 320px;
        padding: 16px 0;
        position: fixed;
        top: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 32px);
        z-index: 2001
    }

    .share-option {
        align-items: center;
        color: #333;
        display: flex;
        font-size: 1rem;
        gap: 12px;
        padding: 12px 24px;
        text-decoration: none;
        transition: background-color var(--transition-speed)
    }

    .share-option:active {
        background-color: #f0f0f0
    }

    .share-option i {
        font-size: 1.25rem;
        text-align: center;
        width: 24px
    }
}

.share-overlay {
    align-items: center;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, .7);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2000
}

.share-overlay.show {
    display: flex !important
}

.share-overlay .share-dropdown {
    background: #fff !important;
    border-radius: 16px !important;
    bottom: auto !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2) !important;
    display: block !important;
    left: auto !important;
    margin: 16px !important;
    max-width: 320px !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: calc(100% - 32px) !important
}

.share-overlay .share-option {
    font-size: 1.1rem !important;
    padding: 16px 24px !important
}

.share-overlay .share-option i {
    font-size: 1.4rem !important;
    width: 32px !important
}

@media (min-width:769px) {
    .share-dropdown {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
        display: none;
        min-width: 200px;
        position: absolute;
        right: 0;
        top: calc(2.5rem + 10px);
        z-index: 1000
    }

    .share-dropdown.show {
        display: block !important
    }

    .article-image-container .share-button {
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 1001
    }

    .article-image-container .share-dropdown {
        position: absolute;
        right: 20px;
        top: calc(2.5rem + 10px);
        z-index: 1001
    }
}

.list-view-only {
    display: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden
}

.card-view-only,
.news-grid.list-view .list-view-only {
    display: block;
    opacity: 1;
    pointer-events: auto;
    visibility: visible
}

.news-grid.list-view .card-view-only {
    display: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden
}

.news-grid.list-view .news-card.featured .card-text.card-view-only {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important
}

.back-to-top-arrow {
    transition: color 0s ease
}

.btn-outline-primary:hover .back-to-top-arrow {
    color: #fff !important
}

.back-to-top-btn {
    align-items: center;
    border-width: 1.5px;
    display: flex;
    font-size: .95rem;
    font-weight: 500;
    gap: .5rem;
    justify-content: center;
    letter-spacing: .02em;
    min-height: 44px;
    padding: .5rem 1.25rem
}

.back-to-top-btn i {
    align-items: center;
    color: var(--button-color);
    display: flex;
    font-size: 1.1rem;
    transition: transform var(--transition-speed) ease
}

.back-to-top-btn:hover i {
    color: #fff;
    transform: translateY(-2px)
}

.news-grid.list-view .back-to-top-btn {
    min-height: 38px;
    padding: .375rem 1rem
}

.no-more-card {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    min-height: 550px;
    overflow: hidden
}

.no-more-card,
.no-more-content {
    align-items: center;
    display: flex;
    justify-content: center
}

.no-more-content {
    background-color: transparent;
    box-shadow: none;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
    text-align: center;
    width: 100%
}

.news-grid.list-view .no-more-card {
    min-height: 200px !important
}

.no-more-card .bi-check-circle-fill {
    color: green;
    font-size: 3.5rem;
    margin-bottom: 1rem
}

.no-more-card h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: .5rem
}

.no-more-card p {
    color: #666;
    margin-bottom: 1.5rem
}

.news-grid.list-view .no-more-card {
    height: auto !important;
    margin: 2rem 0;
    max-height: none !important;
    min-height: auto !important;
    padding: 1rem
}

.news-grid.list-view .no-more-content {
    padding: 1.5rem
}

.news-grid.list-view .no-more-card .bi-check-circle-fill {
    font-size: 2rem;
    margin-bottom: .75rem
}

.news-grid.list-view .no-more-card {
    background-color: #fff !important;
    border: 1px solid #eee;
    border-radius: 12px;
    flex-direction: row;
    height: 100px !important;
    margin: 0 0 .5rem;
    max-height: 100px !important;
    min-height: 100px !important;
    padding: 0;
    transition: background-color var(--transition-speed)
}

.news-grid.list-view .no-more-content {
    align-items: center;
    border-radius: 0;
    box-shadow: none;
    flex-direction: row;
    gap: 1rem;
    height: 100%;
    justify-content: flex-start;
    padding: .75rem 1rem
}

.news-grid.list-view .no-more-card .bi-check-circle-fill {
    font-size: 1.5rem;
    margin: 0
}

.news-grid.list-view .no-more-card h5 {
    font-size: .85rem;
    line-height: 1.2;
    margin: 0
}

.news-grid.list-view .no-more-card p {
    display: none
}

.news-grid.list-view .no-more-card .back-to-top-btn {
    font-size: .85rem;
    margin-left: auto;
    min-height: 32px;
    padding: .25rem 1rem
}

.nav-button {
    align-items: center;
    background: #fff;
    border-radius: 2rem;
    border-width: 1.5px;
    border: 1px solid var(--button-color);
    color: var(--button-color);
    cursor: pointer;
    display: inline-flex;
    font-size: .95rem;
    font-weight: 500;
    gap: .5rem;
    justify-content: center;
    letter-spacing: .02em;
    min-height: 44px;
    padding: .75rem 1.25rem
}

.nav-button:hover {
    background: var(--button-color);
    color: #fff;
    transform: translateY(-2px)
}

.nav-button i {
    font-size: 1.1rem
}

.nav-button.back-to-news,
.nav-button.back-to-top {
    bottom: 20px;
    position: fixed;
    z-index: 999
}

.nav-button.back-to-top {
    right: 20px
}

.nav-button.back-to-news {
    left: 20px
}

.back-button-container .btn-outline-primary,
.no-more-card .back-to-top-btn {
    display: none !important
}

.nav-button.hidden {
    display: none
}

.article-meta {
    margin-bottom: 2rem
}

.meta-info {
    align-items: center;
    display: flex;
    font-size: .85rem;
    gap: 1rem;
    margin-top: .5rem
}

.article-category {
    color: var(--button-color);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase
}

.article-date {
    color: var(--text-muted)
}

.card-meta {
    align-items: center;
    display: inline-block;
    gap: 1rem;
    margin-bottom: 1rem
}

.card-category {
    color: var(--button-color);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em
}

.card-date {
    color: #666;
    font-size: .85rem;
    font-style: italic
}

.news-grid.list-view .card-meta {
    font-size: .7rem;
    margin-bottom: 0;
    text-wrap: nowrap
}

.news-grid.list-view .card-category,
.news-grid.list-view .card-date {
    font-size: .7rem
}

@media (min-width:768px) {

    .view-toggle-btn,
    .view-toggle-container {
        display: none !important
    }
}

.view-toggle-btn {
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    padding: .5rem
}

.share-dropdown {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    display: none !important;
    left: 50%;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: visibility 0s, opacity var(--transition-speed);
    visibility: hidden;
    z-index: 102 !important
}

.share-dropdown.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important
}

.card-view-only.share-dropdown,
.list-view-only.share-dropdown {
    display: none !important;
    opacity: 0;
    visibility: hidden
}

.card-view-only.share-dropdown.show,
.news-grid.list-view .list-view-only.share-dropdown.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important
}

.loading-indicator {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-column: 1/-1;
    padding: 2rem;
    text-align: center;
    width: 100%
}

.loading-indicator p {
    color: #666;
    margin: 0
}

.mark,
mark {
    padding: 0
}

.card-view-only.share-dropdown,
.news-card:not(.list-view) .share-dropdown {
    left: 50%;
    max-width: calc(100% - 2rem);
    min-width: 200px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 102 !important
}

@media (min-width:769px) {
    .share-dropdown {
        left: 50% !important;
        position: absolute;
        right: auto;
        top: 50% !important;
        transform: translate(-50%, -50%) !important
    }
}

.news-card:after {
    background: rgba(0, 0, 0, .5);
    bottom: 0;
    content: "";
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity .2s, visibility .2s;
    visibility: hidden
}

.news-card:has(.share-dropdown.show):after {
    opacity: 1;
    pointer-events: auto;
    visibility: visible
}

.news-card .share-dropdown {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    display: none;
    left: 50%;
    max-width: calc(100% - 2rem);
    min-width: 200px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden
}

.news-card .share-dropdown.show {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
    visibility: visible
}

.news-card:after {
    z-index: 100 !important
}

.news-card .share-dropdown {
    z-index: 102 !important
}

@media (min-width:769px) {
    .news-card .share-dropdown {
        left: 50% !important;
        position: absolute;
        right: auto;
        top: 50% !important;
        transform: translate(-50%, -50%) !important
    }
}

.special-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 100%
}

.special-card-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 600px;
    padding: 2rem;
    text-align: center
}

.special-card-icon {
    font-size: 3rem;
    line-height: 1
}

.special-card-text {
    flex: 1
}

.special-card h5 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: .5rem
}

.special-card p {
    color: var(--text-color);
    margin-bottom: 0
}

.special-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center
}

.list-view .special-card {
    margin: .5rem 0
}

.list-view .special-card p.description {
    display: none
}

@media (max-width:768px) {
    .list-view .special-card-icon {
        font-size: 1.5rem
    }
}

.list-view .special-card {
    height: 100px;
    max-height: 100px;
    min-height: 100px;
    padding: 0
}

.list-view .special-card-content {
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    height: 100%;
    max-width: none;
    padding: 1rem;
    text-align: left
}

.list-view .special-card-icon {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    font-size: 1.75rem;
    margin: 0
}

.list-view .special-card-text {
    flex: 1;
    line-height: 1.2;
    min-width: 0
}

.list-view .special-card h5 {
    font-size: .85rem;
    font-weight: 500;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.list-view .special-card p.description {
    color: #666;
    font-size: .75rem;
    margin: .25rem 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.list-view .special-card-actions {
    flex-shrink: 0;
    margin-left: auto
}

.list-view .special-card .nav-button {
    font-size: .85rem;
    min-height: 32px;
    padding: .375rem 1rem
}

.special-card .bi-check-circle-fill.text-success {
    color: #28a745
}

.special-card .bi-exclamation-circle-fill.text-danger {
    color: #dc3545
}

.news-grid.list-view .news-image {
    border-radius: 8px 0 0 8px;
    height: 100px;
    max-height: 100px;
    max-width: 120px;
    min-height: 100px;
    min-width: 120px;
    object-fit: cover;
    width: 120px
}

.news-card .article-image-container {
    position: relative
}

.news-card .share-button {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 101 !important
}

@media (max-width:768px) {
    .news-grid.list-view .share-button {
        height: 2rem;
        margin: 0;
        position: static;
        width: 2rem
    }

    .news-grid:not(.list-view) .share-button {
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 101 !important
    }

    .news-grid.list-view .article-image-container {
        position: relative !important
    }

    .news-grid.list-view .article-image-container .share-button,
    .news-grid.list-view .news-card.featured .article-image-container .share-button {
        background: hsla(0, 0%, 100%, .9);
        bottom: 10px !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
        height: 2rem;
        left: 10px !important;
        margin: 0;
        position: absolute !important;
        right: auto !important;
        top: auto !important;
        width: 2rem;
        z-index: 25 !important
    }

    .news-grid.list-view .news-card.featured .article-image-container .share-button {
        align-items: center !important;
        display: flex !important;
        justify-content: center !important
    }

    .news-grid.list-view .news-card.featured .article-image-container .share-button i {
        color: #333 !important;
        display: block !important;
        font-size: 1rem !important
    }

    .news-grid.list-view .article-footer .share-button {
        display: none !important
    }
}

.article-image-container {
    position: relative !important
}

.article-image-container .share-button {
    position: absolute !important;
    right: 20px !important;
    top: 20px !important;
    z-index: 101 !important
}

@media (max-width:768px) {
    .article-image-container .share-button {
        position: absolute !important;
        right: 20px !important;
        top: 20px !important;
        z-index: 101 !important
    }

    .article-content .article-image-container .share-button {
        display: flex !important
    }

    .share-button:hover {
        background: var(--button-color);
        color: #fff
    }
}