
:root {
  /* Variables de fuentes */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Variables de colores basadas en el diseño */
  --color-brand-red: #e30613;
  --color-brand-red-dark: #be0510;
  --color-brand-red-shadow: rgba(227, 6, 19, 0.15);
  
  --color-kirola: #0073cc;
  --color-kultura: #00a600;
  
  /* Se usa un amarillo más profundo para asegurar un contraste accesible para el texto blanco de Gazteria,
     o se usa texto oscuro si el fondo es claro.
     El diseño original asume texto blanco sobre amarillo brillante, lo cual es inaccesible.
     Usaremos un amarillo mostaza, o texto oscuro sobre amarillo. */
  --color-gazteria: #e59e00; 

  /* Tonos neutros claros / fondos */
  --color-bg-light: #ffffff;
  --color-bg-footer: #f4f4f4;
  --color-footer-bg: #f5f5f7;
  --color-warm-cream: #fffdec;
  --color-white: #ffffff;
  
  /* Tonos neutros oscuros */
  --color-black: #000000;
  --color-dark-heavy: #111111;
  --color-text-main: #333333;
  --color-text-light: #666666;
  --color-gray-medium: #555555;
  --color-gray-dark-neutral: #44444b;
  --color-gray-dark-nav: #33333b;
  --color-text-footer-social: #55555d;

  /* Líneas y bordes */
  --color-line: #dddddd;
  --color-line-ultra-light: #eeeeee;
  --color-border-medium: #d1d1d6;
  --color-border-darker: #c8c8cd;

  /* Transparencias / RGBA */
  --color-white-90: rgba(255, 255, 255, 0.9);
  --color-white-15: rgba(255, 255, 255, 0.15);
  --color-white-10: rgba(255, 255, 255, 0.1);
  --color-black-08: rgba(0, 0, 0, 0.08);
  --color-black-10: rgba(0, 0, 0, 0.1);
  --color-black-30: rgba(0, 0, 0, 0.3);
  --color-black-40: rgba(0, 0, 0, 0.4);
  --color-black-65: rgba(0, 0, 0, 0.65);
  
  /* El marcador verde para las listas <li>, según se indica en las instrucciones */
  --marker-color: var(--color-kultura);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
/* Unificar sin border-radius (Estilo suizo/minimalista ultra-limpio y fino) */
.btn, .form-control, .card, .badge, .dropdown-menu, .nav-tabs, .nav-pills, select, input, textarea, button, .service-circle, .ayto-emblem, .social-links-footer a {
  border-radius: 0 !important;
}
body {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Accesibilidad: foco visible con alto contraste */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--color-kultura);
  outline-offset: 2px;
}

/* Accesibilidad: Skip to content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background-color: var(--color-brand-red);
  color: var(--color-white);
  padding: 10px 15px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s ease-in-out;
}
.skip-link:focus {
  top: 0;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* -- HEADER -- */
.site-header {
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  position: relative;
  z-index: 1010;
}
.top-bar {
  background-color: var(--color-brand-red);
  color: var(--color-white);
  padding: 0;
  border-bottom: 1px solid var(--color-white-10);
}
.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.top-bar-nav {
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--color-white);
}
.top-bar-nav.gazteria {
	 border-left: none;
}
.top-bar-nav > a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  color: var(--color-white);
  border-right: 1px solid var(--color-white);
  transition: background-color 0.2s ease, color 0.2s ease; 
}
.top-bar-nav a:hover {
  background-color: #0073cc;
}
.top-bar-nav.gazteria > a {
	color: var(--color-gazteria);
  border-right: none;
}
.top-bar-nav.gazteria > a.no-icon {
	width:auto;
	padding:10px
}
.lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--color-white);
  height: 44px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 1.25rem;
  height: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 0 !important;
}
.lang-dropdown:hover .lang-btn,
.lang-dropdown:focus-within .lang-btn {
  background-color: var(--color-white-15);
}
.lang-chevron {
  font-size: 0.7rem;
  color: var(--color-white);
  transition: transform 0.2s ease;
  display: inline-block;
  line-height: 1;
}
.lang-dropdown:hover .lang-chevron {
  transform: rotate(180deg);
}
.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: -1px; /* align with border-right */
  background-color: var(--color-white);
  border: 1px solid var(--color-brand-red);
  border-top: none;
  min-width: 100%;
  display: none;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 4px 12px var(--color-black-08);
  border-radius: 0 !important;
}
.lang-dropdown:hover .lang-dropdown-menu,
.lang-dropdown-menu:hover {
  display: flex;
}
.lang-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--color-text-main);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-line-ultra-light);
  transition: background-color 0.15s ease, color 0.15s ease;
  border-radius: 0 !important;
}
.lang-dropdown-menu a:last-child {
  border-bottom: none;
}
.lang-dropdown-menu a:hover,
.lang-dropdown-menu a.active {
  background-color: var(--color-brand-red);
  color: var(--color-white);
}
.top-bar-nav > a:hover,
.top-bar-nav.gazteria > a:hover {
  background-color: var(--color-gazteria);
  color: var(--color-white);
}
.breadcrumb {font-size:0.9rem;}
.tax-arloak nav.breadcrumb-bg.orokorra {display:none}
.main-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 42px;
  display: block;
  object-fit: contain;
}

