/* ---------------------------- */
/* CONTENIDOR DE PESTANYES */
/* ---------------------------- */
.tabs-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: #fff;
  overflow: hidden;
}

/* ---------------------------- */
/* PESTANYES (NAV) */
/* ---------------------------- */
.tabs-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid #ddd;
}

.tabs-nav li {
  padding: 8px 16px;
  cursor: pointer;
  background: #f8f8f8;
  border-radius: 8px 8px 0 0;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.tabs-nav li:hover {
  background: #e0e0e0;
}

.tabs-nav li.active {
  background: #fff;
  border: 1px solid #ccc;
  border-bottom: none;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

/* ---------------------------- */
/* CONTINGUT DE LES PESTANYES */
/* ---------------------------- */
.tab-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 0;
  pointer-events: none;
  background-color: #fff;
  box-sizing: border-box;
  padding: 20px;
}

.tab-content.active {
  position: static;
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
  pointer-events: auto;
}

/* ---------------------------- */
/* IMATGES GENERALS DINS LES PESTANYES */
/* ---------------------------- */
.tab-content img {
  display: block;
  max-width: 250px;
  width: auto;
  height: auto;
  margin: 0 auto 10px auto;
}

/* ---------------------------- */
/* FIX PER MODUL jxtc_newspro_tmp1 */
/* ---------------------------- */
.tab-content .jxtc_newspro_tmp1,
.tab-content .jxtc_newspro_tmp1 * {
  width: auto !important;
  max-width: 250px !important;
  height: auto !important;
  margin: auto;
    display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important; /* centra horitzontalment */
  align-items: flex-start;
}

/* ---------------------------- */
/* RESPONSIVE: mòbil */
/* ---------------------------- */
@media (max-width: 768px) {
  .tab-content img,
  .tab-content .jxtc_newspro_tmp1,
  .tab-content .jxtc_newspro_tmp1 * {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tabs-nav {
    flex-direction: column;
  }

  .tabs-nav li {
    width: 100%;
    text-align: center;
  }
}
