/* Page header styles */
.page-header {
  padding: 5px 0;
  position: relative;
  overflow: hidden;
  margin-top: 85px;
}

.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-title-large {
  position: relative;
  padding: 5px 0;
}

.page-title-large h1 {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  font-size: 164x;
  font-weight: 500;
}

.breadcrumb li:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  max-width: 400px;
  vertical-align: bottom;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "•";
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  padding: 0 12px;
  vertical-align: middle;
}

.breadcrumb-item a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .breadcrumb li:last-child {
    max-width: 180px;
  }
}

.opacity-8 {
  opacity: 0.8;
}

/* Filter section styles */
.filtro-busqueda {
  gap: 10px;
}

.filtro-botones button {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile: buttons in column */
@media (max-width: 767px) {
  .filtro-busqueda {
    flex-direction: column;
    align-items: stretch !important;
    text-align: center;
  }

  .filtro-botones {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .filtro-botones button {
    width: 100%;
    text-align: center;
  }

  .filtro-buscar {
    width: 100%;
    margin-top: 10px;
  }

  .filtro-buscar input {
    width: 100%;
  }
}

/* Tablet: two compact centered rows */
@media (min-width: 768px) and (max-width: 991px) {
  .filtro-busqueda {
    flex-wrap: wrap;
  }

  .filtro-botones {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
  }

  .filtro-buscar {
    width: 100%;
    text-align: center;
  }

  .filtro-buscar input {
    width: 80%;
    margin: 0 auto;
  }
}

/* News card styles */
.news-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  height: 100%;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delays escalonados para efecto cascada */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }
.news-card:nth-child(7) { animation-delay: 0.7s; }
.news-card:nth-child(8) { animation-delay: 0.8s; }
.news-card:nth-child(9) { animation-delay: 0.9s; }

/* Featured news card */
.news-card.featured {
  background: white;
  border: 2px solid #009E45;
  box-shadow: 0 4px 12px rgba(0,158,69,0.1);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

a:hover .news-card {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-card:hover .news-image {
  transform: scale(1.05);
}

.news-card:hover .news-read-more {
  color: #007a36;
  transform: translateX(3px);
}

.news-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f5f5f5;
}

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

.news-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #009E45;
  color: white;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: fit-content;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #666;
  font-size: 12px;
  font-weight: 400;
}

.news-date i {
  font-size: 12px;
  color: #999;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  margin-bottom: 12px;
  flex-grow: 1;
  word-wrap: break-word;
  hyphens: auto;
}

.news-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  word-wrap: break-word;
}

.news-read-more {
  color: #009e45;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 8px 0;
}

.news-read-more:hover {
  color: #007a36;
  text-decoration: underline;
}

.news-read-more i {
  font-size: 12px;
}

/* Featured card higher */
.news-card.featured .news-image-container {
  height: 280px;
}

.news-card.featured .news-title {
  font-size: 18px;
  line-height: 1.3;
}

/* Smooth transitions and animations */
.news-card {
  transition: all 0.3s ease;
}

.news-image {
  transition: transform 0.4s ease;
}

.news-read-more {
  transition: all 0.2s ease;
}

@media (max-width: 767px) {
  .news-card.featured .news-image-container {
    height: 200px;
  }
}
