﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-content {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

    .main-content::after {
        content: "";
        display: table;
        clear: both;
    }

body {
    font-family: -apple-system, BlinkMacSystemFont,
    "PingFang SC", 
    "Hiragino Sans GB", 
    "Microsoft YaHei", 
    "微软雅黑", 
    "Helvetica Neue", Helvetica, Arial, 
    "Noto Sans SC", 
    "WenQuanYi Micro Hei", 
    sans-serif;
    line-height: 1.6;
    color: #333; 
    background-color: #F5F5F5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1264px;
    min-width: 980px;
    margin: 0 auto;
    width: 100%;
}

.navbar {
    background-color: #34495e;
    height: 54px;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1002;
    display: flex;
    align-items: center;
}

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.navbar-brand {
    height:40px;
    width:124px;
}
    .navbar-brand img {
        height: 40px;
        width: 124px;
    }

.search-form {
    display: flex;
    align-items: center;
    margin-left: 20px;
    flex-grow: 1;
    max-width: 500px;
    height: 40px;
}

.search-input {
    padding: 8px 12px;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: calc(100% - 90px); 
    height: 100%;
    background-color: #fff;
    color: #333;
}

.search-button {
    padding: 2px 7px;
    font-size: 0.95rem;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 70px; 
    height: 100%;
}

    .search-button:hover {
        background-color: #1a252f;
    }

.search-icon {
    font-size: 1rem;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

.nav-tabs {
    list-style: none;
    display: flex;
    gap: 15px; 
    margin: 0;
    padding: 0;
    margin-left: auto;
}

    .nav-tabs li a {
        color: #fff;
        text-decoration: none;
        font-size: 1.2rem;
        padding: 10px 12px; 
        transition: color 0.3s ease, border-bottom 0.2s ease; 
        border-bottom: 2px solid transparent; 
        display: block;
    }

        .nav-tabs li a:hover {
            color: #e0e0e0; 
            border-bottom: 2px solid #e0e0e0;
        }

        .nav-tabs li a.active {
            color: #fff;
            border-bottom: 2px solid #fff; 
            font-weight: 500; 
        }

        .nav-tabs li a[href="/"].active {
            color: #fff; 
            border-bottom: 2px solid #fff; 
        }

        .nav-tabs li a:focus {
            outline: none;
            border-bottom: 2px solid #fff;
            color: #fff;
        }

.news-section {
    float: left;
    width: 70%;
    min-width: 730px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column {
    float: right;
    width: 25%;
    min-width: 300px;
    max-width: 100%;
    position: sticky;
    top: 64px;
    align-self: flex-start;
}

.content-block {
    width: 100%;
}

.featured-block {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 932px;
    overflow: hidden;
    display: flex;
    position:relative;
}


.block-image {
    width: 435px;
    height: 210px;
    flex-shrink: 0;
    color: #d0d0d0;
}

    .block-image a {
        text-decoration: none;
    }

    .block-image img {
        width: 100%;
        height: 100%;
        border-radius: 4px;
        object-fit: cover;
        display: block;
        color: #d0d0d0;
    }

.block-text {
    flex: 1;
    min-width: 0;
    padding: 10px 10px 5px 0px;
    overflow: hidden;
}

    .block-text h2 {
        font-size: 1.5rem;
        line-height: 1.4;
        color: #2c3e50;
        margin-bottom: 5px;
        font-weight: 500;
    }

    .block-text h1 {
        font-size: 1.5rem;
        line-height: 1.4;
        color: #2c3e50;
        margin-bottom: 5px;
        font-weight: 500;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .block-text a {
        color: #2c3e50;
        text-decoration: none;
    }

        .block-text a:hover {
            color: #34495e;
            text-decoration: underline !important;
        }

    .block-text p {
        font-size: 16px;
        line-height: 1.6;
        color: #333; 
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 7;
        -webkit-box-orient: vertical;
    }

.news-grid-container {
    width: 100%;
    max-width: 932px;
    height: 160px;
    overflow: hidden;
}

.news-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
}

.news-item {
    min-width: 135px;
    max-width: 20%;
    max-height: 100%;
    background-color: white;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 0 135px;
    overflow: hidden;
}

.news-item-image {
    height: 56%;
    border-radius: 5px;
    margin-bottom: 5px;
    aspect-ratio: 2 / 1;
}

.news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item h3,
.news-item .source {
    min-width: 135px;
    min-height: 70px;
    max-width: 100%;
    max-height: 100%;
}

.news-item h2 {
    font-size: 1rem;
    line-height: 1.4;
    color: #2c3e50;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 2px 0px 2px;
}

.news-item .source {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item a {
    color: #2c3e50;
    text-decoration: none;
}

    .news-item a:hover {
        text-decoration: underline;
        color: #34495e;
    }

.featured-news {
    max-width: 932px;
}

.featured-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-news-content {
    height: 142px;
    min-width: 730px;
    display: flex;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.featured-image {
    min-width: 268px;
    min-height: 142px;
    max-width: 100%;
    max-height: 100%;
    flex: 0 0 29%;
    color: #d0d0d0;
}

    .featured-image a {
        text-decoration: none;
    }

    .featured-image img {
        width: 100%;
        height: 142px;
        object-fit: cover;
        border-radius: 5px 0 0 5px;
        color: #d0d0d0;
    }

.featured-text {
    height: 142px;
    min-width: 442px;
    max-width: 100%;
    max-height: 100%;
    flex: 1;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 10px;
}

    .featured-text ul {
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .featured-text .category {
        font-size: 0.9rem;
        line-height: 1.5;
        color: #666;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .featured-text h2 {
        font-size: 1.2rem;
        line-height: 1.4;
        color: #2c3e50;
        font-weight: 500;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .featured-text a {
        color: #2c3e50;
        text-decoration: none;
    }

        .featured-text a:hover {
            text-decoration: underline;
            color: #34495e;
        }

    .featured-text .description {
        font-size: 16px;
        line-height: 1.6;
        color: #333;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

.related-news-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-news-content {
    min-width: 134px;
    display: flex;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.related-news-list {
    list-style: none;
    padding: 0;
}

    .related-news-list li {
        margin: 0px 0px 8px 0px;
        font-size: 0.9rem;
    }

    .related-news-list a {
        color: #2c3e50;
        text-decoration: none;
    }

        .related-news-list a:hover {
            text-decoration: underline;
            color: #34495e;
        }
.related-image {
    width: 134px;
    height: 71px;
    min-width: 134px;
    min-height: 71px;
    max-width: 100%;
    max-height: 100%;
    flex: 0 0 29%;
    color: #d0d0d0;
}

    .related-image a {
        text-decoration: none;
    }

    .related-image img {
        width: 100%;
        height: 71px;
        object-fit: cover;
        border-radius: 5px;
        color: #d0d0d0;
    }

.related-text {
    height: 71px;
    min-width: 134px;
    max-width: 100%;
    max-height: 100%;
    flex: 1;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .related-text ul {
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .related-text .category {
        font-size: 0.9rem;
        line-height: 1.5;
        color: #666;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .related-text h3 {
        font-size: 0.8rem; 
        line-height: 1.4;
        color: #2c3e50;
        font-weight: 500;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .related-text a {
        color: #2c3e50;
        text-decoration: none;
    }

        .related-text a:hover {
            text-decoration: underline;
            color: #34495e;
        }

    .related-text .description {
        color: #333; 
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }

.sidebar {
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 15px;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
}

    .sidebar h2 {
        font-size: 1.2rem;
        color: #2c3e50;
    }



.trend-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}



.trending-list {
    list-style-type: square;
    padding-left: 15px;
}

    .trending-list li {
        margin: 8px 0;
        font-size: 0.9rem;
    }

    .trending-list a {
        color: #2c3e50;
        text-decoration: none;
    }

        .trending-list a:hover {
            text-decoration: underline;
            color: #34495e;
        }

    .trending-list img {
        vertical-align: middle;
        border: 0px;
    }

.contact-info {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 20px;
}

    .contact-info p {
        font-size: 0.9rem;
        color: #333; 
        margin: 5px 0;
    }

.load-more-container {
    text-align: center;
    padding: 10px 0;
}

    .load-more-container button#load-more {
        padding: 8px 20px; 
        background-color: #2c3e50;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        font-size: 16px;
        font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    }

        .load-more-container button#load-more:hover {
            background-color: #34495e;
        }

        .load-more-container button#load-more:disabled {
            background-color: #95a5a6;
            cursor: not-allowed;
            opacity: 0.8;
        }

    .load-more-container #loading-indicator {
        font-size: 0.9rem;
        color: #2c3e50;
        margin-left: 10px;
        display: none;
    }

    .load-more-container #no-more-message {
        font-size: 0.9rem;
        color: #666;
        margin-left: 10px;
        display: none;
    }

#loading-indicator::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #2c3e50;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 0;
    margin-top: 20px;
}

.footer-container {
    max-width: 1264px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-section {
}

    .footer-section:last-of-type {
        margin-bottom: 0;
    }


    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .footer-section ul {
        list-style: none;
        padding-left: 0;
        margin-top: 5px;

        display: flex;
        flex-wrap: wrap;
        gap: 8px 15px;
    }

        .footer-section ul li {
        }

            .footer-section ul li a {
                color: #fff; 
                text-decoration: none; 
            }

                .footer-section ul li a:hover {
                    text-decoration: underline;
                    color: #e9ecef;
                }

            .footer-section ul li:not(:has(a)) {
                color: #ccc;
            }

    .footer-section a {
        color: #fff;
        text-decoration: none;
    }

        .footer-section a:hover {
            text-decoration: underline;
            color: #e9ecef;
        }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    margin-top: 20px;
}

    .footer-bottom p {
        margin: 5px 0;
        font-size: 0.9rem;
    }

    .footer-bottom a {
        color: #fff;
        text-decoration: none;
    }

        .footer-bottom a:hover {
            text-decoration: underline;
        }

@supports (display: grid) {
    @media only screen and (min-width: 1024px) {
        .container {
            padding: 10px 10px 0;
        }

        .block-image {
            width: 60%;
            height: 270px;
            color: #d0d0d0;
        }

            .block-image a {
                text-decoration: none;
            }

        .block-text p {
            -webkit-line-clamp: 7;
        }
    }

    @media only screen and (max-width: 1023px) {
        .container {
            padding: 5px 5px 0;
        }

        .block-text p {
            -webkit-line-clamp: 5;
        }
    }

    .main-content {
        display: grid;
        grid-template-columns: minmax(730px, 3fr) minmax(300px, 1fr);
        gap: 20px;
    }

    .news-section {
        float: none;
        width: auto;
    }

    .contact-info {
        margin-left: 0;
        margin-right: 0;
    }

    .sidebar {
        margin-left: 0;
        margin-right: 0;
    }

    .right-column {
        float: none;
        width: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: sticky;
        top: 64px;
        align-self: flex-start;
    }
}

.slide-counter {
    position: absolute;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 20;
    pointer-events: none;
    top:10px;
    left:10px;
}

.featured-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-block-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none; 
}

    .featured-block-content.active {
        opacity: 1;
        position: relative;
        pointer-events: auto;
        z-index: 10;
    }

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: background-color 0.3s ease;
}

    .slider-prev:hover,
    .slider-next:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.featured-slider {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.news-detail {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 932px;
}

.news-detail-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

    .news-meta .category {
        font-weight: 500;
        color: #34495e;
    }

    .news-meta .date-published {
        color: #666;
    }

.news-detail-image {
    margin-bottom: 20px;
    max-width: 100%;
    text-align: center;
}

    .news-detail-image img {
        height: auto;
        max-height: 400px;
        object-fit: cover;
        border-radius: 4px;
    }

        .news-detail-image img:hover {
            opacity: 0.9;
        }

.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

    .news-detail-content p {
        margin-bottom: 15px;
    }

    .news-detail-content img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
    }



#related-loading-indicator {
    font-size: 0.9rem;
    color: #666;
    display: block;
    text-align: center;
    padding: 10px;
}

    #related-loading-indicator::before {
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid #2c3e50;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 5px;
    }

.category .breadcrumbs {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    display: inline-block;
}

    .category .breadcrumbs ol {
        list-style: none;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin: 0;
    }

    .category .breadcrumbs li {
        display: flex;
        align-items: center;
    }

        .category .breadcrumbs li:not(:last-child)::after {
            content: ">";
            margin-left: 5px;
            color: #999;
        }

    .category .breadcrumbs a {
        color: #2c3e50;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .category .breadcrumbs a:hover {
            color: #34495e;
            text-decoration: underline;
        }

    .category .breadcrumbs .active {
        color: #34495e;
        font-weight: 500;
    }

[data-theme="dark"] body {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] .navbar {
    background-color: #2c3e50;
}

[data-theme="dark"] .nav-tabs li a {
    color: #e0e0e0;
}

    [data-theme="dark"] .nav-tabs li a:hover {
        color: #fff;
        border-bottom: 2px solid #fff;
    }

    [data-theme="dark"] .nav-tabs li a.active {
        color: #fff;
        border-bottom: 2px solid #fff;
    }

[data-theme="dark"] .featured-block,
[data-theme="dark"] .news-grid-container,
[data-theme="dark"] .featured-news-content,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .contact-info,
[data-theme="dark"] .news-detail {
    background-color: #2c2c2c;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .block-text h1,
[data-theme="dark"] .block-text a {
    color: #e0e0e0;
}

    [data-theme="dark"] .block-text a:hover {
        color: #e0e0e0;
    }

[data-theme="dark"] .block-text p {
    color: #d0d0d0;
}

[data-theme="dark"] .news-item {
    background-color: #2c2c2c;
}

    [data-theme="dark"] .news-item h2,
    [data-theme="dark"] .news-item a {
        color: #e0e0e0;
    }

        [data-theme="dark"] .news-item a:hover {
            color: #e0e0e0;
        }

    [data-theme="dark"] .news-item .source {
        color: #b0b0b0;
    }

[data-theme="dark"] .featured-text h2,
[data-theme="dark"] .featured-text a {
    color: #e0e0e0;
}

    [data-theme="dark"] .featured-text a:hover {
        color: #e0e0e0;
    }

[data-theme="dark"] .featured-text .category {
    color: #b0b0b0;
}

[data-theme="dark"] .featured-text .description {
    color: #d0d0d0;
}

[data-theme="dark"] .sidebar h2 {
    color: #e0e0e0;
}



[data-theme="dark"] .trending-list a {
    color: #e0e0e0;
}

    [data-theme="dark"] .trending-list a:hover {
        color: #e0e0e0;
    }

[data-theme="dark"] .contact-info p {
    color: #d0d0d0;
}

[data-theme="dark"] .load-more-container button#load-more {
    background-color: #34495e;
}

    [data-theme="dark"] .load-more-container button#load-more:hover {
        background-color: #4a4a4a;
    }

    [data-theme="dark"] .load-more-container button#load-more:disabled {
        background-color: #666;
    }

