/* Normal WordPress single-post template. Scoped to avoid changing Services/Projects. */
.ets-post-page,
.ets-post-page * { box-sizing: border-box; }

.ets-post-page {
    --ets-post-navy: #121a3a;
    --ets-post-green: #009d4f;
    --ets-post-text: #22252b;
    --ets-post-muted: #656a73;
    --ets-post-line: #e5e7eb;
    color: var(--ets-post-text);
    background: #fff;
    overflow: hidden;
    font-family: inherit;
}

.ets-post-container {
    width: min(1250px, calc(100% - 40px));
    margin: 0 auto;
    min-width: 0;
}

.ets-post-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 66px;
    background: var(--ets-post-navy);
    color: #fff;
}

.ets-post-hero::after {
    content: "";
    position: absolute;
    right: 7%;
    top: 18px;
    width: 300px;
    height: 180px;
    opacity: .10;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 180' fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M20 165V70l70-48 70 48v95M160 165V90l45-31 55 37v69M77 165v-55h30v55M198 165v-48h27v48'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.ets-post-hero .ets-post-container { position: relative; z-index: 1; }

.ets-post-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 13px;
}

.ets-post-breadcrumb a { color: #bcc3d5; text-decoration: none; }
.ets-post-breadcrumb a:hover { color: #fff; }
.ets-post-breadcrumb span { color: #77809d; }

.ets-post-category-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ets-post-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #fff !important;
    background: rgba(0,157,79,.92);
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.ets-post-title {
    max-width: 1000px;
    margin: 0;
    color: #fff !important;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.07;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.ets-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    color: #c6ccda;
    font-size: 14px;
}

.ets-post-meta-separator { color: var(--ets-post-green); }

.ets-post-main { padding: 64px 0 88px; background: #fff; }

.ets-post-featured {
    width: 100%;
    margin: 0 0 54px;
    padding: 0;
    overflow: hidden;
    background: #f2f3f4;
}

.ets-post-featured-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: initial !important;
}

.ets-post-article {
    width: min(860px, 100%);
    margin: 0 auto;
    min-width: 0;
}

.ets-post-content {
    color: #42474f;
    font-size: 17px;
    line-height: 1.82;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ets-post-content > :first-child { margin-top: 0; }
.ets-post-content > :last-child { margin-bottom: 0; }
.ets-post-content p { margin: 0 0 1.35em; }
.ets-post-content h2,
.ets-post-content h3,
.ets-post-content h4,
.ets-post-content h5,
.ets-post-content h6 {
    color: var(--ets-post-text);
    line-height: 1.25;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}
.ets-post-content h2 { margin: 2em 0 .7em; font-size: clamp(28px, 3vw, 38px); }
.ets-post-content h3 { margin: 1.8em 0 .65em; font-size: clamp(23px, 2.4vw, 30px); }
.ets-post-content h4 { margin: 1.6em 0 .6em; font-size: 21px; }
.ets-post-content a { color: var(--ets-post-green); text-decoration: underline; text-underline-offset: 3px; }
.ets-post-content ul,
.ets-post-content ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.ets-post-content li { margin: .4em 0; }
.ets-post-content blockquote {
    margin: 2em 0;
    padding: 22px 26px;
    border-left: 4px solid var(--ets-post-green);
    background: #f6f8f7;
    color: #30353b;
    font-size: 19px;
    line-height: 1.65;
}
.ets-post-content img,
.ets-post-content video,
.ets-post-content iframe,
.ets-post-content embed,
.ets-post-content object,
.ets-post-content table {
    max-width: 100% !important;
}
.ets-post-content img,
.ets-post-content video { height: auto !important; }
.ets-post-content iframe,
.ets-post-content embed,
.ets-post-content object { width: 100%; }
.ets-post-content table { display: block; width: 100%; overflow-x: auto; }
.ets-post-content pre { max-width: 100%; overflow-x: auto; }
.ets-post-content .alignwide,
.ets-post-content .alignfull { max-width: 100%; margin-left: 0; margin-right: 0; }

.ets-post-page-links { margin-top: 32px; font-weight: 700; }

.ets-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 58px;
    padding-top: 28px;
    border-top: 1px solid var(--ets-post-line);
}

.ets-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ets-post-tags-label { margin-right: 3px; color: #25292f; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ets-post-tags a {
    display: inline-flex;
    padding: 6px 10px;
    color: #4c525b;
    background: #f2f3f4;
    font-size: 12px;
    text-decoration: none;
}

.ets-post-author { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.ets-post-author-avatar img { display: block; width: 54px; height: 54px; border-radius: 50%; }
.ets-post-author span { display: block; color: #8a8f97; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.ets-post-author strong { display: block; margin-top: 3px; color: #20242a; font-size: 14px; }

.ets-post-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    margin-top: 70px;
    padding-top: 34px;
    border-top: 1px solid var(--ets-post-line);
}

.ets-post-navigation-item { min-width: 0; }
.ets-post-navigation-next { text-align: right; }
.ets-post-navigation-item > span { display: block; margin-bottom: 7px; color: #8b9098; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ets-post-navigation-item > a { display: inline-block; max-width: 360px; color: #252a30; font-size: 14px; font-weight: 750; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.ets-post-navigation-item > a:hover { color: var(--ets-post-green); }
.ets-post-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    color: #fff !important;
    background: var(--ets-post-green);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none !important;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .ets-post-container { width: min(100% - 32px, 1250px); }
    .ets-post-hero { padding: 46px 0 52px; }
    .ets-post-main { padding: 44px 0 66px; }
    .ets-post-featured { margin-bottom: 40px; }
    .ets-post-navigation { grid-template-columns: 1fr 1fr; }
    .ets-post-back { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

@media (max-width: 767px) {
    .ets-post-container { width: min(100% - 28px, 1250px); }
    .ets-post-hero { padding: 36px 0 42px; }
    .ets-post-hero::after { right: -70px; width: 230px; height: 140px; }
    .ets-post-breadcrumb { margin-bottom: 18px; font-size: 12px; }
    .ets-post-title { font-size: clamp(32px, 9.2vw, 44px); line-height: 1.12; }
    .ets-post-meta { margin-top: 17px; font-size: 13px; }
    .ets-post-main { padding: 28px 0 52px; }
    .ets-post-featured { margin-bottom: 30px; }
    .ets-post-content { font-size: 16px; line-height: 1.75; }
    .ets-post-content h2 { margin-top: 1.65em; }
    .ets-post-content blockquote { margin: 1.6em 0; padding: 18px 19px; font-size: 17px; }
    .ets-post-footer { align-items: flex-start; flex-direction: column; margin-top: 42px; }
    .ets-post-navigation { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
    .ets-post-navigation-next { text-align: left; }
    .ets-post-back { grid-column: auto; grid-row: auto; justify-self: start; }
}
