:root {
    --base-clr: #11121a;
    --line-clr: #42434a;
    --hover-clr: #222533;
    --text-clr: #e6e6ef;
    --accent-clr: #5e63ff;
    --secondary-text-clr: #b0b3c1;
}



/* Container */
.container {
    max-width: 1400px;
    margin: 90px auto 2rem;
    padding: 0 5%;
}

/* Page Header */
.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-clr) 0%, var(--accent-clr) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--secondary-text-clr);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Featured News */
.featured-section {
    margin-bottom: 3rem;
}

.featured-news {
    background: var(--hover-clr);
    border: 1px solid var(--line-clr);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: all 0.3s;
    cursor: pointer;
}

.featured-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(94, 99, 255, 0.3);
}

.featured-image {
    height: 500px;
    background: var(--base-clr);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    position: relative;
    overflow: hidden;
}

.featured-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(94, 99, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(94, 99, 255, 0.2);
    color: var(--accent-clr);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.featured-content h2 {
    font-size: 2.5rem;
    color: var(--text-clr);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-meta {
    display: flex;
    gap: 2rem;
    color: var(--secondary-text-clr);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-excerpt {
    color: var(--secondary-text-clr);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.btn-read-more {
    background: var(--accent-clr);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.btn-read-more:hover {
    background: #4a4fff;
    transform: translateX(5px);
}

/* Categories Filter */
.categories-section {
    margin-bottom: 3rem;
    text-align: center;
}

.categories-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--hover-clr);
    color: var(--text-clr);
    border: 1px solid var(--line-clr);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: var(--accent-clr);
    border-color: var(--accent-clr);
    color: white;
    transform: translateY(-2px);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--hover-clr);
    border: 1px solid var(--line-clr);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(94, 99, 255, 0.3);
    border-color: var(--accent-clr);
}

.news-image {
    height: 200px;
    background: var(--base-clr);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-clr);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    color: var(--text-clr);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--secondary-text-clr);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--line-clr);
}

.news-date {
    color: var(--secondary-text-clr);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-author {
    color: var(--secondary-text-clr);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination button {
    background: var(--hover-clr);
    color: var(--text-clr);
    border: 1px solid var(--line-clr);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination button:hover {
    background: var(--accent-clr);
    border-color: var(--accent-clr);
    color: white;
}

.pagination button.active {
    background: var(--accent-clr);
    border-color: var(--accent-clr);
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--hover-clr);
    border: 1px solid var(--line-clr);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-clr), #7b7fff);
}

.newsletter-section h2 {
    font-size: 2rem;
    color: var(--text-clr);
    margin-bottom: 1rem;
}

.newsletter-section p {
    color: var(--secondary-text-clr);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem;
    background: var(--base-clr);
    border: 1px solid var(--line-clr);
    border-radius: 10px;
    color: var(--text-clr);
    font-size: 1rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-clr);
}

.newsletter-submit {
    background: var(--accent-clr);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-submit:hover {
    background: #4a4fff;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--base-clr);
    padding: 3rem 5% 2rem;
    border-top: 1px solid var(--line-clr);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--secondary-text-clr);
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-news {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 300px;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .featured-content h2 {
        font-size: 1.8rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}