/* Current child category title (level-1 page, below the filter select) */
.hub-category__current-title {
  font-weight: 700;
  color: #1A3461;
  margin: 10px 0 10px 0;
}

/* Hub page wrapper */
.hub-page {
  padding-bottom: 60px;
}

/* -------------------------------------------------------
   Filter selector (E2-T2)
------------------------------------------------------- */
.hub-page__filter {
      margin: 0 0 20px 0;
}

.hub-page__filter select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #D7DEDE;
  border-radius: 60px;
  padding: 0.5em 2.5em 0.5em 1em;
  font-size: 0.875em;
  color: #1A3461;
  cursor: pointer;
  background: #fff url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSI3IiBmaWxsPSJub25lIj48cGF0aCBzdHJva2U9IiMxQTM0NjEiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJNMSAxbDUgNSA1LTUiLz48L3N2Zz4=") no-repeat right 0.9em center;
  background-size: 12px;
  min-width: 200px;
}

/* Hub section (one per level-1 category) */
.hub-section {
  padding: 40px 0;
  width: 100%;
}

.hub-section--alt {
  background-color: var(--color-purple-pastel);
}

.hub-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.hub-section__title {
  font-size: 1.375em;
  font-weight: 700;
  color: #1A3461;
  margin: 0;
}

.hub-section__count {
  font-size: 0.875em;
  color: #6B7280;
  margin-left: 8px;
}

/* -------------------------------------------------------
   Articles grid — desktop (4 columns)
   Mobile carousel is handled by spotlight-carousel-styles.css
------------------------------------------------------- */
.hub-section__articles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Base article styles (all viewports) */
.hub-section__articles article {
  border-radius: 0;
  overflow: visible;
  position: relative;
}

/* Desktop only: aspect-ratio and fill grid cell height */
@media screen and (min-width: 751px) {
  .hub-section__articles .col {
    min-width: 0;
  }

  .hub-section__articles article {
    height: auto;
    aspect-ratio: auto;
  }
}

.hub-section__articles article .hub-card__image-link {
  box-sizing: border-box;
  border-radius: 20px;
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  aspect-ratio: 406 / 300;
}

.hub-section__articles article .hub-card__title-link {
  display: block;
  margin-top: 14px;
  text-decoration: none;
}

.hub-section__articles article .image-container {
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Suppress the global .image-container:after circle from newchart.css */
.hub-section__articles article .image-container::after {
  display: none;
}

.hub-section__articles article .image-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-section__articles article .image-container::before {
  content: none;
}

.hub-section__articles article h3 {
  color: #1A3461;
  font-size: 1.1em;
  line-height: 1.2;
  margin: 0;
}

.hub-section__articles article .hub-card__image-link::after {
  content: '';
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #FFD439;
  background-image: url('../../air_liquide_mde/img/icons/arrow-right.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px;
  z-index: 2;
}

/* Hub cards now render the arrow as a dedicated button element. */
.hub-section__articles article .article-category__card__inside__img.hub-card__image-link::after {
  content: none;
}

/* -------------------------------------------------------
   "Ver todo" button
------------------------------------------------------- */
.hub-section__more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}


.hub-section__more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.625em 1.5em;
  /* border: 1px solid #1A3461; */
  border-radius: 60px;
  /*font-size: 0.875em;
  font-weight: 600;*/
  color: #1A3461;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
/*
.hub-section__more a:hover {
  background-color: #1A3461;
  color: #fff;
}
*/

/* Mobile: cancel grid so Owl Carousel controls layout (including dots placement) */
@media screen and (max-width: 750px) {
  /* .hub-section__inner uses .t-wrapper (display:grid from functional.css).
     Use higher specificity (.hub-page ancestor) to override. */
  .hub-page .hub-section__inner {
    display: block;
  }

  .hub-page__filter select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hub-section__articles {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  /* Prevent desktop anchor styles from breaking mobile card height */
  .hub-section__articles article .hub-card__image-link {
    min-height: 0;
    aspect-ratio: 406 / 300;
  }

  .hub-section__articles article h3 {
    font-size: 1.1em;
  }
}


.hub-page-cta {
    align-items: center;
    background: #ffd439;
    /* border-radius: 50px; */
    color: #1a3461;
    display: inline-flex !important;
    font-family: vinyl, sans-serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    line-height: 18px;
    padding: 10px 20px !important;
    text-transform: uppercase;
    transition-duration: .3s;
}

/*
.full-article .article-cta .button {
    padding: 10px 45px 10px 20px !important;
}*/

.hub-page-cta:after {
    background-image: url(../../air_liquide_mde/img/icons/arrow-right.svg);
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    height: 13px;
    position: absolute;
    right: 15px;
    top: 13px;
    width: 13px;
}
.hub-page-cta:hover {
    background: var(--color-primary-highlight-hover);
}