.container {
    max-width: 1170px !important; /* Maximo para pantallas grandes */
}

.main-header{
  background: none !important;
}

h1, .h1{ font-size: 24px !important; font-weight: bold !important; color: #263862 !important; }

h2, .h2{ font-size: 20px; color: #000 !important; }

h3, .h3{ font-size: 16px; color: #000 !important; }

h4, .h4{ font-size: 14px; color: #000 !important; }

img{ max-width: 100%; height: auto; }

table,
table td,
table th {
  border: none !important;
}

img.align-left {
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
}

img.align-right {
  float: right;
  margin-left: 1em;
  margin-bottom: 1em;
}

img.align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Ocultar social media + search block */
@media (max-width: 767.98px) {
  .social-search-wrapper {
    display: none !important;
  }
}

/* Estilos para search block */
.social-search-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* uno arriba, otro abajo */
  align-items: flex-end;          /* alinea al borde derecho */
  height: 100%;
}

.search-block {
  max-width: 250px;
  width: 100%;
  text-align: right;
}

.block-search {
  margin: 0 !important;
}

#search-block-form input {
  margin-top: 10px;
  padding: 4px 0 !important;
}

#search-block-form .form-item{
  padding-right: 2px !important;
}

/* Estilos para social block */
@media (min-width: 767px) {
  .social-media a {
      margin: 0px 0 0 5px !important;
  }
}

/* New use svg and center */
.social-media a {
  width: 30px;
  height: 30px;
  color: #fff;
  float: left;
  text-align: center;
  background: #3262b9;
  font-size: 14px;
  display: flex;              /* Añadido */
  align-items: center;        /* Centrado vertical */
  justify-content: center;    /* Centrado horizontal */
  border-radius: 50px;
}

/* Estilos para social instagram */
.social-media a.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Estilos para social twitter, ahora X */
.social-media a.twitter {
  background: #000000 !important;
}

/* Por defecto 15, pero queda por delante del menú */
.carousel-indicators {
  z-index: 1 !important;
}


/* Vista listado de articulos, modo resumen -> node--article--teaser.html.twig */
.teaser-image-right {
  float: right;
  margin-left: 1em;
  margin-bottom: 0.5em;
}

.teaser-content::after {
  content: "";
  display: table;
  clear: both;
}


/* Field tags -> field-tags.html.twig */
.field-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.field-label {
  margin-right: 0.5em;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.tag-list .tag-item {
  margin-right: 0.5em;
}

/* Blocks in right sidebar */ 
.region-sidebar-second .block {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 1em;
  background: #fcfcfc;
}

.region-sidebar-second .block h2 {
  font-size: 14px !important;
  border-bottom: 1px solid #ccc;
  padding: 0 10px 10px 10px;
  text-transform: uppercase;
}

.region-sidebar-second .block > div:not(:first-child) {
  padding: 0 10px;
}

.region-sidebar-second .block img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Footer widget */
.footerwidget {
  background: none !important;
  background-color: #333 !important;
}

.footerwidget,
.footerwidget h2,
.footerwidget p {
  color: #fff !important;
}

.region-footer-first h2,
.region-footer-second h2,
.region-footer-third h2 {
  padding-bottom: 1em;
}

/* Footer */
.footer-menu {
  color: #333 !important;
  padding-top: 2em;
}

/* Breadcrumb */
.breadcrumb .separator {
  margin: 0 0.4em;
  color: #999;
}

/* Table style in borsa_laboral */
.borsa-laboral-page thead th {
  background: #333;
  color: #fff;
  font-weight: bold;
  padding: 1em 0;
}

.borsa-laboral-page table td,
.borsa-laboral-page table th {
  padding: 0.75em;
  text-align: left;
}

.borsa-laboral-page table tbody tr {
  border-bottom: 1px solid #cdcdcd;
}

.borsa-laboral-page table tbody tr:nth-child(odd) { /* Zebra striping: light background for odd rows */
  background-color: #f6f7f8;
}


/* Comissió de Govern page */
.governing-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.member {
  text-align: center;
}

.member {
  background: #fff;
  border: 1px solid rgba(37, 59, 95, 0.15); /* color corporativo muy sutil */
  border-radius: 8px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  background: #f5f6f8;
  padding: 4px;
}

.member .role {
  font-size: 1.5rem;
  color: #555;
  margin-top: 0.5rem;
}

.member .name {
  font-weight: bold;
  margin-top: 0.25rem;
}

.member .links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.member .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: transparent;
  color: #253b5f;
  border: 2px solid #253b5f;
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.member .icon:hover {
  background-color: #253b5f;
  color: #fff;
}

.member .icon:focus-visible {
  outline: 2px solid #253b5f;
  outline-offset: 2px;
}

.member .icon.linkedin {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.member .icon.mail {
  font-size: 1.45rem;
}


/* Junta Col·legial page */
.junta-list {
  max-width: 100%;
}

.junta-item {
  display: grid;
  grid-template-columns: 2.2fr 1.4fr auto;
  align-items: center;
  gap: 1rem;

  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.junta-item:last-child {
  border-bottom: none;
}

.junta-name {
  font-weight: 500;
  font-size: 1.5rem;
}

.junta-role {
  color: #253b5f;
  font-size: 1.4rem;
}

.junta-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.junta-links a {
  text-decoration: none;
}

.junta-links a:hover,
.junta-links a:focus {
  text-decoration: none;
}

.junta-links .icon.linkedin {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

@media (max-width: 640px) {
  .junta-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .junta-links {
    justify-content: flex-start;
  }

  .junta-role {
    font-size: 1.5rem;
  }

  .junta-links {
    gap: 1.2rem;
}
}

.junta-list {
  border-top: 2px solid #253b5f;
  padding-top: 0.6rem;
}



