/* ============================================================
   BLOG — shared
   ============================================================ */

.hero--blog-single {
    background-color: var(--primary);
    padding-top: 36px;
    padding-bottom: 100px;
}
.hero--blog-single .hero__common__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}
@media (min-width: 992px) {
    .hero--blog-single {
        padding-top: 36px;
        padding-bottom: 100px;
        min-height: auto;
    }
}

/* ============================================================
   BLOG INDEX
   ============================================================ */

.blog-index {
    padding: 48px 0 64px;
}
@media (min-width: 992px) {
    .blog-index {
        padding: 64px 0 80px;
    }
}

/* Category pills */
.blog-cats {
    margin-bottom: 40px;
}

.blog-cats--desktop {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
}
@media (min-width: 768px) {
    .blog-cats--desktop {
        display: flex;
        justify-content: center;
    }
}

.blog-cats--mobile {
    display: block;
    position: relative;
}
@media (min-width: 768px) {
    .blog-cats--mobile {
        display: none;
    }
}

.blog-cat-pill {
    display: block;
    width: fit-content;
    border: 2px solid var(--primary);
    border-radius: 250px;
    background: var(--white);
    color: var(--primary-dark);
    font-family: var(--montserrat);
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
    white-space: nowrap;
    cursor: pointer;
    padding: 12px 28px;
    transition: all 0.2s ease-in-out;
}
.blog-cat-pill:hover {
    background-color: rgba(70, 124, 58, 0.1);
}
.blog-cat-pill.is-active {
    background-color: var(--primary);
    color: var(--white);
}

.blog-cat-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary-dark);
    font-family: var(--montserrat);
    cursor: pointer;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
    border-radius: 250px;
}
.blog-cat-dropdown-toggle[aria-expanded="true"] .blog-cat-dropdown-arrow {
    transform: rotate(180deg);
}
.blog-cat-dropdown-arrow {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.blog-cat-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: var(--light);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}
.blog-cat-dropdown .blog-cat-pill {
    width: 100%;
    text-align: center;
}

/* Article grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 576px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.blog-tile {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
}
.blog-tile:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}
.blog-tile__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.blog-tile__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.blog-tile__image img,
.blog-tile__image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.blog-tile:hover .blog-tile__image img {
    transform: scale(1.05);
}
.blog-tile__image-placeholder {
    background: var(--light);
}
.blog-tile__body {
    padding: 20px 22px 24px;
}
.blog-tile__category {
    display: inline-block;
    font-family: var(--poppins);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.blog-tile__title {
    font-family: var(--poppins);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-dark);
    margin-bottom: 8px !important;
}
.blog-tile__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #55605a;
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #55605a;
    padding: 40px 0;
}

/* Load more */
.blog-load-more {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}
.blog-load-more.is-hidden {
    display: none;
}
.js-load-more.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

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

.blog-single__content {
    padding: 28px 0 64px;
}
@media (min-width: 992px) {
    .blog-single__content {
        padding: 36px 0 80px;
    }
}

.blog-single__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
@media (min-width: 992px) {
    .blog-single__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 56px;
    }
}

/* Share / TOC sidebar */
.blog-share {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
@media (min-width: 992px) {
    .blog-share {
        flex-shrink: 0;
        position: sticky;
        top: 120px;
        width: 260px;
    }
}

.blog-share__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
@media (min-width: 992px) {
    .blog-share__header {
        width: 100%;
    }
}

.blog-share__label {
    font-family: var(--poppins);
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 15px;
    white-space: nowrap;
}
.blog-share__label--mobile { display: inline; }
.blog-share__label--desktop { display: none; }
@media (min-width: 992px) {
    .blog-share__label--mobile { display: none; }
    .blog-share__label--desktop { display: inline; }
}

.blog-share__icons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.blog-share__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}
.blog-share__icon:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}
.blog-share__copied {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* Table of Contents — desktop sidebar */
.blog-toc {
    display: none;
}
@media (min-width: 992px) {
    .blog-toc {
        display: flex;
        flex-direction: column;
        padding-top: 14px;
        border-top: 1px solid rgba(0, 51, 0, 0.15);
        width: 100%;
    }
}
.blog-toc__list {
    display: flex;
    flex-direction: column;
}
.blog-toc__link {
    font-size: 13px;
    line-height: 1.45;
    color: var(--primary-dark);
    text-decoration: none;
    display: block;
    opacity: 0.6;
    overflow-wrap: break-word;
    padding: 5px 0;
    transition: opacity 0.2s, color 0.2s;
}
.blog-toc__link:hover,
.blog-toc__link.is-active {
    opacity: 1;
    color: var(--primary);
}

/* Mobile sticky TOC bar */
.blog-toc-bar {
    display: none;
}
@media (max-width: 991px) {
    .blog-toc-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        background: var(--white);
        border-top: 3px solid var(--primary);
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
    }
}
.blog-toc-bar__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--poppins);
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-dark);
    text-align: left;
}
.blog-toc-bar__drawer {
    background: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.blog-toc-bar__drawer.is-open {
    max-height: 60vh;
    overflow-y: auto;
}
.blog-toc-bar__list {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
}
.blog-toc-bar__item {
    border-bottom: 1px solid rgba(0, 51, 0, 0.08);
}
.blog-toc-bar__item:last-child {
    border-bottom: none;
}
.blog-toc-bar__link {
    font-size: 15px;
    color: var(--primary-dark);
    text-decoration: none;
    display: block;
    padding: 12px 0;
    line-height: 1.4;
}
.blog-toc-bar__link:hover {
    color: var(--primary);
}

/* Featured image above content */
.blog-single__thumb {
    margin-bottom: 32px;
    border-radius: 15px;
    overflow: hidden;
}
.blog-single__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article body */
.blog-single__body {
    flex: 1;
    min-width: 0;
    max-width: 720px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--black);
}
.blog-single__body > p:first-of-type {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 18px;
}
.blog-single__body p {
    margin-bottom: 1.2em !important;
}
.blog-single__body h2 {
    font-family: var(--poppins);
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px !important;
    margin-bottom: 16px !important;
}
.blog-single__body h3 {
    font-family: var(--poppins);
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin-top: 32px !important;
    margin-bottom: 12px !important;
}
.blog-single__body ul,
.blog-single__body ol {
    margin-bottom: 1.2em !important;
    padding-left: 1.4em !important;
}
.blog-single__body ul li {
    list-style: disc !important;
    margin-bottom: 0.5em;
}
.blog-single__body ol li {
    list-style: decimal !important;
    margin-bottom: 0.5em;
}
.blog-single__body a {
    text-decoration: underline;
}

/* CTA */
.blog-cta {
    padding: 56px 0;
}
.blog-cta__heading {
    margin-bottom: 16px !important;
}
.blog-cta__text {
    max-width: 560px;
    margin: 0 auto 28px !important;
    opacity: 0.9;
}

/* Related articles */
.blog-related {
    padding: 64px 0 80px;
}
.blog-related__heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px !important;
}

.blog-related__swiper {
    padding-bottom: 4px;
}

.blog-related-tile {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
}
.blog-related-tile__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.blog-related-tile__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.blog-related-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-related-tile__body {
    padding: 20px 22px 24px;
}
.blog-related-tile__title {
    font-family: var(--poppins);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-dark);
    margin-top: 6px !important;
}

.blog-related__nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}
.blog-related__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.blog-related__arrow:hover {
    background: var(--primary);
    color: var(--white);
}
.blog-related__arrow.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}