[data-theme="dark"] .load-more-container #loading-indicator,
[data-theme="dark"] .load-more-container #no-more-message {
    color: #b0b0b0;
}

[data-theme="dark"] #loading-indicator::before {
    border-color: #b0b0b0;
    border-top-color: transparent;
}

[data-theme="dark"] .footer {
    background-color: #121212;
}

[data-theme="dark"] .footer-section a,
[data-theme="dark"] .footer-bottom a {
    color: #e0e0e0;
}

    [data-theme="dark"] .footer-section a:hover,
    [data-theme="dark"] .footer-bottom a:hover {
        color: #e0e0e0;
    }

[data-theme="dark"] .footer-bottom {
    border-top-color: #444;
}


[data-theme="dark"] .news-detail-header h1 {
    color: #e0e0e0;
}

[data-theme="dark"] .news-meta .category,
[data-theme="dark"] .news-meta .date-published {
    color: #b0b0b0;
}

[data-theme="dark"] .news-detail-content {
    color: #d0d0d0;
}

[data-theme="dark"] .related-news-list a {
    color: #e0e0e0;
}

    [data-theme="dark"] .related-news-list a:hover {
        color: #e0e0e0;
    }

[data-theme="dark"] #related-loading-indicator {
    color: #b0b0b0;
}

    [data-theme="dark"] #related-loading-indicator::before {
        border-color: #b0b0b0;
        border-top-color: transparent;
    }

