/* News Container Modal */
.news-modal-content {
    max-width: 1200px;
    width: 95%;
    height: 90vh;
    background: #050510;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 50px rgba(76, 201, 240, 0.2);
    display: flex;
    flex-direction: column;
}

.news-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.news-brand h2 {
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 5px;
    margin: 0;
    color: var(--accent-color);
}

.news-status {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #ff4444;
    animation: flash 1s infinite;
}

.news-search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 5px 15px;
}

.news-search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px;
    width: 100%;
    outline: none;
}

.news-search-bar button {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.news-categories {
    padding: 1rem 2rem;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    scrollbar-width: none;
}

.news-cat-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.7rem;
}

.news-cat-btn:hover,
.news-cat-btn.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.news-grid {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Custom Scrollbar */
.news-grid::-webkit-scrollbar {
    width: 6px;
}

.news-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.news-grid::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.news-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.news-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-image-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #0a0a20, #1a1a3a);
    font-family: 'Syncopate', sans-serif;
    color: rgba(76, 201, 240, 0.2);
    gap: 10px;
}

.news-image-placeholder i {
    font-size: 2rem;
}

.news-image-placeholder span {
    font-size: 0.6rem;
    letter-spacing: 5px;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-source {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.6rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.news-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin: 0 0 1rem 0;
}

.news-snippet {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-footer-link {
    margin-top: auto;
    font-size: 0.7rem;
    font-family: 'Syncopate';
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    transition: 0.3s;
}

.news-card:hover .news-footer-link {
    color: var(--accent-color);
}

.news-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    gap: 1rem;
}

/* Animation */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInSlide 0.5s ease forwards;
}