/* /public_html/blog/assets/css/blog.css */

:root {
    --sx-blue-950: #04152f;
    --sx-blue-900: #061b3f;
    --sx-blue-800: #0b2e6d;
    --sx-blue-700: #164d8f;
    --sx-blue-600: #1e6faf;
    --sx-blue-300: #6aa2c6;

    --sx-white: #ffffff;
    --sx-gray-50: #f6f8fb;
    --sx-gray-100: #edf1f6;
    --sx-gray-200: #dbe3ed;
    --sx-gray-300: #c6d1dd;
    --sx-gray-500: #667085;
    --sx-gray-700: #344054;
    --sx-gray-900: #111827;

    --sx-success: #168a4a;
    --sx-danger: #c73535;
    --sx-warning: #b7791f;

    --sx-shadow-sm: 0 10px 30px rgba(4, 21, 47, 0.08);
    --sx-shadow-md: 0 22px 60px rgba(4, 21, 47, 0.12);
    --sx-shadow-lg: 0 34px 90px rgba(4, 21, 47, 0.16);

    --sx-radius-sm: 12px;
    --sx-radius-md: 18px;
    --sx-radius-lg: 28px;
    --sx-radius-xl: 36px;

    --primary: var(--sx-blue-700);
    --dark: var(--sx-blue-950);
    --light: var(--sx-gray-50);
    --danger: var(--sx-danger);
    --success: var(--sx-success);
    --bg: var(--sx-gray-50);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(30, 111, 175, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, var(--sx-gray-50) 42%, #ffffff 100%);
    color: var(--sx-gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::selection {
    background: var(--sx-blue-800);
    color: var(--sx-white);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header público */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(4, 21, 47, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header::after {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(106, 162, 198, 0.7),
        rgba(30, 111, 175, 0.95),
        transparent
    );
}

.site-header-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--sx-white);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-logo {
    width: 155px;
    height: auto;
    object-fit: contain;
}

.site-brand span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(106, 162, 198, 0.13);
    border: 1px solid rgba(106, 162, 198, 0.24);
    color: #d8ecf8;
    font-size: 13px;
    font-weight: 800;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav a {
    min-height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    border-radius: 999px;
    transition: 0.25s ease;
}

.site-nav a:hover {
    color: var(--sx-white);
    background: rgba(255, 255, 255, 0.08);
}

/* Estrutura pública */

.site-main {
    min-height: 70vh;
    padding: 54px 0 80px;
}

.blog-hero {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    padding: 64px;
    border-radius: var(--sx-radius-xl);
    background:
        linear-gradient(135deg, rgba(4, 21, 47, 0.96), rgba(11, 46, 109, 0.96)),
        radial-gradient(circle at top right, rgba(106, 162, 198, 0.35), transparent 36%);
    color: var(--sx-white);
    box-shadow: var(--sx-shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.16;
    pointer-events: none;
}

.blog-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 380px;
    height: 380px;
    border-radius: 999px;
    background: rgba(106, 162, 198, 0.18);
    filter: blur(4px);
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.blog-kicker,
.section-label,
.admin-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 6px 13px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(30, 111, 175, 0.1);
    color: var(--sx-blue-700);
    border: 1px solid rgba(30, 111, 175, 0.16);
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-hero .blog-kicker {
    background: rgba(255, 255, 255, 0.1);
    color: #d9ecf7;
    border-color: rgba(255, 255, 255, 0.16);
}

.blog-hero h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.blog-hero p {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.75;
}

.blog-section {
    padding-top: 64px;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    color: var(--sx-blue-950);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.section-heading p {
    margin: 14px 0 0;
    color: var(--sx-gray-500);
    font-size: 16px;
}

/* Cards dos posts */

.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.post-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 46, 109, 0.08);
    border-radius: var(--sx-radius-lg);
    box-shadow: var(--sx-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sx-shadow-md);
    border-color: rgba(30, 111, 175, 0.22);
}

.post-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 235px;
    background: var(--sx-blue-950);
    text-decoration: none;
}

.post-card-img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .post-card-img {
    transform: scale(1.04);
}

.post-card-placeholder {
    height: 235px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top right, rgba(106, 162, 198, 0.28), transparent 34%),
        linear-gradient(135deg, var(--sx-blue-950), var(--sx-blue-800));
    color: rgba(255, 255, 255, 0.88);
}

.post-card-placeholder span {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.post-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.post-card h2 {
    margin: 12px 0 0;
    color: var(--sx-blue-950);
    font-size: 23px;
    line-height: 1.22;
    letter-spacing: -0.025em;
    font-weight: 900;
}

.post-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card h2 a:hover {
    color: var(--sx-blue-600);
}

.post-meta,
.single-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--sx-blue-700);
    font-size: 13px;
    font-weight: 800;
}

