/* =============================================================================
   BLOG LANDING PAGE
   Styles the main Blog hub page.
============================================================================= */

.tbe-blog-landing {
    width: 100%;
    margin: 0;
}

/* Hero */

.tbe-blog-landing__hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #008277;
    margin-bottom: 70px;
}

.tbe-blog-landing__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 130, 119, 0.94) 0%,
        rgba(0, 130, 119, 0.72) 45%,
        rgba(0, 0, 0, 0.38) 100%
    );
    z-index: 1;
}

.tbe-blog-landing__hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    padding: 100px 0;
    margin: 0 auto;
    color: #ffffff;
}

.tbe-blog-landing__hero-content h1 {
    max-width: 820px;
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 4.8vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.tbe-blog-landing__intro {
    max-width: 720px;
    font-size: 1.18rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.94);
}

.tbe-blog-landing__intro p {
    margin: 0;
}

/* Posts section */

.tbe-blog-landing__posts {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0;
}

.tbe-blog-landing__section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.tbe-blog-landing__section-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
}

.tbe-blog-landing__section-heading p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #4b5563;
}

/* Blog grid */

.tbe-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.tbe-blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.tbe-blog-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.tbe-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tbe-blog-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.tbe-blog-card__category {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 130, 119, 0.1);
    color: #008277;
    font-size: 0.82rem;
    font-weight: 800;
}

.tbe-blog-card__title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.tbe-blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.tbe-blog-card__date {
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: #6b7280;
}

.tbe-blog-card__content p {
    margin: 0 0 18px;
    color: #4b5563;
    line-height: 1.6;
}

.tbe-blog-card__link {
    margin-top: auto;
    font-weight: 800;
    color: #008277;
    text-decoration: none;
}

/* CTA */

.tbe-blog-landing__cta {
    width: min(1180px, calc(100% - 40px));
    margin: 70px auto 90px;
    padding: 54px;
    border-radius: 24px;
    background: #008277;
    color: #ffffff;
    text-align: center;
}

.tbe-blog-landing__cta h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: -0.03em;
}

.tbe-blog-landing__cta p {
    max-width: 680px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    line-height: 1.6;
}

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

@media (max-width: 600px) {
    .tbe-blog-landing__hero-content,
    .tbe-blog-landing__posts,
    .tbe-blog-landing__cta {
        width: min(100% - 28px, 1180px);
    }

    .tbe-blog-grid {
        grid-template-columns: 1fr;
    }

    .tbe-blog-landing__cta {
        padding: 34px 22px;
        margin-bottom: 60px;
    }
}