/* Navegación y Menú responsive estilo CSS puro */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--color-text-main);
  height: 2px;
  width: 24px;
  position: relative;
  transition: background-color 0.2s, transform 0.2s, top 0.2s, bottom 0.2s;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}
.nav-toggle-label span::before { bottom: 7px; }
.nav-toggle-label span::after { top: 7px; }

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-list a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--color-brand-red) !important;
}

/* Submenú de Erreserbak - Estilo fino y cuadrado, fondo blanco */
.nav-item-dropdown {
  position: relative;
}
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.nav-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  display: inline-block;
}
.nav-item-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-white);
  border: 1px solid var(--color-brand-red);
  min-width: 185px;
  display: none;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
  box-shadow: 0 4px 12px var(--color-black-08);
  border-radius: 0 !important;
}
/* Seamless hover bridge */
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 25px;
  display: block;
  pointer-events: none;
}
.nav-item-dropdown:hover .submenu,
.submenu:hover {
  display: flex;
}
.submenu li {
  width: 100%;
}
.submenu a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--color-text-main) !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-line-ultra-light);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  border-radius: 0 !important;
  text-align: left;
}
.submenu li:last-child a {
  border-bottom: none;
}
.submenu a:hover {
  background-color: var(--color-brand-red);
  color: var(--color-white) !important;
}

/* -- HERO SECTION / CAROUSEL -- */
.hero-carousel {
  position: relative;
  width: 100%;
}
.hero-carousel .carousel-item {
  background-size: cover;
  background-position: center;
  min-height: 55vh;
  position: relative;
}
/* Dark overlay layer on each slide for high accessibility text contrast */
.hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-black-40);
  z-index: 1;
}
.hero-carousel .carousel-container {
  position: relative;
  z-index: 2;
  height: 55vh;
  display: flex;
  align-items: center;
}
.hero-container {
  display: flex;
  align-items: center;
  min-height: 55vh;
  position: relative;
  z-index: 2;
}
.hero-content {
  background-color: var(--color-black-65); /* Dark background for clear legibility (WCAG AAA) */
  color: var(--color-white);
  padding: 3rem;
  max-width: 600px;
  border-radius: 0 !important;
}
.hero-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.hero-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-white-90);
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
}
.btn-brand {
  background-color: var(--color-brand-red);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-brand:hover,
.btn-brand:focus {
  background-color: var(--color-brand-red-dark);
  transform: translateY(-2px);
  color: var(--color-white) !important;
}

/* Custom Carousel Controls */
.custom-control-btn {
  width: 50px;
  height: 100%;
  opacity: 0.7;
  transition: opacity 0.2s, background-color 0.2s;
  z-index: 3;
}
.custom-control-btn:hover {
  opacity: 1;
  background-color: var(--color-black-30);
}

/* Custom Indicators (flat, border-radius free rectangular blocks) */
.custom-indicators {
  margin-bottom: 1.5rem;
  z-index: 3;
}
.custom-indicators button {
  width: 32px !important;
  height: 6px !important;
  border-radius: 0 !important;
  background-color: var(--color-white) !important;
  border: none !important;
  opacity: 0.5 !important;
  margin: 0 4px !important;
  transition: opacity 0.2s, background-color 0.2s !important;
}
.custom-indicators button.active {
  opacity: 1 !important;
  background-color: var(--color-brand-red) !important;
}

/* Custom Hero Banner for individual pages to avoid Bootstrap carousel overlapping issues */
.gazte-hero-banner {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--color-gazteria); /* Bright brand yellow */
  background-blend-mode: multiply;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gazte-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(229, 158, 0, 0.45); /* Additional bright golden yellow overlay to match the reference image tint */
  z-index: 1;
}
.erreserba .goiburua {
  
          
          min-height: 250px;
          display: flex;
          align-items: center;
        
}
.hero-container-custom {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-content-custom {
  color: var(--color-white);
  padding: 1rem;
  text-align: center;
}
.hero-content-custom h1 {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-white) !important;
}
.erreserbak .hero-content-custom h1 {
  font-family: var(--font-sans); 
  letter-spacing: -1px;
  font-size:3.5rem;
  text-transform:none;
}
.hero-content-custom p {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 3px;
  color: var(--color-white) !important;
  margin-bottom: 0;
  text-transform: uppercase;
}
.erreserbak .hero-content-custom p {
  text-trasnform:none;
}
.nf-form-fields-required {
  font-size:0.9rem;
}
.nf-before-form-content {
  margin-bottom:3rem;
}
.nf-field-element input, .nf-field-element select, .nf-field-element textarea{
  border: 1px solid var(--color-dark-heavy) !important;
  padding: .375rem .75rem;
   background-color: #fff;
}
.nf-field-element [type="button"]:not(:disabled), .nf-field-element [type="reset"]:not(:disabled), .nf-field-element [type="submit"]:not(:disabled), .nf-field-element button:not(:disabled){
background-color: var(--color-kirola);

  color: white !important;
  letter-spacing: 0.5px;
  font-size: 1rem;
  padding: 1rem 2rem!important;
  font-weight: 700 !important;

}
@media (max-width: 767px) {
  .gazte-hero-banner {
    min-height: 30vh;
  }
  .hero-content-custom {
    padding: 1rem;
    margin: 0;
    max-width: 100%;
  }
  .hero-content-custom h1 {
    font-size: 3rem;
    letter-spacing: 2px;
  }
  .hero-content-custom p {
    font-size: 1rem;
    letter-spacing: 1.5px;
  }
}

