
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --text-color: #333;
    --light-text: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 8px;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #bbdefb;
}

.search-bar {
    display: flex;
    margin-left: 20px;
}

.search-bar input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 200px;
}

.search-bar button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.7)), url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
    animation: fadeIn 1.5s ease;
}

.btn:hover {
    background-color: #c0392b;
}

/* News Categories */
.categories {
    padding: 40px 0;
    background-color: white;
}

.category-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.category-card {
    width: calc(20% - 20px);
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-img {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.category-info {
    padding: 15px;
    text-align: center;
}

.category-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Featured News */
.featured-news {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--primary-color);
}

.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.news-excerpt {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    transition: color 0.3s;
}

.read-more:hover {
    color: #0984e3;
}

/* Latest Articles */
.latest-articles {
    padding: 60px 0;
    background-color: white;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.article-card {
    display: flex;
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-img {
    width: 40%;
    background-size: cover;
    background-position: center;
}


.article-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.article-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #bbb;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #c0392b;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 40px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #bbb;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #bbb;
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        width: calc(33.33% - 20px);
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        margin-top: 20px;
        width: 100%;
        justify-content: space-between;
    }

    .nav-menu li {
        margin-left: 0;
    }

    .search-bar {
        margin: 20px 0 0;
        width: 100%;
    }

    .search-bar input {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .news-container {
        grid-template-columns: 1fr;
    }

    .category-card {
        width: calc(50% - 20px);
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}