:root {
   
   
}



/* Helper Classes */
.sticky-share-sidebar {
    top: 8rem;
    z-index: 10;
}
.share-bar a,
.share-bar button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--bs-secondary);
    transition: transform 0.2s ease, color 0.2s ease;
}
.share-bar a:hover,
.share-bar button:hover {
    transform: scale(1.25);
    color: var(--bs-primary);
    background: transparent;
}
.share-bar .report-btn {
    color: var(--bs-danger);
}
.share-bar .report-btn:hover {
    color: var(--bs-danger);
    transform: scale(1.25);
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.mobile-share-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bs-light);
    border-radius: 0.5rem;
    border: 1px solid var(--bs-border-color);
}
.mobile-share-bar span {
    font-size: 0.9rem;
}
.mobile-share-bar .share-bar a,
.mobile-share-bar .share-bar button,
.mobile-share-bar a,
.mobile-share-bar button {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
}

.sticky-about-us {
    top: 6rem;
}

/* Hero Section */
.hero-card {
    border-radius: 0.75rem;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: #fff;
    text-decoration: none;
}

@media (min-width: 768px) {
    .hero-overlay {
        padding: 3rem;
    }
}

.hero-badge {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: none;
}

@media (min-width: 768px) {
    .hero-badge {
        display: inline-block;
    }
}

.hero-title {
    font-size: clamp(1.15rem, 3.5vw + 0.5rem, 3.5rem);
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .hero-title {
        margin-bottom: 0.5rem;
    }
}

.hero-summary {
    font-size: clamp(0.9rem, 1.25vw + 0.5rem, 1.5rem);
    line-height: 1.5;
    margin: 0;
    opacity: 0.75;
    display: none;
}

@media (min-width: 1200px) {
    .hero-summary {
        display: block;
    }
}

.hero-meta {
    opacity: 0.75;
    display: none;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .hero-meta {
        display: inline-block;
    }
}

/* Overlay Gradient */
.overlay-gradient {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Top 3 Cards */
.top3-col {
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .top3-col {
        margin-bottom: 0;
    }
}

.top3-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem;
    color: #fff;
    text-decoration: none;
}

.top3-meta {
    opacity: 0.75;
    display: none;
}

@media (min-width: 992px) {
    .top3-meta {
        display: block;
    }
}

.top3-title {
    font-size: 1.1rem;
    line-height: 1.3;
}

@media (max-width: 767.98px) {
    .top3-title {
        font-size: clamp(1.15rem, 3.5vw + 0.5rem, 3.5rem);
        line-height: 1.25;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .top3-title {
        font-size: 0.88rem;
        line-height: 1.25;
    }
}

/* Overlay Card */
.news-card-overlay {
    height: 280px;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-overlay:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem;
    color: #fff;
}

.news-card-overlay-meta {
    opacity: 0.75;
}

/* ── Category/Tag Hero Card ── */
.category-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
}

.category-hero-summary {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.75;
}

/* Section Headers */
.section-header {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.75rem;
}

.section-title {
    font-size: 1.35rem;
    position: relative;
}

