/**
 * News/Blog Premium Styles
 * Scoped to .nb-page wrapper to avoid global CSS conflicts
 */

.nb-page {
    font-family: var(--site-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
}

/* News ve Blog başlıkları - Bold değil (ULTRA HIGH PRIORITY) */
/* News Section başlığı */
.news-section h2,
.news-section h2.font-bold,
.news-section h2[class*="font-bold"],
.news-section h2.text-3xl,
.news-section h2.text-3xl.font-bold,
.news-section h2.text-4xl,
.news-section h2.text-4xl.font-bold,
.news-section h2.font-inter,
.news-section h2.font-inter.font-bold,
.news-section h2.font-inter.text-3xl.font-bold,
.news-section h2.font-inter.text-4xl.font-bold,
div.news-section h2,
div.news-section h2.font-bold,
div.news-section > div > h2,
div.news-section > div > h2.font-bold,
div.news-section > div.flex > h2,
div.news-section > div.flex > h2.font-bold,
div.news-section > div.flex.items-center > h2,
div.news-section > div.flex.items-center > h2.font-bold,
body .news-section h2,
body .news-section h2.font-bold,
body div.news-section h2,
body div.news-section h2.font-bold,
html body .news-section h2,
html body .news-section h2.font-bold,
html body div.news-section h2,
html body div.news-section h2.font-bold {
    font-weight: 300 !important; /* Light weight, bold değil */
}

/* Blog Articles başlığı - Bold değil (ULTRA HIGH PRIORITY) */
/* Tüm olası selector kombinasyonları */
.blog-section h2,
.blog-section h2.font-bold,
.blog-section h2[class*="font-bold"],
.blog-section h2.text-3xl,
.blog-section h2.text-3xl.font-bold,
.blog-section h2.text-4xl,
.blog-section h2.text-4xl.font-bold,
.blog-section h2.font-inter,
.blog-section h2.font-inter.font-bold,
.blog-section h2.font-inter.text-3xl.font-bold,
.blog-section h2.font-inter.text-4xl.font-bold,
div.blog-section h2,
div.blog-section h2.font-bold,
div.blog-section > div > h2,
div.blog-section > div > h2.font-bold,
div.blog-section > div.flex > h2,
div.blog-section > div.flex > h2.font-bold,
div.blog-section > div.flex.items-center > h2,
div.blog-section > div.flex.items-center > h2.font-bold,
body .blog-section h2,
body .blog-section h2.font-bold,
body div.blog-section h2,
body div.blog-section h2.font-bold,
html body .blog-section h2,
html body .blog-section h2.font-bold,
html body div.blog-section h2,
html body div.blog-section h2.font-bold {
    font-weight: 300 !important; /* Light weight, bold değil */
}

/* Typography - Inter font */
.nb-page h1 {
    font-weight: 300;
    line-height: 1.2;
}

/* News/Blog Hero: Inter font and About page font sizes */
.nb-hero-content .nb-hero-title,
.nb-hero-content .nb-hero-title.font-playfair {
    font-size: 1.1875rem !important; /* 19px - mobile */
    font-weight: 300 !important;
}

@media (min-width: 640px) {
    .nb-hero-content .nb-hero-title {
        font-size: 1.375rem !important; /* 22px - sm */
    }
}

@media (min-width: 768px) {
    .nb-hero-content .nb-hero-title {
        font-size: 1.625rem !important; /* 26px - md */
    }
}

@media (min-width: 1024px) {
    .nb-hero-content .nb-hero-title {
        font-size: 2.0625rem !important; /* 33px - lg */
    }
}

@media (min-width: 1280px) {
    .nb-hero-content .nb-hero-title {
        font-size: 2.5rem !important; /* 40px - xl */
    }
}

.nb-hero-content p,
.nb-hero-content p.font-inter {
    font-size: 1rem !important; /* text-base - mobile */
}

@media (min-width: 768px) {
    .nb-hero-content p {
        font-size: 1.125rem !important; /* text-lg - md */
    }
}

@media (min-width: 1024px) {
    .nb-hero-content p {
        font-size: 1.25rem !important; /* text-xl - lg */
    }
}

.nb-page h2 {
    font-weight: 300;
    line-height: 1.3;
}

.nb-page h3 {
    font-weight: 300;
    line-height: 1.4;
}

/* Container */
.nb-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nb-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .nb-container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .nb-container {
        padding: 0 3rem;
    }
}