/* Responsive adjust for mobile */
@media (max-width: 767px) {
  .hero-carousel .carousel-item,
  .hero-container {
    min-height: 45vh;
  }
  .hero-content {
    padding: 1.75rem;
    margin: 1rem;
    max-width: 100%;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .btn-brand {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* -- SECCIONES COMUNES -- */
.events-section, .news-section {
  padding: 4rem 0 0 0;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: 1.75rem;
  font-weight: 400;
  white-space: nowrap;
}
.separator-line {
  flex: 1;
  height: 1px;
  background-color: var(--color-text-main);
}
.see-all-link {
  color: var(--color-text-light);
  transition: color 0.2s;
}
.see-all-link:hover,
.see-all-link.nolink {
  color: var(--color-brand-red);
}

/* -- CARDS (Eventos y Noticias) -- */
.grid-news {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 4px solid var(--color-dark-heavy);
  border-bottom: 4px solid var(--color-dark-heavy);
  background-color: var(--color-white);
  margin-bottom: 0;
}
.grid-events {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 4px solid var(--color-dark-heavy);
  border-bottom: 4px solid var(--color-dark-heavy);
  margin-bottom: 2rem;
}
.event-pair {
  display: flex;
  flex-direction: column;
  border-bottom: 4px solid var(--color-dark-heavy);
}
.event-pair:last-child {
  border-bottom: none;
}
.event-img {
  display: block;
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--color-dark-heavy);
}
.event-info {
  background-color: var(--color-white); /* Fondo blanco */
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}
.news-card {
  background-color: var(--color-white);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
  border-bottom: 4px solid var(--color-dark-heavy);
}
.news-card:last-child {
  border-bottom: none;
}
.grid-news.banaka {
  border-top:none;
}

.event-date { margin-bottom: 1.25rem; }
.event-date h3 {
  font-size: 2.25rem;
  font-weight: 800;
  display: inline-block;
  border-bottom: 3px solid var(--color-dark-heavy);
  padding-bottom: 0.25rem;
  margin-bottom: 0.35rem;
  color: var(--color-dark-heavy);
}
.event-date span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gray-medium);
  text-transform: uppercase;
}
.event-date .egunak {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}
.event-date .egunak .b-item-eguna {
  display: flex;
  flex-direction: column;
}
.event-date .egunak .b-item-eguna h3 {
  margin-bottom: 0.35rem;
}
.event-date .egunak i {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  color: var(--color-dark-heavy);
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  align-self: flex-start;
  transition: opacity 0.15s ease;
  text-decoration: none !important;
}
.tag:hover {
  opacity: 0.85;
  color: var(--color-white) !important;
}
.tag-kirola { background-color: var(--color-kirola); }
.tag-kultura { background-color: var(--color-kultura); }
.tag-gazteria { background-color: var(--color-gazteria); }
.post.tag-kultura, 
.post.tag-kirola,
.post.tag-gazteria { background-color:unset;}

.event-title, .news-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-dark-heavy);
}
.event-location, .news-date {
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  line-height: 1.45;
  color: var(--color-text-main);
}
.read-more {
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.2s;
  color: var(--color-dark-heavy);
  text-decoration: none;
}
.read-more:hover { color: var(--color-brand-red); text-decoration: underline; }
.mt-auto { margin-top: auto; }

