/* ============================================================
   NEWS — Haberler (listing, detail, homepage widget)
   ============================================================ */

/* ── HOMEPAGE LATEST NEWS WIDGET ──────────────────────────── */
.hp-news-section {
    padding: 90px 0 100px;
    background: #ffffff;
}

.hp-news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 16px;
}

.hp-news-header-left .section-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e63946;
    margin-bottom: 10px;
}

.hp-news-header-left h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.hp-news-header-right a {
    font-size: 14px;
    font-weight: 600;
    color: #e63946;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
    white-space: nowrap;
}

.hp-news-header-right a:hover { gap: 10px; }

/* Grid */
.hp-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── NEWS CARD (used both on homepage and listing page) ────── */
.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.09);
}

/* Card image */
.news-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
    text-decoration: none;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.news-card-image-placeholder i {
    font-size: 48px;
    color: #94a3b8;
}

/* Category badge on image */
.news-card-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
}

/* Card body */
.news-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.news-card-meta i { font-size: 12px; }

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.news-card-title:hover { color: #e63946; }

.news-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.news-card-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.news-card-link {
    font-size: 13px;
    font-weight: 700;
    color: #e63946;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.news-card-link:hover { gap: 9px; color: #c8102e; }


/* ── LISTING PAGE (haberler) ───────────────────────────────── */
.news-listing-section {
    padding: 80px 0 100px;
    background: #f8fafc;
}

.news-listing-header {
    margin-bottom: 52px;
}

.news-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 56px;
    gap: 8px;
    flex-wrap: wrap;
}

.news-pagination .page-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.news-pagination .page-link:hover,
.news-pagination .page-item.active .page-link {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
}


/* ── DETAIL PAGE (post) ────────────────────────────────────── */

/* Hero */
.news-detail-hero {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: #0f172a;
}

.news-detail-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    transition: transform 8s ease;
}

.news-detail-hero:hover .news-detail-hero-bg {
    transform: scale(1.04);
}

.news-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.2) 60%);
}

.news-detail-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 52px;
}

.news-detail-hero-content .page-breadcrumb {
    margin-bottom: 16px;
}

.news-detail-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.news-detail-hero-meta .meta-badge {
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
}

.news-detail-hero-meta .meta-date,
.news-detail-hero-meta .meta-views {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-detail-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    max-width: 860px;
}

/* Detail content area */
.news-detail-section {
    padding: 70px 0 100px;
    background: #fff;
}

.news-detail-body {
    max-width: 820px;
    margin: 0 auto;
}

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

.news-detail-content h2, .news-detail-content h3 {
    font-weight: 700;
    color: #0f172a;
    margin-top: 36px;
    margin-bottom: 14px;
}

.news-detail-content h2 { font-size: 26px; }
.news-detail-content h3 { font-size: 20px; }

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

.news-detail-content ul, .news-detail-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.news-detail-content ul li, .news-detail-content ol li {
    margin-bottom: 8px;
}

.news-detail-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 24px 0;
}

.news-detail-content blockquote {
    border-left: 4px solid #e63946;
    padding: 14px 24px;
    margin: 28px 0;
    background: #fef2f2;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #64748b;
}

