/* ===== News Section Dark Theme ===== */
.news-section {
    background: #121829;
    color: white;
    padding: 60px 20px;
}

.news-section .section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.news-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: red;
    margin: 10px auto 30px;
}

.news-section .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #bbb;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* ===== News Grid ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== News Card ===== */
.news-card {
    background: #1C1F2A;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 8px 16px rgba(255, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* Hover effect */
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(255, 0, 0, 0.1);
}

/* Image section */
/* ===== News Card Image Display (Desktop + Mobile Optimized) ===== */
.news-card img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background-color: #000;
    border-bottom: 1px solid #222;
}

/* Card content */
.news-card-content {
    padding: 20px;
    flex-grow: 1;
}

.news-card h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
    font-weight: bold;
}

.news-card p {
    font-size: 15px;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* ===== Hidden Expanded Content ===== */
.news-full-content {
    display: none;
    margin-top: 10px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease-in-out;
}

/* ===== Read More Button ===== */
.read-more {
    display: inline-block;
    padding: 10px 18px;
    background-color: transparent;
    color: red;
    border: 2px solid red;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
}

.read-more:hover {
    background-color: red;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

/* ===== Share Buttons ===== */
.share-btn {
    display: inline-block;
    padding: 8px 14px;
    background-color: transparent;
    border: 2px solid red;
    color: red;
    font-weight: bold;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.share-btn:hover {
    background-color: red;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.share-menu a,
.share-menu button {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
    padding: 5px 10px;
    display: block;
}

.share-menu a:hover,
.share-menu button:hover {
    background: rgba(255, 0, 0, 0.15);
    border-radius: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .news-section {
        padding: 40px 15px;
    }

    .news-section .section-title {
        font-size: 28px;
    }

    .news-grid {
        gap: 20px;
    }

    /* ✅ Allow slightly taller image for better appearance on mobile */
    .news-card img {
        max-height: 240px;
    }

    .news-card h3 {
        font-size: 18px;
    }

    .news-card p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .read-more {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* ✅ Slightly increase image size on small devices */
    .news-card img {
        max-height: 280px;
    }
}
