/*
 * Product Brochures archive styling (tabs + cards)
 * Enqueue only on brochure archive/tax/single pages.
 */

.brochures {
  padding: 100px 0 0;
  background: #efefef;
}

.brochures__container {
  width: 100%;
  max-width: 100%;
  padding-left: 8%;
  padding-right: 8%;
  padding-bottom: 100px;
}

.brochures__header {
  text-align: center;
  margin-bottom: 40px;
}

.brochures__title {
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 40px;
  padding-bottom: 15px;
  display: inline-block;
  position: relative;
  color: #1a1a1a;
  text-transform:uppercase;
}

.brochures__intro {
  margin: 0 auto;
  max-width: 820px;
  color: #1a1a1a;
}

.brochures__tabs {
  display: flex;
  justify-content: center;
  margin: 22px 0 50px;
}

.brochures__tablist {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.brochures__tab {
  border: 0;
  border-radius: 10px;
  padding: 5px 40px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #b6b6b6;
  color: #fff;
  cursor: pointer;
}

.brochures__tab.is-active {
  background: #62aeb9;
}

.brochures__panel { display: none; }
.brochures__panel.is-active { display: block; }

.brochures__grid {
  margin-left: -12px;
  margin-right: -12px;
}

.brochures__col {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 22px;
}

/* --- Card layout --- */
.brochures__card {
  background: #62aeb9;
  border-radius: 24px;
  padding: 28px;
  color: #fff;
  display: flex;
  gap: 28px;
  align-items: stretch;
  min-height: 310px;
}

.brochures__card-left {
  flex: 1 1 56%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brochures__card-top {
  display: block;
}

.manual-card__pdf{
  width: 45px;
  height: 35px;
  object-fit: contain;
  display: block;

}

.user-manuals__pdf-icon {
	width: 50px;
	height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #fff;
	color: #d21414;
	margin-bottom: 14px;
}


.brochures__range {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 6px;
}

.brochures__card-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.brochures__card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.95;
  max-width: 34ch;
}

.brochures__card-actions {
  margin-top: auto; /* push button down */
  padding-top: 18px;
}

.brochures__download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 15px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #1b1b1b;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.brochures__download:hover,
.brochures__download:focus {
  text-decoration: none;
  filter: brightness(0.95);
}

.brochures__download-icon {
  font-size: 18px;
  line-height: 1;
  min-width:22px;
  height:auto;
}

.brochures__card-right {
  flex: 0 0 44%;
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.brochures__thumb {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

/* Footer button */
.brochures__footer-actions {
  text-align: center;
  margin-top: 50px;
}

.brochures__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  background: #62aeb9;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.brochures__back:hover,
.brochures__back:focus {
  text-decoration: none;
  filter: brightness(1.05);
}

/* Responsive */
@media (max-width: 767px) {
  .brochures__card {
    flex-direction: column;
    min-height: 0;
  }

  .brochures__card-right {
    justify-content: flex-start;
  }

  .brochures__thumb {
    max-height: 420px;
  }
}


@media (min-width: 768px) and (max-width: 1440px) {
 
.brochures__container {
    width: 100%;
    max-width: 100%;
    padding-left: 2%;
    padding-right: 2%;
    padding-bottom: 100px;
}

.brochures__download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f2f2f2;
    color: #1b1b1b;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.brochures__card-right {
  flex: 0 0 40%;
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

}



/* Brochures grid fix */
.brochures__grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.brochures__grid::before,
.brochures__grid::after {
  display: none !important;
  content: none !important;
}

.brochures__grid > .brochures__col {
  float: none !important;
  display: flex;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px;
}

/* Desktop: 4 columns */
@media (min-width: 992px) {
  .brochures__grid > .brochures__col {
    width: 25%;
  }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
  .brochures__grid > .brochures__col {
    width: 50%;
  }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
  .brochures__grid > .brochures__col {
    width: 100%;
  }
}

/* Make each card fill its column properly */
.brochures__card {
  display: flex;
  width: 100%;
  height: 100%;
}