.tb-blog-main,
.tb-blog-main * {
    box-sizing: border-box;
}

.tb-blog-main {
    --tb-blue: #173d5b;
    --tb-gold: #f4b400;
    --tb-rust: #8c3217;
    --tb-text: #566571;
    --tb-cream: #fffaf0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fffdf8;
}

.tb-blog-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 4;
}

.tb-content-section {
    position: relative;
}

.tb-hero,
.tb-section-header {
    text-align: center;
}

.tb-hero {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0 10px;
}

.tb-section-kicker {
    margin-bottom: 10px;
    color: var(--tb-gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tb-main-title {
    margin: 0;
    line-height: 1;
}

/*
 * v3.1: the H1 is deliberately split into two independently styled lines.
 * The first line mirrors the clean/light heading treatment used across the
 * relaunch pages; the second line remains the Traveling Bee gold script.
 */
.tb-main-title-primary {
    display: block;
    color: #4a4a4a;
    font-family: "gilsan-light", "Gill Sans", Arial, sans-serif;
    font-size: clamp(42px, 4.4vw, 68px);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.tb-main-title-accent {
    display: block;
    margin-top: 4px;
    color: var(--tb-gold);
    font-size: clamp(38px, 4.2vw, 62px);
    line-height: 1;
}

.tb-main-intro,
.tb-section-description {
    max-width: 850px;
    margin: 20px auto 0;
    color: var(--tb-text);
    font-size: 17px;
    line-height: 1.75;
}

.tb-section-heading {
    margin: 0;
    color: var(--tb-blue);
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
}

.tb-section-header {
    margin-bottom: 30px;
}

.tb-category-grid,
.tb-featured-grid,
.tb-post-grid {
    display: grid;
}

.tb-category-grid {
    gap: 18px;
}

.tb-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 118px;
    padding: 24px 26px;
    overflow: hidden;
    border: 1px solid rgba(23,61,91,.08);
    background: #fff;
    color: var(--tb-blue);
    text-align: left;
    text-decoration: none !important;
    box-shadow: 0 12px 35px rgba(23,61,91,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tb-category-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: var(--tb-gold);
}

.tb-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(23,61,91,.14);
}

.tb-category-name {
    position: relative;
    z-index: 2;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.tb-category-count {
    position: relative;
    z-index: 2;
    margin-top: 7px;
    font-size: 13px;
    opacity: .7;
}

.tb-featured-grid,
.tb-post-grid {
    gap: 28px;
}

.tb-post-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 38px rgba(23,61,91,.10);
    transition: transform .28s ease, box-shadow .28s ease;
}

.tb-post-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 48px rgba(23,61,91,.15);
}

.tb-card-media {
    display: block;
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.tb-card-image {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .45s ease;
}

.tb-post-card:hover .tb-card-image:not(.tb-card-image-placeholder) {
    transform: scale(1.035);
}

.tb-card-image-placeholder {
    background: linear-gradient(135deg, #f8e3ad, #fff8e4);
}

.tb-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: calc(100% - 260px);
    padding: 24px 24px 26px;
}

.tb-card-category {
    margin-bottom: 10px;
    color: var(--tb-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.tb-card-title {
    margin: 0 0 12px;
    color: var(--tb-blue);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.tb-card-title a {
    color: inherit;
    text-decoration: none !important;
}

.tb-card-excerpt {
    margin: 0 0 22px;
    color: var(--tb-text);
    font-size: 15px;
    line-height: 1.7;
}

.tb-read-more {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding: 12px 21px;
    background: var(--tb-gold);
    color: var(--tb-blue);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.tb-read-more:hover {
    background: var(--tb-rust);
    color: #fff;
    transform: translateY(-1px);
}

.tb-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 42px;
}

.tb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(23,61,91,.10);
    border-radius: 999px;
    background: #fff;
    color: var(--tb-blue);
    font-weight: 700;
    text-decoration: none !important;
}

.tb-pagination .page-numbers.current {
    background: var(--tb-gold);
}

.tb-cloud-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tb-cloud-layer {
    z-index: 1;
}

.tb-cloud {
    position: absolute;
    display: block;
    width: 360px;
    max-width: none;
    user-select: none;
}

.tb-cloud-one {
    top: 35px;
    left: -115px;
    transform: rotate(-4deg);
}

.tb-cloud-two {
    top: 39%;
    right: -125px;
    transform: rotate(5deg) scale(.92);
}

/* Static Traveling Bee plane decoration — intentionally no animation/path. */
.tb-static-plane {
    position: absolute;
    top: 250px;
    right: 70px;
    z-index: 2;
    display: block;
    width: 92px;
    height: auto;
    max-width: none;
    pointer-events: none;
    user-select: none;
    transform: rotate(-18deg);
    transform-origin: center center;
}

.tb-no-posts {
    text-align: center;
}

@media (max-width: 1024px) {
    .tb-blog-main {
        overflow: hidden;
    }

    .tb-cloud-one {
        left: -150px;
    }

    .tb-cloud-two {
        right: -160px;
    }
}

@media (max-width: 767px) {
    .tb-main-title {
        font-size: clamp(34px, 10vw, 48px);
    }

    .tb-main-intro,
    .tb-section-description {
        font-size: 16px;
        line-height: 1.65;
    }

    .tb-section-header {
        margin-bottom: 24px;
    }

    .tb-category-card {
        min-height: 96px;
        padding: 20px;
    }

    .tb-card-title {
        font-size: 21px;
    }

    .tb-cloud {
        opacity: .50;
    }

    .tb-cloud-one {
        top: 20px;
        left: -130px;
    }

    .tb-cloud-two {
        top: 48%;
        right: -145px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tb-post-card,
    .tb-card-image,
    .tb-read-more,
    .tb-category-card {
        transition: none !important;
    }
}


/* v3.1 responsive hero line safeguards */
@media (max-width: 767px) {
    .tb-main-title-primary {
        font-size: clamp(36px, 11vw, 50px);
        line-height: 1.04;
    }

    .tb-main-title-accent {
        font-size: clamp(34px, 10.5vw, 48px);
    }
}