.meta-separator {
    color: var(--sx-gray-300);
}

.post-excerpt {
    margin: 16px 0 0;
    color: var(--sx-gray-500);
    font-size: 15px;
    line-height: 1.75;
}

.btn-read-more {
    width: fit-content;
    margin-top: auto;
    padding-top: 24px;
    color: var(--sx-blue-700);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-read-more:hover {
    color: var(--sx-blue-950);
    transform: translateX(3px);
}

/* Post individual */

.single-post {
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--sx-white);
    border: 1px solid rgba(11, 46, 109, 0.08);
    border-radius: var(--sx-radius-xl);
    box-shadow: var(--sx-shadow-md);
}

.single-post-header {
    padding: 54px 58px 34px;
    text-align: left;
}

.back-to-blog {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--sx-blue-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
}

.back-to-blog:hover {
    color: var(--sx-blue-950);
}

.single-post-header h1 {
    margin: 0;
    color: var(--sx-blue-950);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.052em;
    font-weight: 950;
}

.single-post-meta {
    margin-top: 20px;
}

.post-cover {
    width: calc(100% - 56px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--sx-radius-lg);
    background: var(--sx-gray-100);
}

.post-cover img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.post-content {
    padding: 46px 58px 22px;
    color: #2f3a4a;
    font-size: 18px;
    line-height: 1.86;
}

.post-content p {
    margin: 0 0 24px;
}

.post-content strong {
    color: var(--sx-blue-950);
}

.post-content a {
    color: var(--sx-blue-700);
    font-weight: 800;
}

.single-post-footer {
    display: flex;
    justify-content: flex-start;
    padding: 10px 58px 56px;
}

/* Estados vazios e 404 */

.empty-blog-state,
.not-found-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
    background: var(--sx-white);
    border: 1px solid rgba(11, 46, 109, 0.08);
    border-radius: var(--sx-radius-xl);
    box-shadow: var(--sx-shadow-sm);
}

