.noticias-container-53 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.noticias-container-53 .container-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
}

.noticias-container-53 .container-main .main {
  display: flex;
  flex-direction: row;
}

.noticias-container-53 .container-main .main .content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.noticias-container-53 .container-main .main .content .line {
  width: 100%;
  height: 1px; /* Puedes ajustar el grosor si lo prefieres */
  background-color: #ccc; /* Color gris suave */
  margin: 10px 0; /* Espaciado opcional */
}

.noticias-container-53 .container-main .main .sidebear {
  width: 300px;
  flex-shrink: 0;
}

.noticias-container-53 .container-main .title-noticia {
  margin: 1rem 0 1rem;
}

.noticias-container-53 .line-publicity {
  width: 100%;
  height: 100px;
  background-image: repeating-linear-gradient(
    45deg, 
    #e4e4e4 0, 
    #e4e4e4 1px, 
    transparent 1px, 
    transparent 8px
  );
}

.noticias-container-53 .container-main .fecha {
  display: flex;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
  gap: 0.5rem;
}

.noticias-container-53 .container-main .fecha .separador {
  margin: 0 10px;
  font-size: 10px;
  color: #727272; /* Color gris suave */
}

.noticias-container-53 .container-main .main .content .social-media-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin: 1rem 0;
}

.noticias-container-53 .container-main .navigation-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  width: 100%;
  padding: 10px 0;
}

.noticias-container-53 .container-main .navigation-links .previous-post,
.noticias-container-53 .container-main .navigation-links .next-post {
  width: 48%;
  overflow: hidden;
}

.noticias-container-53 .container-main .navigation-links .previous-post a,
.noticias-container-53 .container-main .navigation-links .next-post a {
  text-decoration: none;
  overflow: hidden;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 2rem;
  background-color: #e4e4e4;
  border-radius: 1rem;
  max-width: 100%;
}

.noticias-container-53 .container-main .navigation-links .previous-post a:hover,
.noticias-container-53 .container-main .navigation-links .next-post a:hover {
  background-color: #cfcfcf;
}

.noticias-container-53 .container-main .navigation-links .previous-post a .title-index,
.noticias-container-53 .container-main .navigation-links .next-post a .title-index {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.noticias-container-53 .container-main .navigation-links .previous-post a .start {
  justify-content: flex-start;
}

.noticias-container-53 .container-main .navigation-links .next-post a .end {
  justify-content: flex-end;
}

.noticias-container-53 .container-main .navigation-links .previous-post a .title-noticia,
.noticias-container-53 .container-main .navigation-links .next-post a .title-noticia {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.container-main .content-info-head {
  margin-top: 3rem;
}
.container-main .content-info-head .noticia-galleta {
  font-size: .9rem;
  color: white;
  background-color: #008d48;
  font-weight: 600;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  border-radius: 1000px;
  padding: 0.5rem 1rem;
}

.container-main .content-info-head .noticia-galleta .shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      90deg, 
      transparent, 
      rgba(255,255,255,0.3), 
      transparent
  );
  animation: shimmerAnimation 2s infinite linear;
}

.noticias-container-53 .container-main .main .sidebear .contain-ultimas-noticias {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 1.5rem;
}

