:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #111827;
    --text: #4b5563;
    --muted: #6b7280;
    --light: #f8fafc;
    --border: #e5e7eb;
    --white: #ffffff;
    --radius: 18px;
    --shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 45px rgba(15, 23, 42, 0.15);
}

body {
    background: #f8fafc;
    color: var(--text);
    font-family: "Open Sans", Arial, sans-serif;
}

/* Espaçamento geral */
main {
    min-height: 70vh;
    padding: 55px 0 20px;
}

.container {
    max-width: 1220px;
}

/* Títulos das seções */
.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    color: var(--dark);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 4px;
    margin-top: 10px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        var(--primary),
        #60a5fa
    );
}

/* Destaques */
.featured-section {
    margin-bottom: 65px;
}

.featured-carousel {
    position: relative;
}

.featured-card {
    overflow: hidden;
    min-height: 390px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.featured-image-link {
    display: block;
    height: 100%;
    min-height: 390px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #dbeafe,
        #eff6ff
    );
}

.featured-image {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-image-link:hover .featured-image {
    transform: scale(1.06);
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 48px;
}

.featured-content h3 {
    margin-bottom: 20px;
    color: var(--dark);
    font-family: "Lora", Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
}

.featured-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.featured-content h3 a:hover {
    color: var(--primary);
}

.featured-content p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.featured-no-image,
.post-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 220px;
    color: #94a3b8;
    background: linear-gradient(
        135deg,
        #e0f2fe,
        #f8fafc
    );
}

.featured-no-image i,
.post-no-image i {
    margin-bottom: 10px;
    font-size: 2.2rem;
}

/* Controles do carrossel */
.featured-carousel .carousel-control-prev,
.featured-carousel .carousel-control-next {
    top: 50%;
    width: 42px;
    height: 42px;
    margin: -21px 12px 0;
    border-radius: 50%;
    opacity: 1;
    background: var(--primary);
    transform: translateY(-50%);
}

.featured-carousel .carousel-control-prev:hover,
.featured-carousel .carousel-control-next:hover {
    background: var(--primary-dark);
}

.featured-carousel .carousel-control-prev-icon,
.featured-carousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

/* Cards de posts */
.posts-section {
    padding-bottom: 65px;
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
}

.post-image-link {
    display: block;
    overflow: hidden;
    background: #e0f2fe;
}

.post-image {
    display: block;
    width: 100%;
    height: 205px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.post-image-link:hover .post-image {
    transform: scale(1.07);
}

.post-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.post-title {
    margin-bottom: 12px;
    color: var(--dark);
    font-family: "Lora", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.post-title a:hover {
    color: var(--primary);
}

.post-description {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        gap 0.25s ease,
        color 0.25s ease;
}

.post-read-more:hover {
    gap: 13px;
    color: var(--primary-dark);
}

.post-read-more i {
    font-size: 0.8rem;
}

/* Estado sem publicações */
.empty-posts {
    padding: 70px 25px;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    text-align: center;
    background: var(--white);
}

.empty-posts i {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 3rem;
}

.empty-posts h3 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.35rem;
    font-weight: 700;
}

.empty-posts p {
    margin: 0;
    color: var(--muted);
}

/* Acessibilidade */
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 4px;
}

/* Responsividade */
@media (max-width: 991px) {
    main {
        padding-top: 35px;
    }

    .featured-card {
        min-height: auto;
    }

    .featured-image-link,
    .featured-image {
        min-height: 280px;
        height: 280px;
    }

    .featured-content {
        min-height: 280px;
        padding: 32px;
    }
}

@media (max-width: 575px) {
    .section-heading h2 {
        font-size: 1.5rem;
    }

    .featured-image-link,
    .featured-image {
        min-height: 220px;
        height: 220px;
    }

    .featured-content {
        min-height: auto;
        padding: 26px 22px 30px;
    }

    .featured-content h3 {
        font-size: 1.55rem;
    }

    .featured-content p {
        font-size: 0.92rem;
    }

    .post-image {
        height: 190px;
    }

    .featured-carousel .carousel-control-prev,
    .featured-carousel .carousel-control-next {
        display: none;
    }
}

