/* News Page Styles */
.news-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.featured-news {
    margin-bottom: 60px;
}

.news-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 40px;
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-card.featured .news-image {
    height: 300px;
}

.news-card:not(.featured) .news-image {
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--highlight-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-content {
    padding: 30px;
}

.news-card.featured .news-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-source {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
}

.news-date {
    color: var(--text-muted);
    font-size: 14px;
}

.news-title {
    margin-bottom: 15px;
}

.news-card.featured .news-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
}

.news-card:not(.featured) .news-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--accent-color);
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-card.featured .news-excerpt {
    font-size: 16px;
}

.news-card:not(.featured) .news-excerpt {
    font-size: 14px;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--gradient-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-actions {
    text-align: center;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--gradient-primary);
    padding: 60px 0;
    color: white;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-text p {
    font-size: 16px;
    opacity: 0.9;
}

.newsletter-form {
    flex-shrink: 0;
}

.newsletter-form form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.newsletter-form input {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design for News Page */
@media (max-width: 768px) {
    .news-card.featured {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured .news-image {
        height: 250px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .newsletter-form form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .news-content {
        padding: 25px;
    }
    
    .news-card.featured .news-content {
        padding: 30px;
    }
    
    .news-card.featured .news-title {
        font-size: 24px;
    }
    
    .news-card:not(.featured) .news-title {
        font-size: 16px;
    }
    
    .newsletter-text h3 {
        font-size: 24px;
    }
}
/* Article Preview Modal */
.news-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.article-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.article-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.article-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-light);
    background: var(--light-bg);
}

.article-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--border-light);
    color: var(--text-dark);
}

.article-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.article-iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.article-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.article-fallback {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 30px;
}

.fallback-content h4 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.article-meta .source {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
}

.article-meta .date {
    color: var(--text-muted);
    font-size: 14px;
}

.article-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.article-content strong {
    color: var(--text-dark);
    font-weight: 700;
}

.article-highlight {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius-md);
    margin: 25px 0;
    border-left: 4px solid var(--accent-color);
}

.article-highlight h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.article-highlight ul {
    list-style: none;
    padding: 0;
}

.article-highlight li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.article-highlight li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.article-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
}

/* Responsive Design for Article Modal */
@media (max-width: 768px) {
    .article-modal-content {
        width: 95%;
        height: 95%;
    }
    
    .article-modal-header {
        padding: 15px 20px;
    }
    
    .article-modal-header h3 {
        font-size: 18px;
    }
    
    .article-fallback {
        padding: 20px;
    }
    
    .fallback-content h4 {
        font-size: 20px;
    }
    
    .article-content p {
        font-size: 15px;
    }
    
    .news-actions {
        flex-direction: column;
    }
    
    .news-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .article-fallback {
        padding: 15px;
    }
    
    .fallback-content h4 {
        font-size: 18px;
    }
    
    .article-highlight {
        padding: 20px;
        margin: 20px 0;
    }
}
/* News Image Overlay Styles */
.news-image-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.news-image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
}

.news-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    z-index: 2;
    position: relative;
    opacity: 0.9;
}

.news-overlay-text {
    z-index: 2;
    position: relative;
}

.news-overlay-text h4 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-overlay-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.news-card.featured .news-image .news-image-overlay {
    height: 100%;
}

.news-card:not(.featured) .news-image .news-image-overlay {
    height: 100%;
}

.news-card:hover .news-image-overlay {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 50%, #533a71 100%);
}

@media (max-width: 768px) {
    .news-image-overlay {
        padding: 25px;
    }
    
    .news-logo {
        height: 55px;
        margin-bottom: 12px;
    }
    
    .news-overlay-text h4 {
        font-size: 18px;
    }
    
    .news-overlay-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-image-overlay {
        padding: 25px;
    }
    
    .news-logo {
        height: 50px;
        margin-bottom: 12px;
    }
    
    .news-overlay-text h4 {
        font-size: 16px;
    }
    
    .news-overlay-text p {
        font-size: 12px;
    }
}
/* Text-only News Card Styles */
.news-card.text-only {
    display: block;
    padding: 0;
}

.news-content-only {
    padding: 40px;
    position: relative;
}

.news-card.featured.text-only {
    max-width: 800px;
    margin: 0 auto;
    background: var(--gradient-card);
    border: 2px solid var(--border-light);
}

.news-content-only .news-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--highlight-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-content-only .news-meta {
    margin-bottom: 20px;
}

.news-content-only .news-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.news-content-only .news-excerpt {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 25px;
}

.news-content-only .news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive adjustments for text-only news */
@media (max-width: 768px) {
    .news-content-only {
        padding: 30px;
    }
    
    .news-content-only .news-title {
        font-size: 26px;
    }
    
    .news-content-only .news-excerpt {
        font-size: 16px;
    }
    
    .news-content-only .news-badge {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .news-content-only {
        padding: 25px;
    }
    
    .news-content-only .news-title {
        font-size: 22px;
    }
    
    .news-content-only .news-excerpt {
        font-size: 15px;
    }
    
    .news-content-only .news-badge {
        top: 12px;
        right: 12px;
        font-size: 11px;
        padding: 5px 10px;
    }
}
/* Text-only News Grid Cards */
.news-grid .news-card.text-only {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    overflow: visible;
}

.news-grid .news-card.text-only:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-grid .news-card.text-only .news-content-only {
    padding: 30px;
}

.news-grid .news-card.text-only .news-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.news-grid .news-card.text-only .news-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
}

.news-grid .news-card.text-only .news-meta {
    margin-bottom: 15px;
}

.news-grid .news-card.text-only .news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Update news grid layout for text-only cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Responsive adjustments for text-only news grid */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-grid .news-card.text-only .news-content-only {
        padding: 25px;
    }
    
    .news-grid .news-card.text-only .news-title {
        font-size: 16px;
    }
    
    .news-grid .news-card.text-only .news-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-grid .news-card.text-only .news-content-only {
        padding: 20px;
    }
    
    .news-grid .news-card.text-only .news-title {
        font-size: 15px;
    }
    
    .news-grid .news-card.text-only .news-excerpt {
        font-size: 12px;
    }
}

/* Newsletter Section Enhancements */
.newsletter-section {
    background: var(--gradient-primary);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="newsletter-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23newsletter-dots)"/></svg>');
}

.newsletter-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 0;
}

.newsletter-text h3 {
    color: var(--text-white);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
}

.newsletter-form {
    flex-shrink: 0;
}

.newsletter-form form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.newsletter-form input {
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 14px;
    min-width: 280px;
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--text-white);
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

/* Responsive Newsletter */
@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 0;
    }

    .newsletter-form form {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }

    .newsletter-form input {
        min-width: auto;
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
        padding: 14px 24px;
    }
}