.empty-blog-state h2,
.not-found-page h1 {
    margin: 0;
    color: var(--sx-blue-950);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.empty-blog-state p,
.not-found-page p {
    max-width: 560px;
    margin: 18px auto 0;
    color: var(--sx-gray-500);
    font-size: 17px;
}

.empty-blog-state .btn,
.not-found-actions {
    margin-top: 28px;
}

.not-found-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Footer público */

.site-footer {
    background: var(--sx-blue-950);
    color: rgba(255, 255, 255, 0.72);
    padding: 46px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-container {
    display: grid;
    grid-template-columns: 1.2fr auto;
    gap: 32px;
    align-items: center;
}

.footer-brand img {
    width: 150px;
    height: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 520px;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.05);
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: var(--sx-white);
    background: rgba(255, 255, 255, 0.1);
}

.footer-copy {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

/* Botões */

.btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    color: var(--sx-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--sx-blue-800), var(--sx-blue-600));
    box-shadow: 0 16px 34px rgba(30, 111, 175, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 22px 44px rgba(30, 111, 175, 0.3);
}

.btn-secondary {
    background: var(--sx-white);
    color: var(--sx-blue-800);
    border-color: var(--sx-gray-200);
    box-shadow: var(--sx-shadow-sm);
}

.btn-secondary:hover {
    color: var(--sx-blue-950);
    border-color: rgba(30, 111, 175, 0.28);
}

.btn-danger {
    background: var(--sx-danger);
    box-shadow: 0 10px 20px rgba(199, 53, 53, 0.18);
}

.btn-success {
    background: var(--sx-success);
    box-shadow: 0 10px 20px rgba(22, 138, 74, 0.18);
}

/* Admin - mantido no mesmo CSS porque o painel usa este arquivo */

.admin-body {
    background:
        radial-gradient(circle at top left, rgba(30, 111, 175, 0.11), transparent 32%),
        var(--sx-gray-50);
    color: var(--sx-gray-900);
}

.admin-nav {
    background: rgba(4, 21, 47, 0.96);
    color: var(--sx-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-nav::after {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(106, 162, 198, 0.7), rgba(30, 111, 175, 0.95), transparent);
}

.admin-nav-container {
    width: min(1180px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.admin-nav .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--sx-white);
    font-weight: 900;
    text-decoration: none;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.admin-nav .brand img {
    width: 150px;
    height: auto;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    border-radius: 999px;
    transition: 0.22s ease;
}

.nav-links a:hover {
    color: var(--sx-white);
    background: rgba(255, 255, 255, 0.08);
}

.admin-main {
    width: min(1180px, calc(100% - 40px));
    margin: 42px auto 70px;
    padding: 42px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--sx-radius-lg);
    box-shadow: var(--sx-shadow-sm);
    border: 1px solid rgba(11, 46, 109, 0.08);
}

.admin-main h1 {
    margin: 0 0 28px;
    color: var(--sx-blue-950);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 30px;
}

.admin-page-header p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--sx-gray-500);
}

.admin-form {
    margin-top: 28px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--sx-blue-950);
    font-size: 14px;
    font-weight: 850;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: var(--sx-gray-500);
    font-size: 13px;
    line-height: 1.5;
}

