/* Premium News Section Styles */

/* Base news grid and cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(243, 244, 246, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

html.back-dark body .news-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 136, 203, 0.15);
    border-color: rgba(0, 136, 203, 0.3);
}

html.back-dark body .news-card:hover {
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

/* Image zoom effect */
.news-card-img {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
    /* 5:3 Aspect Ratio */
    background: #f3f4f6;
}

.news-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Badges */
.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0088cb;
    color: #ffffff;
    font-size: 10px;
    font-family: 'SpartanSemiBold', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 136, 203, 0.3);
}

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #6b7280;
    font-family: 'SpartanMedium', sans-serif;
}

html.back-dark body .news-meta {
    color: #9ca3af;
}

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

.news-meta svg {
    width: 12px;
    height: 12px;
}

.news-card-title {
    font-size: 18px;
    line-height: 1.4;
    font-family: 'SpartanSemiBold', sans-serif;
    font-weight: 700;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

html.back-dark body .news-card-title a {
    color: #f3f4f6;
}

.news-card-title a:hover {
    color: #0088cb !important;
}

html.back-dark body .news-card-title a:hover {
    color: #38bdf8 !important;
}

.news-card-text {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

html.back-dark body .news-card-text {
    color: #9ca3af;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(243, 244, 246, 1);
    font-size: 12px;
}

html.back-dark body .news-card-footer {
    border-color: #1f2937;
}

.news-author-name {
    font-family: 'SpartanSemiBold', sans-serif;
    font-weight: 600;
    color: #374151;
}

html.back-dark body .news-author-name {
    color: #d1d5db;
}

.news-readmore {
    color: #0088cb;
    font-family: 'SpartanSemiBold', sans-serif;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.news-readmore:hover {
    color: #030c26 !important;
    transform: translateX(3px);
}

html.back-dark body .news-readmore:hover {
    color: #38bdf8 !important;
}

/* Sidebar styling overrides */
.news-sidebar-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(243, 244, 246, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

html.back-dark body .news-sidebar-box {
    background: #111827;
    border-color: #1f2937;
}

.news-sidebar-title {
    font-size: 16px;
    font-family: 'SpartanBold', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-b: 2px solid #0088cb;
    position: relative;
}

.news-sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #0088cb;
}

/* News List Category Widget */
.news-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-cat-list li {
    margin-bottom: 12px;
}

.news-cat-list li:last-child {
    margin-bottom: 0;
}

.news-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-family: 'SpartanMedium', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

html.back-dark body .news-cat-list a {
    background: #1f2937;
    color: #d1d5db;
}

.news-cat-list a:hover,
.news-cat-list a.active {
    background: #0088cb;
    color: #ffffff !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 136, 203, 0.2);
}

.news-cat-count {
    background: rgba(229, 231, 235, 1);
    color: #4b5563;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

html.back-dark body .news-cat-count {
    background: #374151;
    color: #9ca3af;
}

.news-cat-list a:hover .news-cat-count,
.news-cat-list a.active .news-cat-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Tags cloud */
.news-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-tag-pill {
    font-size: 11px;
    font-family: 'SpartanMedium', sans-serif;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

html.back-dark body .news-tag-pill {
    background: #1f2937;
    color: #d1d5db;
    border-color: #374151;
}

.news-tag-pill:hover {
    background: #0088cb;
    color: #ffffff !important;
    border-color: #0088cb;
    transform: scale(1.03);
}

/* Details Page (Show Page) */
.news-details-author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-top: 30px;
    margin-bottom: 30px;
}

html.back-dark body .news-details-author-card {
    background: #1f2937;
    border-color: #374151;
}

.news-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0088cb;
}

.news-author-info {
    display: flex;
    flex-direction: column;
}

.news-author-role {
    font-size: 10px;
    text-transform: uppercase;
    color: #9ca3af;
    font-family: 'SpartanBold', sans-serif;
    font-weight: 700;
}

/* Detail page tags */
.news-details-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed rgba(2, 3, 52, 0.1);
}

/* Search widget */
.news-search-box {
    display: flex;
    gap: 8px;
}

.news-search-input {
    flex-grow: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    background: #ffffff;
}

html.back-dark body .news-search-input {
    background: #1f2937;
    border-color: #374151;
    color: #ffffff;
}

.news-search-input:focus {
    border-color: #0088cb;
    box-shadow: 0 0 0 3px rgba(0, 136, 203, 0.15);
}

.news-search-btn {
    background: #0088cb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-family: 'SpartanSemiBold', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.news-search-btn:hover {
    background: #030c26;
}

/* ============================================================
   Haberler Index Page — tema1 native layout enhancements
   ============================================================ */

.haberler-index-page {
    padding: 70px 0 90px;
}

.haberler-index-page .back-title.haberler-section-title h2 {
    margin-bottom: 0;
    font-size: 28px;
    line-height: 38px;
}

.haberler-count-badge {
    display: inline-block;
    background: rgba(0, 136, 203, 0.1);
    color: #0088cb;
    font-size: 12px;
    font-family: 'SpartanSemiBold', sans-serif;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

html.back-dark body .haberler-count-badge {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

.haberler-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #0088cb;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 30px;
}

html.back-dark body .haberler-filter-bar {
    background: #111827;
    border-color: #1f2937;
}

.haberler-filter-label {
    font-size: 13px;
    color: #6b7280;
    font-family: 'SpartanMedium', sans-serif;
}

.haberler-filter-tag {
    font-size: 14px;
    font-family: 'SpartanSemiBold', sans-serif;
    font-weight: 700;
    color: #0088cb;
}

.haberler-filter-clear {
    margin-left: auto;
    font-size: 12px;
    font-family: 'SpartanSemiBold', sans-serif;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f3f4f6;
    transition: all 0.2s ease;
}

.haberler-filter-clear:hover {
    background: #0088cb;
    color: #ffffff !important;
}

html.back-dark body .haberler-filter-clear {
    background: #1f2937;
    color: #d1d5db;
}

/* Featured hero */
.haberler-featured-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.haberler-featured-list .image-area {
    border-radius: 12px;
    overflow: hidden;
}

.haberler-featured-list .image-area img {
    width: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.haberler-featured-list .image-area .back-btm-content h3 {
    font-size: clamp(22px, 3vw, 36px);
    line-height: 1.3;
}

/* Highlight cards */
.haberler-highlight-card li .image-areas {
    border-radius: 10px;
    overflow: hidden;
}

.haberler-highlight-card li .image-areas img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.haberler-highlight-card li .back-btm-content p {
    font-size: 14px;
    line-height: 24px;
    color: #6b7280;
    margin: 8px 0 12px;
}

html.back-dark body .haberler-highlight-card li .back-btm-content p {
    color: #9ca3af;
}

/* List posts */
.haberler-list-posts {
    margin-top: 0;
    padding-left: 0;
}

.haberler-list-posts li {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

html.back-dark body .haberler-list-posts li {
    background: #111827;
    border-color: #1f2937;
}

.haberler-list-posts li:hover {
    box-shadow: 0 12px 30px rgba(0, 136, 203, 0.1);
    border-color: rgba(0, 136, 203, 0.25);
    transform: translateY(-2px);
}

.haberler-list-posts li .image-areas {
    border-radius: 10px;
    overflow: hidden;
}

.haberler-list-posts li .image-areas img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.haberler-list-posts li .back-btm-content p {
    font-size: 14px;
    line-height: 24px;
    color: #6b7280;
    margin: 8px 0 10px;
}

html.back-dark body .haberler-list-posts li .back-btm-content p {
    color: #9ca3af;
}

.haberler-inline-tags a {
    font-size: 11px;
    color: #0088cb;
    text-decoration: none;
    margin-right: 8px;
    font-family: 'SpartanMedium', sans-serif;
}

.haberler-inline-tags a:hover {
    text-decoration: underline;
}

/* Sidebar */
.haberler-sidebar-categories {
    margin-bottom: 10px;
}

.haberler-sidebar-categories li div {
    border-radius: 8px;
    overflow: hidden;
}

.haberler-sidebar-latest {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.haberler-sidebar-latest li {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0 0 24px;
}

.haberler-sidebar-latest li:last-child {
    margin-bottom: 0;
}

.haberler-sidebar-latest li .image-areas {
    flex: 0 0 35%;
    max-width: 35%;
    padding-right: 16px;
}

.haberler-sidebar-latest li .back-btm-content {
    flex: 0 0 65%;
    max-width: 65%;
}

.haberler-sidebar-latest li .back-btm-content .back-cates {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    font-family: 'SpartanMedium', sans-serif;
    color: #0088cb;
    text-decoration: none;
}

.haberler-sidebar-latest li .back-btm-content .back-cates:hover {
    color: #030c26 !important;
}

.haberler-sidebar-latest li .back-btm-content h3 {
    font-size: 15px;
    line-height: 24px;
    margin: 4px 0 8px;
}

.haberler-sidebar-latest li .back-btm-content h3 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.haberler-sidebar-latest li .back-btm-content h3 a:hover {
    color: #0088cb !important;
}

html.back-dark body .haberler-sidebar-latest li .back-btm-content h3 a {
    color: #f3f4f6;
}

.haberler-sidebar-latest li .back-btm-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.haberler-sidebar-latest li .back-btm-content ul li {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.haberler-sidebar-latest li .back-btm-content ul li svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.haberler-sidebar-latest li .image-areas img {
    border-radius: 8px;
    width: 100%;
    height: 72px;
    object-fit: cover;
}

.back-blog-page-single .back-title.back-small-title h2 {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 20px;
}

.news-tag-pill.is-active {
    background: #0088cb;
    color: #ffffff !important;
    border-color: #0088cb;
}

/* Empty state */
.haberler-empty-state {
    text-align: center;
    padding: 70px 30px;
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
}

html.back-dark body .haberler-empty-state {
    background: #111827;
    border-color: #374151;
}

.haberler-empty-icon {
    color: #9ca3af;
    margin-bottom: 20px;
}

.haberler-empty-state h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.haberler-empty-state p {
    color: #6b7280;
    margin-bottom: 24px;
}

html.back-dark body .haberler-empty-state p {
    color: #9ca3af;
}

/* Pagination */
.haberler-pagination .pagination {
    gap: 6px;
}

.haberler-pagination .page-link {
    border-radius: 8px;
    color: #374151;
    border-color: #e5e7eb;
    font-family: 'SpartanMedium', sans-serif;
    font-size: 13px;
    padding: 8px 14px;
}

.haberler-pagination .page-item.active .page-link {
    background: #0088cb;
    border-color: #0088cb;
}

.haberler-pagination .page-link:hover {
    background: #0088cb;
    border-color: #0088cb;
    color: #ffffff;
}

@media (max-width: 991px) {
    .haberler-index-page {
        padding: 50px 0 70px;
    }

    .haberler-featured-list .image-area img {
        min-height: 280px;
    }

    .haberler-filter-clear {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .haberler-index-page .back-title.haberler-section-title h2 {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 10px;
    }

    .haberler-featured-list .image-area .back-btm-content {
        padding: 24px 20px;
    }

    .haberler-list-posts li {
        padding: 14px;
    }
}