/* ================= VARIABLES ================= */
:root {
    --blue: #3B82F6;
    --blue-accent: #0ea5e9;
    --purple: #3B82F6;
    --text-light: #ffffff;
    --text-muted: #BEB69B;
    --text-dark: #0F172A;
    --bg-dark: #0F172A;
    --bg-light: #f9fafb;
    --border-color: #1E293B;
}

/* ================= BASE ================= */
.news-page {
    margin-top: 0;
    font-family: "Poppins", sans-serif;
    background: var(--bg-dark);
}

/* ================= HERO SECTION ================= */
.news-hero {
    height: 60vh;
    width: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.news-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.65) 0%,
        rgba(15, 23, 42, 0.55) 100%
    );
}

.news-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
}

.news-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.news-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ================= SEARCH SECTION ================= */
.news-search {
    background: var(--bg-light);
    padding: 60px 0;
    border-bottom: 1px solid #e5e7eb;
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid #e5e7eb;
    background: white;
    color: var(--text-dark);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.filter-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.filter-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

/* ================= FEATURED NEWS ================= */
.news-featured {
    background: white;
    padding: 80px 0;
}

.news-featured > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-featured h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.featured-news-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: white;
}

.featured-image {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

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

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--blue-accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
}

.news-category {
    background: var(--blue);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-date {
    color: #999;
    font-size: 0.95rem;
    font-weight: 500;
}

.read-more {
    display: inline-block;
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.read-more:hover {
    color: var(--purple);
    gap: 5px;
}

/* ================= NEWS GRID ================= */
.news-grid-section {
    background: white;
    padding: 80px 0;
}

.news-grid-section > .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-grid-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 50px;
}

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

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
    transform: translateY(-5px);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.news-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--purple);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta-small {
    display: flex;
    gap: 16px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #999;
}

.news-date-small {
    font-weight: 500;
}

.read-time {
    color: #ccc;
}

.news-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.news-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.news-link:hover {
    color: var(--purple);
}

/* ================= LOAD MORE ================= */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: 40px 0 0 0;
}

.load-more-btn {
    padding: 14px 50px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.load-more-btn:hover {
    background: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

/* ================= NEWSLETTER ================= */
.news-newsletter {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    padding: 80px 0;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.form-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.newsletter-btn {
    padding: 14px 40px;
    background: var(--blue-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: "Poppins", sans-serif;
}

.newsletter-btn:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .news-hero h1 {
        font-size: 2.5rem;
    }

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

    .featured-news-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .featured-image {
        height: 300px;
    }

    .featured-content h3 {
        font-size: 1.5rem;
    }

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

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

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

    .newsletter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .news-hero {
        height: 50vh;
    }

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

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

    .news-search {
        padding: 40px 0;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .news-featured,
    .news-grid-section {
        padding: 50px 0;
    }

    .featured-news-card {
        gap: 20px;
    }

    .featured-image {
        height: 250px;
    }

    .featured-content h3 {
        font-size: 1.25rem;
    }

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

    .news-card-image {
        height: 180px;
    }

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

    .newsletter-text h2 {
        font-size: 1.75rem;
    }

    .newsletter-text p {
        font-size: 0.95rem;
    }

    .search-input,
    .newsletter-input,
    .filter-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}