[data-theme="dark"] .category .breadcrumbs a {
    color: #e0e0e0;
}

    [data-theme="dark"] .category .breadcrumbs a:hover {
        color: #e0e0e0;
    }

[data-theme="dark"] .category .breadcrumbs .active {
    color: #e0e0e0;
}

[data-theme="dark"] .category .breadcrumbs li:not(:last-child)::after {
    color: #b0b0b0;
}

.dark-mode-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

    .dark-mode-toggle:hover {
        color: #ffd700;
    }

    .dark-mode-toggle .dark-mode-icon {
        transition: opacity 0.3s ease;
    }

        .dark-mode-toggle .dark-mode-icon .core {
            transition: fill 0.3s ease;
        }

.pc-ad-banner-container {
    display: flex; 
    justify-content: space-around; 
    align-items: flex-start; 
    width: 100%; 
    max-width: 1200px;
    margin: 15px auto; 
    padding: 10px 0; 
    background-color: #f8f8f8; 
    border: 1px dashed #ddd;
    min-height: 250px; 
    visibility: hidden;
    box-sizing: border-box;
}

.pc-ad-slot {
    width: 300px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pc-ad-banner-container.ads-rendered-visible {
    visibility: visible;
    background-color: transparent;
    border: none;
}

.back-arrow.mobile-only {
    display: none;
}

.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: 90%;
    width: 400px;
    text-align: center;
    font-family: inherit;
    color: #333;
    display: none;
}

    .cookie-consent p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .cookie-consent button {
        padding: 8px 16px;
        margin: 0 5px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.9rem;
        transition: background-color 0.3s ease;
    }

    .cookie-consent .accept-btn {
        background-color: #2c3e50;
        color: #fff;
    }

        .cookie-consent .accept-btn:hover {
            background-color: #34495e;
        }

    .cookie-consent .decline-btn {
        background-color: #e9ecef;
        color: #333;
    }

        .cookie-consent .decline-btn:hover {
            background-color: #dee2e6;
        }

