/* Base Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.blog-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
}

.blog-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-header h1 {
    font-size: 1.8rem;
}

.blog-header h1 a {
    color: white;
}

.blog-header nav ul {
    display: flex;
    list-style: none;
}

.blog-header nav ul li {
    margin-left: 1.5rem;
}

.blog-header nav ul li a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.blog-header nav ul li a.active {
    color: var(--accent-color);
}

.blog-header nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.blog-header nav ul li a:hover:after {
    width: 100%;
}

/* Main Content Styles */
.blog-main {
    padding: 3rem 0;
}

.blog-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.blog-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Grid Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.blog-content h3 a {
    color: inherit;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    margin-bottom: 1.5rem;
    color: #555;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.read-more i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Footer Styles */
.blog-footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.blog-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-footer p {
    margin-bottom: 1rem;
}

.blog-footer nav ul {
    display: flex;
    list-style: none;
}

.blog-footer nav ul li {
    margin: 0 1rem;
}

.blog-footer nav ul li a {
    color: white;
}

.blog-footer nav ul li a:hover {
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .blog-header .container {
        flex-direction: column;
    }

    .blog-header h1 {
        margin-bottom: 1rem;
    }

    .blog-header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .blog-header nav ul li {
        margin: 0 0.75rem 0.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-intro h2 {
        font-size: 2rem;
    }

    .blog-content {
        padding: 1.25rem;
    }
}