/* News Page Specific Styles */
.news-container {
    max-width: 1200px;
    margin: 7rem auto 2rem;
    padding: 0 2rem;
}

@media screen and (max-width: 576px) {
    .news-container {
        margin: 11rem auto 2rem;
    }
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.news-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(64, 224, 208, 0.1);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 300px 1fr auto;
    gap: 2rem;
    align-items: start;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 35px rgba(64, 224, 208, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

.news-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-date {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: left;
}

.news-preview {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.article-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.news-content {
    flex-grow: 1;
    padding-right: 1rem;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--light);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.news-description {
    color: #888;
    font-size: 1rem;
    line-height: 1.6;
}

.news-arrow {
    color: var(--primary);
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    align-self: center;
}

.news-item:hover .news-arrow {
    opacity: 1;
    transform: translateX(5px);
}





/* Loading state for iframes */
/*MIGHT NOT NEED THIS ANYMORE*/
.article-preview {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-preview[src] {
    opacity: 1;
}















/*  */
@media (max-width: 1024px) {
    .news-item {
        grid-template-columns: 200px 1fr auto;
    }
}

@media (max-width: 768px) {
    .news-container {
        padding: 0 1rem;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .news-meta {
        align-items: center;
    }

    .news-date {
        text-align: center;
    }

    .news-preview {
        max-width: 400px;
        margin: 0 auto;
    }

    .news-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .news-preview {
        height: 120px;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .news-description {
        font-size: 0.9rem;
    }
}