@media (min-width: 1280px) {
    .nb-container {
        padding: 0 4rem;
    }
}

/* Category Filter Bar */
.nb-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-light .nb-filter-bar {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.nb-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nb-filter-chip:not(.active) {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

body.theme-light .nb-filter-chip:not(.active) {
    background-color: #f3f4f6;
    color: #6b7280;
}

.nb-filter-chip:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

body.theme-light .nb-filter-chip:not(.active):hover {
    background-color: #e5e7eb;
    color: #374151;
}

.nb-filter-chip.active {
    background-color: #A89F91;
    color: #0a0a0a;
    font-weight: 600;
}

body.theme-light .nb-filter-chip.active {
    background-color: #1f2937;
    color: #ffffff;
}

/* Search Bar */
.nb-search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.nb-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

body.theme-light .nb-search-input {
    border-color: rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    color: #1f2937;
}

.nb-search-input:focus {
    outline: none;
    border-color: #A89F91;
    background-color: rgba(255, 255, 255, 0.08);
}

body.theme-light .nb-search-input:focus {
    background-color: #ffffff;
    border-color: #1f2937;
}

.nb-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

body.theme-light .nb-search-icon {
    color: #9ca3af;
}

/* Sort Controls */
.nb-sort-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.nb-sort-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

body.theme-light .nb-sort-label {
    color: #6b7280;
}

.nb-sort-buttons {
    display: flex;
    gap: 0.5rem;
}

.nb-sort-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.theme-light .nb-sort-btn {
    border-color: rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    color: #6b7280;
}

.nb-sort-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

body.theme-light .nb-sort-btn:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.nb-sort-btn.active {
    background-color: #A89F91;
    color: #0a0a0a;
    border-color: #A89F91;
    font-weight: 600;
}

body.theme-light .nb-sort-btn.active {
    background-color: #1f2937;
    color: #ffffff;
    border-color: #1f2937;
}

/* Article Cards Grid */
.nb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .nb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .nb-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Article Card */
.nb-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

body.theme-light .nb-card {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nb-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body.theme-light .nb-card:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.nb-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.05);
}

.nb-card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nb-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    background-color: rgba(168, 159, 145, 0.2);
    color: #A89F91;
    width: fit-content;
}

body.theme-light .nb-card-category {
    background-color: rgba(31, 41, 55, 0.1);
    color: #1f2937;
}

.nb-card-title {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #D3C6AE; /* Warm pale gold (dark theme) */
}

body.theme-light .nb-card-title {
    color: #6B5F4C; /* Deep gold-brown (light theme) */
}

.nb-card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    flex: 1;
}

body.theme-light .nb-card-excerpt {
    color: #6b7280;
}

.nb-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: auto;
}

body.theme-light .nb-card-meta {
    color: #9ca3af;
}

.nb-card-meta-separator {
    color: rgba(255, 255, 255, 0.3);
}

body.theme-light .nb-card-meta-separator {
    color: #d1d5db;
}

.nb-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #A89F91;
    transition: gap 0.3s ease;
}

.nb-card:hover .nb-card-read-more {
    gap: 0.75rem;
}

/* Pagination */
.nb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.nb-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-light .nb-pagination-link {
    background-color: #ffffff;
    color: #6b7280;
    border-color: rgba(0, 0, 0, 0.1);
}

.nb-pagination-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

body.theme-light .nb-pagination-link:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.nb-pagination-link.active {
    background-color: #A89F91;
    color: #0a0a0a;
    border-color: #A89F91;
    font-weight: 600;
}