.news-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid var(--color-dark-heavy);
  margin-bottom: 2rem;
  line-height: 0;
  overflow: hidden;
  width: 100%;
}
.news-img-container img {
  transition: transform 0.3s ease;
      height: 250px;
    object-fit: cover;
}
.news-card:hover .news-img-container img {
  transform: scale(1.03);
}
.news-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
/* -- BLOQUES POR CATEGORIAS -- */
.category-blocks {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--color-dark-heavy);
  gap: 4px;
  border-bottom: 4px solid var(--color-dark-heavy);
}
.cat-block {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
}
a.cat-block {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
a.cat-block:hover {
  filter: brightness(1.1);
}
.block-kirola { background-color: var(--color-kirola); }
.block-gazteria { background-color: var(--color-gazteria); }
.block-kultura { background-color: var(--color-kultura); }
.block-image {
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.05);
  background-blend-mode: multiply;
  background-color: var(--color-warm-cream); /* Tono crema cálido */
}
.cat-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.25s ease;
}
a.cat-block:hover h3 {
  transform: scale(1.04);
}
.block-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.block-icon svg {
  width: 56px;
  height: 56px;
  color: var(--color-white);
  display: block;
  transition: transform 0.25s ease;
}
a.cat-block:hover .block-icon svg {
  transform: translateY(-4px);
}
/*gazteria*/
.gazteria-azalpena {
          background-color: var(--color-warm-cream);
          border-top: 1px solid var(--color-line);
          border-bottom: 1px solid var(--color-line);
}
/*erreserbak*/
.erreserbak .goiburua {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75)),
            url(&quot;images/fatxada.jpg&quot;) center/cover no-repeat;
          min-height: 250px;
          display: flex;
          align-items: center;
}
/* -- SERVICIOS -- */
.services-section {
  background-color: var(--color-white);
  padding: 5rem 0;
  margin-top: 0;
}
.grid-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--color-dark-heavy);
  padding: 1rem;
  transition: transform 0.25s ease;
}
.service-item:hover {
  transform: translateY(-4px);
}
.service-circle {
  width: 166px;
  height: 166px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.service-circle-svg {
  width: 120px;
  height: 120px;
  padding:15px;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
  color:#fff;
}
.service-item:hover .service-circle-svg {
  transform: scale(1.05);
  filter: brightness(1.04);
}
.service-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark-heavy);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  max-width: 220px;
  line-height: 1.3;
  transition: color 0.25s ease;
}
.service-item:hover h4 {
  color: var(--color-brand-red);
}
.service-arrow {
  font-size: 1.4rem;
  color: var(--color-dark-heavy);
  transition: transform 0.25s ease, color 0.25s ease;
  margin-top: auto;
}
.service-item:hover .service-arrow {
  transform: translateX(6px);
  color: var(--color-brand-red);
}

/* -- LISTA CON MARCADOR VERDE (REQUISITO) -- */
.custom-marker-list {
  list-style: none; /* Reset base global */
}
.custom-marker-list li {
  display: list-item;
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
/* Modificación nativa del pseudoelemento ::marker según requisito */
.custom-marker-list li::marker {
  color: var(--marker-color);
  font-size: 1.3em;
}
.custom-marker-list a:hover {
  color: var(--color-kultura);
  text-decoration: underline;
}

/* -- FOOTER -- */
.site-footer {
  background-color: var(--color-footer-bg); /* Gris claro premium muy elegante */
  padding: 4rem 0 0;
  border-top: 1px solid var(--color-line);
}
.footer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}
.footer-logo-link {
  display: inline-block;
  color: var(--color-brand-red);
}
.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-header-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--color-border-medium);
  margin: 0 2rem;
}
.social-links-footer {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.social-links-footer a {
  border: 1px solid var(--color-border-darker);
  color: var(--color-text-footer-social);
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  border-radius: 50% !important; /* Iconos circulares pulidos del diseño */
  transition: all 0.25s ease;
  background-color: var(--color-white);
}
.social-links-footer a:hover {
  color: var(--color-white);
  background-color: var(--color-brand-red);
  border-color: var(--color-brand-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--color-brand-red-shadow);
}

/* Bottom Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

/* Col 1: Logo Azkoitia */
.footer-col-logo {
  display: flex;
  justify-content: center;
}
.ayto-logo-link {
  display: inline-block;
  text-decoration: none;
}
.ayto-logo-img {
  height: 150px !important;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.ayto-logo-link:hover .ayto-logo-img {
  transform: scale(1.05);
}

/* Col 2: Contact info with Bootstrap icons */
.footer-col-contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom:0.5rem;
}
.contact-icon {
  font-size: 1.2rem;
  color: var(--color-brand-red); /* Rojo de la marca para destacar los iconos de contacto */
  line-height: 1;
}
.contact-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-text {
  font-size: 0.95rem;
  color: var(--color-gray-dark-neutral);
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}
.contact-text a {
  color: inherit;
  transition: color 0.2s ease;
}
.contact-text a:hover {
  color: var(--color-brand-red);
  text-decoration: underline;
}

/* Col 3: Navigation Links */
.footer-col-nav {
  display: flex;
  flex-direction: column;
}
.footer-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-nav-link {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-gray-dark-nav);
  transition: all 0.2s ease;
  display: inline-block;
}
.footer-nav-link:hover {
  color: var(--color-brand-red);
  transform: translateX(4px);
}
/*agenda single*/
.agenda-da .event-info .read-more,
.agenda-da .event-img,
.agenda-da .event-info .event-title {
  display:none;
}
.agenda-da .event-pair {
  height:auto;
}
.agenda-da .event-info {padding-bottom:0;}

