/* News Page Styles */
/* Logo Override */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    background: none !important;
    border-radius: 0;
}

.logo-img::before {
    content: none !important;
}

.news-hero {
    background: linear-gradient(135deg, rgba(60, 76, 156, 0.95) 0%, rgba(90, 107, 184, 0.9) 100%),
                url('../assets/FEL_files/Fhq7bdNfwpjk0KLJ204xOn7xYqq_.png') center/cover no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: var(--white);
    min-height: 400px;
    display: flex;
    align-items: center;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-hero::before,
.hero.news-hero::before {
    display: none !important;
    content: none !important;
}

.news-hero .container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.page-title {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: var(--background-light);
}

.news-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* News Articles Container */
#news-pulses-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

/* News Article Styles */
.news-article {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    padding: 2rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.news-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-width: 0; /* Allow text to shrink */
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.news-date {
    color: var(--text-gray);
}

.news-updated {
    color: var(--text-light);
    font-size: 0.85rem;
}

.markdown-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.markdown-content h1 {
    font-size: 1.5rem;
}

.markdown-content h2 {
    font-size: 1.3rem;
}

.markdown-content h3 {
    font-size: 1.15rem;
}

.markdown-content p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.markdown-content a {
    color: var(--primary-blue);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.news-image-wrapper {
    flex-shrink: 0;
    width: 300px;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.news-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.image-count-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.pulse-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pulse-tag {
    background: var(--accent-blue);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Loading and Error States */
.loading-news,
.error-news {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-news p {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.error-details {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* News Modal Styles */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem;
}

.news-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-medium);
    position: relative;
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.news-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.news-modal-close:hover {
    background: var(--background-light);
    color: var(--text-dark);
}

.news-modal-body {
    padding: 2rem;
}

.news-modal-images {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.news-modal-images img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    #news-pulses-container {
        gap: 1.5rem;
    }

    .news-article {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .news-image-wrapper {
        width: 100%;
        min-width: 100%;
        margin-top: 0;
    }

    .news-modal-content {
        max-height: 95vh;
        margin: 1rem;
    }

    .news-modal-header,
    .news-modal-body {
        padding: 1.5rem;
    }
}