[data-theme="dark"] .cookie-consent {
    background-color: #2c2c2c;
    color: #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

    [data-theme="dark"] .cookie-consent p {
        color: #d0d0d0;
    }

    [data-theme="dark"] .cookie-consent .accept-btn {
        background-color: #34495e;
    }

        [data-theme="dark"] .cookie-consent .accept-btn:hover {
            background-color: #4a4a4a;
        }

    [data-theme="dark"] .cookie-consent .decline-btn {
        background-color: #3a3a3a;
        color: #e0e0e0;
    }

        [data-theme="dark"] .cookie-consent .decline-btn:hover {
            background-color: #4a4a4a;
        }

.cookie-consent a {
    color: #333;
    text-decoration: underline;
}

    .cookie-consent a:hover {
        color: #333;
        text-decoration: underline;
    }

[data-theme="dark"] .cookie-consent a {
    color: #e0e0e0;
    text-decoration: underline;
}

    [data-theme="dark"] .cookie-consent a:hover {
        color: #e0e0e0;
        text-decoration: underline;
    }

.cookie-consent .close-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: none;
    color: #000000; 
    font-size: 1.2rem;
    padding: 5px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cookie-consent .close-btn:hover {
        color: #000000;
    }

[data-theme="dark"] .cookie-consent .close-btn {
    color: #e0e0e0;
}

    [data-theme="dark"] .cookie-consent .close-btn:hover {
        color: #e0e0e0;
    }

.language-switcher {
    text-decoration: none;
    padding-left: 5px;
    font-size: 18px;
    color: #e0e0e0;
}

    .language-switcher a {
        color: #e0e0e0;
    }

    .language-switcher:hover {
        color: #fff;
    }

[data-theme="dark"] .language-switcher {
    color: #e0e0e0;
}

    [data-theme="dark"] .language-switcher:hover {
        color: #fff;
    }

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

    .share-buttons a {
        display: inline-block;
    }

    .share-buttons img {
        width: 20px;
        height: 20px;
        transition: opacity 0.3s ease;
    }

    .share-buttons a.share-hidden {
        display: none;
    }

        .share-buttons a.share-hidden.visible {
            display: inline-block;
        }

    .share-buttons a:hover img {
        opacity: 0.8;
    }