/* -- MOBILE Y RESPONSIVE (MOBILE-FIRST SCALE UP) -- */
@media (min-width: 768px) {
.grid-events {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 4px solid var(--color-dark-heavy);
  border-bottom: 4px solid var(--color-dark-heavy);
  margin-bottom: 2rem;
}
.grid-events--home {
  background-color: var(--color-white);
  border: 4px solid var(--color-dark-heavy);
  margin-bottom: 0;
}
.grid-events--home .event-pair {
  border: none;
}
.grid-events--home .event-info {
  padding: 2rem;
}
}

@media (min-width: 768px) {
  .grid-events {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-events--home {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-events--home .event-pair {
    flex-direction: column;
    min-height: auto;
    border-bottom: none;
  }
  .grid-events--home .event-pair:not(:last-child) {
    border-right: 1px solid var(--color-dark-heavy);
  }
  .grid-events--home .event-img {
    flex: none;
    width: 100%;
    height: 160px;
    border-bottom: none;
  }
  .grid-events--home .event-info {
    flex: none;
    width: 100%;
    padding: 2rem;
  }
  .event-pair {
    flex-direction: row;
    min-height: 320px;
    border-bottom: none;
  }
  .event-pair.pair-1, .event-pair.pair-2 {
    border-bottom: 4px solid var(--color-dark-heavy);
  }
  .event-pair.pair-1, .event-pair.pair-3 {
    border-right: 1px solid var(--color-dark-heavy);
  }
  .event-pair.pair-3, .event-pair.pair-4 {
    flex-direction: row-reverse;
  }
  .event-img {
    flex: 1 1 50%;
    width: 50%;
    height: auto;
    border-bottom: none;
  }
  .event-pair.pair-1 .event-img, .event-pair.pair-2 .event-img {
    border-right: 1px solid var(--color-dark-heavy);
  }
  .event-pair.pair-3 .event-img, .event-pair.pair-4 .event-img {
    border-left: 1px solid var(--color-dark-heavy);
  }
  .event-info {
    flex: 1 1 50%;
    width: 50%;
    padding: 2.5rem;
  }
  .grid-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .news-card {
    border-bottom: none !important;
  }
  .news-card:not(:last-child) {
    border-right: 1px solid var(--color-dark-heavy);
  }
  .category-blocks { grid-template-columns: repeat(2, 1fr); }
  .cat-block { aspect-ratio: auto; min-height: 250px; }
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

@media (min-width: 1024px) {
.grid-template-columns: {
  repeat(2, 1fr);


}



  /* Desk/Lap Menu */
  .nav-toggle-label { display: none; }
  .nav-list { display: flex !important; flex-direction: row; position: static; box-shadow: none; padding: 0;margin-bottom: 0; }
  
  .category-blocks { grid-template-columns: repeat(3, 1fr); }
  #cat-kirola-color { order: 1; }
  #cat-kultura-img { order: 2; }
  #cat-gazteria-color { order: 3; }
  #cat-kirola-img { order: 4; }
  #cat-kultura-color { order: 5; }
  #cat-gazteria-img { order: 6; }
  
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1.5fr 1fr; gap: 4rem; }
}

@media (max-width: 1023px) {
  /* Mobile Menu Hack nativo */
  .nav-toggle-label {
    display: block;
    margin-left: auto;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1020;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    background: var(--color-white);
    padding: 1.5rem;
    box-shadow: 0 5px 10px var(--color-black-10);
    width: 100%;
  }
  .nav-toggle:checked ~ .main-nav .nav-list {
    display: flex;
  }
  .nav-toggle:checked ~ .nav-toggle-label span {
    background-color: transparent;
  }
  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }
  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }
  .hero-content { max-width: 100%; padding: 2rem; }

  /* Mobile Dropdown styles */
  .submenu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background-color: transparent !important;
    padding-left: 1rem !important;
    margin-top: 0.5rem !important;
    display: none !important;
    width: 100% !important;
  }
  .nav-item-dropdown:hover .submenu,
  .nav-item-dropdown:focus-within .submenu {
    display: flex !important;
  }
  .submenu a {
    border-bottom: none !important;
    padding: 0.5rem 0 !important;
  }
}

/* Footer Bottom copyright and legal links bar */
.footer-bottom {
  background-color: var(--color-black);
  padding: 1.5rem 0;
  color: var(--color-white);
  font-size: 0.875rem;
  font-family: var(--font-sans);
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-bottom-links a {
  color: var(--color-white);
  text-decoration: underline;
  transition: color 0.2s ease;
  font-weight: 500;
}
.footer-bottom-links a:hover {
  color: var(--color-brand-red, #e30613);
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    gap: 2.5rem;
  }
}

/* Custom Gazteria Redesigned Cards matching reference image */
.gazte-custom-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gazte-card-header-box {
  background-color: #efeeee;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
}
.gazte-card-logo-container {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.gazte-card-logo {
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 15px;
  max-width: 150px;
}
.gazte-custom-azg-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gazte-card-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1a1a1f;
  margin-top: 0.25rem;
  margin-bottom: 0;
  line-height: 1.25;
}
.gazte-card-tag {
  color: #e30613 !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: capitalize;
  display: block;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.gazte-card-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1c1c21;
  margin-bottom: 1.25rem;
  min-height: 3rem;
}
.gazte-card-divider {
  border-top: 4px solid #000000;
  margin: 0 0 1.25rem 0;
}
.gazte-card-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.gazte-feature-item {
  display: flex;
  align-items: flex-start;
}
.gazte-feature-icon {
  color: #e30613 !important;
  font-size: 1.25rem;
  margin-right: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: 2px;
}
.gazte-feature-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #1c1c21;
}

