/* News Modal Styles */

.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
    padding: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.news-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.news-modal-header {
    padding: 2rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    position: relative;
}

.news-modal-header h2 {
    margin: 0.5rem 0 0 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.news-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
}

.news-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.news-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* News item modal specific styles */
.news-item-modal .news-modal-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.news-header-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    padding-right: 8rem;
}

.news-header-content .news-badge {
    align-self: flex-start;
    width: auto;
}

.news-modal-logo {
    position: absolute;
    top: 1.5rem;
    right: 5rem;
    height: 60px;
    width: auto;
    opacity: 0.9;
}

.news-item-modal .news-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.news-item-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
    margin-bottom: 0.5rem;
}

.news-item-excerpt {
    font-size: 1.25rem;
    color: #4b5563;
    font-style: italic;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f3f4f6;
    border-left: 4px solid #dc2626;
    border-radius: 4px;
}

.news-item-image,
.news-item-video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.news-item-content {
    line-height: 1.8;
    color: #374151;
    font-size: 1.0625rem;
    white-space: pre-wrap;
}

.news-item-description {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* News card clickable style */
.news-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .news-modal-overlay {
        padding: 1rem;
    }
    
    .news-modal-content {
        max-height: 95vh;
    }
    
    .news-modal-header {
        padding: 1.5rem;
    }
    
    .news-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .news-modal-body {
        padding: 1.5rem;
    }
    
    .news-modal-close {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    
    .news-item-modal .news-modal-close {
        top: 1rem;
        right: 1rem;
    }
    
    .news-modal-logo {
        height: 40px;
        right: 4rem;
        top: 1rem;
    }
    
    .news-header-content {
        padding-right: 5rem;
    }
    
    .news-item-excerpt {
        font-size: 1.125rem;
        padding: 1rem;
    }
    
    .news-item-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .news-modal-header {
        padding: 1rem;
    }
    
    .news-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .news-modal-body {
        padding: 1rem;
    }
    
    .news-modal-logo {
        height: 30px;
        right: 3rem;
        top: 0.75rem;
    }
    
    .news-header-content {
        padding-right: 4rem;
    }
}