.form-control {
    width: 100%;
    min-height: 50px;
    padding: 14px 15px;
    border: 1px solid var(--sx-gray-200);
    border-radius: 15px;
    background: var(--sx-white);
    color: var(--sx-gray-900);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

textarea.form-control {
    min-height: 240px;
    resize: vertical;
    line-height: 1.7;
}

.form-control:focus {
    border-color: rgba(30, 111, 175, 0.58);
    box-shadow: 0 0 0 4px rgba(30, 111, 175, 0.12);
}

.form-control[readonly] {
    background: var(--sx-gray-50);
    color: var(--sx-gray-500);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

.current-cover-preview {
    width: min(360px, 100%);
    overflow: hidden;
    border-radius: var(--sx-radius-md);
    border: 1px solid var(--sx-gray-200);
    background: var(--sx-gray-50);
}

.current-cover-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.empty-state-text {
    margin: 0;
    color: var(--sx-gray-500);
}

.alert {
    padding: 16px 18px;
    margin-bottom: 24px;
    border-radius: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.alert-error {
    background: #fff1f1;
    color: #8d2020;
    border: 1px solid #ffd1d1;
}

.alert-success {
    background: #effaf3;
    color: #126b3b;
    border: 1px solid #c9f0d9;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border: 1px solid var(--sx-gray-200);
    border-radius: 16px;
    overflow: hidden;
    background: var(--sx-white);
}

table th,
table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--sx-gray-200);
    text-align: left;
    vertical-align: middle;
}

table th {
    background: var(--sx-gray-50);
    color: var(--sx-blue-800);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: #fbfdff;
}

.login-form {
    width: min(440px, calc(100% - 40px));
    margin: 90px auto;
    padding: 44px 38px;
    background: var(--sx-white);
    border-radius: var(--sx-radius-lg);
    box-shadow: var(--sx-shadow-md);
    border: 1px solid rgba(11, 46, 109, 0.08);
}

.login-form h2 {
    margin: 0 0 28px;
    color: var(--sx-blue-950);
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.login-logo {
    width: 165px;
    height: auto;
    margin: 0 0 28px;
}

/* Responsivo */

@media (max-width: 1024px) {
    .blog-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-hero {
        padding: 52px;
    }

    .single-post-header,
    .post-content,
    .single-post-footer {
        padding-left: 42px;
        padding-right: 42px;
    }
}

@media (max-width: 760px) {
    .container,
    .admin-nav-container,
    .admin-main {
        width: min(100% - 28px, 1180px);
    }

    .site-header-container,
    .admin-nav-container {
        min-height: auto;
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav,
    .nav-links {
        width: 100%;
        flex-wrap: wrap;
    }

    .site-nav a,
    .nav-links a {
        background: rgba(255, 255, 255, 0.07);
    }

    .site-logo,
    .admin-nav .brand img {
        width: 140px;
    }

    .site-main {
        padding: 34px 0 58px;
    }

    .blog-hero {
        min-height: auto;
        padding: 34px 26px;
        border-radius: 24px;
    }

    .blog-hero h1 {
        font-size: 34px;
    }

    .blog-hero p {
        font-size: 16px;
    }

    .blog-section {
        padding-top: 44px;
    }

    .blog-post-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .post-card-content {
        padding: 24px;
    }

    .post-card h2 {
        font-size: 22px;
    }

    .single-post {
        border-radius: 24px;
    }

    .single-post-header {
        padding: 34px 26px 24px;
    }

    .single-post-header h1 {
        font-size: 34px;
    }

    .post-cover {
        width: calc(100% - 28px);
        border-radius: 20px;
    }

    .post-content {
        padding: 32px 26px 12px;
        font-size: 17px;
    }

    .single-post-footer {
        padding: 8px 26px 36px;
    }

    .empty-blog-state,
    .not-found-page {
        padding: 38px 24px;
        border-radius: 24px;
    }

    .site-footer-container {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .admin-main {
        margin-top: 28px;
        padding: 28px 20px;
        border-radius: 22px;
    }

    .admin-page-header {
        flex-direction: column;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .login-form {
        margin: 48px auto;
        padding: 34px 24px;
    }
}

@media (max-width: 480px) {
    .site-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-nav a,
    .nav-links a {
        width: 100%;
        justify-content: center;
    }

    .blog-hero {
        padding: 30px 22px;
    }

    .blog-hero h1,
    .single-post-header h1 {
        font-size: 30px;
    }

    .post-card-media,
    .post-card-img,
    .post-card-placeholder {
        height: 210px;
        min-height: 210px;
    }

    .form-actions,
    .not-found-actions {
        flex-direction: column;
    }

    .form-actions .btn,
    .not-found-actions .btn {
        width: 100%;
    }
}

/* Editor TinyMCE no painel */

.tox-tinymce {
    border: 1px solid var(--sx-gray-200) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 32px rgba(4, 21, 47, 0.06) !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__primary,
.tox .tox-menubar {
    background: #ffffff !important;
}

.tox .tox-edit-area__iframe {
    background: #ffffff !important;
}

.tinymce-editor {
    min-height: 420px;
}

/* Conteúdo formatado do post público */

.post-content h2 {
    margin: 42px 0 16px;
    color: var(--sx-blue-950);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.post-content h3 {
    margin: 34px 0 14px;
    color: var(--sx-blue-900);
    font-size: clamp(23px, 2.4vw, 30px);
    line-height: 1.22;
    letter-spacing: -0.025em;
    font-weight: 850;
}

.post-content h4 {
    margin: 28px 0 12px;
    color: var(--sx-blue-800);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 850;
}

.post-content ul,
.post-content ol {
    margin: 0 0 26px;
    padding-left: 28px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    margin: 34px 0;
    padding: 22px 26px;
    border-left: 5px solid var(--sx-blue-600);
    border-radius: 0 18px 18px 0;
    background: var(--sx-gray-50);
    color: var(--sx-gray-700);
    font-size: 19px;
    line-height: 1.75;
    box-shadow: inset 0 0 0 1px rgba(30, 111, 175, 0.08);
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 34px auto;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(4, 21, 47, 0.12);
}

.post-content figure {
    margin: 38px 0;
}

.post-content figure img {
    margin: 0 auto;
}

.post-content figcaption {
    margin-top: 12px;
    color: var(--sx-gray-500);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.post-content table {
    margin: 32px 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--sx-gray-200);
    border-radius: 16px;
}

.post-content table th,
.post-content table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--sx-gray-200);
    vertical-align: top;
}

.post-content table th {
    background: var(--sx-gray-50);
    color: var(--sx-blue-800);
    font-weight: 900;
}

.post-content pre {
    overflow-x: auto;
    margin: 32px 0;
    padding: 20px;
    border-radius: 18px;
    background: var(--sx-blue-950);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.7;
}

.post-content code {
    font-family: Consolas, Monaco, monospace;
}

.post-content hr {
    margin: 38px 0;
    border: 0;
    border-top: 1px solid var(--sx-gray-200);
}

@media (max-width: 760px) {
    .post-content h2 {
        font-size: 27px;
    }

    .post-content h3 {
        font-size: 23px;
    }

    .post-content blockquote {
        padding: 18px 20px;
        font-size: 17px;
    }

    .post-content img {
        border-radius: 18px;
    }
}

/* Layout com sidebar no post individual */

.single-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.single-post-with-sidebar {
    max-width: none;
    margin: 0;
}

.post-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 20px;
}

.sidebar-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(11, 46, 109, 0.08);
    box-shadow: 0 14px 40px rgba(4, 21, 47, 0.08);
}

.sidebar-label {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 6px 11px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(30, 111, 175, 0.1);
    color: var(--sx-blue-700);
    border: 1px solid rgba(30, 111, 175, 0.16);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-card h3 {
    margin: 0;
    color: var(--sx-blue-950);
    font-size: 21px;
    line-height: 1.18;
    letter-spacing: -0.025em;
    font-weight: 900;
}

.sidebar-card p {
    margin: 12px 0 0;
    color: var(--sx-gray-500);
    font-size: 14px;
    line-height: 1.7;
}

.sidebar-search-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.sidebar-search-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid var(--sx-gray-200);
    outline: none;
    color: var(--sx-gray-900);
    font-family: inherit;
    font-size: 14px;
    transition: 0.22s ease;
}

.sidebar-search-form input:focus {
    border-color: rgba(30, 111, 175, 0.55);
    box-shadow: 0 0 0 4px rgba(30, 111, 175, 0.12);
}

.sidebar-search-form button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sx-blue-800), var(--sx-blue-600));
    color: var(--sx-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.22s ease;
}

.sidebar-search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(30, 111, 175, 0.22);
}