/* WordPress Article & Navigation style for albistea-fitxa.html */
.entry-header {
  margin-bottom: 2rem;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.entry-title {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--color-dark-heavy);
  font-size: 2.25rem;
  letter-spacing: -0.75px;
  line-height: 1.2;
}
.entry-meta {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}
.entry-meta .data small {
  letter-spacing: 0.5px;
  font-weight: 600;
}
.image-box {
  margin-bottom: 2rem;
  text-align: center;
}
.image-box img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-line);
  max-height: 520px;
  object-fit: cover;
}
.entry-content {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-main);
}
.entry-content p {
  margin-bottom: 1.5rem;
}
.entry-content p > a {
	color:var(--color-brand-red);
}
.entry-content p > a:hover {
	color:var(--color-gray-medium);
}
.entry-content p strong {
  color: var(--color-dark-heavy);
}
.entry-content span {
  font-weight: 400;
}

/* Swiss alignment borders and rounding overrides */
.swiss-border-thick {
  border: 2px solid var(--color-dark-heavy) !important;
}
.swiss-border-thin {
  border: 1px solid var(--color-dark-heavy) !important;
}
.swiss-border-bottom-thick {
  border-bottom: 2px solid var(--color-dark-heavy) !important;
}
.swiss-border-top-thick {
  border-top: 2px solid var(--color-dark-heavy) !important;
}

/* Global design consistency: no borders or shadows */
.card, .form-control, .form-select, .badge, .btn, img, .toast {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Custom classes to replace inline styles */
.breadcrumb-news {
  font-size: 0.9rem;
}

/* Post Navigation (Highly coherent Swiss-style, matching the website identity) */
.post-navigation {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-dark-heavy);
}
.post-navigation .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.post-navigation .nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1 1 calc(50% - 0.75rem);
}
@media (max-width: 768px) {
  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    flex: 1 1 100%;
  }
}
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: block;
  position: relative;
  background-color: var(--color-white);
  border: 2px solid var(--color-dark-heavy) !important;
  color: var(--color-dark-heavy);
  padding: 1.5rem 1.5rem 1.5rem 3.5rem; /* Left padding for arrow space */
  text-decoration: none;
  min-height: 100px;
  transition: all 0.2s ease;
}
.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
  background-color: var(--color-brand-red);
  border-color: var(--color-brand-red) !important;
  color: var(--color-white);
}
.post-navigation .nav-previous a::before {
  content: "←";
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.post-navigation .nav-next a {
  padding: 1.5rem 3.5rem 1.5rem 1.5rem; /* Right padding for arrow space */
}
.post-navigation .nav-next a::after {
  content: "→";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.post-navigation .nav-previous a:hover::before {
  transform: translateY(-50%) translateX(-4px);
}
.post-navigation .nav-next a:hover::after {
  transform: translateY(-50%) translateX(4px);
}
.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-brand-red);
  margin-bottom: 0.25rem;
  font-weight: 700;
  transition: color 0.2s ease;
}
.post-navigation .nav-previous a:hover .nav-subtitle,
.post-navigation .nav-next a:hover .nav-subtitle {
  color: rgba(255, 255, 255, 0.9);
}
.post-navigation .nav-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Custom + Info button and list container class */
.btn-info-custom {
  background-color: var(--color-brand-red) !important;
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-dark-heavy) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 0 !important;
  text-decoration: none !important;
}
.btn-info-custom:hover {
  background-color: var(--color-dark-heavy) !important;
  color: var(--color-white) !important;
  border-color: var(--color-dark-heavy) !important;
}
.info-btn-container {
  margin-top: 2rem;
}

/* UI Kit Elements / elementuak.html Custom Styles */
.section-header-element {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}
.section-header-element h2,
.section-header-element .h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark-heavy);
  white-space: nowrap;
}
.header-accent-line {
  flex: 1;
  height: 2px;
  background-color: var(--color-dark-heavy);
}

.h1-example {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-dark-heavy);
  text-transform: uppercase;
}
.h2-example {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-dark-heavy);
}
.h3-example {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-dark-heavy);
}

/* Custom list markers */
.list-marker-red li::marker {
  color: var(--color-brand-red);
}
.list-marker-blue li::marker {
  color: var(--color-kirola);
}

