/**
 * UCBVet News Styles
 * Version: 2.1.0
 * Fix: Imagens no conteúdo do single news
 */

/* Force Load - Anti-Cache */
html.ucbvet-news-loaded,
body.ucbvet-news-loaded {
    --news-loaded: 1;
}

/* Reset conflicts */
.ucbvet-news-page *,
.taxonomy-news-page *,
.single-news-page * {
    box-sizing: border-box;
}

.ucbvet-news-page,
.taxonomy-news-page,
.single-news-page {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ============================================
   HEADER UCBVET NEWS
   ============================================ */

.ucbvet-news-header-section {
  background-color: #2d5f5d;
  padding: 80px 20px;
  margin: 0;
}

.news-header-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.news-main-title {
  margin: 0;
  padding: 0;
  font-size: 48px;
  font-weight: 300;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Be Vietnam Pro', sans-serif;
  width: 40%;
}

.title-ucbvet {
  font-weight: 300;
  letter-spacing: 1px;
}

.title-news {
  background-color: #5ca99a;
  padding: 8px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 36px;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

.ucbvet-news-hero-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   BARRA DE PESQUISA
   ============================================ */

.news-search-container {
  margin: 60px auto;
  max-width: 650px;
}

.news-search-form {
	display: flex;
  width: 100%;
}

.news-search-input {
  width: 100%;
  padding: 18px 60px 18px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  font-size: 16px;
  background-color: #f5f5f5;
  transition: all 0.3s ease;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.news-search-input:focus {
  outline: none;
  border-color: #2d5f5d;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(45, 95, 93, 0.1);
}

.news-search-input::placeholder {
  color: #999;
}

.news-search-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.news-search-button:hover {
  color: #2d5f5d;
}

/* ============================================
   GRID HERO - 1 GRANDE + 3 PEQUENOS
   ============================================ */

.news-hero-container {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 24px;
  margin-bottom: 80px;
  align-items: stretch;
}

/* ============================================
   POST PRINCIPAL (Esquerda) — imagem em cima, texto em baixo
   ============================================ */

.news-hero-featured {
  display: flex;
  flex-direction: column;
}

.news-hero-featured:hover .news-hero-image img {
  transform: scale(1.04);
}

.news-hero-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.news-hero-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  flex: 1;
  min-height: 380px;
  max-height: 380px;
}

.news-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.news-hero-content {
  padding: 24px 4px 0;
  color: #1a1a1a;
}

.news-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.news-hero-category {
  display: inline-block;
  background-color: #2d5f5d;
  color: white;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.news-hero-date {
  font-size: 14px;
  color: #999;
  font-weight: 400;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.news-hero-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px 0;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.news-hero-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: #666;
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* ============================================
   SIDEBAR - 3 POSTS MENORES (Direita)
   Layout horizontal: imagem à esquerda, texto à direita
   ============================================ */

.news-hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: space-between;
}

.news-sidebar-card {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
  border-bottom: 1px solid #eee;
}

.news-sidebar-card:last-child {
  border-bottom: none;
}

.news-sidebar-card:hover {
  transform: none;
  opacity: 0.82;
}

.news-sidebar-link {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  color: inherit;
  gap: 20px;
  padding: 20px 0;
}

.news-sidebar-image {
  width: 160px;
  min-width: 160px;
  height: 130px;
  overflow: hidden;
  border-radius: 10px;
  flex-shrink: 0;
}

.news-sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-sidebar-card:hover .news-sidebar-image img {
  transform: scale(1.08);
}

.news-sidebar-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.news-sidebar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.news-sidebar-category {
  display: inline-block;
  background-color: #2d5f5d;
  color: white;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.news-sidebar-date {
  font-size: 13px;
  color: #999;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.news-sidebar-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px 0;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.news-sidebar-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   THUMBNAIL/BANNER DESTAQUE
   ============================================ */

.ucbvet-news-thumbnail-wrapper {
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 0 40px;
}

.news-thumbnail-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.news-thumbnail-container:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.news-thumbnail-link {
  display: block;
  cursor: pointer;
}

.news-thumbnail-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.news-thumbnail-link:hover .news-thumbnail-image {
  transform: scale(1.02);
}

/* ============================================
   NEWS GRID SECTION (Seções por categoria)
   ============================================ */

.ucbvet-news-grid-section {
  max-width: 1400px;
  margin: 80px auto 60px;
  padding: 0 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-header-left {
  flex: 1;
}

.section-label {
  display: inline-block;
  color: #ff6b4a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
}

.btn-see-more {
  display: inline-block;
  padding: 14px 32px;
  background-color: white;
  color: #333;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid #ddd;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.btn-see-more:hover {
  background-color: #2d5f5d;
  color: white;
  border-color: #2d5f5d;
  transform: translateY(-2px);
}

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

.news-grid-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.news-grid-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.15);
}

.news-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-grid-item:hover .news-card-image img {
  transform: scale(1.08);
}

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

.news-card-date {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 14px;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.news-card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 14px 0;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.news-card-excerpt {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* ============================================
   BANNER SECTION (Opcional)
   ============================================ */

.news-banner-section {
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 40px;
}

.news-banner-container {
  border-radius: 16px;
  overflow: hidden;
}

.news-banner-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .ucbvet-news-hero-wrapper,
  .ucbvet-news-grid-section,
  .news-banner-section {
    max-width: 1100px;
    padding: 0 30px;
  }

  .news-hero-title {
    font-size: 28px;
  }
}

@media (max-width: 1024px) {
  .ucbvet-news-hero-wrapper,
  .ucbvet-news-grid-section,
  .news-banner-section {
    padding: 0 25px;
  }
  
  .news-hero-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .news-hero-image {
    min-height: 340px;
    max-height: 340px;
  }
  
  .news-hero-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .news-sidebar-card {
    border-bottom: none;
  }

  .news-sidebar-link {
    flex-direction: column;
    padding: 0;
    gap: 14px;
  }

  .news-sidebar-image {
    width: 100%;
    min-width: unset;
    height: 170px;
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .section-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .ucbvet-news-header-section {
    padding: 60px 20px;
  }
  
  .news-main-title {
    font-size: 36px;
  }
  
  .title-news {
    font-size: 28px;
    padding: 6px 18px;
  }
  
  .ucbvet-news-hero-wrapper,
  .ucbvet-news-grid-section,
  .news-banner-section {
    padding: 0 20px;
  }
  
  .news-search-container {
    margin: 40px auto;
  }
  
  .news-search-input {
    font-size: 15px;
    padding: 16px 55px 16px 20px;
  }
  
  .news-hero-image {
    min-height: 280px;
    max-height: 280px;
  }
  
  .news-hero-content {
    padding: 20px 0 0;
  }
  
  .news-hero-title {
    font-size: 24px;
  }
  
  .news-hero-excerpt {
    font-size: 15px;
    max-width: 100%;
  }
  
  /* Sidebar: coluna única, cards horizontais mantidos */
  .news-hero-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-sidebar-card {
    border-bottom: 1px solid #eee;
  }

  .news-sidebar-card:last-child {
    border-bottom: none;
  }

  .news-sidebar-link {
    flex-direction: row;
    padding: 18px 0;
    gap: 16px;
  }

  .news-sidebar-image {
    width: 140px;
    min-width: 140px;
    height: 115px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .news-main-title {
    font-size: 28px;
    flex-direction: column;
    gap: 8px;
  }
  
  .title-news {
    font-size: 24px;
  }
  
  .news-hero-image {
    min-height: 220px;
    max-height: 220px;
  }
  
  .news-hero-title {
    font-size: 22px;
  }
  
  .news-hero-content {
    padding: 18px 0 0;
  }

  .news-sidebar-image {
    width: 120px;
    min-width: 120px;
    height: 100px;
  }
}

/* ============================================
   SINGLE NEWS POST
   ============================================ */

.single-news-hero {
  background-color: #2d5f5d;
  padding: 40px 20px;
  position: relative;
}

.single-news-hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.single-news-hero-content {
  text-align: center;
  margin-bottom: 50px;
  color: white;
}

.single-news-logo {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.single-news-logo img {
  max-width: 280px;
  height: auto;
}

.single-news-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: white;
  font-family: 'Poppins', sans-serif;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.single-news-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 30px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* Meta bar com categorias, tempo e compartilhar */
.single-news-meta-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.single-news-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.single-news-category-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.single-news-reading-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.single-news-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.share-button:hover {
  background-color: white;
  transform: translateY(-2px);
}

.share-button.share-facebook:hover {
  color: #1877f2;
}

.share-button.share-whatsapp:hover {
  color: #25d366;
}

.share-button.share-linkedin:hover {
  color: #0077b5;
}

/* Container separado para a imagem que sobressai do header */
.single-news-image-wrapper {
  background-color: #2d5f5d;
  padding: 0 20px 80px;
  margin-top: -1px;
	transform: translateY(-200px);
  z-index: -1;
  position: relative !important;
}

.single-news-image-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Imagem com altura fixa igual ao news-hero-image */
.single-news-hero-image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  height: 380px;
  transform: translateY(200px);
}

.single-news-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.single-news-content {
  background-color: white;
  padding: 40px 20px 60px;
  margin-top: -1px;
}

.single-news-content-container {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.single-news-content-container h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.single-news-content-container h3 {
  font-size: 26px;
  font-weight: 600;
  margin: 30px 0 15px;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.single-news-content-container p {
  margin-bottom: 20px;
  clear: none;
}

/* ============================================
   IMAGENS NO CONTEÚDO - CORREÇÃO PRINCIPAL
   ============================================ */

/* Reset para parágrafos que contêm imagens */
.single-news-content-container p {
  margin-bottom: 20px;
  overflow: visible;
  clear: none !important;
  line-height: 1.8;
}

/* Imagens básicas */
.single-news-content-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: inline-block;
  vertical-align: top;
}

/* Parágrafos que contêm apenas imagem */
.single-news-content-container p:has(> img:only-child) {
  line-height: 0;
  margin: 5px 0;
}

/* Imagens alinhadas à esquerda - FLUXO COMPLETO */
.single-news-content-container img.alignleft,
.single-news-content-container .alignleft {
  float: left !important;
  margin: 5px 25px 10px 0 !important;
  max-width: 300px !important;
  width: auto !important;
  shape-outside: margin-box;
}

/* Imagens alinhadas à direita */
.single-news-content-container img.alignright,
.single-news-content-container .alignright {
  float: right !important;
  margin: 5px 0 10px 25px !important;
  max-width: 300px !important;
  width: auto !important;
  shape-outside: margin-box;
}

/* Imagens centralizadas */
.single-news-content-container img.aligncenter,
.single-news-content-container .aligncenter {
  display: block !important;
  margin: 30px auto !important;
  clear: both;
  max-width: 100% !important;
}

/* Imagens sem alinhamento específico */
.single-news-content-container img.alignnone,
.single-news-content-container .alignnone {
  display: block !important;
  margin: 30px 0 !important;
  max-width: 100% !important;
}

/* Classes de tamanho do WordPress */
.single-news-content-container img.size-thumbnail {
  max-width: 150px !important;
}

.single-news-content-container img.size-medium {
  max-width: 300px !important;
}

.single-news-content-container img.size-medium_large {
  max-width: 450px !important;
}

.single-news-content-container img.size-large {
  max-width: 800px !important;
}

.single-news-content-container img.size-full {
  max-width: 100% !important;
}

/* Garantir que todos os parágrafos seguintes fluam ao redor */
.single-news-content-container p + p {
  clear: none !important;
}

/* Container permite floats */
.single-news-content-container {
  overflow: visible;
}

/* Clearfix apenas no final do container inteiro */
.single-news-content-container::after {
  content: "";
  display: table;
  clear: both;
}

/* Figuras do WordPress (tag <figure>) */
.single-news-content-container figure {
  margin: 30px 0;
  max-width: 100%;
}

.single-news-content-container figure.alignleft {
  float: left !important;
  margin: 5px 25px 10px 0 !important;
  max-width: 300px !important;
  clear: none;
}

.single-news-content-container figure.alignright {
  float: right !important;
  margin: 5px 0 10px 25px !important;
  max-width: 300px !important;
  clear: none;
}

.single-news-content-container figure.aligncenter {
  margin: 30px auto !important;
  display: block;
  clear: both;
}

.single-news-content-container figure img {
  margin: 0 !important;
  display: block;
  width: 100%;
}

/* Legendas de imagem */
.single-news-content-container figcaption {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-top: 10px;
  text-align: center;
  padding: 0 10px;
  line-height: 1.4;
}

.single-news-content-container ul,
.single-news-content-container ol {
  margin: 20px 0;
  padding-left: 30px;
  clear: both;
}

.single-news-content-container li {
  margin-bottom: 10px;
}

.single-news-related {
  background-color: #f8f8f8;
  padding: 80px 20px;
}

.single-news-related-container {
  max-width: 1400px;
  margin: 0 auto;
}

.related-title {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 40px 0;
  font-family: 'Poppins', sans-serif;
}

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

.related-news-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.related-news-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.15);
}

.related-news-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-news-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.related-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-news-item:hover .related-news-image img {
  transform: scale(1.08);
}

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

.related-news-date {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 14px;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.related-news-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 14px 0;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.related-news-excerpt {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* Responsivos Single News */
@media (max-width: 768px) {
  .single-news-hero {
    padding: 30px 20px;
  }
  
  .single-news-title {
    font-size: 32px;
  }
  
  .single-news-subtitle {
    font-size: 16px;
  }
  
  .single-news-image-wrapper {
    padding: 0 20px 60px;
  }
  
  .single-news-hero-image {
    max-width: 95%;
    height: 280px;
  }
  
  .single-news-meta-bar {
    gap: 20px;
    flex-direction: column;
  }
  
  .single-news-content {
    padding: 30px 20px 60px;
  }
  
  /* Ajustar imagens flutuantes em mobile */
  .single-news-content-container .alignleft,
  .single-news-content-container .alignright,
  .single-news-content-container img[style*="float"],
  .single-news-content-container figure.alignleft,
  .single-news-content-container figure.alignright {
    float: none !important;
    max-width: 100% !important;
    margin: 20px 0 !important;
  }
  
  .related-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .single-news-hero {
    padding: 25px 15px;
  }
  
  .single-news-title {
    font-size: 26px;
  }
  
  .single-news-subtitle {
    font-size: 15px;
  }
  
  .single-news-image-wrapper {
    padding: 0 15px 50px;
  }
  
  .single-news-hero-image {
    height: 220px;
  }
  
  .single-news-hero-image img {
    border-radius: 20px 20px 0 0;
  }
  
  .single-news-content {
    padding: 20px 15px 50px;
  }
  
  .single-news-content-container {
    font-size: 16px;
  }
  
  .related-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================
   TAXONOMY NEWS - REDESIGN
   ============================================ */

.taxonomy-news-header {
  background-color: #2d5f5d;
  padding: 50px 20px;
  text-align: center;
}

.taxonomy-news-header-container {
  max-width: 1400px;
  margin: 0 auto;
}

.taxonomy-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;
}

.taxonomy-logo img {
  max-width: 300px;
  height: auto;
}

.taxonomy-main-title {
  font-size: 48px;
  font-weight: 300;
  color: white;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
}

/* Barra de Pesquisa e Filtros */
.taxonomy-search-filters {
  background-color: white;
  padding: 40px 20px 30px;
  border-bottom: 1px solid #e5e5e5;
}

.taxonomy-filters-container {
  max-width: 1400px;
  margin: 0 auto;
}

.taxonomy-search-bar {
  max-width: 650px;
  margin: 0 auto 30px;
}

.taxonomy-search-form {
	position: relative;
	width: 100%;
	display: flex;
}

.taxonomy-search-input {
  width: 100%;
  padding: 16px 55px 16px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  font-size: 15px;
  background-color: #f5f5f5;
  transition: all 0.3s ease;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.taxonomy-search-input:focus {
  outline: none;
  border-color: #2d5f5d;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(45, 95, 93, 0.1);
}

.taxonomy-search-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.taxonomy-search-button:hover {
  color: #2d5f5d;
}

/* Subcategorias/Filtros */
.taxonomy-subcategories {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.subcategory-filter {
  padding: 10px 24px;
  border-radius: 25px;
  border: 2px solid #e0e0e0;
  background-color: white;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.subcategory-filter:hover {
  border-color: #2d5f5d;
  color: #2d5f5d;
}

.subcategory-filter.active {
  background-color: #ff6b4a;
  border-color: #ff6b4a;
  color: white;
}

/* Grid de Notícias */
.taxonomy-news-content {
  background-color: white;
  padding: 60px 20px 80px;
}

.taxonomy-news-container {
  max-width: 1400px;
  margin: 0 auto;
}

.taxonomy-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.taxonomy-news-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.taxonomy-news-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.15);
}

.taxonomy-news-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.taxonomy-news-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.taxonomy-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.taxonomy-news-item:hover .taxonomy-news-image img {
  transform: scale(1.08);
}

.taxonomy-news-card-content {
  padding: 26px;
}

.taxonomy-news-date {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.taxonomy-news-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px 0;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.taxonomy-news-excerpt {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 15px 0;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.taxonomy-read-more {
  display: inline-block;
  color: #2d5f5d;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.taxonomy-news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
}

.taxonomy-news-no-posts {
  text-align: center;
  padding: 60px 20px;
}

.taxonomy-news-no-posts p {
  font-size: 20px;
  color: #666;
  margin-bottom: 30px;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.btn-back-news {
  display: inline-block;
  padding: 14px 32px;
  background-color: #2d5f5d;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.btn-back-news:hover {
  background-color: #234746;
  transform: translateY(-2px);
}

/* Responsive Taxonomy */
@media (max-width: 1024px) {
  .taxonomy-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .taxonomy-main-title {
    font-size: 36px;
  }
  
  .taxonomy-logo img {
    max-width: 250px;
  }
  
  .taxonomy-subcategories {
    gap: 10px;
  }
  
  .subcategory-filter {
    padding: 8px 18px;
    font-size: 13px;
  }
  
  .taxonomy-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .taxonomy-main-title {
    font-size: 28px;
  }
  
  .taxonomy-logo img {
    max-width: 200px;
  }
}