/* ========================================
   LATEST NEWS PAGE STYLES
   ======================================== */

/* Hero Section */
.news-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.news-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.news-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.news-hero h1 i {
    margin-right: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.news-hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Search Section */
.search-section {
    max-width: 700px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    gap: 10px;
    background: #ffffff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
    color: #2d3748;
}

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

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.search-btn i {
    margin-right: 8px;
}

/* Main Content Section */
.news-content {
    padding: 60px 0;
    background: #f7fafc;
}

/* Category Filters */
.category-filters {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-filters h5 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.category-filters h5 i {
    color: #667eea;
    margin-right: 8px;
}

.category-btn {
    display: inline-block;
    padding: 8px 20px;
    margin: 5px 8px 5px 0;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-btn:hover {
    background: #e2e8f0;
    color: #2d3748;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
}

/* News Article Cards */
.news-article {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-left-color: #667eea;
}

/* News Meta Information */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.news-category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-meta-item {
    color: #718096;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta-item i {
    color: #667eea;
    font-size: 0.85rem;
}

/* News Title */
.news-article h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-article h2 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-article h2 a:hover {
    color: #667eea;
}

/* News Description */
.news-description {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: #ffffff;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-block {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-block h4 {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.25rem;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
}

.sidebar-block h4 i {
    color: #f56565;
    margin-right: 8px;
}

/* Popular News Items */
.popular-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
    transition: all 0.3s ease;
}

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

.popular-item:hover {
    background: #f7fafc;
    padding-left: 10px;
    margin-left: -10px;
    border-radius: 8px;
}

.popular-number {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.popular-content {
    flex: 1;
}

.popular-content h6 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.5;
}

.popular-content h6 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-content h6 a:hover {
    color: #667eea;
}

.popular-date {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #ffffff;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.pagination li a:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pagination li a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-results i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #2d3748;
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.no-results p {
    color: #718096;
    font-size: 1.1rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    .sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 60px 0 40px;
    }

    .news-hero h1 {
        font-size: 2rem;
    }

    .news-hero p {
        font-size: 1rem;
    }

    .search-wrapper {
        flex-direction: column;
        border-radius: 12px;
    }

    .search-input,
    .search-btn {
        border-radius: 8px;
    }

    .news-article {
        padding: 20px;
    }

    .news-article h2 {
        font-size: 1.5rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .category-filters {
        padding: 20px;
    }

    .category-btn {
        font-size: 0.9rem;
        padding: 6px 15px;
    }

    .pagination li a {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .news-hero h1 {
        font-size: 1.75rem;
    }

    .news-article h2 {
        font-size: 1.25rem;
    }

    .news-description {
        font-size: 1rem;
    }

    .sidebar-block {
        padding: 20px;
    }

    .popular-content h6 {
        font-size: 0.9rem;
    }
}