/* ==========================================================================
   MODERNIZAÇÃO DA SEÇÃO E PÁGINA DE NOTÍCIAS (SENAI BAHIA)
   ========================================================================== */

/* --- 1. Seção Home: Fique por Dentro --- */
.news-section-modern {
    background: #f7f9fc !important;
    border-top: 1px solid #e8eef5;
    border-bottom: 1px solid #e8eef5;
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

.news-pill-label {
    display: inline-block !important;
    background: #e1edff !important;
    color: #005bb5 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    margin-bottom: 14px !important;
}

.btn-news-modern {
    color: #005bb5 !important;
    border: 2px solid #005bb5 !important;
    border-radius: 30px !important;
    padding: 10px 26px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-news-modern:hover {
    background: #005bb5 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 91, 181, 0.25) !important;
    transform: translateY(-2px);
}

/* --- 2. Cards Modernos de Notícias (Home e Listagem) --- */
.card-news-modern {
    background: #ffffff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07) !important;
    transition: all 0.35s ease !important;
    border: 1px solid #eef2f7 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.card-news-modern:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 32px rgba(0, 60, 150, 0.12) !important;
    border-color: #d0e1f9 !important;
}

.card-news-img-box {
    position: relative !important;
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
    background-color: #edf2f7 !important;
}

.card-news-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.5s ease !important;
    display: block !important;
}

.card-news-modern:hover .card-news-img-box img {
    transform: scale(1.06) !important;
}

.card-news-category {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    background: #faa639 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 4px 12px !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    z-index: 2 !important;
}

.card-news-content {
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    background: #ffffff !important;
}

.card-news-date {
    font-size: 12px !important;
    color: #8c9ba5 !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    display: block !important;
}

.card-news-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a2734 !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 44px !important;
    transition: color 0.2s ease !important;
}

.card-news-modern:hover .card-news-title {
    color: #005bb5 !important;
}

.card-news-excerpt {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.55 !important;
    margin-bottom: 16px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex-grow: 1 !important;
}

.card-news-link {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #faa639 !important;
    margin-top: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.card-news-modern:hover .card-news-link {
    transform: translateX(4px) !important;
    color: #e08b1f !important;
}

/* Versão Mobile dos Cards */
.mobile-news-item {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #edf2f7 !important;
}

.mobile-news-thumb {
    width: 85px !important;
    height: 85px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.mobile-news-info {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.mobile-news-cat {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #faa639 !important;
    text-transform: uppercase !important;
    margin-bottom: 3px !important;
}

.mobile-news-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a2734 !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
}

.mobile-news-date {
    font-size: 11px !important;
    color: #8c9ba5 !important;
}

/* --- 3. Cabeçalho Hero da Matéria Individual (single.php) --- */
.news-hero-header {
    position: relative !important;
    background-color: #0b1a2d !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 130px 0 60px 0 !important;
    color: #ffffff !important;
    margin-bottom: 40px !important;
}

.news-hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(180deg, rgba(11, 26, 45, 0.75) 0%, rgba(11, 26, 45, 0.94) 100%) !important;
    z-index: 1 !important;
}

.news-hero-header .container {
    position: relative !important;
    z-index: 2 !important;
}

.news-breadcrumb .breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
}

.news-breadcrumb .breadcrumb-item,
.news-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.news-breadcrumb .breadcrumb-item.active {
    color: #faa639 !important;
    font-weight: 600 !important;
}

.news-hero-title {
    font-size: 2.3rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.5px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.news-meta-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.meta-badge-cat {
    background: #faa639 !important;
    color: #ffffff !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

.meta-divider {
    opacity: 0.5 !important;
}

/* --- 4. Corpo Editorial da Matéria (single.php) --- */
.news-content-wrapper {
    position: relative !important;
    padding-bottom: 60px !important;
}

/* Barra Flutuante de Compartilhamento (Desktop) */
.sticky-share-modern {
    position: sticky !important;
    top: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 10 !important;
}

.share-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #8c9ba5 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 4px !important;
}

.social-share-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 16px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
}

.social-share-btn:hover {
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25) !important;
}

.share-whatsapp { background-color: #25D366 !important; }
.share-facebook { background-color: #1877F2 !important; }
.share-twitter  { background-color: #111111 !important; }
.share-mail     { background-color: #ea4335 !important; }
.share-copy     { background-color: #005bb5 !important; }

/* Tipografia Editorial Premium */
.post-editorial-content {
    max-width: 820px !important;
    margin: 0 auto !important;
}

.post-editorial-content p {
    color: #2b3445 !important;
    font-size: 1.125rem !important; /* 18px */
    line-height: 1.85 !important;
    margin-bottom: 1.6rem !important;
    font-family: inherit !important;
    word-break: break-word !important;
}

/* Primeiro parágrafo destacado (Lead Editorial) */
.post-editorial-content > p:first-of-type {
    font-size: 1.25rem !important; /* 20px */
    line-height: 1.75 !important;
    color: #0f1c2d !important;
    font-weight: 500 !important;
    padding-left: 18px !important;
    border-left: 4px solid #005bb5 !important;
    margin-bottom: 2rem !important;
}

.post-editorial-content h2,
.post-editorial-content h3,
.post-editorial-content h4 {
    color: #0d3b66 !important;
    font-weight: 700 !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.35 !important;
}

.post-editorial-content h2 { font-size: 1.65rem !important; }
.post-editorial-content h3 { font-size: 1.4rem !important; }
.post-editorial-content h4 { font-size: 1.2rem !important; }

.post-editorial-content a {
    color: #005bb5 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

.post-editorial-content a:hover {
    color: #faa639 !important;
}

.post-editorial-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 1.8rem 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.post-editorial-content blockquote {
    background: #f4f8fd !important;
    border-left: 4px solid #faa639 !important;
    padding: 18px 24px !important;
    margin: 2rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: italic !important;
    color: #1e293b !important;
}

.post-editorial-content blockquote p {
    font-size: 1.15rem !important;
    margin-bottom: 0 !important;
}

.post-editorial-content ul,
.post-editorial-content ol {
    margin-bottom: 1.6rem !important;
    padding-left: 28px !important;
}

.post-editorial-content li {
    color: #2b3445 !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    margin-bottom: 0.5rem !important;
}

/* Barra de compartilhamento inferior */
.news-bottom-share {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 22px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-top: 40px !important;
}

.bottom-share-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

.bottom-share-icons {
    display: flex !important;
    gap: 8px !important;
}

.bottom-share-icons .social-share-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
}

/* Botão de retorno */
.btn-back-news {
    display: inline-flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
    padding: 10px 22px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.btn-back-news:hover {
    border-color: #005bb5 !important;
    color: #005bb5 !important;
    transform: translateX(-3px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* Seção Relacionadas / Leia Também */
.related-news-section {
    background: #f8fafc !important;
    border-top: 1px solid #eef2f6 !important;
}

.related-section-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #0f1c2d !important;
}

.related-section-title span {
    color: #faa639 !important;
}

/* Título da página de listagem */
.section-news-page-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #0f1c2d !important;
}

.section-news-page-title span {
    color: #faa639 !important;
}

@media (max-width: 768px) {
    .news-hero-title {
        font-size: 1.6rem !important;
    }
    .post-editorial-content p {
        font-size: 1.05rem !important;
        line-height: 1.75 !important;
    }
    .post-editorial-content > p:first-of-type {
        font-size: 1.15rem !important;
    }
}