/* =====================================================
   PARTIAL NOTÍCIAS — BANCO SOL
===================================================== */

.home-news{
  padding: 80px 0;
  background: #fff;
}

.home-news-header{
  text-align: center;
  margin-bottom: 34px;
}

.home-news-header h2{
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: #0b1220;
  margin-bottom: 10px;
  line-height: 1.15;
}

.home-news-header p{
  color: rgba(11,18,32,0.68);
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

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

.home-news-card{
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15,28,46,0.08);
  box-shadow: 0 18px 50px rgba(15,28,46,0.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-news-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(15,28,46,0.12);
  border-color: rgba(255,210,0,0.35);
}

.news-image{
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
}

.news-image img{
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.news-date{
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: #FFD200;
  color: #0b1220;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.news-content{
  padding: 28px 28px 26px;
}

.news-content h3{
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.35;
  color: #0b1220;
  margin: 0 0 14px;
}

.news-content p{
  color: rgba(11,18,32,0.72);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0 0 24px;
}

.news-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0b1220;
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  transition: gap .2s ease, color .2s ease;
}

.news-link:hover{
  color: #000;
  gap: 14px;
}

.home-news-footer{
  margin-top: 40px;
  text-align: center;
}

/* =====================================================
   PAGINAÇÃO
===================================================== */

.news-pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.news-pagination a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: 15px;
  color: #0b1220;
  background: #ffffff;
  border: 2px solid rgba(15,28,46,0.10);
  transition: all .25s ease;
}

.news-pagination a:hover{
  background: #FFD200;
  border-color: #FFD200;
  color: #000;
  transform: translateY(-2px);
}

.news-pagination a.active{
  background: #FFD200;
  border-color: #FFD200;
  color: #000;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* =====================================================
   RESPONSIVO
===================================================== */

@media (max-width: 1199.98px){
  .news-image img{
    height: 240px;
  }
}

@media (max-width: 991.98px){
  .home-news{
    padding: 64px 0;
  }

  .home-news-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .news-image img{
    height: 230px;
  }

  .news-content{
    padding: 24px;
  }
}

@media (max-width: 575.98px){
  .home-news{
    padding: 56px 0;
  }

  .home-news-grid{
    grid-template-columns: 1fr;
  }

  .news-image img{
    height: 220px;
  }

  .news-date{
    top: 14px;
    left: 14px;
    font-size: 0.82rem;
    padding: 9px 14px;
  }

  .news-content{
    padding: 22px 20px;
  }

  .news-content h3{
    font-size: 1.15rem;
  }

  .news-pagination{
    gap: 10px;
  }

  .news-pagination a{
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
  }
}

/* =====================================================
   NOTÍCIAS — LISTAGEM PREMIUM
===================================================== */

.home-news{
  padding: 72px 0;
  background: #f5f7fa;
}

.home-news-header{
  text-align: center;
  margin-bottom: 34px;
}

.home-news-header h2{
  margin: 0 0 10px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 900;
  color: #0b1220;
}

.home-news-header p{
  margin: 0;
  color: rgba(11,18,32,0.68);
  font-size: 1rem;
}

.home-news-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.home-news-card{
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15,28,46,0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15,28,46,0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-news-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15,28,46,0.10);
  border-color: rgba(255,210,0,0.35);
}

.news-image{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9edf2;
}

.news-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-date{
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #FFD200;
  color: #0b1220;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.news-content{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 24px;
}

.news-content h3{
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 1.6vw, 1.7rem);
  line-height: 1.3;
  font-weight: 900;
  color: #0b1220;
}

.news-content p{
  margin: 0 0 22px;
  color: rgba(11,18,32,0.72);
  line-height: 1.65;
  font-size: 1rem;
}

.news-link{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0b1220;
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  transition: gap .2s ease;
}

.news-link:hover{
  gap: 12px;
}

.news-pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.news-pagination a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #0b1220;
  background: #fff;
  border: 1px solid rgba(15,28,46,0.10);
  transition: all .25s ease;
}

.news-pagination a:hover,
.news-pagination a.active{
  background: #FFD200;
  border-color: #FFD200;
}

@media (max-width: 991.98px){
  .home-news-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px){
  .home-news{
    padding: 56px 0;
  }

  .home-news-grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .news-content{
    padding: 22px 20px;
  }

  .news-content h3{
    font-size: 1.25rem;
  }

  .news-date{
    top: 14px;
    left: 14px;
    min-height: 40px;
    font-size: 0.82rem;
    padding: 0 14px;
  }
}

/* =====================================================
   NOTÍCIA — DETALHE
===================================================== */

.news-detail{
  padding: 72px 0 32px;
  background: #fff;
}