body.theme-light .nb-pagination-link.active {
    background-color: #1f2937;
    color: #ffffff;
    border-color: #1f2937;
}

/* Detail Page Styles */
.nb-detail-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nb-detail-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .nb-detail-container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .nb-detail-container {
        padding: 0 3rem;
    }
}

@media (min-width: 1280px) {
    .nb-detail-container {
        padding: 0 4rem;
    }
}

.nb-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

body.theme-light .nb-detail-meta {
    color: #6b7280;
}

.nb-detail-meta-separator {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}

body.theme-light .nb-detail-meta-separator {
    color: #d1d5db;
}

.nb-detail-category {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, rgba(168, 159, 145, 0.25) 0%, rgba(168, 159, 145, 0.15) 100%);
    color: #A89F91;
    border: 1px solid rgba(168, 159, 145, 0.3);
    transition: all 0.2s ease;
}

.nb-detail-category:hover {
    background: linear-gradient(135deg, rgba(168, 159, 145, 0.35) 0%, rgba(168, 159, 145, 0.25) 100%);
    border-color: rgba(168, 159, 145, 0.5);
    transform: translateY(-1px);
}

body.theme-light .nb-detail-category {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.15) 0%, rgba(31, 41, 55, 0.08) 100%);
    color: #1f2937;
    border-color: rgba(31, 41, 55, 0.2);
}

body.theme-light .nb-detail-category:hover {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.25) 0%, rgba(31, 41, 55, 0.15) 100%);
    border-color: rgba(31, 41, 55, 0.3);
}

.nb-detail-date {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

body.theme-light .nb-detail-date {
    color: #4b5563;
}

.nb-detail-views {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

body.theme-light .nb-detail-views {
    color: #6b7280;
}

/* Detail page article title (NOT hero title) - Premium Gold */
.nb-page section:not(.nb-hero-section) h1.text-white,
.nb-page .lg\:col-span-2 h1.text-white,
.nb-page .lg\:col-span-3 h1.text-white {
    color: #D3C6AE !important; /* Warm pale gold (dark theme) */
}

.nb-page section:not(.nb-hero-section) h1.text-gray-900,
.nb-page .lg\:col-span-2 h1.text-gray-900,
.nb-page .lg\:col-span-3 h1.text-gray-900 {
    color: #6B5F4C !important; /* Deep gold-brown (light theme) */
}

.nb-detail-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

body.theme-light .nb-detail-content {
    color: #374151;
}

.nb-detail-content p {
    margin-bottom: 1.5rem;
}

/* Bold and Strong text - Dark mode: soft warm white (less harsh than #fff) */
.nb-detail-content strong,
.nb-detail-content b {
    font-weight: 700;
    color: #E8E4DC;
}

/* Bold inside links keeps anchor colour */
.nb-detail-content a strong,
.nb-detail-content a b {
    color: inherit;
    font-weight: 700;
}

body.theme-light .nb-detail-content strong,
body.theme-light .nb-detail-content b {
    color: #1f2937;
    font-weight: 700;
}

/* Italic text */
.nb-detail-content em,
.nb-detail-content i {
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
}

body.theme-light .nb-detail-content em,
body.theme-light .nb-detail-content i {
    color: #4b5563;
}

/* Links in content */
.nb-detail-content a {
    color: #A89F91;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.nb-detail-content a:hover {
    color: #c4b8a8;
}

body.theme-light .nb-detail-content a {
    color: #1f2937;
}

body.theme-light .nb-detail-content a:hover {
    color: #374151;
}

.nb-detail-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

body.theme-light .nb-detail-content h2 {
    color: #1f2937;
}

/* Converted p+strong subheadings: same visual as original (SEO h2, no layout change) */
.nb-detail-content h2.nb-detail-subheading {
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

body.theme-light .nb-detail-content h2.nb-detail-subheading {
    color: #1f2937;
}

.nb-detail-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-weight: 600;
}

body.theme-light .nb-detail-content h3 {
    color: #1f2937;
}

.nb-detail-content h4 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.625rem;
    color: #ffffff;
    font-weight: 600;
}

body.theme-light .nb-detail-content h4 {
    color: #1f2937;
}

.nb-detail-content h5 {
    font-size: 1.125rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
}

body.theme-light .nb-detail-content h5 {
    color: #1f2937;
}

.nb-detail-content h6 {
    font-size: 1rem;
    margin-top: 0.875rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
}

body.theme-light .nb-detail-content h6 {
    color: #1f2937;
}

.nb-detail-content ul,
.nb-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.nb-detail-content li {
    margin-bottom: 0.5rem;
}

.nb-detail-content blockquote {
    border-left: 4px solid #A89F91;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

body.theme-light .nb-detail-content blockquote {
    color: #4b5563;
    border-left-color: #1f2937;
}

.nb-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* News Detail Layout - Image Left, Content Right */
.nb-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nb-detail-layout {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
    }
}

.nb-detail-image-wrapper {
    position: relative;
}

@media (min-width: 1024px) {
    .nb-detail-image-wrapper {
        position: sticky;
        top: 6rem;
        align-self: start;
    }
}

.nb-detail-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
}

