/* =====================================================
   NEWS PAGE STYLES - Clean Without Overrides
   ===================================================== */

/* =============================================================================
   PAGE LAYOUT SECTIONS
   ============================================================================= */

/* News Title Section */
.news-title-section {
    margin-top: 80px;
    padding: 60px 0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.news-title-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin: 0;
    position: relative;
}

.news-title-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: rgba(33, 124, 118, 1);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Brief Intro Section - Stay Informed */
.brief-intro {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('../img/home/maximize.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.intro-content-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-content-centered h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.intro-content-centered p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e5e7eb;
    margin-bottom: 2rem;
}

/* News Section */
.news-section {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================================================
   NEWS ARTICLE COMPONENTS
   ============================================================================= */

/* Featured Article */
.news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.news-featured .news-image {
    height: 400px;
    overflow: hidden;
}

.news-featured .news-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Regular Articles */
.news-article {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-article:hover {
    transform: translateY(-5px);
}

.news-article .news-image {
    height: 200px;
    overflow: hidden;
}

.news-article .news-content {
    padding: 1.5rem;
}

/* =============================================================================
   SHARED ARTICLE ELEMENTS
   ============================================================================= */

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

.news-featured:hover .news-image img,
.news-article:hover .news-image img {
    transform: scale(1.05);
}

/* Article Meta */
.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-category {
    background: rgba(33, 124, 118, 0.1);
    color: rgba(33, 124, 118, 1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.news-date {
    color: #6b7280;
}

/* Article Typography */
.news-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1f2937;
    line-height: 1.3;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
    line-height: 1.3;
}

.news-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Read More Links */
.news-read-more {
    color: rgba(33, 124, 118, 1);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.news-read-more:hover {
    color: rgba(33, 124, 118, 0.8);
}

.news-read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.news-read-more:hover::after {
    transform: translateX(3px);
}

/* =============================================================================
   NEWSLETTER COMPONENT
   ============================================================================= */

.newsletter-form {
    margin-top: 2rem;
}

.newsletter-signup {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-signup input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-signup input:focus {
    outline: none;
    border-color: rgba(33, 124, 118, 1);
    box-shadow: 0 0 0 3px rgba(33, 124, 118, 0.1);
}

/* =============================================================================
   ANIMATIONS - News Page Specific
   ============================================================================= */

/* Immediate visibility for page titles and intro content */
.news-title-section .animate-fade-in-up,
.news-title-section h2,
.brief-intro .animate-fade-in-up,
.intro-content-centered h2,
.intro-content-centered p {
    opacity: 1;
    transform: translateY(0);
    user-select: text;
    pointer-events: auto;
}

/* Standard animations for news articles */
.news-section .animate-on-scroll,
.news-section .animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.news-section .animate-on-scroll.animate,
.news-section .animate-fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.animate-fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.animate-fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

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

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .news-title-section h2 {
        font-size: 2.2rem;
    }

    .intro-content-centered h2 {
        font-size: 2rem;
    }

    .intro-content-centered p {
        font-size: 1rem;
    }

    .brief-intro {
        background-attachment: scroll;
        padding: 80px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-featured {
        grid-template-columns: 1fr;
    }
    
    .news-featured .news-image {
        height: 200px;
    }
    
    .newsletter-signup {
        flex-direction: column;
    }
    
    .newsletter-signup input {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .news-title-section h2 {
        font-size: 1.8rem;
    }

    .intro-content-centered h2 {
        font-size: 1.8rem;
    }
    
    .news-content h2 {
        font-size: 1.5rem;
    }
    
    .news-content h3 {
        font-size: 1.2rem;
    }
}