.news-detail-article{
  max-width: 980px;
  margin: 0 auto;
}

.news-detail-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.news-detail-date,
.news-detail-category{
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.news-detail-date{
  background: #FFD200;
  color: #0b1220;
}

.news-detail-category{
  background: rgba(15,28,46,0.06);
  color: #0b1220;
  border: 1px solid rgba(15,28,46,0.08);
}

.news-detail-image{
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 18px 50px rgba(15,28,46,0.10);
}

.news-detail-image img{
  width: 100%;
  display: block;
  object-fit: cover;
}

.news-detail-text{
  font-size: 1.08rem;
  line-height: 1.9;
  color: rgba(11,18,32,0.78);
}

.news-detail-text p{
  margin: 0 0 20px;
}

.news-detail-text h2{
  margin: 34px 0 14px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.25;
  font-weight: 900;
  color: #0b1220;
}

.news-detail-actions{
  margin-top: 36px;
}

/* =====================================================
   NOTÍCIAS RELACIONADAS
===================================================== */

.related-news{
  padding: 24px 0 72px;
  background: #fff;
}

.related-news-header{
  text-align: center;
  margin-bottom: 30px;
}

.related-news-header h2{
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 900;
  color: #0b1220;
}

.related-news-header p{
  margin: 0;
  color: rgba(11,18,32,0.68);
}

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

.related-news-card{
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15,28,46,0.08);
  box-shadow: 0 16px 40px rgba(15,28,46,0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.related-news-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15,28,46,0.10);
  border-color: rgba(255,210,0,0.35);
}

.related-news-image{
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9edf2;
}

.related-news-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-news-content{
  padding: 22px 20px 20px;
}

.related-news-date{
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #FFD200;
  color: #0b1220;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.related-news-content h3{
  margin: 0 0 14px;
  font-size: 1.1rem;
  line-height: 1.45;
  font-weight: 900;
  color: #0b1220;
}

@media (max-width: 991.98px){
  .related-news-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px){
  .news-detail{
    padding: 56px 0 24px;
  }

  .related-news{
    padding: 24px 0 56px;
  }

  .news-detail-text{
    font-size: 1rem;
    line-height: 1.8;
  }
}

