/* Index page specific styles */
.news-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.news-modal .modal-content {
    background-color: var(--secondary-bg);
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 25px;
    animation: scaleIn 0.3s ease;
}

/* News page specific styles */
.news-banner {
    background: linear-gradient(135deg, var(--accent-blue), var(--dark-blue));
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.news-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.news-banner p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.news-grid {
    display: grid;
    gap: 30px;
}

.news-item {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Fix for featured article layout */
.news-item.featured {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Fix the image container to be compact */
.news-image {
    display: flex;
    align-items: center;
    background: none;
    min-height: auto;
    margin-bottom: 15px;
}

.news-image img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
}

/* Fix for content layout */
.news-content {
    padding: 0;
}

/* Improved title styling with icon alignment */
.news-item h3 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
}

.news-item h3 i {
    margin-right: 10px;
}

.news-date {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--medium-text);
    margin-bottom: 15px;
}

.news-date i {
    margin-right: 5px;
}

.news-item p {
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 5px;
}

.read-more:hover {
    background-color: #2980b9;
}

.read-more i {
    transition: transform 0.3s ease;
}

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

/* Improved news columns layout */
.news-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-columns .news-item {
    padding: 20px;
}

.newsletter-signup {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.newsletter-signup h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.newsletter-signup p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.signup-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.signup-form input {
    flex-grow: 1;
    padding: 12px;
    border-radius: 8px 0 0 8px;
    border: none;
}

.signup-form button {
    padding: 0 20px;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.signup-form button:hover {
    background-color: #2980b9;
}

/* Modal improvements */
.news-modal .modal-header {
    padding: 0 0 15px 0;
    margin-bottom: 20px;
}

.news-modal .modal-body {
    padding: 0;
}

.news-modal .modal-footer {
    padding: 20px 0 0 0;
    margin-top: 20px;
}

.news-modal .close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.news-modal .close-modal:hover {
    background: rgba(231, 76, 60, 0.8);
}

.news-modal .close-modal i {
    font-size: 16px;
}

.news-modal .modal-news-date {
    display: block;
    font-size: 0.9rem;
    color: var(--medium-text);
    margin-top: 5px;
}

/* Fix modal image display */
.news-modal .modal-news-image {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.news-modal .modal-news-image img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 15px;
}

/* Fix the title to display next to the image */
.news-modal #modal-news-title {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    margin: 0;
}

.news-modal #modal-news-title i {
    margin-right: 10px;
}

.news-modal .modal-news-content {
    margin-top: 15px;
}

.news-modal .modal-news-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-modal .btn-share-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.news-modal .btn-share-news:hover {
    background-color: #2980b9;
}

/* Different icon colors based on content type */
.fa-podcast {
    color: var(--accent-purple) !important;
}

.fa-users {
    color: var(--accent-green) !important;
}

.fa-calendar-check {
    color: var(--accent-yellow) !important;
}

.fa-bullhorn {
    color: var(--accent-orange) !important;
}

.fa-music {
    color: var(--accent-pink) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-item.featured {
        padding: 15px;
    }

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

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

    .signup-form input {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .signup-form button {
        border-radius: 8px;
        padding: 12px;
    }
}