.noticias-container-53 .container-main .main .sidebear .contain-ultimas-noticias ul {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-decoration: none;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.noticias-container-53 .container-main .main .sidebear .contain-ultimas-noticias ul .noticia-mini {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.noticias-container-53 .container-main .main .sidebear .contain-ultimas-noticias ul .noticia-mini .contain-image-mini {
  width: 100px;
  height: 60px;
  max-height: 100px;
  flex-basis: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  overflow: hidden; /* Asegura que la imagen no sobresalga */
}

.noticias-container-53 .container-main .main .sidebear .contain-ultimas-noticias ul .noticia-mini .contain-image-mini img {
  border-radius: .5rem;
  width: 100%; /* Ocupa todo el ancho del contenedor */
  height: 100%; /* Ocupa toda la altura del contenedor */
  object-fit: cover; /* Cubre el contenedor manteniendo la proporción */
  object-position: center; /* Centra la imagen */
}

.noticias-container-53 .container-main .main .sidebear .contain-ultimas-noticias ul .noticia-mini .title-noticia-mini {
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.noticias-container-53 .container-main .main .sidebear .contain-ultimas-noticias .title-contain-last-noticias {
  background-image: repeating-linear-gradient(
    45deg, 
    #e4e4e4 0, 
    #e4e4e4 1px, 
    transparent 1px, 
    transparent 8px
  );
  border-radius: .5rem;
  padding: .25rem .75rem;
  margin-bottom: 1rem;
}

.custom-posts-list-wp-oran {
  display: grid;
  grid-template-columns: 3fr 2fr; /* Dos columnas, 50% cada una */
  grid-auto-rows: 1fr; /* Filas automáticas para que se ajusten proporcionalmente */
  gap: 10px; /* Espaciado entre los elementos */
  height: 100%;
  max-height: 600px; /* Altura máxima */
  height: 500px;
  max-width: 1200px;
  overflow: hidden; /* Evitar desbordes */
}

.custom-posts-list-wp-oran .post-item {
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  border-radius: 1rem; 
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  text-decoration: none;
}

.custom-posts-list-wp-oran .post-item:hover .background-shadow {
  background-color: #008d4962;
}


.custom-posts-list-wp-oran .post-item:first-child {
  grid-row: 1 / span 3;
}

.custom-posts-list-wp-oran .post-item .background-shadow .post-excerpt,
.custom-posts-list-wp-oran .post-item .background-shadow .post-excerpt ~ p {
  display: none;
  margin-bottom: 0;
  margin-top: 0.5rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-posts-list-wp-oran .post-item:first-child .background-shadow .post-excerpt,
.custom-posts-list-wp-oran .post-item:first-child .background-shadow .post-excerpt ~ p {
  font-size: 1rem;
  display: -webkit-box;
}

.custom-posts-list-wp-oran .post-item .background-shadow {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.438);
  padding: 1rem;
  position: relative;
  transition: all 0.1s ease-in;
}

.custom-posts-list-wp-oran .post-item .background-shadow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px; /* Altura del borde */
  background: linear-gradient(to right, #1fbbd6, #00D084 50%, #009973); /* Degradado horizontal */
  z-index: 1; /* Asegura que esté encima */
}

.custom-posts-list-wp-oran .post-item .background-shadow .post-title {
  font-size: 1.2rem;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

@media screen and (max-width: 1000px) {
  .noticias-container-53 .container-main .main .sidebear {
    display: none;
  }
  .noticias-container-53 .container-main {
    padding: 0 1rem;
  }

  .custom-posts-list-wp-oran .post-item:last-child {
    display: none !important;
  }

  .custom-posts-list-wp-oran .post-item:first-child {
    grid-row: 1 / span 2;
    grid-column: 1 / span 2;
  }

  .custom-posts-list-wp-oran .post-item .background-shadow {
    padding: 0.75rem;
  }

  .custom-posts-list-wp-oran .post-item .background-shadow .post-excerpt,
  .custom-posts-list-wp-oran .post-item .background-shadow .post-excerpt ~ p {
    margin-top: 0;
  }
}

@media screen and (max-width: 600px) {
  .noticias-container-53 .container-main .main .sidebear {
    display: none;
  }
  .noticias-container-53 .container-main {
    padding: 0 1rem;
  }

  .custom-posts-list-wp-oran .post-item:last-child {
    display: none !important;
  }

  .custom-posts-list-wp-oran .post-item:first-child {
    grid-row: 1 / span 2;
    grid-column: 1 / span 1;
  }

  .custom-posts-list-wp-oran {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 10px;
    height: 100%;
    max-height: 600px;
    height: 500px;
    max-width: 1200px;
    overflow: hidden;
  }

  .custom-posts-list-wp-oran .post-item .background-shadow .post-title {
    -webkit-line-clamp: 1;
    font-size: 1rem;
  }

  .custom-posts-list-wp-oran .post-item:first-child .background-shadow .post-excerpt,
  .custom-posts-list-wp-oran .post-item:first-child .background-shadow .post-excerpt ~ p {
    font-size: 0.9rem;
    display: -webkit-box;
  }

  .custom-posts-list-wp-oran .post-item .background-shadow .post-excerpt,
  .custom-posts-list-wp-oran .post-item .background-shadow .post-excerpt ~ p {
    -webkit-line-clamp: 2;
  }
}

@keyframes shimmerAnimation {
  0% {
      left: -100%;
  }
  100% {
      left: 100%;
  }
}


/* ==========================================================================
   PORTAL DE NOTICIAS - PÁGINA DE ARCHIVO (/noticias/)
   ========================================================================== */

.noticias-archive-wrapper {
  background-color: #f8fafc;
  min-height: 80vh;
  padding: 40px 0 80px;
}

.noticias-archive-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Header */
.noticias-hero-header {
  margin-bottom: 35px;
}

.noticias-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 141, 72, 0.1);
  color: #008D48;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.noticias-hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: #008D48;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.noticias-archive-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.noticias-archive-subtitle {
  font-size: 1.05rem;
  color: #475569;
  max-width: 720px;
  line-height: 1.55;
  margin: 0;
}

/* Section Header with Gradient Line */
.noticias-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 24px;
}

.noticias-section-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.noticias-section-header .heading-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, #008D48 0%, rgba(0, 141, 72, 0.15) 100%);
  border-radius: 2px;
}

