/* News & Blog Section - Extracted from 5_news_blog_section.html */
/* Scoped to avoid conflicts with existing site styles */

/* Reduce banner height on news pages (overrides site-wide 500px) */
.inner-banner-sec {
    height: 300px;
}

/* Header Section */
.news-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 40px 50px;
    text-align: center;
}

.news-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.news-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* Main Container */
.news-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 40px;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.3s;
}

.filter-tab:hover {
    border-color: #cbd5e0;
}

.filter-tab.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.search-filter {
    display: flex;
    gap: 10px;
}

.search-input {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    min-width: 250px;
}

.search-input:focus {
    border-color: #667eea;
}

.rss-btn {
    padding: 10px 20px;
    background: #f97316;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.rss-btn:hover {
    background: #ea580c;
}

/* Featured News */
.featured-section {
    margin-bottom: 25px;
}

.news-container .section-title {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.featured-main {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.featured-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.featured-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.featured-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #e53e3e;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.featured-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-meta {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    gap: 15px;
    align-items: center;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.featured-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.featured-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
}

.featured-item-meta {
    font-size: 12px;
    color: #a0aec0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.news-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.news-image-overlay .news-category {
    align-self: flex-start;
    margin-bottom: 6px;
}

.news-overlay-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.news-card:hover .news-read-more {
    color: #fff;
}

.news-card .news-content {
    padding: 20px;
}

.news-category {
    display: inline-block;
    padding: 4px 10px;
    background: #bee3f8;
    color: #2c5282;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.news-category.press-release { background: #feebc8; color: #7c2d12; }
.news-category.event { background: #c6f6d5; color: #22543d; }
.news-category.achievement { background: #fce7f3; color: #831843; }
.news-category.policy { background: #e0e7ff; color: #3730a3; }

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.news-source {
    font-size: 12px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date {
    font-size: 12px;
    color: #a0aec0;
}

.read-more {
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Press Release Section */
.press-releases {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.press-list {
    list-style: none;
    padding: 0;
}

.press-item {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
}

.press-item:hover {
    background: #f7fafc;
}

.press-item:last-child {
    border-bottom: none;
}

.press-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.press-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.press-date {
    font-size: 12px;
    color: #a0aec0;
    white-space: nowrap;
    margin-left: 15px;
}

.press-content {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 10px;
}

.press-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.press-source {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

.press-link {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

.press-item:hover .press-link {
    text-decoration: underline;
}

/* Pagination */
.news-container .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.news-container .page-btn {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.3s;
}

.news-container .page-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.news-container .page-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Newsletter Signup */
.newsletter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.newsletter h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.newsletter p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.newsletter-btn {
    padding: 14px 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .news-container {
        padding: 0 20px;
    }

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

    .search-input {
        min-width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}