/* Previous/Next Navigation */
.nb-prev-next-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    position: relative;
    z-index: 100;
    isolation: isolate;
}

.nb-prev-next-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer !important;
    position: relative;
    z-index: 101 !important;
    pointer-events: auto !important;
    user-select: none;
    touch-action: manipulation;
}

.nb-prev-next-btn:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateX(2px);
    text-decoration: none;
}

.nb-prev-next-btn.nb-prev-btn:hover {
    transform: translateX(-2px);
}

body.theme-light .nb-prev-next-btn {
    color: #4b5563;
}

body.theme-light .nb-prev-next-btn:hover {
    color: #1f2937;
}

.nb-prev-next-btn svg {
    transition: transform 0.2s ease;
}

.nb-prev-next-btn:hover svg {
    transform: scale(1.1);
}

/* Related Articles */
.nb-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-light .nb-related {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.nb-related-title {
    font-family: var(--site-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff; /* Tam beyaz (dark theme) */
}

body.theme-light .nb-related-title {
    color: #000000 !important; /* Tam siyah (light theme) */
}

/* Empty State */
.nb-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.nb-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    opacity: 0.3;
}

.nb-empty-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

body.theme-light .nb-empty-title {
    color: #1f2937;
}

.nb-empty-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

body.theme-light .nb-empty-text {
    color: #6b7280;
}

/* Hero Section - CSP Compliant Classes */
.nb-hero-section {
    position: relative;
    z-index: 0;
}

/* Remove bottom padding when hero has image or video to eliminate gap */
/* Direct override of Tailwind py-8 and lg:py-12 classes */
/* Target all possible combinations */
section.nb-hero-section img.nb-hero-image-wrapper,
section.nb-hero-section .nb-hero-video-wrapper,
section.nb-hero-section div.nb-hero-image-wrapper {
    /* These elements exist, so parent should have no bottom padding */
}

/* Ensure hero section maintains proper height and removes bottom padding */
.nb-page section.nb-hero-section:has(img.nb-hero-image-wrapper),
.nb-page section.nb-hero-section:has(.nb-hero-video-wrapper),
.nb-page section.nb-hero-section:has(div.nb-hero-image-wrapper),
section.nb-hero-section:has(img.nb-hero-image-wrapper),
section.nb-hero-section:has(.nb-hero-video-wrapper),
section.nb-hero-section:has(div.nb-hero-image-wrapper) {
    padding-bottom: 0 !important;
    padding-block-end: 0 !important;
    overflow: hidden !important; /* Hide overflow from top padding coverage */
    min-height: 36vh !important; /* Force minimum height */
}

@media (min-width: 768px) {
    .nb-page section.nb-hero-section:has(img.nb-hero-image-wrapper),
    .nb-page section.nb-hero-section:has(.nb-hero-video-wrapper),
    .nb-page section.nb-hero-section:has(div.nb-hero-image-wrapper),
    section.nb-hero-section:has(img.nb-hero-image-wrapper),
    section.nb-hero-section:has(.nb-hero-video-wrapper),
    section.nb-hero-section:has(div.nb-hero-image-wrapper) {
        min-height: 40vh !important; /* Force md minimum height */
    }
}

/* Make hero image/video fill the entire section height */
.nb-hero-video-wrapper {
    position: absolute;
    top: -96px; /* Cover pt-24 padding */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: calc(36vh + 96px) !important; /* Match section min-height + padding */
}

.nb-hero-video-wrapper video {
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .nb-hero-video-wrapper {
        min-height: calc(40vh + 96px) !important; /* Match md:min-h-[40vh] + padding */
    }
}

/* Fix for img tag in detail pages - ensure it fills section height */
img.nb-hero-image-wrapper {
    position: absolute !important;
    top: -96px !important; /* Cover pt-24 padding */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 0;
    width: 100% !important;
    height: 100% !important; /* Override Tailwind h-full, fill section height */
    min-height: calc(36vh + 96px) !important; /* Match section min-height + padding */
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

@media (min-width: 768px) {
    img.nb-hero-image-wrapper {
        min-height: calc(40vh + 96px) !important; /* Match md:min-h-[40vh] + padding */
    }
}

/* Fix for div with background-image in index pages */
div.nb-hero-image-wrapper {
    position: absolute;
    top: -96px; /* Cover pt-24 padding */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: calc(60vh + 96px) !important; /* Match index page min-height + padding */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    div.nb-hero-image-wrapper {
        min-height: calc(67vh + 96px) !important; /* Match index page md:min-h-[67vh] + padding */
    }
}

.nb-hero-overlay {
    position: absolute;
    top: -96px; /* Cover pt-24 padding */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    min-height: calc(36vh + 96px) !important; /* Match section min-height + padding */
    background-color: rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
    .nb-hero-overlay {
        min-height: calc(40vh + 96px) !important; /* Match md:min-h-[40vh] + padding */
    }
}

/* Light theme: Remove dark overlay from hero image/video */
body.theme-light .nb-hero-overlay {
    background-color: transparent !important; /* Karanlık efekt kaldırıldı */
}

.nb-hero-content {
    position: relative;
    z-index: 2;
}

/* Light theme: News/Blog hero text - white, no shadow */
body.theme-light .nb-hero-section .nb-hero-content {
    color: rgba(255, 255, 255, 0.95) !important; /* Off-white, not pure white */
}

body.theme-light .nb-hero-section .nb-hero-content .nb-hero-title,
body.theme-light .nb-hero-section .nb-hero-content .nb-hero-title.text-white,
body.theme-light section.nb-hero-section .nb-hero-content .nb-hero-title.text-white,
body.theme-light section.relative[class*="min-h"].nb-hero-section .nb-hero-content .nb-hero-title.text-white,
body.theme-light .nb-hero-section .nb-hero-content p,
body.theme-light .nb-hero-section .nb-hero-content p.text-white,
body.theme-light .nb-hero-section .nb-hero-content p.text-white\/60,
body.theme-light section.nb-hero-section .nb-hero-content p.text-white,
body.theme-light section.nb-hero-section .nb-hero-content p.text-white\/60,
body.theme-light section.relative[class*="min-h"].nb-hero-section .nb-hero-content p.text-white,
body.theme-light section.relative[class*="min-h"].nb-hero-section .nb-hero-content p.text-white\/60,
body.theme-light .nb-hero-section .nb-hero-content .text-white {
    color: rgba(255, 255, 255, 0.95) !important; /* Off-white, not pure white */
    text-shadow: none !important; /* Gölge efekti kaldırıldı */
}

.nb-prev-next-nav-z {
    position: relative;
    z-index: 100;
}

/* Gallery Lightbox Styles */
.nb-gallery-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
}

.nb-gallery-lightbox.active {
    display: flex !important;
}

.nb-gallery-lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    position: relative;
    z-index: 10000;
}