.recent-posts-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.recent-post-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 13px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 10px;
    margin: 0 -10px;
    border-radius: 16px;
    transition: 0.22s ease;
}

.recent-post-item:hover {
    background: var(--sx-gray-50);
}

.recent-post-item img,
.recent-post-placeholder {
    width: 74px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--sx-blue-950), var(--sx-blue-700));
}

.recent-post-placeholder {
    display: grid;
    place-items: center;
    color: var(--sx-white);
    font-size: 12px;
    font-weight: 900;
}

.recent-post-item strong {
    display: block;
    color: var(--sx-blue-950);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 850;
    transition: 0.22s ease;
}

.recent-post-item:hover strong {
    color: var(--sx-blue-600);
}

.recent-post-item small {
    display: block;
    margin-top: 5px;
    color: var(--sx-gray-500);
    font-size: 12px;
    font-weight: 700;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.sidebar-tags a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--sx-blue-800);
    background: var(--sx-gray-50);
    border: 1px solid var(--sx-gray-200);
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
    transition: 0.22s ease;
}

.sidebar-tags a:hover {
    color: var(--sx-white);
    background: var(--sx-blue-700);
    border-color: var(--sx-blue-700);
}

.sidebar-cta-card {
    overflow: hidden;
    position: relative;
    color: var(--sx-white);
    background:
        radial-gradient(circle at top right, rgba(106, 162, 198, 0.28), transparent 34%),
        linear-gradient(135deg, var(--sx-blue-950), var(--sx-blue-800));
}

