/* ===== News Tabs ===== */
.news-tabs-wrapper {
    margin-bottom: 24px;
}

.news-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.news-tab {
    padding: 10px 24px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.news-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.news-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 46, 145, 0.25);
}

/* ===== News Count Bar ===== */
.news-count-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.news-count-text {
    font-size: 0.88rem;
    color: var(--gray-500);
}

.news-count-text strong {
    color: var(--gray-700);
}

/* ===== Featured News ===== */
.news-featured {
    margin-bottom: 40px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.news-featured:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.news-featured-img {
    position: relative;
    height: 100%;
    min-height: 300px;
}

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

.news-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-featured-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.news-meta span {
    font-size: 0.8rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-meta .bi {
    font-size: 0.78rem;
}

.news-featured-body h3 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 14px;
}

.news-featured-body p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ===== News Card ===== */
.news-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.news-card-img {
    position: relative;
    overflow: hidden;
}

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

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

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

.news-card-body .news-meta {
    margin-bottom: 10px;
}

.news-card-body h5 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 10px;
}

.news-card-body p {
    font-size: 0.86rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 14px;
    flex: 1;
}

.news-read-more {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.news-read-more:hover {
    gap: 8px;
    color: var(--primary);
}

.news-read-more .bi {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* ===== Pagination ===== */
.news-pagination {
    margin-top: 40px;
}

.news-pagination .page-link {
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 16px;
    border-radius: 8px !important;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.news-pagination .page-link:hover {
    background: rgba(102, 46, 145, 0.06);
    border-color: var(--primary);
    color: var(--primary);
}

.news-pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 46, 145, 0.25);
}

.news-pagination .page-item.disabled .page-link {
    color: var(--gray-300);
    background: var(--gray-50);
}

/* ===== Newsletter ===== */
.newsletter-section {
    background: var(--gray-50);
}

.newsletter-inner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.newsletter-inner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

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

.newsletter-content .section-label {
    color: rgba(255,255,255,0.7);
}

.newsletter-content h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.newsletter-content p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.newsletter-form {
    position: relative;
    z-index: 2;
}

.newsletter-form .input-group {
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    padding: 12px 20px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    background: rgba(255,255,255,0.05);
}

.newsletter-form .btn {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 50px;
    padding: 10px 24px;
    border: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: var(--accent);
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .news-featured-body { padding: 24px; }
    .news-featured-body h3 { font-size: 1.15rem; }
    .newsletter-inner { padding: 36px 28px; }
}

@media (max-width: 767.98px) {
    .news-tabs { gap: 6px; }
    .news-tab { padding: 8px 16px; font-size: 0.82rem; }
    .news-featured-img { min-height: 220px; }
    .news-featured-body { padding: 20px; }
    .news-featured-body h3 { font-size: 1.05rem; }
    .newsletter-inner { padding: 28px 20px; }
    .newsletter-content h3 { font-size: 1.2rem; }
}
