:root {
    /* Mavi -> kırmızı palet geçişi (adım adım). Ana renk: #eb0000 */
    --bs-primary: #eb0000;
    --bs-primary-rgb: 235, 0, 0;
    --bs-link-color: #eb0000;
    --bs-link-color-rgb: 235, 0, 0;
    --bs-link-hover-color: #c00000;
    --bs-link-hover-color-rgb: 192, 0, 0;
}



/* 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;
    }
}

/* ── 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;
}

/* ── 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: 36px;
        width: auto;
    }

    /* Uzun şehir adları (örn. Kahramanmaraş) taşmasın: ellipsis ile kısalt */
    .btn-weather .weather-city {
        display: inline-block;
        max-width: 6.5ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }
}

.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: #000;
    padding: 0.25rem 0.5rem;
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.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: #eb0000;
}

.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: #eb0000;
}

/* 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"] .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);
}

/* 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);
}

/* Mobile share bar dark mode */
[data-bs-theme="dark"] .mobile-share-bar {
    background: var(--bs-tertiary-bg);
    border-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;
}

/* 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%;
    }
}

/* ── Haber içeriği (content) görselleri ── */
/* Metin içine gömülü resimler (İHA ek görselleri vb.) content alanından taşmasın. */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: .5rem;
    cursor: zoom-in;
}

/* ── Lightbox ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, .92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    cursor: zoom-out;
}
.lightbox-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.lightbox-overlay img {
    max-width: 95vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: .5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    cursor: default;
    transform: scale(.96);
    transition: transform .2s ease;
}
.lightbox-overlay.is-open img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, .25);
}

/* ============================================================
   Anasayfa Hero: Sol kare manşet slider + sağ 4 kare kart
   ============================================================ */
.eng-hero-slider {
    height: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}
.eng-hero-slider .carousel-inner,
.eng-hero-slider .carousel-item {
    height: 100%;
    border-radius: 0.75rem;
}
.eng-hero-slide {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #fff;
    text-decoration: none;
    background: #16181d;
}
/* Üst: her zaman 16:9 görsel kutusu (görsel cover, oran birebir → kırpılmaz). */
.eng-hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    overflow: hidden;
}
.eng-hero-img {
    display: block;
}
/* Başlık gizliyse yazı paneli yok → görsel tüm kutuyu doldursun (oran serbest). */
.eng-hero-slide--nocaption .eng-hero-media {
    flex: 1 1 auto;
    aspect-ratio: auto;
}

/* Sol slider'ı sağ 2×16:9 kolonunun yüksekliğine kilitle (lg+).
   Slider mutlak konumlanınca sol kolon kendi yüksekliğini dayatmaz; satır yüksekliğini
   sağ kolon (2 kart) belirler, sol ona tam oturur → alt hizalar her monitörde tutar.
   Sol görsel cover ile yerleşir: yalnız yanlardan birkaç px alır, üst/alttan kesmez. */
.eng-hero-col {
    position: relative;
}
@media (min-width: 992px) {
    .eng-hero-col .eng-hero-slider {
        position: absolute;
        inset: 0;
    }
}
/* Alt: yazı paneli — 16:9 görselin altında kalan boşluğu doldurur, ortalı. */
.eng-hero-caption {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 1.25rem 2.75rem;
    color: #fff;
}
@media (min-width: 768px) {
    .eng-hero-caption {
        padding: 1.25rem 2rem 3rem;
    }
}
.eng-hero-title {
    margin: 0;
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 992px) {
    .eng-hero-title {
        font-size: 2rem;
    }
}
/* Alt (2.) başlık: pid_baslik — ana başlıktan küçük, ortalı. */
.eng-hero-subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.92;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 992px) {
    .eng-hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Rakamlı navigasyon
   NOT: Bootstrap'in `.carousel-indicators [data-bs-target]` seçicisini (0,2,0)
   ezmek için (0,2,1) özgüllükte seçici kullanılır + default'lar sıfırlanır. */
.carousel-indicators.eng-hero-nav {
    margin: 0;
    bottom: 0.75rem;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0 0.75rem;
}
.carousel-indicators.eng-hero-nav button {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-indent: 0;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.carousel-indicators.eng-hero-nav button:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}
.carousel-indicators.eng-hero-nav button.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    opacity: 1;
}

