/* ==========================================================================
   NEWS PAGE STYLES - news.css
   ========================================================================== */

/* Main Page Container */
.news-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

/* Header Section */
.news-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-header .label {
    color: var(--red);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.news-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.header-line {
    height: 4px;
    width: 80px;
    background: var(--red);
    margin: 0 auto 30px;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   NEWS GRID & CARDS
   ========================================================================== */

.news-grid {
    display: grid;
    /* Forces 3 columns on desktop, scales down automatically */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.news-card {
    background: var(--dark-gray);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--red);
}

/* Image Handling */
.news-image {
    position: relative;
    height: 240px;
    width: 100%;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--red);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
}

/* Content Inside Card */
.news-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: var(--red);
    margin-bottom: 12px;
    font-weight: bold;
}

.news-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--white);
}

.news-content p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the "Read More" to the bottom of the card */
}

/* Link/Button Styling */
.read-more {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: inline-block;
}

.read-more:hover {
    color: var(--red);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 900px) {
    .news-header h1 {
        font-size: 2.2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr; /* Stacks cards on tablet/phone */
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .news-image {
        height: 200px;
    }
}