
/* =====================================================
       DETALHES DA NOTÍCIA
    ===================================================== */
.dc-news-detail-page {
    padding: 10px 0;
    background: #f8fafc;
}

.dc-news-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #0d6efd;
    font-weight: 700;
    text-decoration: none;
}

    .dc-news-back:hover {
        color: #0a58ca;
    }

.dc-news-detail-card {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
}

.dc-news-detail-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e7eb;
}

    .dc-news-detail-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.dc-news-detail-content {
    padding: 42px;
}

.dc-news-detail-category {
    display: inline-flex;
    padding: 8px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #0d6efd;
    background: rgba(13, 110, 253, .10);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dc-news-detail-content > h1 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 600;
    line-height: 1.1;
}

.dc-news-detail-content > h2 {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
}

.dc-news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-bottom: 26px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
    color: #64748b;
    font-size: .95rem;
}

    .dc-news-detail-meta span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

.dc-news-detail-text {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.85;
}

    .dc-news-detail-text p {
        margin-bottom: 1.2rem;
    }

    .dc-news-detail-text img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 20px 0;
        border-radius: 18px;
    }

    .dc-news-detail-text h1,
    .dc-news-detail-text h2,
    .dc-news-detail-text h3 {
        margin-top: 28px;
        margin-bottom: 14px;
        color: #0f172a;
        font-weight: 600;
    }

/* =====================================================
       COMPARTILHAMENTO
    ===================================================== */

.dc-news-share {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.dc-news-share-title {
    display: block;
    margin-bottom: 16px;
    color: #0f172a;
    font-size: .95rem;
    font-weight: 800;
}

.dc-news-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 18px;
    color: #fff;
    font-size: 1.15rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, opacity .25s ease;
}

    .share-btn:hover {
        color: #fff;
        opacity: .92;
        transform: translateY(-4px);
    }

.share-facebook {
    background: #1877f2;
}

.share-whatsapp {
    background: #25d366;
}

.share-twitter {
    background: #111827;
}

.share-linkedin {
    background: #0a66c2;
}

.share-copy {
    background: #64748b;
}

.share-instagram {
    background: linear-gradient( 135deg, #f58529, #dd2a7b, #8134af, #515bd4 );
}

/* =====================================================
       LISTAGEM DE NOTÍCIAS
    ===================================================== */

.dc-news-page {
    padding: 20px 0 50px;
    background: #f8fafc;
}

.dc-news-header {
    max-width: 760px;
    margin: 0 auto 50px;
    padding: 0 15px;
    text-align: center;
}

.dc-news-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    color: #0d6efd;
    background: rgba(13, 110, 253, .10);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dc-news-header h1 {
    margin: 18px 0 12px;
    color: #0f172a;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
}

.dc-news-header p {
    margin: 0;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* CARD DA LISTAGEM */

.dc-news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .dc-news-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 42px rgba(15, 23, 42, .13);
    }

.dc-news-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e7eb;
}

    .dc-news-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform .45s ease;
    }

.dc-news-card:hover .dc-news-image img {
    transform: scale(1.05);
}

.dc-news-image-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    font-size: 2.7rem;
}

    .dc-news-image-empty span {
        font-size: .78rem;
        font-weight: 700;
    }

.dc-news-category {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 18px;
    max-width: calc(100% - 36px);
    padding: 7px 14px;
    overflow: hidden;
    border-radius: 999px;
    color: #fff;
    background: rgba(13, 110, 253, .95);
    box-shadow: 0 6px 18px rgba(13, 110, 253, .25);
    backdrop-filter: blur(6px);
    font-size: .72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dc-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.dc-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 14px;
    color: #64748b;
    font-size: .82rem;
}

    .dc-news-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.dc-news-content h3 {
    display: -webkit-box;
    min-height: 3.4rem;
    margin: 0 0 12px;
    overflow: hidden;
    color: #0f172a;
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

    .dc-news-content h3 a {
        color: inherit;
        text-decoration: none;
        transition: color .2s ease;
    }

        .dc-news-content h3 a:hover {
            color: #0d6efd;
        }

.dc-news-content p {
    display: -webkit-box;
    margin: 0 0 20px;
    overflow: hidden;
    color: #64748b;
    font-size: .95rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.dc-news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    color: #0d6efd;
    font-weight: 700;
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}

    .dc-news-link:hover {
        gap: 12px;
        color: #0a58ca;
    }

    .dc-news-link i {
        transition: transform .2s ease;
    }

    .dc-news-link:hover i {
        transform: translateX(3px);
    }

/* SEM NOTÍCIAS */

.dc-news-empty {
    padding: 60px 30px;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 24px;
    text-align: center;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

    .dc-news-empty i {
        display: block;
        margin-bottom: 18px;
        color: #94a3b8;
        font-size: 3rem;
    }

    .dc-news-empty h3 {
        margin-bottom: 10px;
        color: #0f172a;
        font-weight: 800;
    }

    .dc-news-empty p {
        margin: 0;
        color: #64748b;
    }

/* =====================================================
       RESPONSIVO
    ===================================================== */

@media (max-width: 768px) {
    .dc-news-detail-content {
        padding: 26px 20px;
    }

    .dc-news-detail-meta {
        gap: 12px;
    }

    .dc-news-page {
        padding: 15px 0 40px;
    }

    .dc-news-header {
        margin-bottom: 32px;
    }

    .dc-news-card {
        border-radius: 20px;
    }

    .dc-news-content {
        padding: 20px;
    }

    .dc-news-category {
        left: 14px;
        bottom: 14px;
    }

    .dc-news-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .dc-news-detail-card {
        border-radius: 20px;
    }

    .dc-news-detail-content {
        padding: 22px 18px;
    }

        .dc-news-detail-content > h1 {
            font-size: 1.65rem;
        }

    .dc-news-share-buttons {
        gap: 9px;
    }

    .share-btn {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .dc-news-header h1 {
        font-size: 1.75rem;
    }

    .dc-news-content h3 {
        min-height: auto;
        font-size: 1.1rem;
    }

    .dc-news-content p {
        font-size: .9rem;
    }
}


