/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 120px 0 60px;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Article Cards */
.article-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-card.featured {
    flex-direction: row;
}

.article-image {
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.article-excerpt {
    color: #6c757d;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    color: var(--secondary-color);
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* Featured Article Specific Styles */
.article-card.featured .article-image {
    flex: 0 0 40%;
}

.article-card.featured .article-image img {
    height: 100%;
}

.article-card.featured .article-content {
    flex: 0 0 60%;
    padding: 30px;
}

.article-card.featured .article-title {
    font-size: 2rem;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Search Widget */
.search-form .form-control {
    border: 1px solid #e9ecef;
    padding: 12px 15px;
    border-radius: 10px 0 0 10px;
}

.search-form .btn {
    border-radius: 0 10px 10px 0;
    padding: 12px 20px;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    color: #6c757d;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    color: var(--primary-color);
}

.categories-list span {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Recent Posts Widget */
.recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    flex: 0 0 80px;
}

.recent-post-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.recent-post-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.recent-post-content h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: var(--primary-color);
}

.post-date {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Tags Widget */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags a {
    background: #f8f9fa;
    color: #6c757d;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags a:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Pagination */
.blog-pagination .page-link {
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.blog-pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: #ffffff;
}

.blog-pagination .page-link:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .article-card.featured {
        flex-direction: column;
    }

    .article-card.featured .article-image {
        flex: 0 0 100%;
    }

    .article-card.featured .article-content {
        flex: 0 0 100%;
    }

    .blog-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .blog-hero {
        padding: 100px 0 40px;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .article-title {
        font-size: 1.3rem;
    }

    .article-card.featured .article-title {
        font-size: 1.5rem;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .blog-hero-title {
        font-size: 1.8rem;
    }

    .blog-hero-subtitle {
        font-size: 1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .recent-post {
        flex-direction: column;
    }

    .recent-post-image {
        margin-bottom: 10px;
    }
} 