@font-face {
    font-family: 'DK Formosa';
    src: url('/wp-content/uploads/et-fonts/DK-Formosa.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.th-blog-index {
    font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #003349;
    background: #ffffff;
}

.th-container {
    width: min(1160px, 92vw);
    margin: 0 auto;
    position: relative;
}

.th-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.th-button--primary {
    background: #f18721;
    color: #fff;
    box-shadow: 0 12px 24px rgba(241, 135, 33, 0.28);
}

.th-button--primary:hover,
.th-button--primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(241, 135, 33, 0.34);
    color: #fff;
}

.th-button--ghost {
    background: rgba(255, 255, 255, 0.88);
    color: #003349;
    border: 1px solid rgba(0, 62, 107, 0.16);
}

.th-button--ghost:hover,
.th-button--ghost:focus {
    background: #fff;
    color: #003349;
}

.th-eyebrow,
.th-blog-kicker {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: #68bfd0;
}

.th-blog-hero {
    position: relative;
    overflow: clip;
    padding: clamp(72px, 10vw, 116px) 0 clamp(54px, 8vw, 82px);
    background:
        radial-gradient(circle at top right, rgba(104, 191, 208, 0.2), rgba(104, 191, 208, 0) 35%),
        linear-gradient(180deg, #eef7fa 0%, #ffffff 72%);
}

.th-blog-hero__wash {
    position: absolute;
    inset: 0;
    background: url('/wp-content/uploads/2024/02/header-map-scaled.webp') no-repeat left top / min(42vw, 560px);
    opacity: 0.12;
    pointer-events: none;
}

.th-blog-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
}

.th-blog-hero__copy {
    position: relative;
    z-index: 1;
}

.th-blog-hero__title {
    margin: 0;
    font-family: "Mr Eaves Mod OT", "Avenir Next", sans-serif;
    font-size: clamp(44px, 5.2vw, 78px);
    line-height: 0.97;
    letter-spacing: -0.04em;
    color: #003349;
}

.th-blog-hero__intro {
    max-width: 720px;
    margin: 22px 0 0;
    font-size: clamp(20px, 1.4vw, 24px);
    line-height: 1.68;
    color: #2d617a;
}

.th-blog-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 28px;
}

.th-blog-featured-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 51, 73, 0.12);
    border: 1px solid rgba(0, 62, 107, 0.08);
}

.th-blog-featured-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #dceef5 0%, #eef7fa 100%);
}

.th-blog-featured-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.th-blog-featured-card__media--empty {
    display: grid;
    place-items: center;
    color: #0d5879;
    font-weight: 700;
}

.th-blog-featured-card__body {
    padding: clamp(24px, 4vw, 34px);
}

.th-blog-featured-card__meta,
.th-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 0.9rem;
}

.th-blog-date {
    color: #5b8397;
    font-size: 0.94rem;
    font-weight: 600;
}

.th-blog-featured-card__title,
.th-blog-card__title {
    margin: 14px 0 0;
    font-family: "Mr Eaves Mod OT", "Avenir Next", sans-serif;
    color: #003349;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.th-blog-featured-card__title {
    font-size: clamp(34px, 3vw, 44px);
}

.th-blog-featured-card__title a,
.th-blog-card__title a {
    color: inherit;
}

.th-blog-featured-card__excerpt,
.th-blog-card__excerpt,
.th-blog-rollup__intro {
    color: #2d617a;
    line-height: 1.72;
}

.th-blog-featured-card__excerpt {
    margin: 18px 0 0;
    font-size: 1.05rem;
}

.th-blog-featured-card__topics {
    margin-top: 22px;
}

.th-blog-rollup {
    padding: clamp(26px, 4vw, 42px) 0 clamp(72px, 8vw, 120px);
}

.th-blog-rollup__header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 34px;
}

.th-blog-kicker--section {
    margin-bottom: 12px;
}

.th-section-title {
    margin: 0;
    font-family: "Mr Eaves Mod OT", "Avenir Next", sans-serif;
    font-size: clamp(38px, 3vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #003349;
}

.th-blog-rollup__intro {
    max-width: 720px;
    margin: 0;
    font-size: 1rem;
}

.th-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.6vw, 30px);
}

.th-blog-grid--single {
    grid-template-columns: minmax(0, 420px);
}

.th-blog-card {
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(0, 62, 107, 0.08);
    box-shadow: 0 20px 44px rgba(0, 51, 73, 0.08);
    overflow: hidden;
}

.th-blog-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #dceef5 0%, #eef7fa 100%);
}

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

.th-blog-card__media--empty {
    display: grid;
    place-items: center;
    color: #0d5879;
    font-weight: 700;
}

.th-blog-card__body {
    padding: 24px 24px 26px;
}

.th-blog-card__title {
    font-size: clamp(26px, 2vw, 32px);
}

.th-blog-card__excerpt {
    margin: 16px 0 0;
    font-size: 0.98rem;
}

.th-blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 18px;
    color: #f18721;
    font-weight: 700;
    text-decoration: none;
}

.th-blog-card__link:hover,
.th-blog-card__link:focus {
    color: #d77213;
}

.th-blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 42px;
}

.th-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 62, 107, 0.12);
    color: #003349;
    font-weight: 700;
    text-decoration: none;
}

.th-blog-pagination .page-numbers.current {
    background: #003349;
    color: #fff;
    border-color: #003349;
}

.th-blog-empty {
    padding: 48px;
    text-align: center;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef7fa 100%);
    border-radius: 30px;
    border: 1px solid rgba(0, 62, 107, 0.08);
}

.th-blog-empty h2 {
    margin: 0 0 12px;
    font-family: "Mr Eaves Mod OT", "Avenir Next", sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    color: #003349;
}

.th-blog-empty p {
    margin: 0;
    color: #2d617a;
}

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

@media (max-width: 980px) {
    .th-blog-hero__layout {
        grid-template-columns: 1fr;
        display: grid;
        align-items: start;
    }
}

@media (max-width: 767px) {
    .th-blog-hero {
        padding-top: 56px;
    }

    .th-blog-hero__title {
        font-size: clamp(38px, 12vw, 58px);
    }

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

    .th-blog-card__body,
    .th-blog-featured-card__body {
        padding: 22px;
    }

    .th-button {
        width: 100%;
    }

    .th-blog-hero__actions {
        flex-direction: column;
    }
}
