/* Blog Header */
.blog-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/blog-header.jpg');
    background-size: cover;
    background-position: center;
    padding: 180px 0 100px;
    text-align: center;
    color: var(--light-color);
}

.blog-header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.blog-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Blog Content */
.blog-content {
    padding: 100px 0;
    background-color: var(--light-color);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.blog-posts {
    flex-basis: 68%;
}

.blog-post {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    background: var(--light-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-10px);
}

.blog-image {
    height: 300px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-text {
    padding: 30px;
}

.blog-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.blog-meta span {
    margin-right: 20px;
}

.blog-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.blog-text h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.blog-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.read-more:hover::after {
    width: 100%;
}

/* Blog Sidebar */
.blog-sidebar {
    flex-basis: 28%;
}

.sidebar-widget {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Search Form */
.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background-color: var(--light-color);
    transition: var(--transition);
}

.search-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background-color: var(--dark-color);
}

/* Categories */
.categories li {
    margin-bottom: 10px;
    transition: var(--transition);
}

.categories li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.categories li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Recent Posts */
.recent-posts li {
    margin-bottom: 15px;
}

.recent-posts li a {
    display: flex;
    align-items: center;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    margin-right: 15px;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recent-posts li a:hover .recent-post-image img {
    transform: scale(1.1);
}

.recent-post-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: var(--transition);
}

.recent-post-text span {
    font-size: 0.8rem;
    color: #666;
}

.recent-posts li a:hover h4 {
    color: var(--primary-color);
}

/* Subscribe Form */
.subscribe-form {
    display: flex;
    flex-direction: column;
}

.subscribe-form input {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    background-color: var(--light-color);
    transition: var(--transition);
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.sidebar-widget p {
    margin-bottom: 15px;
}

/* Active Link Style */
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-posts,
    .blog-sidebar {
        flex-basis: 100%;
    }

    .blog-sidebar {
        margin-top: 60px;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-post {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 576px) {
    .blog-header {
        padding: 150px 0 60px;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .blog-text h2 {
        font-size: 1.3rem;
    }

    .blog-image {
        height: 200px;
    }
} 