/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #333;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
}

/* Header/Navigation */
header {
    background: #fff;
    color: var(--dark-color);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

#main-nav ul {
    display: flex;
}

#main-nav ul li a {
    color: var(--dark-color);
    padding: 10px 15px;
    display: block;
    font-weight: 600;
    transition: color 0.3s;
}

#main-nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    color: #ddd;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
}

/* About Us Section */
.about-us {
    padding: 60px 0;
    text-align: center;
    background: #fff;
}

.about-us h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-us p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Featured Articles Section */
.featured-articles {
    padding: 60px 0;
    background: var(--light-color);
}

.featured-articles h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card h3 {
    padding: 15px 15px 5px;
    font-size: 1.4rem;
}

.article-card h3 a {
    color: var(--dark-color);
}

.article-card p {
    padding: 0 15px 15px;
    color: var(--secondary-color);
}

.article-card .read-more {
    display: inline-block;
    padding: 0 15px 15px;
    font-weight: 600;
}

/* Article Page Specific Styles */
.article-page {
    padding: 80px 0;
}

.article-page h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.article-page img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-page p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-links a {
    color: #fff;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

footer p {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Mobile Navigation */
    #main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    }

    #main-nav.active {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    #main-nav ul li a {
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
    }

    .menu-toggle {
        display: block;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
}
