
:root {
    --erasto-blue: #0077b8;
    --erasto-blue-dark: #004a73;
    --erasto-text: #222b31;
    --erasto-muted: #667681;
    --erasto-bg: #f5f8fa;
}

.erasto-news-single,
.erasto-news-single * {
    box-sizing: border-box;
}

.erasto-news-single {
    width: 100%;
    overflow: hidden;
    background: #fff;
    color: var(--erasto-text);
}

.erasto-news-hero {
    position: relative;
    min-height: 560px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #172126;
}

.erasto-news-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.erasto-news-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 177.78vh;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
}

.erasto-news-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 20, 31, .82) 0%, rgba(3, 20, 31, .58) 44%, rgba(3, 20, 31, .22) 100%),
        linear-gradient(0deg, rgba(3, 20, 31, .72) 0%, transparent 58%);
}

.erasto-news-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 150px 0 72px;
    color: #fff;
}

.erasto-news-breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 28px;
    font-size: 14px;
    opacity: .9;
}

.erasto-news-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.erasto-news-tag {
    display: inline-flex;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    background: rgba(255,255,255,.08);
}

.erasto-news-hero h1 {
    max-width: 980px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 66px);
    line-height: 1.06;
    letter-spacing: -.035em;
    font-weight: 700;
}

.erasto-news-meta {
    margin-top: 22px;
    font-size: 16px;
    color: rgba(255,255,255,.9);
}

.erasto-news-body {
    width: 100%;
    background: #fff;
}

.erasto-news-article {
    width: min(980px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0 80px;
}

.erasto-news-featured {
    margin: 0 0 46px;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
}

.erasto-news-featured img {
    display: block;
    width: 100%;
    height: auto;
}

.erasto-news-content {
    font-size: 19px;
    line-height: 1.8;
    color: #34434c;
}

.erasto-news-content > *:first-child {
    margin-top: 0;
}

.erasto-news-content p {
    margin: 0 0 24px;
}

.erasto-news-content h2,
.erasto-news-content h3,
.erasto-news-content h4 {
    color: #17242c;
    line-height: 1.22;
    margin-top: 44px;
    margin-bottom: 18px;
}

.erasto-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.erasto-news-content a {
    color: var(--erasto-blue);
}

.erasto-news-back {
    border-top: 1px solid #e6ecef;
    margin-top: 54px;
    padding-top: 28px;
}

.erasto-news-back a {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--erasto-blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.erasto-news-related {
    background: var(--erasto-bg);
    padding: 72px 0 90px;
}

.erasto-news-related-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.erasto-news-related-head {
    margin-bottom: 30px;
}

.erasto-news-related-head > span {
    display: block;
    color: var(--erasto-blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.erasto-news-related-head h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 44px);
    color: #17242c;
}

.erasto-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.erasto-news-card {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(20, 46, 61, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.erasto-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(20, 46, 61, .13);
}

.erasto-news-card-image {
    height: 220px;
    overflow: hidden;
    background: #dfe8ed;
}

.erasto-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.erasto-news-card:hover .erasto-news-card-image img {
    transform: scale(1.035);
}

.erasto-news-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dce7ec, #c9dbe4);
}

.erasto-news-card-body {
    padding: 24px;
}

.erasto-news-card-date {
    display: block;
    font-size: 13px;
    color: var(--erasto-muted);
    margin-bottom: 9px;
}

.erasto-news-card h3 {
    margin: 0 0 18px;
    font-size: 21px;
    line-height: 1.3;
    color: #1e2b32;
}

.erasto-news-card-link {
    color: var(--erasto-blue);
    font-weight: 700;
    font-size: 14px;
}

@media (max-width: 900px) {
    .erasto-news-hero {
        min-height: 500px;
    }

    .erasto-news-grid {
        grid-template-columns: 1fr;
    }

    .erasto-news-card {
        display: grid;
        grid-template-columns: 220px 1fr;
    }

    .erasto-news-card-image {
        height: 100%;
        min-height: 190px;
    }
}

@media (max-width: 640px) {
    .erasto-news-hero {
        min-height: 470px;
    }

    .erasto-news-hero-inner,
    .erasto-news-article,
    .erasto-news-related-inner {
        width: min(100% - 30px, 1180px);
    }

    .erasto-news-hero-inner {
        padding: 120px 0 42px;
    }

    .erasto-news-hero h1 {
        font-size: 36px;
    }

    .erasto-news-article {
        padding: 46px 0 58px;
    }

    .erasto-news-content {
        font-size: 17px;
        line-height: 1.72;
    }

    .erasto-news-featured {
        margin-bottom: 32px;
        border-radius: 12px;
    }

    .erasto-news-related {
        padding: 54px 0 64px;
    }

    .erasto-news-card {
        display: block;
    }

    .erasto-news-card-image {
        height: 205px;
    }
}

/* Remove a área padrão de comentários do Hello/WordPress caso algum hook tente exibi-la. */
.erasto-news-single + .comments-area,
body.single-post .comments-area {
    display: none !important;
}
