/* ==============================
   EDITORIAL / NOTÍCIAS
============================== */

.editorial {
    padding: 48px 0 64px;
    background: linear-gradient(180deg, #f7fbfb 0%, #ffffff 68%);
}

.editorial-header {
    max-width: 780px;
    margin-bottom: 36px;
}

.editorial-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #008f86;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editorial-header h1 {
    margin: 0 0 12px;
    color: #163967;
    font-size: 34px;
    line-height: 1.15;
}

.editorial-header p {
    margin: 0;
    color: #53616f;
    font-size: 16px;
    line-height: 1.7;
}

.editorial-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.editorial-loading,
.editorial-empty,
.editorial-error {
    padding: 28px;
    border: 1px solid #e2e8ee;
    border-radius: 8px;
    background: #ffffff;
    color: #53616f;
    font-size: 16px;
}

.editorial-error {
    border-color: #f0c7c7;
    color: #9c2222;
    background: #fff7f7;
}

/* ==============================
   LISTA DE CARDS (1 POR LINHA)
============================== */

.editorial-card {
    background: #ffffff;
    border: 1px solid #dfe7ed;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(22, 57, 103, 0.06);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.editorial-card:hover {
    border-color: #c2d4e0;
    box-shadow: 0 12px 32px rgba(22, 57, 103, 0.11);
}

.editorial-card-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
    padding: 32px;
}

.editorial-card-tag {
    display: inline-block;
    padding: 6px 10px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2a33;
    border-bottom: 3px solid #00b3a4;
}

.editorial-card-tag.alt {
    border-bottom-color: #ff8c00;
}

.editorial-card-title {
    margin: 0 0 14px;
    color: #163967;
    font-size: 28px;
    line-height: 1.25;
}

.editorial-card-banner-text {
    margin: 0 0 24px;
    color: #465462;
    font-size: 16px;
    line-height: 1.65;
}

.editorial-btn {
    display: inline-block;
    padding: 11px 22px;
    background-color: #00b3a4;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.editorial-btn:hover {
    background-color: #163967;
    color: #ffffff;
}

.editorial-btn.alt {
    background-color: #ff8c00;
}

.editorial-btn.alt:hover {
    background-color: #e07b00;
}

.editorial-card-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f5;
}

.editorial-card-image img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

/* ==============================
   EXIBIÇÃO DA NOTÍCIA NA ÍNTEGRA
============================== */

.editorial-single {
    background: #ffffff;
    border: 1px solid #dfe7ed;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(22, 57, 103, 0.08);
}

.editorial-single-topbar {
    padding: 20px 36px;
    background: #f4f8fa;
    border-bottom: 1px solid #e5edf2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.editorial-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    color: #163967;
    border: 1px solid #cbd6e0;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.editorial-back-btn:hover {
    background: #163967;
    color: #ffffff;
    border-color: #163967;
}

.editorial-single-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
    padding: 36px;
    background: #fafcfd;
    border-bottom: 1px solid #edf2f6;
}

.editorial-single-title {
    margin: 0 0 16px;
    color: #163967;
    font-size: 32px;
    line-height: 1.2;
}

.editorial-single-lead {
    margin: 0;
    color: #465462;
    font-size: 17px;
    line-height: 1.65;
}

.editorial-single-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f5;
}

.editorial-single-image img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

/* CORPO HTML FORMATADO (TINYMCE) */
.editorial-single-body {
    padding: 40px 36px;
    color: #2b3540;
    font-size: 16px;
    line-height: 1.8;
}

.editorial-single-body h1,
.editorial-single-body h2,
.editorial-single-body h3,
.editorial-single-body h4 {
    color: #163967;
    margin: 24px 0 12px;
    line-height: 1.3;
}

.editorial-single-body h1:first-child,
.editorial-single-body h2:first-child,
.editorial-single-body h3:first-child,
.editorial-single-body p:first-child {
    margin-top: 0;
}

.editorial-single-body p {
    margin: 0 0 16px;
}

.editorial-single-body p:last-child {
    margin-bottom: 0;
}

.editorial-single-body ul,
.editorial-single-body ol {
    margin: 0 0 18px 24px;
    padding-left: 8px;
}

.editorial-single-body li {
    margin-bottom: 6px;
}

.editorial-single-body a {
    color: #008f86;
    font-weight: 600;
    text-decoration: underline;
}

.editorial-single-body a:hover {
    color: #163967;
}

.editorial-single-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.editorial-single-body table th,
.editorial-single-body table td {
    border: 1px solid #d5dfe6;
    padding: 10px 14px;
    text-align: left;
}

.editorial-single-body table th {
    background-color: #f1f6f9;
    color: #163967;
    font-weight: 700;
}

.editorial-single-body table tr:nth-child(even) td {
    background-color: #fafcfd;
}

.editorial-single-footer {
    padding: 0 36px 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 900px) {
    .editorial-card-row,
    .editorial-single-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .editorial-card-title,
    .editorial-single-title {
        font-size: 24px;
    }

    .editorial-single-topbar {
        padding: 16px 24px;
    }

    .editorial-single-body {
        padding: 24px;
    }

    .editorial-single-footer {
        padding: 0 24px 24px;
    }
}
