/* Blog Page Specific Styles */
body.page-template-page-blog {
    background-color: #f8f9fa;
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #5bbcb0 0%, #2c3e50 100%);
    padding: 80px 0 100px;
    color: white;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 30px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-size: 1.1rem;
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #5bbcb0;
    font-size: 1.2rem;
}

.category-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px;
    margin-top: 30px;
    justify-content: center;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cat-pill:hover,
.cat-pill.active {
    background: white;
    color: #5bbcb0;
    transform: translateY(-3px);
}

/* Featured Post */
.featured-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    background: white;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-img {
    height: 400px;
    object-fit: cover;
}

/* Standard Post Card */
.post-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-img {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    color: #5bbcb0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-body {
    padding: 25px;
}

.post-meta {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-title {
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #5bbcb0;
}

.post-excerpt {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f2f6;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: #5bbcb0;
}

.mini-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.mini-post img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.mini-post-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.4;
}

.mini-post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: #f1f2f6;
    color: #7f8c8d;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #5bbcb0;
    color: white;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .blog-header {
        padding: 50px 0 70px;
        border-radius: 0 0 30px 30px;
    }

    .category-scroll {
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }

    .featured-img {
        height: 250px;
    }
}