/* Variáveis CSS */
:root {
    --primary-color: rgb(252, 234, 32);
    /* Amarelo */
    --primary-hover: rgb(220, 200, 20);
    --secondary-color: rgb(18, 37, 56);
    /* Azul Escuroo */
    --secondary-hover: rgb(10, 25, 40);
    --text-color: #333;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --font-main: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    /* Adjusted from 3rem */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 35px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Cabeçalho */
.site-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--secondary-color);
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 8px 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dropdown-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 6px 20px;
    font-size: 0.9rem;
    text-align: left;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a::after {
    display: none; /* Removendo o sublinhado animado para os itens do dropdown */
}

.dropdown-menu a:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--primary-color);
}

.btn-contact {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 20px !important;
    border-radius: 20px;
}

.btn-contact:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
}

.nav-toggle-input {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Seção Hero */
.hero-section {
    height: 90vh;
    /* Background removed - handled by carousel */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    /* Ensure images don't overflow */
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 37, 56, 0.7), rgba(18, 37, 56, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.2rem;
    /* Adjusted from 4rem */
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.15rem;
    /* Adjusted from 1.25rem */
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Seção de Impacto */
.impact-section {
    background-color: var(--bg-white);
}

.impact-section .section-title {
    color: var(--secondary-color);
}

.impact-section .section-title::after {
    background-color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
    border: 1px solid #eee;
}

.stat-card:hover {
    transform: translateY(-10px);
}

@property --num {
    syntax: "<integer>";
    initial-value: 0;
    inherits: false;
}

@keyframes countUp {
    from {
        --num: 0;
    }

    to {
        --num: var(--target);
    }
}

.stat-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    /* animation moved to .visible state */
    counter-reset: num var(--num);
}

.impact-section.visible .stat-number {
    animation: countUp 4s ease-out forwards;
}

.stat-number::after {
    content: counter(num);
}

.stat-plus {
    display: inline-block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-right: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-card p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

/* Layout Dividido (Sobre e CDI) */
.split-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.image-wrapper {
    flex: 1;
    position: relative;
}

.image-wrapper img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s;
}

.image-wrapper img:hover {
    transform: scale(1.05);
}

.text-wrapper {
    flex: 1;
    padding: 20px 0;
}

.text-wrapper h2 {
    font-size: 2.2rem;
    /* Adjusted from 2.8rem */
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.text-wrapper p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    /* Adjusted from 1.15rem */
    font-weight: 400;
    line-height: 1.6;
    color: #444;
}

/* Galeria / CEDESP */
.gallery-section {
    background-color: var(--secondary-color);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

.gallery-item img {
    border-radius: 10px;
    transition: transform 0.4s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-item.text-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.gallery-item.text-item h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Chamada para Ação */
.cta-section {
    background-color: transparent;
    /* Reset to default */
}

.cta-box {
    background-color: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.links-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Seção de Contato */
.contact-section {
    background-color: var(--bg-white);
}

.info-block {
    flex: 1;
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
}

.info-block h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.badges {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.badges img {
    transition: transform 0.3s;
}

.badges img:hover {
    transform: scale(1.1);
}

.contact-form {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(252, 234, 32, 0.2);
}

/* Rodapé */
.site-footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.site-footer p {
    margin: 20px 0;
    opacity: 0.8;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    margin: 0 10px;
    font-weight: bold;
}

/* Botões de Ação dos Programas */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Responsividade Mobile */
@media (max-width: 992px) {

    .split-layout {
        flex-direction: column;
        text-align: center;
    }

    .split-layout.reverse {
        flex-direction: column-reverse;
        text-align: center;
    }

    .gallery-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .info-block {
        text-align: center;
    }

    .badges {
        justify-content: center;
    }

    .action-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--secondary-color);
        padding-top: 80px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .main-nav.active,
    .nav-toggle-input:checked~.main-nav {
        right: 0;
    }

    /* Animação do Hambúrguer ao Selecionar */
    .nav-toggle-input:checked+.menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .nav-toggle-input:checked+.menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle-input:checked+.menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .dropdown-wrapper {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background-color: rgba(0,0,0,0.1);
        width: 100%;
        display: none;
        margin-top: 5px;
        padding: 10px 0;
    }
    
    .dropdown-wrapper:hover .dropdown-menu,
    .dropdown-wrapper:focus-within .dropdown-menu {
        display: flex;
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu a {
        text-align: center;
        padding: 10px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Animações */
/* Animações - Fallback Apenas CSS (Executar ao Carregar) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Base state ensuring visibility if animation fails or for simple fallback */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    /* Inicia oculto, animação revela */
}

/* Blog dinâmico */
.blog-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
    padding: 80px 0;
}

.blog-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 35px;
}

.blog-section__header p,
.page-header--blog p {
    margin-top: 14px;
    color: #56606d;
    max-width: 720px;
    font-size: 1.05rem;
}

.blog-kicker,
.panel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-hover);
}

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

.blog-grid--home {
    margin-top: 10px;
}

.blog-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(18, 37, 56, 0.08);
    border: 1px solid rgba(18, 37, 56, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.blog-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__media img {
    transform: scale(1.04);
}

.blog-card__body {
    padding: 22px 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    color: #6c7684;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--secondary-color);
}

.blog-card p {
    color: #56606d;
    font-size: 0.98rem;
    flex: 1;
}

.blog-card__link {
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.83rem;
}

.blog-empty {
    grid-column: 1 / -1;
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    color: #56606d;
    text-align: center;
    box-shadow: 0 12px 30px rgba(18, 37, 56, 0.06);
}

.blog-index-section,
.blog-detail-section {
    padding: 80px 0;
    background: #f7f8fb;
}

.page-header--blog {
    background: linear-gradient(135deg, var(--secondary-color), #10283d);
    color: #fff;
    padding: 90px 0;
    text-align: center;
}

.page-header--blog h1 {
    color: var(--primary-color);
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
}

.blog-detail {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 20px 50px rgba(18, 37, 56, 0.08);
    border: 1px solid rgba(18, 37, 56, 0.06);
}

.blog-detail__eyebrow {
    color: #6c7684;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.blog-detail h1 {
    color: var(--secondary-color);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
    margin-bottom: 14px;
}

.blog-detail__description {
    color: #56606d;
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.blog-detail__image {
    width: 100%;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 0 18px 42px rgba(18, 37, 56, 0.12);
}

.blog-detail__content {
    display: grid;
    gap: 18px;
    color: #2d3640;
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-detail__actions {
    margin-top: 34px;
}

.blog-detail__empty {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 20px 50px rgba(18, 37, 56, 0.08);
}

.blog-detail__empty h1 {
    color: var(--secondary-color);
    margin-bottom: 14px;
}

/* Admin */
body.admin-page {
    background: linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%);
}

.admin-main {
    padding-bottom: 70px;
}

.admin-hero {
    padding: 84px 0 54px;
    background: radial-gradient(circle at top left, rgba(252, 234, 32, 0.18), transparent 35%), linear-gradient(135deg, #122538 0%, #0f1f30 100%);
    color: #fff;
}

.admin-hero__content {
    max-width: 780px;
}

.admin-hero__content h1 {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
    margin-bottom: 18px;
}

.admin-hero__content p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    max-width: 700px;
}

.admin-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.admin-dashboard {
    padding-top: 40px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
}

.admin-panel {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(18, 37, 56, 0.08);
    border: 1px solid rgba(18, 37, 56, 0.06);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.panel-heading h2 {
    color: var(--secondary-color);
    font-size: 1.65rem;
}

.admin-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field span {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.field-hint {
    color: #6c7684;
    font-size: 0.82rem;
    line-height: 1.5;
}

.image-preview {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 180px;
    padding: 16px;
    border-radius: 18px;
    border: 1px dashed #d9e1eb;
    background: #fff;
}

.image-preview__empty {
    color: #8b95a3;
    font-size: 0.92rem;
}

.image-preview img {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(18, 37, 56, 0.12);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid #d9e1eb;
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    color: var(--text-color);
    background: #fbfcfe;
}

.rich-editor {
    display: grid;
    gap: 0;
    border: 1px solid #d9e1eb;
    border-radius: 18px;
    overflow: hidden;
    background: #fbfcfe;
}

.rich-editor:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(252, 234, 32, 0.2);
    background: #fff;
}

.rich-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #e2e8f1;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.rich-editor__button {
    appearance: none;
    border: 1px solid #d8e0ea;
    background: #fff;
    color: var(--secondary-color);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 42px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rich-editor__button:hover {
    background: #f1f5fb;
    border-color: #c9d4e1;
}

.rich-editor__separator {
    width: 1px;
    background: #d8e0ea;
    margin: 4px 2px;
}

.rich-editor__content {
    min-height: 260px;
    padding: 18px 20px;
    outline: none;
    background: #fff;
    color: var(--text-color);
    line-height: 1.75;
    font-size: 1rem;
}

.rich-editor__content:empty::before {
    content: attr(data-placeholder);
    color: #8b95a3;
    pointer-events: none;
}

.rich-editor__content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 10px 0;
}

.rich-editor__content h2,
.rich-editor__content h3,
.rich-editor__content blockquote,
.rich-editor__content ul,
.rich-editor__content ol {
    margin: 12px 0;
}

.rich-editor__content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 14px;
    color: #516070;
}

.rich-editor__content a {
    color: #0f5bd8;
    text-decoration: underline;
}

.rich-editor__source {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(252, 234, 32, 0.2);
    background: #fff;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field--full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-posts-list {
    display: grid;
    gap: 16px;
}

.admin-post-card {
    padding: 18px;
    border-radius: 20px;
    background: #f9fbfe;
    border: 1px solid #e6ecf4;
}

.admin-post-card__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.admin-post-card__header h3 {
    color: var(--secondary-color);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.admin-post-card__header p,
.admin-post-card__description {
    color: #5d6875;
}

.admin-post-card__description {
    margin-bottom: 16px;
}

.admin-post-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-published {
    background: rgba(30, 155, 87, 0.12);
    color: #1b7f49;
}

.status-draft {
    background: rgba(214, 129, 14, 0.12);
    color: #b66500;
}

.btn-small {
    padding: 10px 16px;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

.btn-danger {
    background: #d94f4f;
    color: #fff;
}

.btn-danger:hover {
    background: #bf3f3f;
    transform: translateY(-2px);
}

.admin-empty {
    color: #5d6875;
    text-align: center;
    padding: 24px 18px;
    border: 1px dashed #d6deea;
    border-radius: 16px;
    background: #fbfcfe;
}

.admin-nav ul {
    gap: 18px;
}

@media (max-width: 992px) {
    .blog-grid,
    .admin-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .blog-section__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-detail,
    .admin-panel {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .blog-detail-section,
    .blog-index-section,
    .blog-section,
    .admin-dashboard {
        padding-left: 0;
        padding-right: 0;
    }

    .blog-detail,
    .blog-detail__empty,
    .admin-panel {
        border-radius: 22px;
    }

    .blog-card__meta,
    .admin-post-card__header {
        flex-direction: column;
    }

    .panel-heading,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .btn,
    .admin-hero__actions .btn {
        width: 100%;
        text-align: center;
    }
}