/* news.css */
:root {
    --primary: #0056b3;
    --primary-dark: #003366;
    --accent: #00a0e1;
    --light: #f8f9fa;
    --dark: #212529;
    --text-light: #ffffff;
    --text-dark: #333333;
    --section-padding: 5rem 0;
}

/* News Hero Section */
.news-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 86, 179, 0.7)), 
                url('../assets/MAFINA/mafina-images-pack/img4.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-conten {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
}

.hero-conten .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-conten .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.scroll-down {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      animation: bounce 2s infinite;
      cursor: pointer;
    }

/* News Filter Section */
.news-filter {
    background-color: var(--light);
    padding: 2rem 0;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-dark);
}

.filter-select {
    padding: 0.8rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 160, 225, 0.2);
}

/* News Grid Section */
.news-grid-section {
    padding: var(--section-padding);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.news-card.active {
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    background: var(--light);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.news-link:hover {
    color: var(--primary-dark);
}

.news-link:hover i {
    transform: translateX(5px);
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--light);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-button.active {
    background: var(--primary);
    color: white;
}

.pagination-button:hover:not(.active) {
    background: #e0e0e0;
}

.pagination-button.next {
    width: auto;
    padding: 0 1.5rem;
    border-radius: 50px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 51, 102, 0.9)), 
                url('../assets/MAFINA/mafina-images-pack/img2.jpg') center/cover;
    color: white;
    padding: 4rem 0;
}

.newsletter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.newsletter-content {
    flex: 1;
    min-width: 300px;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.newsletter-form {
    flex: 1;
    display: flex;
    min-width: 300px;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.animate-delay-1 {
    animation-delay: 0.3s;
}

.animate-delay-2 {
    animation-delay: 0.6s;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-conten .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-conten .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        max-width: 100%;
    }
}

/* Modal Styles */
        .news-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.8);
            z-index: 1000;
            overflow-y: auto;
            padding: 2rem 0;
        }

        .modal-content {
            background: white;
            max-width: 900px;
            margin: 2rem auto;
            border-radius: 8px;
            box-shadow: 0 5px 30px rgba(0,0,0,0.3);
            animation: modalFadeIn 0.3s ease-out;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .modal-header {
            padding: 1.5rem;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--primary-dark);
        }

        .modal-body {
            padding: 2rem;
        }

        .modal-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 1.5rem;
        }

        .modal-date {
            color: var(--primary);
            margin-bottom: 1rem;
            display: block;
        }

        .modal-category {
            display: inline-block;
            background: var(--light);
            color: var(--primary-dark);
            padding: 0.3rem 1rem;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .modal-title {
            font-size: 2rem;
            color: var(--primary-dark);
            margin-bottom: 1.5rem;
        }

        .modal-text {
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }

        .read-more-btn {
            display: inline-flex;
            align-items: center;
            background: none;
            border: none;
            color: var(--accent);
            font-weight: 600;
            cursor: pointer;
            padding: 0;
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
        }

        .read-more-btn i {
            margin-left: 0.5rem;
            transition: transform 0.3s ease;
        }

        .read-more-btn:hover {
            color: var(--primary-dark);
        }

        .read-more-btn:hover i {
            transform: translateX(5px);
        }