:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --light-color: #ffffff;
    --dark-color: #111111;
    --gray-color: #666666;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Hero Section */
.blog-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)), url('https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 60px;
}

.blog-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
    color: #ddd;
}

.blog-hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    color: #ddd;
}

.search-box {
    max-width: 600px;
    margin: 30px auto 0;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 8px;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: var(--light-gray);
    transform: scale(1.05);
}

/* Main Content */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 80px;
}

.blog-posts {
    flex: 1;
    min-width: 300px;
}

.sidebar {
    width: 300px;
}

/* Blog Post Cards */
.blog-post {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #ccc;
}

.post-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--transition);
}

.blog-post:hover .post-image {
    filter: grayscale(0%);
}

.post-content {
    padding: 30px;
}

.post-category {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.post-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 800;
}

.post-meta {
    display: flex;
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 20px;
}

.post-meta span {
    margin-right: 20px;
}

.post-meta i {
    margin-right: 5px;
    color: #999;
}

.post-excerpt {
    color: var(--gray-color);
    margin-bottom: 25px;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--primary-color);
    transition: var(--transition);
}

.read-more:hover {
    color: var(--gray-color);
    border-bottom-color: var(--gray-color);
}

/* Sidebar Styles */
.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--medium-gray);
}

.widget-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    font-weight: 800;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 15px;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 0;
}

.categories-list li a:hover {
    color: var(--gray-color);
    transform: translateX(5px);
}

.categories-list li a span {
    background-color: var(--light-gray);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--gray-color);
    border: 1px solid #ddd;
}

.recent-posts li {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
    filter: grayscale(30%);
    transition: var(--transition);
}

.recent-posts li:hover .recent-post-img {
    filter: grayscale(0%);
}

.recent-post-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 700;
}

.recent-post-content h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.recent-post-content h4 a:hover {
    color: var(--gray-color);
}

.recent-post-content span {
    font-size: 14px;
    color: var(--gray-color);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--light-gray);
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid #ddd;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: white;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 80px 0;
}

.newsletter h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 800;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
    color: #ddd;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px 0 0 50px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 0 35px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--light-gray);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 50px;
        margin-bottom: 15px;
    }

    .newsletter-form button {
        border-radius: 50px;
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px 10px;
    }

    .blog-hero h1 {
        font-size: 36px;
    }

    .blog-hero p {
        font-size: 18px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
    }

    nav {
        width: 100%;
        display: none;
    }

    nav.show {
        display: block;
    }

    nav ul {
        flex-direction: column;
        margin-top: 20px;
    }

    nav ul li {
        margin: 0 0 15px 0;
    }

    .post-meta {
        flex-direction: column;
    }

    .post-meta span {
        margin-bottom: 10px;
    }
}