.nb-gallery-lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.875rem;
    z-index: 10001;
}

/* Lightbox nav/close buttons above image on mobile */
.nb-gallery-lightbox .lightbox-close-btn,
.nb-gallery-lightbox .lightbox-prev-btn,
.nb-gallery-lightbox .lightbox-next-btn {
    z-index: 10002;
}

/* Scrollbar Hide - moved from inline styles */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Load More Button Hidden State */
.load-more-hidden {
    display: none !important;
}

/* ================================================
   Related Articles/News Carousel
   ================================================ */

/* Header with title and navigation */
.nb-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.nb-related-header .nb-related-title {
    margin-bottom: 0;
}

/* Navigation buttons container */
.nb-related-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Navigation button styles */
.nb-related-nav-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(168, 159, 145, 0.5);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A89F91;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nb-related-nav-btn:hover {
    background-color: rgba(168, 159, 145, 0.2);
    border-color: #A89F91;
}

.nb-related-nav-btn:active {
    transform: scale(0.95);
}

.nb-related-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

body.theme-light .nb-related-nav-btn {
    border-color: rgba(107, 114, 128, 0.5);
    color: #374151;
}

body.theme-light .nb-related-nav-btn:hover {
    background-color: rgba(107, 114, 128, 0.1);
    border-color: #374151;
}