/* Badge prices */
.badge-price {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
  border: 1px solid var(--color-dark-heavy);
  background-color: var(--color-dark-heavy);
}
.badge-free {
  background-color: var(--color-kultura);
  border-color: var(--color-kultura);
}
.badge-paid {
  background-color: var(--color-kirola);
  border-color: var(--color-kirola);
}
.badge-paid-alt {
  background-color: var(--color-brand-red);
  border-color: var(--color-brand-red);
}

/* Booking submit button */
.btn-booking-submit {
  background-color: var(--color-kultura) !important;
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border: 2px solid var(--color-dark-heavy) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 0 !important;
  text-decoration: none !important;
}
.btn-booking-submit:hover {
  background-color: var(--color-dark-heavy) !important;
  color: var(--color-white) !important;
  border-color: var(--color-dark-heavy) !important;
}

/* Room card header gradient */
.room-card-header-gradient {
  height: 160px;
  background: linear-gradient(135deg, #0073cc, #00a600);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Swiss alerts overrides */
.alert-swiss {
  border: 2px solid var(--color-dark-heavy) !important;
  color: var(--color-dark-heavy) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem;
  border-radius: 0 !important;
  margin-bottom: 1rem;
}
.alert-swiss.alert-success {
  background-color: rgba(0, 166, 0, 0.08) !important;
  border-color: var(--color-kultura) !important;
}
.alert-swiss.alert-warning {
  background-color: rgba(229, 158, 0, 0.08) !important;
  border-color: var(--color-gazteria) !important;
}
.alert-swiss.alert-danger {
  background-color: rgba(227, 6, 19, 0.08) !important;
  border-color: var(--color-brand-red) !important;
}

/* Fine-styled Swiss Toasts */
.toast-swiss {
  border: 2px solid var(--color-dark-heavy) !important;
  background-color: var(--color-white) !important;
  width: 100%;
  max-width: 100%;
  border-radius: 0 !important;
}
.toast-header-swiss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg-footer) !important;
  border-bottom: 2px solid var(--color-dark-heavy) !important;
  font-weight: 700;
  color: var(--color-dark-heavy);
}
.toast-body-swiss {
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
  font-weight: 500;
  line-height: 1.5;
}

/* Course Card / Activity Table styles from image */
.course-card-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}
.course-card {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--color-warm-cream);
  border: 2px solid var(--color-dark-heavy);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 992px) {
  .course-card {
    grid-template-columns: 320px 1fr;
  }
}
.course-image-col {
  position: relative;
  min-height: 240px;
  max-height: 380px;
  overflow: hidden;
  border-bottom: 2px solid var(--color-dark-heavy);
}
@media (min-width: 992px) {
  .course-image-col {
    border-bottom: none;
    border-right: 2px solid var(--color-dark-heavy);
    min-height: 100%;
    max-height: none;
  }
}
.course-image-col img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.course-info-col {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}
.course-title {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-dark-heavy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.course-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-brand-red);
}
.course-table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.course-table {
  width: 100%;
  border-collapse: collapse;
}
.course-table th {
  font-family: var(--font-sans);
  color: #a17c58;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 2px solid rgba(161, 124, 88, 0.3);
  text-align: left;
}
.course-table td {
  padding: 1.25rem 1rem 1.25rem 0;
  border-bottom: 1px solid rgba(161, 124, 88, 0.15);
  vertical-align: top;
  font-family: var(--font-sans);
}
.course-table tr:last-child td {
  border-bottom: none;
}
.days-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark-heavy);
  display: block;
}
.time-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
  display: block;
  line-height: 1.4;
}
.price-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark-heavy);
  display: block;
}
.price-subtext {
  font-size: 0.8rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text-light);
  display: block;
  margin-top: 0.1rem;
}

/* Badges with exactly matching visual styles */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.85rem;
  border-radius: 0 !important;
  width: 105px;
  height: 32px;
  border: 1px solid transparent;
}
.status-badge i {
  font-size: 0.9rem;
}
.status-active {
  border-color: #28a745 !important;
  color: #28a745 !important;
  background-color: rgba(40, 167, 69, 0.05) !important;
}
.status-full {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.05) !important;
}
.status-pending {
  border-color: #6c757d !important;
  color: #6c757d !important;
  background-color: rgba(108, 117, 125, 0.05) !important;
}

.course-footer-notes {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(161, 124, 88, 0.25);
}
.course-footer-notes p {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 0.35rem;
}
.course-footer-notes p:last-child {
  margin-bottom: 0;
}

/* Responsive Table overrides for small screens */
@media (max-width: 767px) {
.course-card-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}
.course-card {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--color-warm-cream);
  border: 2px solid var(--color-dark-heavy);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}



  .course-table thead {
    display: none;
  }
  .course-table tr {
    display: block;
    border-bottom: 2px solid rgba(161, 124, 88, 0.2);
    padding: 1rem 0;
  }
  .course-table tr:last-child {
    border-bottom: none;
  }
  .course-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: none;
    text-align: right;
  }
  .course-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.75rem;
    color: #a17c58;
    text-transform: uppercase;
    text-align: left;
  }
  .price-text, .price-subtext, .time-text {
    text-align: right;
  }
}