.sidebar-cta-card .sidebar-label {
    background: rgba(255, 255, 255, 0.1);
    color: #d9ecf7;
    border-color: rgba(255, 255, 255, 0.16);
}

.sidebar-cta-card h3 {
    color: var(--sx-white);
}

.sidebar-cta-card p {
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 20px;
}

.sidebar-cta-card .btn {
    width: 100%;
}

.sidebar-empty-text {
    color: var(--sx-gray-500);
    font-size: 14px;
    line-height: 1.6;
}

/* Layout com sidebar no post individual */

.single-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.single-post-with-sidebar {
    max-width: none;
    margin: 0;
}

.post-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 20px;
}

.sidebar-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(11, 46, 109, 0.08);
    box-shadow: 0 14px 40px rgba(4, 21, 47, 0.08);
}

.sidebar-label {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 6px 11px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(30, 111, 175, 0.1);
    color: var(--sx-blue-700);
    border: 1px solid rgba(30, 111, 175, 0.16);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-card h3 {
    margin: 0;
    color: var(--sx-blue-950);
    font-size: 21px;
    line-height: 1.18;
    letter-spacing: -0.025em;
    font-weight: 900;
}

.sidebar-card p {
    margin: 12px 0 0;
    color: var(--sx-gray-500);
    font-size: 14px;
    line-height: 1.7;
}

.sidebar-search-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.sidebar-search-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid var(--sx-gray-200);
    outline: none;
    color: var(--sx-gray-900);
    font-family: inherit;
    font-size: 14px;
}

.sidebar-search-form input:focus {
    border-color: rgba(30, 111, 175, 0.55);
    box-shadow: 0 0 0 4px rgba(30, 111, 175, 0.12);
}

.sidebar-search-form button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sx-blue-800), var(--sx-blue-600));
    color: var(--sx-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.recent-posts-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.recent-post-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 13px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 10px;
    margin: 0 -10px;
    border-radius: 16px;
}

.recent-post-item:hover {
    background: var(--sx-gray-50);
}

.recent-post-item img,
.recent-post-placeholder {
    width: 74px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--sx-blue-950), var(--sx-blue-700));
}

.recent-post-placeholder {
    display: grid;
    place-items: center;
    color: var(--sx-white);
    font-size: 12px;
    font-weight: 900;
}

.recent-post-item strong {
    display: block;
    color: var(--sx-blue-950);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 850;
}

.recent-post-item small {
    display: block;
    margin-top: 5px;
    color: var(--sx-gray-500);
    font-size: 12px;
    font-weight: 700;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.sidebar-tags a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--sx-blue-800);
    background: var(--sx-gray-50);
    border: 1px solid var(--sx-gray-200);
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
}

.sidebar-tags a:hover {
    color: var(--sx-white);
    background: var(--sx-blue-700);
    border-color: var(--sx-blue-700);
}

.sidebar-cta-card {
    overflow: hidden;
    position: relative;
    color: var(--sx-white);
    background:
        radial-gradient(circle at top right, rgba(106, 162, 198, 0.28), transparent 34%),
        linear-gradient(135deg, var(--sx-blue-950), var(--sx-blue-800));
}

.sidebar-cta-card .sidebar-label {
    background: rgba(255, 255, 255, 0.1);
    color: #d9ecf7;
    border-color: rgba(255, 255, 255, 0.16);
}

.sidebar-cta-card h3 {
    color: var(--sx-white);
}

.sidebar-cta-card p {
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 20px;
}

.sidebar-cta-card .btn {
    width: 100%;
}

.sidebar-empty-text {
    color: var(--sx-gray-500);
    font-size: 14px;
    line-height: 1.6;
}

.single-post-layout .single-post-header {
    padding-top: 46px;
}

.single-post-layout .single-post-header h1 {
    font-size: clamp(34px, 4.2vw, 56px);
}

@media (max-width: 1100px) {
    .single-post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar-cta-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .post-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        padding: 22px;
        border-radius: 22px;
    }

    .single-post-layout .single-post-header h1 {
        font-size: 32px;
    }
}