/* Horizontal News Card */
.news-card-horizontal {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.news-card-horizontal:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-card-horizontal img {
    border-radius: 0.5rem;
}

.news-card-horizontal-img {
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.news-card-horizontal-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-horizontal-badge {
    align-self: flex-start;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.news-card-horizontal-title {
    margin-bottom: 0.25rem;
    font-weight: 600;
    line-height: 1.3;
    font-size: 0.95rem;
}

/* ── Sidebar ── */
.sidebar-sticky {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.sidebar-heading {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.sidebar-featured-item {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 0.75rem;
}

.sidebar-featured-link {
    text-decoration: none;
    color: var(--bs-body-color);
    display: flex;
}

.sidebar-featured-link:hover {
    color: var(--bs-primary);
}

.sidebar-rank-number {
    margin-right: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.3;
    color: var(--bs-secondary);
}

.sidebar-featured-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* ── Sidebar Small Card ── */
.sidebar-small-card-body {
    padding: 0.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.sidebar-small-card-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.2;
}

.sidebar-small-card-meta {
    color: var(--bs-secondary);
    font-size: 0.75rem;
}

/* ── News Card List ── */
.news-card-list-body {
    padding: 0.75rem 1rem;
}

.news-card-list-summary {
    color: var(--bs-secondary);
    margin-bottom: 0.75rem;
    display: none;
}

@media (min-width: 768px) {
    .news-card-list-summary {
        display: block;
    }
}

.news-card-list-meta {
    display: flex;
    align-items: center;
    color: var(--bs-secondary);
    font-size: 0.875rem;
    margin-top: auto;
}

.news-card-list-sep {
    margin: 0 0.5rem;
}

.news-card-list-category {
    text-decoration: none;
    color: var(--bs-primary);
    font-weight: 500;
}

.news-card-list-tags-sep {
    display: none;
}

.news-card-list-tags {
    color: var(--bs-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: none;
}

@media (min-width: 768px) {
    .news-card-list-tags-sep {
        display: inline;
    }

    .news-card-list-tags {
        display: inline-block;
    }
}

.news-card-list-tag {
    color: var(--bs-secondary);
    text-decoration: none;
}

/* ── Infinite Scroll Loader ── */
.infinite-scroll-loader {
    text-align: center;
    padding: 1rem 0;
    color: var(--bs-secondary);
    width: 100%;
}

/* ── Ad Placeholders ── */
.masthead-ad {
    text-align: center;
    margin: 1rem 0;
}

.sidebar-ad-large {
    text-align: center;
    margin-bottom: 1rem;
}

.sidebar-ad-small {
    text-align: center;
    margin-bottom: 1rem;
}

.ad-masthead-size {
    width: 100%;
    max-width: 970px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ad-sidebar-600-size {
    width: 100%;
    max-width: 300px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ad-sidebar-250-size {
    width: 100%;
    max-width: 300px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Badge colors per category */
.badge.bg-success {
    background-color: #20c997 !important;
}

/* Navbar Layout */
.navbar {
    background-color: var(--bs-body-bg);
}

.navbar.sticky-top {
    transition: transform 0.3s ease;
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
}

.navbar-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-left .navbar-brand {
    font-size: 1.1rem;
}

.navbar-left .navbar-brand img {
    height: 64px;
    width: auto;
}

@media (max-width: 767.98px) {
    .navbar-left .navbar-brand img {
        height: 50px;
        width: auto;
    }
}

.offcanvas-btn {
    border: 0;
    padding: 0.25rem;
    margin-right: 0.5rem;
    background: transparent;
    transition: background-color 0.2s ease;
}

.offcanvas-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.navbar-center {
    display: none;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

@media (min-width: 992px) {
    .navbar-center {
        display: flex;
    }
}

.navbar-center .nav-link {
    white-space: nowrap;
    color: #333;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-center .nav-link:hover {
    color: #0d6efd;
}

.navbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 1.2rem;
    margin-left: auto;
}

.navbar-social {
    display: none;
    align-items: center;
    border-left: 1px solid var(--bs-border-color);
    padding-left: 0.5rem;
    transition: opacity 0.3s ease;
}

@media (min-width: 1200px) {
    .navbar-social {
        display: flex;
    }
}

.search-container {
    display: none;
    align-items: center;
    position: relative;
}

@media (min-width: 992px) {
    .search-container {
        display: flex;
    }
}

.weather-spinner {
    width: 0.8rem;
    height: 0.8rem;
}

.weather-hourly-scroll {
    display: flex;
    gap: 0.5rem;
    overflow: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

/* Offcanvas */
.offcanvas-section-title {
    text-transform: uppercase;
    color: var(--bs-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.offcanvas-link {
    color: var(--bs-body-color);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    text-decoration: none;
}

.offcanvas-link:hover {
    color: var(--bs-primary);
}

@media (max-width: 1199.98px) {
    .navbar-right {
        gap: 0.5rem;
    }

    .btn-weather {
        padding: 4px 8px;
    }

    .navbar-center .nav-link {
        padding: 0.25rem 0.15rem;
        font-size: 0.82rem;
    }
}

/* Weather Button */
.btn-weather {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #fff;
    border: 0;
    padding: 4px 12px;
    color: #333;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-weather:hover {
    background: #dce9f7;
    border-color: #b8cfe0;
    color: #0d6efd;
}

.btn-weather i {
    color: #f0a500;
    font-size: 1.5rem;
}

.btn-weather .weather-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.weather-temp {
    font-weight: 600;
}

.search-btn {
    background: transparent;
    border: 0;
    padding: 0.25rem;
    color: var(--bs-body-color);
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.search-btn:hover,
.search-btn:focus {
    color: var(--bs-primary);
    transform: scale(1.15);
    background: transparent;
    box-shadow: none;
}

/* Social Icons */
.social-icon {
    font-size: 1.3rem;
    padding: 0 8px;
    color: var(--bs-secondary);
    transition: color 0.2s;
}

.social-icon:hover {
    color: #0d6efd;
}

/* Search Toggle */
.search-form {
    position: relative;
}

.search-form .search-input {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    z-index: 10;
    background: var(--bs-body-bg);
}

.search-form.active .search-input {
    width: 220px;
    opacity: 1;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--bs-border-color);
    font-size: 0.85rem;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.hide-social {
    opacity: 0 !important;
    pointer-events: none;
    width: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    transition: opacity 0.3s ease, width 0.3s ease;
}

/* Weather Modal */
.weather-detail {
    font-size: 0.9rem;
}

.weather-detail .weather-icon {
    font-size: 2.5rem;
    color: #f0a500;
}

.weather-detail .weather-big-temp {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.weather-hour-card {
    padding: 6px 10px;
    border-radius: 10px;
    background: #f8f9fa;
    min-width: 56px;
}

.weather-hour-card i {
    font-size: 1.1rem;
    color: #f0a500;
}

/* ── Comment System ── */
.comments-section {
    border-top: 2px solid #eee;
    padding-top: 1.5rem;
}

.comment-form-wrapper {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.comment-char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.75rem;
    pointer-events: none;
}

.comment-char-counter.text-danger {
    font-weight: 600;
}

/* Avatar */
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    user-select: none;
}

.comment-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    user-select: none;
}

/* Comment Items */
.comment-item {
    padding: 0.875rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item.comment-pending {
    background: #f0f8f0;
    border-radius: 0.5rem;
    padding: 0.875rem;
    border-left: 3px solid #198754;
    margin-bottom: 0.25rem;
}

.comment-reply {
    border-bottom: none;
    padding: 0.625rem 0;
    margin-left: 0;
}

.comment-replies-container {
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid #e8e8e8;
}

.comment-author {
    font-size: 0.875rem;
}

.comment-text {
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-line;
    word-break: break-word;
    color: #333;
}

.comment-actions button {
    font-size: 0.78rem;
}

.comment-report-btn {
    opacity: 0;
    transition: opacity 0.2s;
}

.comment-item:hover .comment-report-btn {
    opacity: 0.5 !important;
}

.comment-report-btn:hover {
    opacity: 1 !important;
}

.comment-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #aaa;
    font-style: italic;
    font-size: 0.9rem;
}

.comment-load-more {
    text-align: center;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
}

.comment-success-msg {
    background: #d1e7dd;
    color: #0f5132;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.comment-reply-form {
    background: #fafafa;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.comment-sort-select {
    font-size: 0.78rem;
    padding: 0.2rem 1.75rem 0.2rem 0.5rem;
}

.comment-header h6 {
    font-size: 0.95rem;
}

.min-width-0 {
    min-width: 0;
}

/* ── Detail Infinite Scroll ── */
.article-separator {
    border: none;
    border-top: 3px solid #e9ecef;
    margin: 3rem 0;
}

/* ── Related News Strip ── */
.related-news-strip {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.related-news-item {
    text-decoration: none;
    display: flex;
    align-items: flex-start;
}

.related-news-img {
    width: 30%;
    max-width: 200px;
    min-width: 80px;
    flex-shrink: 0;
}

.related-news-content {
    margin-left: 0.5rem;
    min-width: 0;
}

.related-news-title {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-summary {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--bs-secondary);
    margin-bottom: 0.25rem;
    display: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .related-news-summary {
        display: -webkit-box;
    }
}

.related-news-item small {
    font-size: 0.7rem;
}

.related-news-item:hover .related-news-title {
    color: var(--bs-primary);
}

.related-news-item img {
    transition: opacity 0.2s;
}

.related-news-item:hover img {
    opacity: 0.85;
}

/* ── Theme Toggle Button ── */
.btn-theme-toggle {
    background: transparent;
    border: 0;
    padding: 0.25rem;
    color: var(--bs-body-color);
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-theme-toggle:hover,
.btn-theme-toggle:focus {
    color: var(--bs-primary);
    transform: scale(1.15);
    background: transparent;
    box-shadow: none;
}

/* ── Logo Theme Switching ── */
.logo-dark {
    display: none;
}

[data-bs-theme="dark"] .logo-light {
    display: none;
}

[data-bs-theme="dark"] .logo-dark {
    display: inline;
}

/* ── Dark Mode Overrides ── */
[data-bs-theme="dark"] .offcanvas-btn .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .navbar {
    background-color: var(--bs-body-bg) !important;
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .btn-weather {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .btn-weather:hover {
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-primary);
}

[data-bs-theme="dark"] .weather-detail .weather-big-temp {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .weather-hour-card {
    background: var(--bs-tertiary-bg);
}

[data-bs-theme="dark"] .navbar-center .nav-link {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .navbar-center .nav-link:hover {
    color: var(--bs-primary);
}

[data-bs-theme="dark"] .offcanvas-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .overlay-gradient {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
}


[data-bs-theme="dark"] .section-header {
    border-bottom-color: var(--bs-primary);
}

[data-bs-theme="dark"] .news-card-horizontal {
    border-bottom-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .search-form.active .search-input {
    border-color: var(--bs-border-color);
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .social-icon:hover {
    color: var(--bs-primary) !important;
}

/* Comments dark mode */
[data-bs-theme="dark"] .comments-section {
    border-top-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .comment-form-wrapper {
    background: var(--bs-tertiary-bg);
}

[data-bs-theme="dark"] .comment-text {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .comment-item {
    border-bottom-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .comment-item.comment-pending {
    background: rgba(25, 135, 84, 0.15);
    border-left-color: #198754;
}

[data-bs-theme="dark"] .comment-replies-container {
    border-left-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .comment-reply-form {
    background: var(--bs-tertiary-bg);
}

[data-bs-theme="dark"] .comment-success-msg {
    background: rgba(25, 135, 84, 0.2);
    color: #75b798;
}

[data-bs-theme="dark"] .comment-empty {
    color: var(--bs-secondary-color);
}

/* Sidebar dark mode */
[data-bs-theme="dark"] .sidebar-featured-item {
    border-bottom-color: var(--bs-border-color);
}

/* Category hero dark mode */
[data-bs-theme="dark"] .category-hero-overlay {
    background: rgba(0, 0, 0, 0.85);
}

/* Horizontal card dark mode */
[data-bs-theme="dark"] .news-card-horizontal {
    border-bottom-color: var(--bs-border-color);
}

/* Related news dark mode */
[data-bs-theme="dark"] .related-news-strip {
    border-color: var(--bs-border-color);
}

/* Article separator */
[data-bs-theme="dark"] .article-separator {
    border-top-color: var(--bs-border-color);
}

/* ── Article Detail ── */
.news-summary-box {
    background: var(--bs-tertiary-bg);
    padding: 1.5rem;
    border-left: 4px solid var(--bs-primary);
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.news-summary-text {
    margin: 0;
    font-weight: 700;
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.6;
}

.news-tags-section {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color);
}

.news-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-tag-btn {
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 50rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-secondary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: color 0.2s, border-color 0.2s;
}

.news-tag-btn:hover {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Detail Sidebar Overlay Cards */
.detail-sidebar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem;
    color: #fff;
    text-decoration: none;
}

.detail-sidebar-badge {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.detail-sidebar-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff;
    line-height: 1.3;
}

/* Card shadows dark mode */
[data-bs-theme="dark"] .card.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .news-card-overlay:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.08) !important;
}

/* Card footer */
.card-footer {
    background-color: var(--bs-body-bg);
}

/* Ad placeholders */
.ad-placeholder {
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
}

[data-bs-theme="dark"] .ad-placeholder {
    background-color: #1a1d21;
    border-color: #333;
}

/* Tag buttons dark mode */
[data-bs-theme="dark"] .news-tag-btn {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .news-tag-btn:hover {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* ── Footer ── */
.site-footer {
    background-color: #212529;
    color: #fff;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-footer-copy {
    margin: 0;
    font-size: 0.875rem;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.site-footer-nav a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.site-footer-nav a:hover {
    color: #fff;
}

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

/* ── Cookie Consent Banner ── */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 12px rgba(0,0,0,.1);
    padding: 1rem 0;
    animation: cookieSlideUp .3s ease-out;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent-text p {
    margin: 0;
    font-size: .875rem;
    color: #495057;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--bs-primary);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .cookie-consent {
    background: #1a1d23;
    border-top-color: #2d3139;
    box-shadow: 0 -2px 12px rgba(0,0,0,.3);
}

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

@media (max-width: 575.98px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-consent-actions {
        width: 100%;
    }
    .cookie-consent-actions .btn {
        flex: 1;
    }
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}

.cookie-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: cookieModalIn .2s ease-out;
}

@keyframes cookieModalIn {
    from { opacity: 0; transform: scale(.95); }
    to { opacity: 1; transform: scale(1); }
}

.cookie-modal-header {
    padding: 1.25rem 1.25rem .75rem;
    border-bottom: 1px solid #dee2e6;
}

.cookie-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.cookie-modal-body {
    padding: 1rem 1.25rem;
}

.cookie-category {
    padding: .75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-category-info strong {
    font-size: .9rem;
}

.cookie-category-info p {
    margin: .25rem 0 0;
    font-size: .8rem;
    color: #6c757d;
    line-height: 1.4;
}

.cookie-toggle--locked .cookie-toggle-on {
    font-size: .75rem;
    color: #198754;
    font-weight: 600;
    white-space: nowrap;
    padding-top: .2rem;
}

.cookie-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

.cookie-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background .2s;
}

.cookie-toggle-slider:before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.cookie-toggle-switch input:checked + .cookie-toggle-slider {
    background: var(--bs-primary, #0d6efd);
}

.cookie-toggle-switch input:checked + .cookie-toggle-slider:before {
    transform: translateX(20px);
}

.cookie-modal-footer {
    padding: .75rem 1.25rem 1.25rem;
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    border-top: 1px solid #dee2e6;
}

[data-bs-theme="dark"] .cookie-modal-dialog {
    background: #1a1d23;
    border: 1px solid #2d3139;
}

[data-bs-theme="dark"] .cookie-modal-header,
[data-bs-theme="dark"] .cookie-modal-footer {
    border-color: #2d3139;
}

[data-bs-theme="dark"] .cookie-modal-title {
    color: #e9ecef;
}

[data-bs-theme="dark"] .cookie-category {
    border-bottom-color: #2d3139;
}

[data-bs-theme="dark"] .cookie-category-info strong {
    color: #e9ecef;
}

[data-bs-theme="dark"] .cookie-category-info p {
    color: #8a9099;
}

@media (max-width: 575.98px) {
    .cookie-modal-footer {
        flex-direction: column-reverse;
    }
    .cookie-modal-footer .btn {
        width: 100%;
    }
}