/* Lato Regular */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Lato-Regular.woff2') format('woff2');
}
/* Lato Bold */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/Lato-Bold.woff2') format('woff2');
}
/* Lato Italic */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Lato-Italic.woff2') format('woff2');
}
/* Lato Bold Italic */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/Lato-BoldItalic.woff2') format('woff2');
}
/* Lato Light */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/Lato-Light.woff2') format('woff2');
}
/* Lato Light Italic */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/Lato-LightItalic.woff2') format('woff2');
}

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

   /* Sekzioen azpiko kolorea */
  --color-bg-orlegiargi: #DCE8B4;
  --color-beixa: #fbf7f7;

  /* Tonos neutros claros / fondos */
  --color-bg-light: #ffffff;
  --color-bg-footer: #e5e8e2;
  --color-footer-bg: #f5f5f7;
  --color-warm-cream: #fffdec;
  --color-white: #ffffff;
  
  /* Tonos neutros oscuros */
  --color-black: #000000;
  --color-black-edu: #343434;
  --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);
  
/* 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;
  border: none;
}

/* =========================================================
   GORPUTZA - GOIBURUAK
========================================================= */
body {
    font-family: var(--font-lato);
    font-weight: 300;
    color: var(--color-black-edu);
    background-color: var(--color-bg-light);
    font-size: 14px;
    line-height: 1.5;
}
.h1, h1 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: right;
}

#menuLateral .offcanvas-body {
    padding: 30px 25px;
}
.menu-aukerak .nav-link {
    padding: 10px 0;
}
/* =========================================================
   MENU NAGUSIA
========================================================= */
.dropdown-item{
   font-family: var(--font-lato);
   font-weight: 300;
   color: var(--color-black-edu);
   font-size: 12px;
   line-height: 1.9;
}
/*KARRUSELEKO ZENBAKIYEK EZKUTATU*/
li[data-bs-target="#Carouseltop"]::marker {
    content: "";
}

/* =========================================================
OINA
========================================================= */
.footer-bottom{
    background-color: var(--color-beixa);
}
/*LEGEDIA*/
.legeak {
    margin-top: 50px;
    max-width: 1000px;
}
.legeak h2{
    font-size: 1rem;
}

/* =========================================================
   VARIABLES
========================================================= */
:root {
    --sidebar-width: 280px;
    --color-bg: #ffffff;
    --color-text: #111111;
    --color-border: #e6e6e6;
    --font-main: Arial, Helvetica, sans-serif;
    --awards-bg: #f1f1ee;
    --awards-text: #171717;
    --awards-muted: #666662;
    --awards-line: rgba(23, 23, 23, 0.16);
    --awards-max: 1280px;
}
/* =========================================================
   ESCRITORIO
========================================================= */

    .edukiahome-content {
        width: 600px;
        max-width: 100%;
        background-color: var(--color-beixa);
        text-align: left;
        padding: 50px;
    }


@media (min-width: 992px) {
/* -----------------------------------------------------
    MENÚ LATERAL
----------------------------------------------------- */
    .menu-nagusia {
        position: fixed !important;
        top: 0;
        left: 0;
        width: var(--sidebar-width) !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        background: #ffffff;
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .menu-nav {
        width: 100%;
        height: 100%;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
/* -----------------------------------------------------
    DESACTIVAR OFFCANVAS EN ESCRITORIO
----------------------------------------------------- */
    #menuLateral.offcanvas,
    #menuLateral.offcanvas-start {
        position: static !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
        border: 0 !important;
        display: block !important;
        background: transparent !important;
    }
    #menuLateral:not(.show) {
        visibility: visible !important;
        transform: none !important;
    }
/* -----------------------------------------------------
    CONTENIDO INTERIOR DEL SIDEBAR
----------------------------------------------------- */

    #menuLateral .offcanvas-body {
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: visible !important;
    }
/* -----------------------------------------------------
    LOGO
----------------------------------------------------- */
    .site-logo {
        width: 100%;
        margin-bottom: 30px !important;
    }
   .site-logo .navbar-brand {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .site-logo img {
        width: 100%;
        height: auto;
        max-width: 220px;
    }
/* -----------------------------------------------------
    MENÚ
----------------------------------------------------- */
    .menu-aukerak {
        width: 100%;
    }
    .menu-aukerak .nav-item {
        width: 100%;
    }
    .menu-aukerak .nav-link {
        width: 100%;
    }
/* -----------------------------------------------------
    SARE SOZIALAK / INSTAGRA IKURRA
----------------------------------------------------- */
    .menu-social {
        margin-top: auto;
        padding-top: 30px;
    }
/* -----------------------------------------------------
    OCULTAR HAMBURGUESA Y CERRAR
----------------------------------------------------- */
    .menu-nagusia .navbar-toggler {
        display: none !important;
    }

    #menuLateral .offcanvas-header {
        display: none !important;
    }

