/************************************
BLOG SLIDER
*************************************/

/* Container styles */
.bs-blog-article {
    display: block;
    padding: 15px;
    color: var(--title-color);
    text-decoration: none;
    padding-top: 0.5rem;
}

/* Title styles */
.bs-blog-article__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.4;
    max-height: 2.8em;
    min-height: 2.8em;
    font-size: 1.2rem;
    text-align: center;
    font-weight: var(--font-regular);
    color: var(--primary-color);
}

/* Content styles */
.bs-blog-article__content{
    color: var(--body-txt-default-color);
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    min-height: calc(1.4em* 4);
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Button styles */
.bs-blog-article__btn.btn-link {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: var(--font-regular);
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    margin-top: 0.5rem;
}

.bs-blog-article__btn.btn-link:hover {
    background: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
}

/* Contenedor de imagen */
.bs-img-square.blog {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.bs-img-square.blog:hover {
    transform: scale(1.03);
}
.item.blog:hover {
    background: #f9f9f9;
    border-radius: 5px;
}

/************************************
SECCIÓN BLOG
*************************************/

.bs-blog .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Estructura Grid blog */
.bs-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Grid para los artículos con variables CSS */
.bs-blog-articles {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(var(--cols), 1fr);
}

@media (min-width: 576px) {
  .bs-blog-articles {
    grid-template-columns: repeat(var(--cols-sm), 1fr);
  }
}

@media (min-width: 768px) {
  .bs-blog-articles {
    grid-template-columns: repeat(var(--cols-md), 1fr);
  }
}

@media (min-width: 992px) {
  .bs-blog-articles {
    grid-template-columns: repeat(var(--cols-lg), 1fr);
  }
}

@media (min-width: 1200px) {
  .bs-blog-articles {
    grid-template-columns: repeat(var(--cols-xl), 1fr);
  }
}

/* Título principal del blog */
.bs-blog h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--home-title-color);
  position: relative;
  padding-bottom: 0.75rem;
}

.bs-blog h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

/* Estilos para cada artículo */
.bs-blog-item {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff; 
  border-radius: 12px; 
  padding: 1rem; 
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); 
}

.bs-blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
}


.bs-blog-image-link {
  display: block;
  width: 100%;
}

/* Estilos para el título y contenido del artículo */
.bs-blog-article {
  display: block;
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
}

.bs-blog-article:hover {
  text-decoration: none;
}

.bs-blog-article:hover .bs-blog-article__title {
  color: var(--primary-hover-color);
}

.bs-blog-article__content {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Animaciones de carga */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bs-blog-grid {
  animation: fadeIn 0.6s ease-in-out;
}

/* Estilos para paginación */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.bs-blog-article-more {
  margin-top: 1rem;
  text-align: center; 
}