.news-detail-author{
  background: rgba(15,28,46,0.05);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.news-share{
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.news-share a{
  text-decoration: none;
  color: #0b1220;
  font-weight: 700;
}

.news-navigation{
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.news-nav{
  flex: 1;
  text-decoration: none;
  padding: 16px;
  border-radius: 12px;
  background: #f5f7fa;
  font-weight: 700;
  color: #0b1220;
  transition: .2s;
}

.news-nav:hover{
  background: #FFD200;
}

/* =====================================================
   PARTILHA + COMENTÁRIOS — NOTÍCIA
===================================================== */

.news-social-wrap{
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(15,28,46,0.08);
}

.news-share{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.news-share span{
  font-weight: 800;
  color: #0b1220;
  margin-right: 4px;
}

.news-share-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: all .25s ease;
}

.news-share-btn:hover{
  transform: translateY(-2px);
}

.news-share-btn.facebook{
  background: #FFD200;
  color: #0b1220;
  border-color: #FFD200;
}

.news-share-btn.linkedin{
  background: #0b1220;
  color: #ffffff;
  border-color: #0b1220;
}

.news-share-btn.whatsapp{
  background: #f4f6f8;
  color: #0b1220;
  border-color: rgba(15,28,46,0.10);
}

.news-share-btn.outline{
  background: transparent;
  color: #0b1220;
  border-color: rgba(15,28,46,0.12);
}

.news-comments-box{
  margin-top: 10px;
  padding: 24px;
  border-radius: 20px;
  background: #f8f9fb;
  border: 1px solid rgba(15,28,46,0.08);
}

.news-comments-box h3{
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #0b1220;
}

.news-comments-box p{
  margin: 0 0 18px;
  color: rgba(11,18,32,0.72);
  line-height: 1.7;
}

.news-comments-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 575.98px){
  .news-comments-box{
    padding: 20px;
  }
}

/* =====================================================
   NOTÍCIA — DETALHE
===================================================== */

.news-detail{
  padding: 72px 0 32px;
  background: #fff;
}

.news-detail-article{
  max-width: 980px;
  margin: 0 auto;
}

.news-detail-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.news-detail-date,
.news-detail-category,
.news-detail-author{
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.news-detail-date{
  background: #FFD200;
  color: #0b1220;
}

.news-detail-category,
.news-detail-author{
  background: rgba(15,28,46,0.06);
  color: #0b1220;
  border: 1px solid rgba(15,28,46,0.08);
}

.news-detail-image{
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 18px 50px rgba(15,28,46,0.10);
}

.news-detail-image img{
  width: 100%;
  display: block;
  object-fit: cover;
}

.news-detail-text{
  font-size: 1.08rem;
  line-height: 1.9;
  color: rgba(11,18,32,0.78);
}

.news-detail-text p{
  margin: 0 0 20px;
}

.news-detail-text h2{
  margin: 34px 0 14px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.25;
  font-weight: 900;
  color: #0b1220;
}

/* =====================================================
   PARTILHA / COMENTÁRIOS
===================================================== */

.news-social-wrap{
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.news-share,
.news-comments-box{
  background: #f8fafc;
  border: 1px solid rgba(15,28,46,0.08);
  border-radius: 20px;
  padding: 22px;
}

.news-share{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.news-share span{
  font-weight: 800;
  color: #0b1220;
}

.news-share-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: all .25s ease;
}

.news-share-btn.facebook{
  background: #FFD200;
  color: #0b1220;
}

.news-share-btn.linkedin{
  background: #0b1220;
  color: #fff;
}

.news-share-btn.whatsapp{
  background: #f4f4f5;
  color: #0b1220;
  border: 1px solid rgba(15,28,46,0.08);
}

.news-share-btn.outline{
  background: transparent;
  color: #0b1220;
  border: 1px solid rgba(15,28,46,0.10);
}

.news-share-btn:hover{
  transform: translateY(-2px);
}

.news-comments-box h3{
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #0b1220;
}

.news-comments-box p{
  margin: 0 0 16px;
  color: rgba(11,18,32,0.72);
  line-height: 1.7;
}

.news-comments-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =====================================================
   NAVEGAÇÃO
===================================================== */

.news-navigation{
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.news-nav{
  flex: 1;
  text-decoration: none;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f5f7fa;
  border: 1px solid rgba(15,28,46,0.08);
  font-weight: 800;
  color: #0b1220;
  transition: all .25s ease;
}

.news-nav:hover{
  background: #FFD200;
  border-color: #FFD200;
  transform: translateY(-2px);
}

.news-detail-actions{
  margin-top: 36px;
}

@media (max-width: 991.98px){
  .news-social-wrap{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px){
  .news-detail{
    padding: 56px 0 24px;
  }

  .news-detail-text{
    font-size: 1rem;
    line-height: 1.8;
  }

  .news-navigation{
    flex-direction: column;
  }
}

/* =====================================================
   NOTÍCIA — PARTILHA E COMENTÁRIOS
===================================================== */

.news-social-wrap{
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

.news-share-panel{
  background: #f8f6f2;
  border: 1px solid rgba(15,28,46,0.08);
  border-radius: 24px;
  padding: 28px;
}

.news-share-title{
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  color: #0b1220;
}

.share-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.share-btn{
  width: 54px;
  height: 54px;
  border: 1px solid rgba(15,28,46,0.10);
  border-radius: 14px;
  background: #fff;
  color: #0E2A5C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all .25s ease;
  box-shadow: 0 10px 24px rgba(15,28,46,0.04);
}

.share-btn:hover{
  background: #FFD200;
  border-color: #FFD200;
  color: #0b1220;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15,28,46,0.12);
}

.share-btn i{
  line-height: 1;
  pointer-events: none;
}

.share-btn::after{
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  background: #0b1220;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease;
  pointer-events: none;
  z-index: 5;
}

.share-btn:hover::after{
  opacity: 1;
  visibility: visible;
}

.news-comments-box{
  background: #fff;
  border: 1px solid rgba(15,28,46,0.08);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(15,28,46,0.06);
}

.news-comments-box h3{
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #0b1220;
}

.news-comments-box p{
  margin: 0;
  color: rgba(11,18,32,0.70);
  line-height: 1.7;
}

.news-comments-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.news-share-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: all .25s ease;
}

.news-share-btn.facebook{
  background: #0b1220;
  color: #fff;
}

.news-share-btn.facebook:hover{
  background: #FFD200;
  color: #0b1220;
}

.news-share-btn.outline{
  background: #fff;
  color: #0b1220;
  border: 1px solid rgba(15,28,46,0.10);
}

.news-share-btn.outline:hover{
  background: #f5f5f5;
}

/* segurança: esconde qualquer bloco antigo que ainda exista */
.news-share{
  display: none !important;
}

@media (max-width: 575.98px){
  .news-share-panel,
  .news-comments-box{
    padding: 22px 18px;
    border-radius: 20px;
  }

  .share-bar{
    gap: 10px;
  }

  .share-btn{
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .news-comments-actions{
    flex-direction: column;
  }

  .news-share-btn{
    width: 100%;
  }
}

