/* Blog Page New Design */

/* Recent Layout */
.recent-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
}

/* Main Featured Post */
.main-featured-post .img-wrap {
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
}

.main-featured-post .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-featured-post:hover .img-wrap img {
    transform: scale(1.05);
}

.main-featured-post .content-wrap h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Side Recent Posts */
.side-post-card:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 992px) {
    .recent-layout {
        grid-template-columns: 1fr;
    }

    .main-featured-post .img-wrap {
        height: 300px;
    }

    .side-post-card .img-wrap {
        flex: 0 0 140px !important;
    }
}

@media (max-width: 576px) {
    .side-post-card {
        flex-direction: column;
    }

    .side-post-card .img-wrap {
        width: 100%;
        height: 200px !important;
        flex: auto !important;
    }
}


/* Category Tabs */
.category-tabs-container {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 0px;
}

.category-tabs {
    display: flex;
    gap: 30px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-item {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    text-decoration: none !important;
    padding-bottom: 15px;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

.tab-item:hover {
    color: #000;
}

.tab-item.active {
    color: #2d6a4f;
    /* Primary Green or user Orange */
    font-weight: 700;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2d6a4f;
    border-radius: 3px 3px 0 0;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Card */
.blog-card-new {
    background: transparent;
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card-new:hover .img-wrap img {
    transform: scale(1.05);
}

.blog-card-new .img-wrap {
    height: 250px;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 15px;
    background-color: #f1f1f1;
}

.blog-card-new .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-new .content-wrap {
    padding: 5px 0 0 0;
    display: flex;
    flex-direction: column;
}

.blog-card-new .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.blog-card-new .category-name {
    font-weight: 700;
    color: #e67e22;
    /* Default accent */
    text-transform: capitalize;
}

.blog-card-new .publish-date {
    color: #888;
    font-weight: 500;
}

.blog-card-new h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0;
}

.blog-card-new h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-new h3 a:hover {
    color: #2d6a4f;
}

/* Section Spacing Fix for Overlapping Footer/Subscribe */
.blog-page-section {
    padding-top: 60px;
    padding-bottom: 180px !important;
    /* Extra padding to prevent Subscribe section (-68px margin-top) from overlapping content */
    background: #fff;
}