/**
 * Flatsome Child - Builder Element: News
 * Class: news
 */

.news {
    position: relative;
    padding: 50px 0 70px;
    background-color: #f8fafc;
    box-sizing: border-box;
    width: 100%;
}

.news .news-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   Filter & Search Header Bar
   ========================================================================== */
.news .news-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.news .news-cat-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news .news-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.news .news-tab-btn:hover {
    background: #f1f5f9;
    color: var(--ltc-primary, #006039);
    border-color: #cbd5e1;
}

.news .news-tab-btn.active {
    background: var(--ltc-primary, #006039);
    color: #ffffff !important;
    border-color: var(--ltc-primary, #006039);
    box-shadow: 0 4px 12px rgba(0, 96, 57, 0.25);
}

.news .news-search-box {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.news .news-search-input {
    width: 100%;
    height: 42px;
    padding: 8px 44px 8px 18px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 13.5px;
    color: #334155;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.news .news-search-input:focus {
    border-color: var(--ltc-primary, #006039);
    box-shadow: 0 0 0 3px rgba(0, 96, 57, 0.12);
}

.news .news-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    padding: 0;
    transition: color 0.2s ease;
}

.news .news-search-btn:hover {
    color: var(--ltc-primary, #006039);
}

/* ==========================================================================
   Two Column Grid (Left: Main Articles, Right: Sidebar)
   ========================================================================== */
.news .news-main-grid {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.news .news-feed-col {
    flex: 0 0 calc(68% - 16px);
    max-width: calc(68% - 16px);
    box-sizing: border-box;
}

.news .news-sidebar-col {
    flex: 0 0 calc(32% - 16px);
    max-width: calc(32% - 16px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ==========================================================================
   Horizontal Article Cards
   ========================================================================== */
.news .news-cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news .news-item-card {
    display: flex;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef2f6;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
}

.news .news-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 96, 57, 0.09);
    border-color: rgba(0, 96, 57, 0.18);
}

.news .news-item-thumb {
    flex: 0 0 240px;
    max-width: 240px;
    height: 185px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.news .news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

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

.news .news-item-content {
    flex: 1;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.news .news-item-badge {
    align-self: flex-start;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: #e6f3ec;
    color: var(--ltc-primary, #006039);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 8px;
}

.news .news-item-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ltc-heading, #0f172a);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news .news-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news .news-item-title a:hover {
    color: var(--ltc-primary, #006039);
}

.news .news-item-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news .news-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #94a3b8;
}

.news .news-item-meta-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.news .news-meta-point svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

.news .news-readmore-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ltc-primary, #006039) !important;
    font-weight: 700;
    font-size: 12.5px;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

.news .news-readmore-link:hover {
    transform: translateX(3px);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.news .news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.news .news-page-item {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news .news-page-item:hover {
    background: #f1f5f9;
    color: var(--ltc-primary, #006039);
    border-color: #cbd5e1;
}

.news .news-page-item.active {
    background: var(--ltc-primary, #006039);
    color: #ffffff;
    border-color: var(--ltc-primary, #006039);
    font-weight: 700;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.news .news-widget {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef2f6;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Widget 1: Featured Posts */
.news .news-featured-header {
    background: var(--ltc-primary, #006039);
    color: #ffffff;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news .news-featured-list {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news .news-featured-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.news .news-featured-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
}

.news .news-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news .news-featured-info {
    flex: 1;
}

.news .news-featured-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news .news-featured-title a {
    color: inherit;
    text-decoration: none;
}

.news .news-featured-title a:hover {
    color: var(--ltc-primary, #006039);
}

.news .news-featured-date {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Widget 2: CTA Box */
.news .news-cta-widget {
    background: linear-gradient(135deg, #004d2e 0%, #006039 100%);
    border-radius: 14px;
    padding: 30px 24px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 96, 57, 0.2);
}

.news .news-cta-icon-wrap {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.news .news-cta-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.news .news-cta-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.news .news-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1.5px solid #ffffff;
    color: #ffffff !important;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.news .news-cta-btn:hover {
    background: #ffffff;
    color: var(--ltc-primary, #006039) !important;
    transform: translateY(-2px);
}

/* Widget 3: Categories List */
.news .news-cat-widget {
    padding: 20px;
}

.news .news-cat-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ltc-heading, #004d2e);
    margin: 0 0 14px 0;
}

.news .news-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news .news-cat-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.news .news-cat-item-link:hover,
.news .news-cat-item-link.active {
    background: #e6f3ec;
    color: var(--ltc-primary, #006039);
    font-weight: 600;
}

.news .news-cat-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news .news-cat-count {
    font-size: 12.5px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 991px) {
    .news .news-main-grid {
        flex-direction: column;
    }

    .news .news-feed-col,
    .news .news-sidebar-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .news .news-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .news .news-search-box {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .news .news-item-card {
        flex-direction: column;
    }

    .news .news-item-thumb {
        flex: 0 0 180px;
        max-width: 100%;
        width: 100%;
    }

    .news .news-item-content {
        padding: 16px;
    }
}
