*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body{
    font-family: 'Sora', sans-serif;
    background-color:#26272b;
}
ul{
    list-style: none;
}

header{
    height: 100vh;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-image: url(./images/gradient.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
a{
    text-decoration: none;
}


/* LATEST NEWS */
#latestNews h3 { margin-bottom: 20px; }

.news-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  padding: 8px 16px 24px;
}
@media (min-width: 576px) { .news-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .news-row { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.news-card a { color: inherit; text-decoration: none; display: block; height: 100%; }

.news-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.news-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-body { padding: 14px 16px 18px; }
.news-body time { font-size: .9rem; color: #6c757d; display: block; margin-bottom: 4px; }
.news-title { font-size: 1.05rem; margin: 4px 0 6px; color: #3267b2; }
/* Text llarg, amb salts de línia del teu contingut */
.news-text {
  margin: 0;
  white-space: pre-line;  /* respecta \n i \n\n del text llarg */
}


#languageList{
    margin: 0;
    padding: 0;
}
.languageElement{
    padding: 10px;
}
.languageElement:hover{
    cursor: pointer;
    font-weight: bold;
}
#languageContainer{
    padding:0.5rem 1rem ;
    display: flex;
    justify-content: center;
    align-items: center;
}

#info{
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h2{
    margin-top: 20px;
    width: 50%;
    display: flex;
    justify-content: center;
    color: white;
    font-weight:300;
}
h3{
    font-weight: bold;
    color: #3267b2;
    text-align: center
}
.translate:hover{
    cursor: pointer;
}

.navbar{
    width: 100%;
}
#navLinks{
    margin-right: 20px;
}
#navLinks a{
    color: white;
}
.modal-dialog{
    max-width: 800px;
}
.modal-content{
    margin: 20px;
}
.dropdown-item{
    color: black !important;
    font-size: 15px;
}
#language-menu{
    min-width: 30px !important;
}

.canvas-links{
    color: black;
}
.canvas-links:hover{
    color: black;
    background-color: lightgray;
}
.offcanvas-body{
    padding: 0;
}

#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 9999;
}
#btn-back-to-top:hover{
    cursor: pointer;
}

#scrollDown{
    opacity: 0.7;
    margin-bottom:30px
}

#scrollDown:hover{
    opacity: 1;
    cursor: pointer;
}

#container{
    padding-top: 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


    z-index: 1;
    -webkit-box-shadow: #000 0 7px 35px 0;
	-moz-box-shadow: #000 0 7px 35px 0;
	box-shadow: #000 0 7px 35px 0;
    background-color: #FFF;
}
.sectionContainer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}
#carouselExampleSlidesOnly{
    flex: 1;
    margin-right: 30px;
}
.content{
    padding: 50px;
    width: 70%;
    text-align: justify;
    display: flex;
    justify-content: space-between;

}
.column-content{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
}
#fieldContent,#mesocosmContent{
    width: 50%;
}
#firstImage{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
#firstImageContainer{
    width: 100%;
}
#fieldSitesImage, #mesocosmImage{
    width: 100%;
    border-radius: 10px;
}

#membersContainer,#publicationsContainer,#projectsContainer,#conferencesContainer,#jobs{
    width: 100%;
}
#jobContainer{
    width: 75%;
}
.pic{
    border-radius: 50%;
    width: 168px;
    overflow: hidden;
    position: relative;
}
.pic_quadrat{
    border-radius:0;
    width: 168px;
    overflow: hidden;
    position: relative;
    margin:0 100px;
    border:1px solid #eee;
}
.pic::after, .pic_quadrat::after{
    content: "";
    width: 100%;
    height: 100%;
    border-radius:0;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.5s ease 0s;
}
.pic::after{
  border-radius:50%;
}

.member .info {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    position: absolute;
    top: 45%;
    left: 0;
    z-index: 1;
    transition: all 0.5s ease 0s;
}
.member:hover .pic::after, .member:hover .info{
    opacity: 1;
    cursor: pointer;
}
.member:hover .pic_quadrat::after{
    opacity: 1;
    cursor: pointer;
}
.info li{
    display: flex;
    justify-content: center;
    align-items: center;
 }
.info li i{
    display: block;
    line-height: 30px;
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: all 0.5s ease 0s;
}
.memberImage{
    border-radius: 50%;
    width: 100%;
}
.partnerImage{
    border-radius:0;
    width:100%;
}
.institutionImage{
    width: 35%;
}
.companyImage{
    width: 25%;
    margin-right: 50px;
}
.avatar{
    border-radius: 50%;
    width: 68px;
}
.avatar_quadrat{
    border-radius:0;
    width: 68px;
}
.memberImage:hover{
    cursor: pointer;
}

.container {
    width: 100%;
    margin: 0 auto;
    margin-top: 30px;
}

