/* ==========================================================================
   PREMIUM NEWS LIST PAGE STYLES
   ========================================================================== */

/* 1. Banner Section */
.news-banner {
    position: relative;
    padding: 80px 0;
    background-color: #eae6df;
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.news-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #eae6df 40%, rgba(234, 230, 223, 0.85) 60%, rgba(234, 230, 223, 0.1) 100%);
    z-index: 1;
}

.news-banner .ctnr {
    position: relative;
    z-index: 2;
}

.news-banner__content {
    max-width: 550px;
}

.news-banner__title {
    font-size: 38px;
    font-weight: 800;
    color: #080808;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.news-banner__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
}

/* 2. Premium Breadcrumbs */
.premium-breadcrumbs {
    background-color: #ffffff;
    padding: 15px 0;
}

/* 3. Category Filter Tabs */
.category-tabs-wrapper {
    padding: 0 0 15px;
}

.category-tabs-flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-item {
    display: inline-block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tab-item:hover {
    border-color: #080808;
    color: #080808;
}

.tab-item.active {
    background-color: #080808;
    border-color: #080808;
    color: #ffffff;
}

/* 4. Layout Row */
.news-layout-row {
    padding: 0 0 30px;
    align-items: flex-start;
}

/* 5. Left Side Content & Main AJAX Wrap */
.news-left-content {
    min-width: 0;
}

.news-bottom {
    display: flex;
    flex-direction: column;
    gap: 40px;
}



.grid-sub-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px 20px;
}

@media (min-width: 481px) {
    .grid-sub-posts {
        grid-template-columns: 1fr 1fr;
    }
}

/* 7. Post Card Styling (BEM: .news-card) */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
}

.news-card__img,
.news-img {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 58.67%;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

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

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

/* Category badge (overlay) */
.news-meta {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.news-cat {
    display: inline-block;
    background-color: #080808;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 3px;
    pointer-events: auto;
    transition: background-color 0.3s ease;
}

.news-cat:hover {
    background-color: #333333;
    color: #ffffff;
}

/* Date badge (overlay) */
.news-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
    background-color: rgba(8, 8, 8, 0.65);
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* Card body */
.news-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 15px;
}

.news-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-name a {
    color: #080808;
    transition: color 0.3s ease;
}

.news-name a:hover {
    color: #666666;
}

/* Hidden by default on standard cards */
.hidden-dess .news-text {
    display: none;
}

.news-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-readmore {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #080808;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-readmore svg {
    transition: transform 0.3s ease;
}

.news-readmore:hover {
    color: #666666;
}

.news-readmore:hover svg {
    transform: translateX(4px);
}

/* BEM Modifier: Featured card */
.news-card--featured {
    min-width: 0;
}

.news-card--featured .news-img {
    padding-bottom: 93%;
}

.news-card--featured .news-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}

.news-card--featured .news-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 8. Inner Grid & Search Grid Results */
.remaining-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px 20px;
    /* margin-top: 40px; */
    border-top: 1px solid #eeeeee;
    padding-top: 40px;
}

@media (min-width: 481px) {
    .remaining-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 769px) {
    .remaining-posts-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.page-inner-grid {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.news-bottom>.row {
    margin-top: 0;
}

/* Override components.posts.search-result styles */
.news-bottom .row {
    row-gap: 35px;
}

.news-bottom .row .news-card {
    height: 100%;
}

/* 9. Pagination Styles (Moved to global style.css) */

/* 10. Sidebar News Widget Styles */
.news-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background-color: #ffffff;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #080808;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    position: relative;
    /* padding-bottom: 10px; */
}

/* .sidebar-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: #080808;
} */

/* Search widget */
.sidebar-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 10px 15px;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.sidebar-search-form:focus-within {
    border-color: #080808;
}

.sidebar-search-form input {
    flex: 1;
    border: none;
    font-size: 14px;
    background: transparent;
    color: #333333;
    width: 100%;
}

.sidebar-search-form input::placeholder {
    color: #a0aec0;
}

.btn-search-submit {
    background: transparent;
    border: none;
    color: #718096;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.btn-search-submit:hover {
    color: #080808;
}

/* Popular posts widget */
.popular-widget {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 15px;
}

.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.popular-post-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f3f3;
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.popular-post-img {
    width: 75px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

.popular-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.popular-post-item:hover .popular-post-img img {
    transform: scale(1.05);
}

.popular-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-post-date {
    font-size: 11px;
    color: #999999;
    margin-bottom: 5px;
}

.popular-post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-title a {
    color: #080808;
    transition: color 0.3s ease;
}

.popular-post-title a:hover {
    color: #666666;
}

/* Newsletter widget */
.newsletter-widget {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
}

.newsletter-widget .sidebar-title {
    padding-bottom: 0;
    margin-bottom: 10px;
}

.newsletter-widget .sidebar-title::after {
    display: none;
}

.newsletter-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 18px;
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
    border: none;
    border-radius: 0;
    /* overflow: visible; */
}

.newsletter-input-group input {
    width: calc(100% - 50px);
    padding: 8px 15px;
    font-size: 13px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background-color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input-group input:focus {
    border-color: #999999;
}

.newsletter-submit-btn {
    background-color: #111111;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 54px;
    /* aspect-ratio: 1; */
    padding: 0 18px;
}

.newsletter-submit-btn:hover {
    background-color: #333333;
}

.newsletter-submit-btn svg {
    stroke: currentColor;
    fill: none;
}

/* 11. Bottom Features Ribbon (Styles moved to SHARED PREMIUM TRUST BAR COMPONENT STYLES in style.css) */
.bottom-features-ribbon {
    background-color: #f8f9fa;
    padding: 50px 0;
    border-top: 1px solid #eaeaea;
    margin-top: 50px;
}

/* 12. No Product Found / Empty animation */
.no-product-found {
    text-align: center;
    padding: 20px 20px;
    background: #fcfcfc;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
}
.content_desc {
    text-align: left;
}
.empty-animation {
    display: inline-block;
    margin-bottom: 20px;
}

.no-product-found h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
}

.no-product-found p {
    font-size: 16px;
    color: #666666;
    max-width: 100%;
    margin-bottom: 15px;
}

.news-list-section {
    padding-bottom: 40px;
    overflow: hidden;
}

.news-list-section .trust-bar-grid {
    background: #f7f7f7;
    border: 0;
}

.news-list-section .trust-bar-item:not(:last-child) {
    border-right: 0;
}

/* 13. Mobile responsiveness overrides */
@media (max-width: 992px) {
    .news-banner {
        padding: 50px 0;
        min-height: auto;
    }

    .news-banner__title {
        font-size: 30px;
        margin-bottom: 5px;
    }

    .news-bottom {
        gap: 20px;
    }

    .news-bottom .row {
        row-gap: 20px;
    }

    .remaining-posts-grid,
    .grid-sub-posts {
        gap: 20px;
    }
}
@media (max-width: 767px) { 
    .no-product-found {
        border: none;
        padding: 0;
    }
}