/* -- AGENDA CARDS -- */
.filter-jarduera {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--color-dark-heavy);
  border-top: 1px solid var(--color-dark-heavy);
  padding: 20px 0;
}
.filter-jarduera .form-check {
  margin-right: 15px;
}
.filter-jarduera .form-check label {
  cursor: pointer;
  color: var(--color-text-main);
}
.filter-jarduera .form-check:hover label {
  color: var(--color-brand-red);
}
.agenda-cards-box {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 2.5rem -20px;
}
.agenda-card {
  width: 33.3333333%;
  display: flex;
  flex-direction: column;
  padding: 0 20px 40px 20px;
}
.agenda-card figure a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 225px;
  position: relative;
  overflow: hidden;
}
.agenda-card figure a img {
  max-width: 100%;
  transition: all 0.8s;
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  object-fit: cover;
  align-self: stretch;
}
.agenda-card:hover figure img {
  transform: scale(1.2);
}
.agenda-card .article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.agenda-card .article-content h3 a {
  font-size: 25px;
  color: var(--color-dark-heavy);
}
.agenda-card .article-content h3 a:hover {
  color: var(--color-brand-red);
}
.agenda-card .b-item-eguna {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: 25px;
}
.b-hila {
  color: var(--color-brand-red);
  font-size: 30px;
  font-weight: 600;
}
.b-eguna {
  text-transform: uppercase;
  font-size: 14px;
}
.agenda-card .link-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.agenda-card .article-content .link-bottom span {
  margin: 0 10px;
}
.link-kokapena {
  color: var(--color-dark-heavy);
}
.link-kokapena:hover {
  color: var(--color-brand-red);
}
.link-gehiago {
  color: var(--color-dark-heavy);
}
.link-gehiago:hover {
  color: var(--color-brand-red);
}
.egunak {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}
.egunak .b-item-eguna {
  margin-bottom: 0;
}

/* -- AGENDA HOMEPAGE LIST -- */
.agenda-b-box {
  display: flex;
}
.agenda-b-item {
  width: 25%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-top: 1px solid var(--color-dark-heavy);
  border-right: 1px solid var(--color-dark-heavy);
}
.agenda-b-item a {
  margin-top: auto;
}
.agenda-b-item p {
  margin-bottom: 20px;
}
.agenda-osoa {
  background-color: var(--color-dark-heavy);
  color: var(--color-white);
  align-items: flex-end;
  text-transform: uppercase;
}
.agenda-osoa a {
  color: var(--color-white);
}

@media (max-width: 992px) {
  .agenda-b-box {
    flex-wrap: wrap;
  }
  .agenda-b-item {
    width: 50%;
  }
  .agenda-osoa {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .agenda-b-item {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .agenda-card {
    width: 50%;
  }
  .agenda-card:nth-child(even) {
    border-left: 1px solid var(--color-dark-heavy);
  }
}
@media (max-width: 768px) {
  .agenda-card {
    width: 100%;
  }
  .agenda-card .article-content h3 a {
    font-size: 20px;
  }
  .agenda-card figure a {
    height: 150px;
  }
  .agenda-card .link-bottom {
    flex-direction: column;
  }
}



/* ================================================================
   CORRECCIÓN DEFINITIVA DEL MENÚ RESPONSIVE
   Hamburger hasta 1023px; menú horizontal desde 1024px.
   ================================================================ */

/* Estado base: navegación de escritorio */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
}

/* Tablet y móvil: mantener siempre el menú hamburguesa */
@media (max-width: 1023px) {
  .main-header-inner {
    min-height: 80px;
  }

  .nav-toggle-label {
    position: relative;
    z-index: 1031;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    cursor: pointer;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1030;
    width: 100%;
  }

  .nav-list {
    display: none;
    width: 100%;
    margin: 0;
    padding: 1rem;
    flex-direction: column;
    gap: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-line);
    box-shadow: 0 8px 18px var(--color-black-10);
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-list > li > a,
  .nav-list > li > .dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: .75rem 0;
  }

  .nav-toggle:checked ~ .main-nav .nav-list {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-toggle-label span {
    background-color: transparent;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::before {
    top: 0;
    bottom: auto;
    transform: rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .submenu {
    position: static !important;
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: .25rem 0 .75rem !important;
    padding: 0 0 0 1rem !important;
    transform: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .nav-item-dropdown:hover .submenu,
  .nav-item-dropdown:focus-within .submenu {
    display: flex !important;
  }
}

/* Escritorio: recuperar el menú horizontal normal */
@media (min-width: 1024px) {
  .nav-toggle,
  .nav-toggle-label {
    display: none !important;
  }

  .main-nav {
    position: static;
    width: auto;
  }

  .nav-list {
    display: flex !important;
    width: auto;
    margin: 0;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}
