/**
 * Page: Blog / Actualités
 * Styles pour la page d'accueil du blog
 *
 * @package Dioqa_Starter_Custom
 */

/* ========================================
   BLOG HERO
   ======================================== */

.blog-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-color: #3b3949;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blog-hero__overlay {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(59, 57, 73, 0.85) 0%,
    rgba(59, 57, 73, 0.4) 100%
  );
  display: flex;
  flex-direction: column;
}

.blog-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding-top: 2rem;
}

.blog-hero .category-filter {
  padding-bottom: 2rem;
}

.blog-hero__title {
  position: relative;
  z-index: 5;
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-align: left;
}

.blog-hero__subtitle {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  max-width: 600px;
  text-align: left;
  line-height: 1.6;
}

.blog-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-hero__breadcrumb a {
  color: var(--bs-primary, #94d2eb);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-hero__breadcrumb a:hover {
  color: #fff;
}

.blog-hero__breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   ARTICLES SECTION
   ======================================== */

.blog-articles {
  padding: 4rem 0;
}

/* ========================================
   PAGINATION
   ======================================== */

.blog-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

/* Pagination Container */
.axioris-pagination {
  display: inline-flex;
  border: 1px solid var(--border-color, #e1e0eb);
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Pagination Item */
.axioris-pagination .page-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Separator line between items */
.axioris-pagination .page-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--border-color, #e1e0eb);
}

/* Remove separator for active item */
.axioris-pagination .page-item.active::after {
  display: none;
}

/* Page Link */
.axioris-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 15px;
  font-weight: 500;
  font-size: 16px;
  color: var(--brand-secondary, #342e41);
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.axioris-pagination .page-link:hover {
  background-color: rgba(52, 46, 65, 0.08);
  color: var(--brand-secondary, #342e41);
}

.axioris-pagination .page-link:focus {
  box-shadow: none;
  outline: none;
}

/* Active State */
.axioris-pagination .page-item.active .page-link {
  background-color: var(--brand-secondary, #342e41);
  color: #fff;
}

/* Ellipsis */
.axioris-pagination .page-item.ellipsis .page-link {
  cursor: default;
  pointer-events: none;
}

/* Loading state */
.axioris-pagination.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ========================================
   RESPONSIVE - MD (< 768px)
   ======================================== */

@media (max-width: 767.98px) {
  .blog-hero {
    min-height: auto;
  }

  .blog-hero__title {
    font-size: 32px;
  }

  .blog-hero__subtitle {
    font-size: 16px;
  }

  .blog-articles {
    padding: 2rem 0;
  }

  .blog-pagination {
    margin-top: 2rem;
  }

  /* Pagination responsive */
  .axioris-pagination .page-item {
    min-width: 40px;
    height: 40px;
  }

  .axioris-pagination .page-link {
    padding: 0 10px;
    font-size: 14px;
  }
}

/* ========================================
   RESPONSIVE - LG (< 992px)
   ======================================== */

@media (max-width: 991.98px) {
  .blog-hero__title {
    font-size: 42px;
  }

  .blog-hero__subtitle {
    font-size: 18px;
  }
}