/* =====================================================
    CONTENIDO DERECHO
===================================================== */
    .site-right {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        min-height: 100vh;
        overflow: hidden;
    }
/*Barrupo Orriak edukia*/
    .edukia{
       margin: 50px;
       width: calc(50% - var(--sidebar-width));
    }
     .edukia p{
        margin-bottom: 20px;
    }

/*HOME edukia*/
.edukiahome{
    margin: 50px;
  }
.edukiahome {
	display: flex;
	justify-content: flex-end;
   }

/* -----------------------------------------------------
    HEADER SUPERIOR
----------------------------------------------------- */
    .site-header,
    .top-header {
        width: 100%;
    }
/* -----------------------------------------------------
    MAIN
----------------------------------------------------- */
    #primary,
    #content,
    .site-main {
       width: 100% !important;
       max-width: none !important;
       margin-left: 0 !important;
       margin-right: 0 !important;
    }
/* -----------------------------------------------------
    SLIDERS
----------------------------------------------------- */
    .carousel,
    .swiper,
    .slider,
    .slick-slider {
        width: 100% !important;
        max-width: none !important;
    }
/* -----------------------------------------------------
    FOOTER
----------------------------------------------------- */
    footer,
    .site-footer {
      width: 100%;
      margin-left: 0 !important;
      max-width: none !important;
    }
    .footer-top{
        margin-bottom: 20px;
    }
    .footer-top img{
        max-width: 100px !important;
    }
    .footer-bottom {
    color: var(--color-black-edu);
    padding: 10px 0;
    position: relative;
    display: flex;
    font-size: 12px;
    }  
 }

/* FOOTER: copyright + menú */
.footer-left {
  display: flex;
  align-items: center;
}
.footer-left .copyright {
  margin-left: 5px;
  margin-right: 25px;
  white-space: nowrap;
  color: var(--color-black);
}

/* Menú */
.footer-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu li {
  margin-right: 20px;
}

.footer-menu li:last-child {
  margin-right: 0;
}
.footer-menu a{
    color: var(--color-black-edu);
}

/* Logo a la derecha */
.footer-logo {
  margin-left: auto;
}

.footer-logo img {
  display: block;
  max-height: 30px;
  max-width: 100%;
}

.arrow-top {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
  text-decoration: none;
}

.arrow-top i {
  font-size: 28px;
  line-height: 1;
  color: var(--color-black-edu);
}

/* Tooltip */
.arrow-top .azalpena {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);

  padding: 5px 8px;
  background: #333;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  border-radius: 3px;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

/* Mostrar al pasar el ratón */
.arrow-top:hover .azalpena,
.arrow-top:focus .azalpena {
  opacity: 1;
  visibility: visible;
}

/*Sariak*/
.awards-section {
  width: 100%;
  background: #fbf7f7;
}

.awards-inner {
  max-width: 800px;
  margin: 0 auto;
}

.awards-list {
  display: flex;
  flex-direction: column;
}