.gridLayout {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.member {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-basis: 33%;
    padding: 24px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.member-name {
    margin: 0;
    margin-top: 12px;
    font-weight: 600;
    font-size: 24px;
    color: #3267b2;
}

.member-role {
    font-style: italic;
    font-size: 18px;
}
#advisoryBoard,#news{
    padding: 0px 30px 0px 30px;
}
.advisor{
    font-size: 20px;
}
#accordionFlushExample{
    margin-top: 30px;
    width: 70%;
}
.accordion-button{
    font-weight: bold;
}


#site-footer{
    background-color:#26272b;
    padding:45px 0 20px;
    font-size:15px;
    line-height:24px;
    color:#737373;
	position: fixed;
	z-index: -1;
	left: 0;
	right: 0;
	bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#site-footer hr
{
  border-top-color:#bbb;
  opacity:0.5
}
#site-footer hr.small
{
  margin:20px 0
}
#site-footer h6
{
  color:#fff;
  font-size:16px;
  text-transform:uppercase;
  margin-top:5px;
  letter-spacing:2px
}
#site-footer a
{
  color:#737373;
}
#site-footer a:hover
{
  color:#3366cc;
  text-decoration:none;
}
.footer-links
{
  padding-left:0;
  list-style:none
}
.footer-links li
{
  display:block
}
.footer-links a
{
  color:#737373
}
.footer-links a:active,.footer-links a:focus,.footer-links a:hover
{
  color:#3366cc;
  text-decoration:none;
}
.footer-links.inline li
{
  display:inline-block
}
#site-footer .social-icons
{
  text-align:right
}

.copyright-text
{
  margin:0
}
@media (max-width:991px)
{
  #site-footer [class^=col-]
  {
    margin-bottom:30px
  }
}
@media (max-width:767px)
{
  #site-footer
  {
    padding-bottom:0
  }
  #site-footer .copyright-text,#site-footer .social-icons
  {
    text-align:center
  }
}
.social-icons
{
  padding-left:0;
  margin-bottom:0;
  list-style:none;
  display: flex;
  justify-content: space-around;
}
.social-icons li
{
  display:inline-block;
  margin-right:10px
}
.footerImage{
    width: 75px;
}
.footerImage:hover{
    cursor: pointer;
}

@media (max-width: 1200px){
    .content{
        flex-direction: column;
        width: 90%;
        padding: 0;
    }
    .column-content{
        width: 90%;
    }
    #carouselExampleSlidesOnly{
        margin: 0;
        margin-bottom: 30px;
    }
    #fieldContent,#mesocosmContent{
        width: 90%;
    }

    #accordionFlushExample{
        width: 90%;
    }
    #navLogo{
        width: 200px;
    }
    .container-fluid{
        padding-left: 0;
    }
    #simbol{
        width: 60px;
    }
    #welcomeInfo{
        font-size: 1.2rem;
    }
    .institutionImage{
        width: 45%;
    }
    .companyImage{
        margin: 10px;
    }
}
@media (max-width: 425px){
    #aboutFooter{
        display: none;
    }
}
/* Contenidor de logos a l'esquerra del navbar */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px; /* separació entre el logo principal i el finançament */
}

#navLogo {
  max-width: 240px;   /* era 210px → ara un 14% més gran */
  height: auto;
}

#euBadge {
  max-width: 350px;   /* era 300px → ara un 17% més gran */
  height: auto;
  display: block;
  margin-left: 14px;  /* una mica més d'espai perquè respirin */
}



@media (max-width: 768px) {
  #navLogo {
    max-width: 180px;
  }
  #euBadge {
    max-width: 250px;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* Imatge de finançament al footer */
/* Logos del footer */
footer img.footerFunding {
  max-width: 320px;      /* més gran (abans 220px) */
  height: auto;
  object-fit: contain;   /* manté proporcions, no talla res */
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

/* Els altres logos perquè quedin alineats */
footer img.footerImage {
  max-width: 120px;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* En pantalles petites, redueix una mica per evitar saturació */
@media (max-width: 768px) {
  footer img.footerFunding {
    max-width: 240px;
    margin: 6px 0;
  }

  footer img.footerImage {
    max-width: 90px;
  }
}

/* Contenidor de logos del footer — ara flexible i responsive */
footer .social-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;       /* ← clau: permet saltar de línia si no hi caben */
  gap: 12px;             /* separació entre logos */
}

/* Logos curts (ICRA, UdG) */
footer img.footerImage {
  max-width: 120px;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* Logo llarg de finançament */
footer img.footerFunding {
  max-width: 340px;      /* més gran, però controlat */
  height: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  max-height: 90px;      /* evita que se surti de la columna */
}

/* Versió per pantalles petites */
@media (max-width: 768px) {
  footer .social-icons {
    justify-content: center; /* centrat al mòbil */
  }
  footer img.footerImage {
    max-width: 100px;
  }
  footer img.footerFunding {
    max-width: 280px;
    max-height: 75px;
  }
}