/* ==========================================================================
   Noticias Archive Grid - Estilo Noticias Destacadas (3 Columnas)
   ========================================================================== */

.noticias-destacadas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin: 24px auto 45px auto;
}

.noticias-destacadas-grid .post-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  height: 380px;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.noticias-destacadas-grid .post-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.noticias-destacadas-grid .post-item .background-shadow {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.52);
  padding: 1.25rem;
  position: relative;
  transition: background-color 0.2s ease-in-out;
  box-sizing: border-box;
}

/* Hover verde idéntico a noticias destacadas */
.noticias-destacadas-grid .post-item:hover .background-shadow {
  background-color: #008d4980;
}

/* Barra superior de gradiente característica de noticias destacadas */
.noticias-destacadas-grid .post-item .background-shadow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #1fbbd6, #00D084 50%, #009973);
  z-index: 1;
}

.noticias-destacadas-grid .post-item .post-meta-tag {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

.noticias-destacadas-grid .post-item .post-date {
  font-size: 0.8rem;
  color: #E2E8F0;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.noticias-destacadas-grid .post-item .background-shadow .post-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 0.45rem 0;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.noticias-destacadas-grid .post-item .background-shadow .post-excerpt {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #F1F5F9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

@media screen and (max-width: 1024px) {
  .noticias-destacadas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .noticias-destacadas-grid .post-item {
    height: 350px;
  }
}

@media screen and (max-width: 640px) {
  .noticias-destacadas-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .noticias-destacadas-grid .post-item {
    height: 320px;
  }
}


/* Pagination */
.noticias-pagination-wrapper {
  margin: 50px 0 20px;
  display: flex;
  justify-content: center;
}

.noticias-pagination-wrapper ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.noticias-pagination-wrapper ul.page-numbers li {
  margin: 0;
  padding: 0;
}

.noticias-pagination-wrapper .page-numbers a,
.noticias-pagination-wrapper .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: #FFFFFF;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}

.noticias-pagination-wrapper .page-numbers a:hover {
  background: #008D48;
  color: #FFFFFF;
  border-color: #008D48;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 141, 72, 0.25);
}

.noticias-pagination-wrapper .page-numbers span.current {
  background: #008D48 !important;
  color: #FFFFFF !important;
  border-color: #008D48 !important;
  box-shadow: 0 4px 12px rgba(0, 141, 72, 0.35);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .noticias-archive-wrapper {
    padding: 24px 0 50px;
  }
  .noticias-archive-container {
    padding: 0 16px;
  }
  .noticias-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .noticia-grid-item {
    height: 290px;
  }
}