.award-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.award-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.award-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.award-prize {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.award-year {
  font-size: 12px;
  opacity: 0.5;
}

.award-description {
  margin: 0;
  max-width: 850px;
  font-size: 13px;
  line-height: 1.65;
  text-transform: uppercase;
}

/* Hover */
.award-item {
  transition: padding-left 0.3s ease, background-color 0.3s ease;
}

.award-item:hover {
  padding-left: 15px;
}

.award-item:hover .award-prize {
  opacity: 0.65;
}

/* Tablet */
@media (max-width: 768px) {
  .award-item {
    grid-template-columns: 120px 1fr;
    gap: 25px;
  }

  .award-description {
    font-size: 13px;
  }
}

/* Móvil */
@media (max-width: 600px) {
  .award-item {
    display: block;
    padding: 22px 0;
  }

  .award-meta {
    flex-direction: row;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 12px;
  }

  .award-description {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* =========================================================
   TABLET Y MÓVIL
========================================================= */
@media (max-width: 991.98px) {
    /* Menú vuelve al flujo normal */
    .menu-nagusia {
     position: relative !important;
     width: 100% !important;
     height: auto !important;
     padding: 10px 15px;
     z-index: 1030;
    }
    .menu-nav {
     width: 100%;
    }
    .edukia{
       margin: 20px;
    }
    /* Parte derecha ocupa 100% */
    .site-right {
        margin-left: 0;
        width: 100%;
    }
    /* Offcanvas vuelve a Bootstrap */
    #menuLateral.offcanvas {
     width: 280px;
    }

    /* Hamburger visible */
    .menu-nagusia .navbar-toggler {
     display: block;
    }
}
@media (min-width: 992px) {
    .menu-nagusia {
     position: fixed !important;
     top: 0;
     left: 0;
     width: 280px !important;
     height: 100vh !important;
     background: #fff;
     z-index: 9999;
     overflow-y: auto;
    }
    #menuLateral.offcanvas {
     position: static !important;
     width: 100% !important;
     height: 100% !important;
     transform: none !important;
     visibility: visible !important;
     background: transparent;
    }
    #menuLateral .offcanvas-body {
     min-height: 100vh;
     display: flex;
     flex-direction: column;
     padding: 30px 25px;
    }
    /* Logo estable */
    .sidebar-logo {
     flex: 0 0 auto;
     margin-bottom: 35px;
    }
    .site-logo {
     margin: 0 !important;
    }
    .site-logo .navbar-brand {
     display: block;
     width: 100%;
     margin: 0;
     padding: 0;
    }
    .site-logo img {
     display: block;
     width: 100%;
     max-width: 210px;
     height: auto;
     margin: 0 auto;
    }

    /* Navegación */
    .sidebar-navigation {
     flex: 0 0 auto;
     width: 100%;
    }
    .menu-aukerak {
     width: 100%;
     margin: 0;
     padding: 0;
    }
    .menu-aukerak .nav-item {
     width: 100%;
    }
    .menu-aukerak .nav-link {
     display: block;
     width: 100%;
     padding: 10px 0;
    }
    /* Redes al fondo cuando hay espacio */
    .menu-social {
        margin-top: auto;
        padding-top: 30px;
    }
    .navbar-toggler,
    #menuLateral .offcanvas-header {
        display: none !important;
    }
    /* Parte derecha */
    .site-right {
        margin-left: 280px;
        width: calc(100% - 280px);
        min-height: 100vh;
    }
}
@media (min-width: 992px) {
    .menu-nagusia {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 280px !important;
        height: 100vh !important;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
    }
    #menuLateral.offcanvas {
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        visibility: visible !important;
        border: 0;
        background: transparent;
    }
    #menuLateral .offcanvas-body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 30px 25px;
    }
    /* Logo estable */
    .sidebar-logo {
        flex: 0 0 auto;
        margin-bottom: 35px;
    }
    .site-logo {
        margin: 0 !important;
    }
    .site-logo .navbar-brand {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .site-logo img {
        display: block;
        width: 100%;
        max-width: 90px;
        height: auto;
        margin: 0 auto;
    }
    /* Navegación */
    .sidebar-navigation {
        flex: 0 0 auto;
        width: 100%;
    }
  
    .menu-aukerak {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .menu-aukerak .nav-link {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    /* Redes al fondo cuando hay espacio */
    .menu-social {
        margin-top: auto;
        padding-top: 30px;
    }
    .navbar-toggler,
    #menuLateral .offcanvas-header {
        display: none !important;
    }
    /* Parte derecha */
    .site-right {
        margin-left: 280px;
        width: calc(100% - 280px);
        min-height: 100vh;
    }
}
@media (min-width: 992px) {
    .site-right .carousel {
        width: 100%;
        height: 100vh;
    }
    .site-right .carousel-inner,
    .site-right .carousel-item {
        width: 100%;
        height: 100vh;
    }
    .site-right .carousel-item img {
        display: block;
        width: 100%;
        height: 100vh;
        object-fit: cover;
        object-position: center;
    }
}
.site-right main {
    width: 100%;
}

@media (min-width: 992px) {
    .site-right {
        margin-left: calc(280px + 50px);
        margin-top: 50px;
        margin-right: 50px;
        /*margin-bottom: 50px;*/
        width: calc(100% - 280px - 100px);
        min-height: calc(100vh - 100px);
    }
}

/*Carousel responsiboa*/
#Carouseltop,
.obrak-box,
.footer-bottom {
    max-width: 100%;
}

#Carouseltop .slider-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 1023px) {
    #Carouseltop {
        height: 70vh;
        min-height: 500px;
    }

    #Carouseltop .carousel-inner,
    #Carouseltop .carousel-item {
        height: 100%;
        min-height: 0;
    }

    #Carouseltop .slider-media {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: center center;
    }
}

@media (max-width: 767px) {

    #Carouseltop {
        height: 65svh;
        min-height: 380px;
        max-height: 700px;
    }

    #Carouseltop .carousel-caption {
        top: auto;
        bottom: 10%;
        left: 20px;
        right: 20px;
    }

}