/* =================================
   News/Blog Card Titles - Premium Colors
   ================================= */

/* News/Blog kart başlıkları - Premium renkler (hem dark hem light tema) */
.news-blog-card-title,
.news-section h3.news-blog-card-title,
.blog-section h3.news-blog-card-title,
.news-section article h3.news-blog-card-title,
.blog-section article h3.news-blog-card-title,
.news-section .group h3.news-blog-card-title,
.blog-section .group h3.news-blog-card-title {
    font-weight: 300 !important; /* Light weight, bold değil */
}

/* Dark theme - Premium gold rengi */
body.theme-dark .news-blog-card-title,
body.theme-dark .news-section h3.news-blog-card-title,
body.theme-dark .blog-section h3.news-blog-card-title,
body.theme-dark .news-section article h3.news-blog-card-title,
body.theme-dark .blog-section article h3.news-blog-card-title {
    color: #D3C6AE !important; /* Warm pale gold (dark theme) - philosophy-title ile aynı */
}

/* Light theme - Premium gold-brown rengi */
body.theme-light .news-blog-card-title,
body.theme-light .news-section h3.news-blog-card-title,
body.theme-light .blog-section h3.news-blog-card-title,
body.theme-light .news-section article h3.news-blog-card-title,
body.theme-light .blog-section article h3.news-blog-card-title {
    color: #6B5F4C !important; /* Deep gold-brown (light theme) - philosophy-title ile aynı */
}

/* Carousel wrapper */
.nb-related-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Carousel track */
.nb-related-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Disable transition during drag for real-time movement */
.nb-related-carousel.is-dragging {
    cursor: grabbing;
    transition: none !important;
}

/* Prevent child elements (links/images) from triggering native drag while dragging */
.nb-related-carousel.is-dragging * {
    pointer-events: none;
}

/* Carousel item */
.nb-related-item {
    flex: 0 0 calc(33.333% - 1rem);
}

/* Responsive: Tablet - 2 cards */
@media (max-width: 1024px) {
    .nb-related-item {
        flex: 0 0 calc(50% - 0.75rem);
        
    }
}

/* Responsive: Mobile - 1 card (full width scroll) */
@media (max-width: 640px) {
    .nb-related-item {
        flex: 0 0 100%;
        min-width: unset;
    }
    
    .nb-related-nav-btn {
        width: 2.25rem;
        height: 2.25rem;
    }
}

/* WCAG 2.1: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .nb-page *,
    .nb-page *::before,
    .nb-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



