﻿
:root {
    --primary: #1A5F7A;
    --primary-light: #2a7090;
    --primary-dark: #0e4a62;
    --secondary: #FF7F50;
    --accent: #FFC107;
    --light: #F8F9FA;
    --dark: #333333;
    --gray: #6c757d;
    --white: #FFFFFF;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --card-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.news-container {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    margin-bottom: 2rem;
    color: var(--white);
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 0;
}

.hero-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.pulse-icon {
    font-size: 6rem;
    color: var(--secondary);
    animation: pulse 2s infinite;
    opacity: 0.7;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Content Section */
.content-section {
    padding: 2rem 0 4rem;
}

/* Filter Section */
.filter-section {
    margin-bottom: 2.5rem;
    padding: 1rem 0;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    color: var(--gray);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

    .category-tab i {
        margin-right: 0.5rem;
    }

    .category-tab.active {
        background-color: var(--primary);
        color: var(--white);
    }

    .category-tab:hover:not(.active) {
        background-color: var(--light);
        color: var(--primary);
        transform: translateY(-2px);
    }

.search-box {
    position: relative;
    margin-left: auto;
}

    .search-box input {
        padding-right: 3rem;
        border-radius: 50px;
        border: 1px solid #e0e0e0;
        padding: 0.75rem 1.5rem;
        box-shadow: var(--card-shadow);
    }

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3rem;
    border: none;
    background: none;
    color: var(--primary);
    font-size: 1rem;
}

/* Featured News */
.featured-news {
    margin-bottom: 3rem;
}

.featured-article {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-container {
    position: relative;
    height: 350px;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: var(--gray);
    font-size: 4rem;
}

.overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.trending-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--secondary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.featured-content {
    padding: 1.5rem;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.source-logo {
    height: 20px;
    width: auto;
}

.date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--dark);
}

.description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-read:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
    }

.reading-time {
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Trending News */
.trending-news {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

    .trending-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
}

.trending-content {
    flex: 1;
}

.trending-title {
    display: block;
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    transition: color 0.2s;
}

    .trending-title:hover {
        color: var(--primary);
    }

.trending-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray);
}

/* Latest News */
.latest-news {
    margin-top: 3rem;
}

.news-grid {
    margin-top: 1.5rem;
}

.news-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
    }

.card-image {
    position: relative;
    height: 200px;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: var(--gray);
    font-size: 2.5rem;
}

.category-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
}

.card-content {
    padding: 1.2rem;
}

.meta-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.source-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.source-icon {
    height: 18px;
    width: auto;
}

.time-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
}

.read-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

    .read-link:hover {
        color: var(--primary-dark);
    }

.read-time {
    color: var(--gray);
    font-size: 0.8rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 0;
}

.alert {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--light);
    border-left: 4px solid var(--accent);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

    .alert i {
        font-size: 2rem;
        color: var(--accent);
    }

    .alert p {
        margin: 0;
        font-size: 1.1rem;
        color: var(--dark);
    }

/* Newsletter Section */
.newsletter-section {
    margin-top: 4rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    color: white;
    box-shadow: var(--shadow);
}

    .newsletter-section h3 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .newsletter-section p {
        opacity: 0.9;
        margin-bottom: 0;
    }

.subscription-form {
    display: flex;
    gap: 0.5rem;
}

    .subscription-form input {
        border-radius: 50px;
        border: none;
        padding: 0.75rem 1.2rem;
        flex: 1;
    }

.subscribe-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .subscribe-btn:hover {
        background-color: #e06745;
    }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .featured-news, .trending-news {
        margin-bottom: 2rem;
    }

    .category-tabs {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .subscription-form {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .image-container {
        height: 250px;
    }
}