/* Sağ kare kartlar */
.eng-card {
    border-radius: 0.6rem;
}
.eng-card-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 0.85rem;
    color: #fff;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.75);
}
[data-bs-theme="dark"] .eng-card-overlay {
    background: rgba(0, 0, 0, 0.85);
}
.eng-card-badge {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
}
.eng-card-title {
    margin: 0;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.25;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.eng-card-spot {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Manşet sağ kutucuk özeti: 992–1400px dar iki-kolon aralığında (reklam
   rayları da yatay alanı daralttığı için) özet resmin üstüne taşıyor → gizle.
   >=1400 yeterli alan var; <992 tek-kolona iner (mobil/tablet) normal gösterir.
   d-md-block (display:block!important) ezildiği için !important şart. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .eng-card-spot {
        display: none !important;
    }
}

/* Mobilde: slider üstte, kartlar altında tam genişlik */
@media (max-width: 991.98px) {
    .eng-hero-title {
        font-size: 1.3rem;
    }
    /* Kolonlar alt alta: slider içeriğince yükselsin (16:9 görsel + yazı paneli). */
    .eng-hero-slider,
    .eng-hero-slider .carousel-inner,
    .eng-hero-slider .carousel-item {
        height: auto;
    }
    .carousel-indicators.eng-hero-nav button {
        width: 1.4rem;
        height: 1.4rem;
        font-size: 0.68rem;
        border-width: 1px;
    }
}

/* ===========================================================
   160x600 dikey yan reklamlar (skyscraper)
   Grid düzen: [160px ray] [esnek içerik] [160px ray], ortalı.
   İçerik 1320px'e kadar büyür, dar ekranda gerektiği kadar DARALIR.
   Sayfayla birlikte kayar (fixed değil). >=1000px görünür, altında gizli.
   =========================================================== */

/* Raylar varsayılan gizli (mobil/tablet); sadece >=1000px'te görünür. */
.eng-rail {
    display: none;
}

@media (min-width: 1000px) {
    /* Üç sütunlu grid: kenarlar 160px sabit, orta sütun minmax(0,1320)
       → boş alanı emerek 1320'ye kadar büyür, gerekince 0'a kadar daralır.
       justify-content:center → fazla boşlukta tüm grubu ortalar (simetrik). */
    .eng-page-shell {
        display: grid;
        grid-template-columns: 160px minmax(0, 1320px) 160px;
        justify-content: center;
        align-items: start;
        width: 100%;
    }

    /* İçeriği grid sütunu yönetsin: Bootstrap'ın kademeli max-width'ini
       ve auto margin'ini iptal et; iç min-genişlik daralmayı engellemesin. */
    .eng-page-shell > main.container {
        max-width: none;
        width: auto;
        margin: 0;
        min-width: 0;
    }

    /* Ray: 160px sütununa oturur. Üstten içerikle hizalı (py-4 = 1.5rem). */
    .eng-rail {
        display: flex;
        width: 160px;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    /* Reklam yuvası: dolana kadar 0 yükseklik (yer kaplamaz). display:none
       VERME — loader görünürlüğü offsetParent ile ölçer; display:none olursa
       doldurulamaz. Reklamsız zone'u loader JS gizler. */
    .eng-rail ins {
        display: block;
        width: 160px;
    }
    /* Doldurulan banner kutusu (div/a) — köşeleri yumuşat. */
    .eng-rail > div,
    .eng-rail > a {
        border-radius: 6px;
        overflow: hidden;
    }
}

/* Geniş ekran: reklam ile içerik arasına boşluk koy (büyük reklam sıkışık
   durmasın). Dar ekranda boşluk yok ki daralan içerik alanı verimli kullanılsın. */
@media (min-width: 1600px) {
    .eng-page-shell {
        column-gap: 1.5rem;
    }
}

/* ===========================================================
   Haber detay: her makale kendi page-skin raylarını taşır (makaleye hizalı,
   infinite-scroll'da sonraki haberde tekrar gelir). eng-page-shell ile aynı
   grid; merkez hücre .eng-detail-main (container gibi davranır).
   =========================================================== */
.eng-detail-main {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
@media (min-width: 1000px) {
    .eng-detail-shell {
        display: grid;
        grid-template-columns: 160px minmax(0, 1320px) 160px;
        justify-content: center;
        align-items: start;
        width: 100%;
    }
    .eng-detail-shell > .eng-detail-main {
        max-width: none;
        min-width: 0;
        margin: 0;
    }
}
@media (min-width: 1600px) {
    .eng-detail-shell {
        column-gap: 1.5rem;
    }
}

/* ===========================================================
   Sidebar/içerik reklam yuvası (300x250 vb.). /ad-zones doldurur.
   Dar sütunda (ör. page-skin rayları açıkken) orantılı küçülür → taşmaz.
   =========================================================== */
.eng-ad-slot {
    display: block;
    text-align: center;   /* inline-block reklam kutusunu ortala */
}
.eng-ad-slot ins {
    display: block;       /* dolana kadar 0 yükseklik, yer kaplamaz */
}
/* Doldurulan kutu (div/a): inline genişliği max-width ile sınırla, yüksekliği
   içeriğe bırak → dar sütunda orantılı küçülür. */
.eng-ad-slot > div,
.eng-ad-slot > a {
    max-width: 100%;
    height: auto !important;
}
.eng-ad-slot img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===========================================================
   Künye (BIK) tablosu — marka kırmızısıyla hafif, temiz kart.
   id'ler (#bik-kunye-main, #bik-kunye-*) BIK crawler içindir, dokunma.
   =========================================================== */
.eng-kunye {
    margin: 1.25rem 0 2rem;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
    border-radius: 12px;
    overflow: hidden;
}
.eng-kunye-item {
    display: grid;
    grid-template-columns: 38% 1fr;
    border-top: 1px solid rgba(var(--bs-primary-rgb), 0.10);
}
.eng-kunye-item:first-child {
    border-top: 0;
}
.eng-kunye-label {
    margin: 0;
    padding: 0.7rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-right: 1px solid rgba(var(--bs-primary-rgb), 0.12);
}
.eng-kunye-value {
    padding: 0.7rem 1rem;
    color: var(--bs-body-color);
    line-height: 1.45;
    word-break: break-word;
}
.eng-kunye-value a {
    color: var(--bs-primary);
    text-decoration: none;
}
.eng-kunye-value a:hover {
    text-decoration: underline;
}
@media (max-width: 575.98px) {
    .eng-kunye-item {
        grid-template-columns: 1fr;
    }
    .eng-kunye-label {
        border-right: 0;
        border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.10);
    }
}