/* Share bar */
.news-detail-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.news-detail-share span {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.news-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.news-share-btn:hover { opacity: 0.85; }
.news-share-btn.fb  { background: #1877f2; color: #fff; }
.news-share-btn.tw  { background: #1da1f2; color: #fff; }
.news-share-btn.li  { background: #0a66c2; color: #fff; }
.news-share-btn.wp  { background: #25d366; color: #fff; }

/* Related news */
.news-related-section {
    padding: 70px 0 100px;
    background: #f8fafc;
}

.news-related-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-related-title i { color: #e63946; }

.news-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hp-news-grid,
    .news-listing-grid,
    .news-related-grid { grid-template-columns: repeat(2, 1fr); }

    .news-detail-title { font-size: 30px; }
    .news-detail-hero { height: 380px; }
    .hp-news-header-left h2 { font-size: 28px; }
}

@media (max-width: 575.98px) {
    .hp-news-grid,
    .news-listing-grid,
    .news-related-grid { grid-template-columns: 1fr; }

    .news-detail-title { font-size: 24px; }
    .news-detail-hero { height: 300px; }
    .hp-news-header { flex-direction: column; align-items: flex-start; }
    .news-card-image { height: 180px; }
}

/* ============================================================
   NEWS DETAIL PAGE — nd-* classes
   ============================================================ */

/* ── Header band (dark, below navbar) ── */
.nd-header-band {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 170px 0 90px;
    min-height: 340px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Dekoratif arka plan çizgileri */
.nd-header-band::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 60px solid rgba(230, 57, 70, 0.06);
    pointer-events: none;
}

.nd-header-band::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 40px solid rgba(255,255,255,0.03);
    pointer-events: none;
}

.nd-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 24px;
}

.nd-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.nd-breadcrumb .breadcrumb-item a:hover { color: #fff; }

.nd-breadcrumb .breadcrumb-item.active {
    color: rgba(255,255,255,0.35);
    font-size: 13px;
}

.nd-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.25);
    content: "›";
}

/* Meta satırı */
.nd-header-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.nd-cat-pill {
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
}

.nd-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

.nd-meta-item i { font-size: 13px; }

/* Başlık */
.nd-title {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    max-width: 880px;
}

/* ── Kapak görseli ── */
.nd-cover-image {
    background: #f8fafc;
    padding: 0;
    margin-bottom: 0;
}

.nd-cover-wrap {
    max-width: 900px;
    margin: 0 auto;
    transform: translateY(-32px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.14);
}

.nd-cover-wrap img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

/* ── İçerik bölümü ── */
.nd-content-section {
    padding: 20px 0 80px;
    background: #fff;
}

.nd-article-wrap {
    max-width: 820px;
    margin: 0 auto;
}

/* Lead / özet */
.nd-lead {
    font-size: 19px;
    font-weight: 500;
    color: #374151;
    line-height: 1.75;
    border-left: 4px solid #e63946;
    padding: 14px 22px;
    background: #fef2f2;
    border-radius: 0 8px 8px 0;
    margin-bottom: 32px;
}

/* ── Paylaş bar (üst — sadece ikonlar) ── */
.nd-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nd-share-top {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.nd-share-bar span {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.nd-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    color: #fff;
}

.nd-share-btn:hover { opacity: 0.85; transform: translateY(-2px); color: #fff; }
.nd-share-btn.nd-fb { background: #1877f2; }
.nd-share-btn.nd-tw { background: #000; }
.nd-share-btn.nd-li { background: #0a66c2; }
.nd-share-btn.nd-wp { background: #25d366; }

/* ── Makale gövdesi ── */
.nd-body {
    font-size: 16px;
    line-height: 1.85;
    color: #374151;
    margin-bottom: 48px;
}

.nd-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 40px 0 16px;
    padding-top: 8px;
    border-top: 2px solid #f1f5f9;
}

.nd-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 32px 0 12px;
}

.nd-body p { margin-bottom: 18px; }

.nd-body ul, .nd-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.nd-body li { margin-bottom: 8px; }

.nd-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 24px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.nd-body blockquote {
    border-left: 4px solid #e63946;
    padding: 14px 22px;
    margin: 28px 0;
    background: #fef2f2;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #64748b;
    font-size: 17px;
}

.nd-body strong { color: #0f172a; }

.nd-body a { color: #e63946; text-decoration: underline; }

/* ── Paylaş bar (alt — tam butonlar) ── */
.nd-share-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 32px;
}

.nd-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nd-share-btn-full {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}

.nd-share-btn-full:hover { opacity: 0.85; color: #fff; }
.nd-share-btn-full.nd-fb { background: #1877f2; }
.nd-share-btn-full.nd-tw { background: #000; }
.nd-share-btn-full.nd-li { background: #0a66c2; }
.nd-share-btn-full.nd-wp { background: #25d366; }

/* Geri dön */
.nd-back-link { margin-top: 8px; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .nd-title { font-size: 30px; }
    .nd-cover-wrap { transform: translateY(-20px); }
    .nd-cover-wrap img { height: 320px; }
}

@media (max-width: 575.98px) {
    .nd-title { font-size: 24px; }
    .nd-header-band { padding: 60px 0 70px; min-height: 260px; }
    .nd-cover-wrap img { height: 220px; }
    .nd-share-buttons { gap: 8px; }
    .nd-share-btn-full { font-size: 12px; padding: 8px 14px; }
}
