/* ---------- Blog Pages ---------- */

/* -------- BLOG LISTING PAGE -------- */
.blog-section-wrapper {
    margin-bottom: 100px;
}

/* ---- Hero Banner ---- */
.blog-hero {
    display: flex;
    align-items: center;
    background: var(--color-grey-light);
    border-radius: 12px;
    overflow: hidden;
    min-height: 280px;
    margin-bottom: 48px;
}

.blog-hero_content {
    flex: 1;
    padding: 48px 56px;
    color: #fff;
}

.blog-hero_subtitle {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 16px;
}

.blog-hero_title {
    font-size: 36px;
    line-height: 44px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0 0 16px;
    max-width: 420px;
}

.blog-hero_desc {
    font-size: 16px;
    line-height: 24px;
    font-weight: var(--font-weight-regular);
    color: var(--color-text);
    margin: 0 0 28px;
    max-width: 380px;
}

.blog-hero_btn {
    display: inline-block;
    color: #ffffff;
    background: var(--color-green-main);
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    font-size: 16px;
    line-height: 24px;
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-hero_btn:hover {
    opacity: 0.9;
}

.blog-hero_img {
    flex: 0 0 auto;
    width: 50%;
    height: 100%;
    overflow: hidden;
    min-width: 400px;
    min-height: 300px;
}

.blog-hero_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Category Tabs ---- */
.blog-categories-section {
    margin-bottom: 40px;
}

.blog-categories_title {
    font-size: 32px;
    line-height: 40px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin: 0 0 24px;
}

.blog-categories_tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.blog-categories_tab {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    font-size: 15px;
    line-height: 24px;
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}

.blog-categories_tab.active {
    background: var(--color-green-main);
    color: #fff;
    border-color: var(--color-green-main);
}

/* ---- Blog Grid (reuses .articles-grid from articles.css) ---- */

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 18px;
}

/* ---- Blog Pagination ---- */
.blog-pagination {
    display: flex;
    justify-content: center;
    padding: 32px 0 60px;
}

.blog-pagination_list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination_item a,
.blog-pagination_item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0 10px;
    text-decoration: none;
    transition: all 0.15s;
}

.blog-pagination_item a:hover {
    background: var(--color-grey-light);
    border-color: #D1D5DB;
}

.blog-pagination_item.active span {
    background: var(--color-green-main);
    color: #fff;
    border-color: var(--color-green-main);
}

.blog-pagination_dots span {
    border: none;
    background: none;
    min-width: auto;
    padding: 0 4px;
}

/* ======== SINGLE BLOG POST ======== */

.blog-single {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.blog-single_title {
    font-size: 28px;
    line-height: 36px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin: 0 0 24px;
}

.blog-single_meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.blog-single_category {
    font-size: 12px;
    line-height: 18px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    letter-spacing: 0px;
    text-transform: uppercase;
}

.blog-single_separator {
    color: #E0E5EB;
    font-size: 12px;
}

.blog-single_date {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0px;
    font-weight: var(--font-weight-regular);
    color: var(--color-text);
}

/* ---- Article Content ---- */
.blog-single_content {
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text);
    font-weight: var(--font-weight-regular);
}

.blog-single_content p {
    margin: 0 0 20px;
}

.blog-single_content h2,
.blog-single_content h3,
.blog-single_content h4 {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin: 32px 0 16px;
}

.blog-single_content h2 {
    font-size: 26px;
    line-height: 34px;
}

.blog-single_content h3 {
    font-size: 22px;
    line-height: 30px;
}

.blog-single_content h4 {
    font-size: 18px;
    line-height: 26px;
}

.blog-single_content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    display: block;
}

.blog-single_content ul,
.blog-single_content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.blog-single_content li {
    margin-bottom: 8px;
    line-height: 26px;
}

.blog-single_content li::marker {
    color: var(--color-text);
}

.blog-single_content blockquote {
    border-left: 4px solid var(--color-green-main);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--color-green-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* ---- Image Carousel in article ---- */
.blog-single_content .swiper {
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
}

.blog-single_content .swiper img {
    margin: 0;
    border-radius: 0;
}

/* ---- Tags & Share Footer ---- */
.blog-single_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 0;
    margin-top: 40px;
    border-top: 1px solid #E5E7EB;
    flex-wrap: wrap;
    gap: 16px;
}

.blog-single_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-single_tag {
    display: inline-block;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    border: 1px solid #00000029;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 22px;
    line-height: 20px;
}

.blog-single_share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-single_share-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.blog-single_share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-text);
    transition: color 0.15s;
}

.blog-single_share-icon:hover {
    color: var(--color-green-main);
}

.blog-single_share-icon svg {
    width: 20px;
    height: 20px;
}

/* ======== RESPONSIVE ======== */

/* Tablet */
@media (max-width: 991px) {
    .blog-hero {
        flex-direction: column;
        min-height: auto;
    }

    .blog-hero_content {
        padding: 36px 32px;
        order: 2;
    }

    .blog-hero_img {
        width: 100%;
        height: 220px;
        order: 1;
    }

    .blog-hero_title {
        font-size: 28px;
        line-height: 36px;
    }

    .blog-single_title {
        font-size: 26px;
        line-height: 34px;
    }
}

/* Large Phone */
@media (max-width: 768px) {
    .blog-hero_content {
        padding: 28px 24px;
    }

    .blog-hero_title {
        font-size: 24px;
        line-height: 32px;
        max-width: 100%;
    }

    .blog-hero_desc {
        font-size: 14px;
        max-width: 100%;
    }

    .blog-categories_title {
        font-size: 24px;
        line-height: 32px;
    }

    .blog-categories_tab {
        font-size: 14px;
        padding: 8px 18px;
    }

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

    .blog-single_title {
        font-size: 22px;
        line-height: 30px;
    }

    .blog-single_content h2 {
        font-size: 22px;
        line-height: 30px;
    }

    .blog-single_content h3 {
        font-size: 18px;
        line-height: 26px;
    }
}

/* Phone */
@media (max-width: 575px) {
    .blog-hero {
        border-radius: 8px;
        margin-bottom: 32px;
    }

    .blog-hero_content {
        padding: 24px 20px;
    }

    .blog-hero_subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .blog-hero_title {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 12px;
    }

    .blog-hero_desc {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 20px;
    }

    .blog-hero_btn {
        font-size: 14px;
        padding: 10px 24px;
    }

    .blog-hero_img {
        height: 180px;
    }

    .blog-categories-section {
        margin-bottom: 24px;
    }

    .blog-categories_title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 16px;
    }

    .blog-categories_tab {
        font-size: 13px;
        padding: 8px 16px;
    }

    .blog-pagination {
        padding: 24px 0 40px;
    }

    .blog-pagination_item a,
    .blog-pagination_item span {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .blog-single_title {
        font-size: 20px;
        line-height: 28px;
    }

    .blog-single_meta {
        gap: 12px;
        margin-bottom: 24px;
    }

    .blog-single_category {
        font-size: 12px;
    }

    .blog-single_date {
        font-size: 13px;
    }

    .blog-single_content {
        font-size: 15px;
        line-height: 24px;
    }

    .blog-single_content img {
        border-radius: 8px;
        margin: 16px 0;
    }

    .blog-single_footer {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 24px;
        padding-top: 20px;
    }

    .blog-single_share {
        width: 100%;
        justify-content: flex-end;
    }
}
