@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;

  color: #000;
  font-size: 17.5px;
  font-family: "Open Sans", sans-serif;
}

div.region-content {
  min-height: 60vh;
}

a {
  transition: 0.5s ease;
}

a:hover {
  color: #249424;
}

p,li {
  line-height: 1.8;
}

div.region-header {
  /* border:1px solid red; */
}

div.has-highlighted-content {
  padding-bottom: 34px;
}

div.no-highlighted-content {
  /* background: linear-gradient(90deg, #ffb805 0%, #0cd0cd 100%); */
  background: #bee2b4;
  margin-bottom: 40px;

  @media (min-width: 1025px) {
    margin-left: -15px;
    margin-right: -15px;
  }
}

body.path-frontpage{

  div.no-highlighted-content {
    margin-bottom: 0;
  }
}

.page-header {
  margin: 0;
  border-bottom: none;
}

h1.page-header {
  text-align: center;
  font-size: 25px;
  font-weight: 600;
  line-height: 100%;
  color: #000;
  padding: 22px 33px;
}

body.path-frontpage h1 {
  display: none;
}

h1 span {
  max-width: 1144px;
  margin: auto;
  display: block;
  line-height: 1.25;
}

div.highlighted {
  background: #bee2b4;
  /*background: linear-gradient(90deg, #ffb805 0%, #0cd0cd 100%);*/
  padding-top: 34px;
  padding-bottom: 31px;
  margin-bottom: 38px;
}

div.region-highlighted {
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;

  section {
    font-size: 18px;
    line-height: 150%;
    font-weight: 400;
    margin-left: 60px;
    margin-right: 6px;
    position: relative;

    strong {
      font-weight: 800;
    }
  }

  /* section::before {
    content: "";
    display: block;
    position: absolute;
    list-style: none;
    top: 5px;
    left: -48px;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 15px;
  } */
}

section#block-migal-2025-views-block-sponsors-simple-block-1 {
  margin: auto;
  max-width: 1684px;
}

section h2.block-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 30px;
  font-weight: 800;
  line-height: 100%;
  color: #000;
}

section#block-migal-2025-views-block-news-homepage-block-1 {
  margin: auto;
  margin-top: 130px;
  max-width: 1768px;
}

.view-researchers-admin.view-display-id-page_2 {
  max-width: 1664px;
  margin: auto;
}

article.news.full {
  max-width: 900px;
  margin: auto;

  font-size: 17.5px;
  line-height: 175%;
  font-weight: 400;
  color: #000;
  .field--name-field-main-photo {
    img {
      border-radius: 15px;
    }
  }

  .field--name-field-date {
    margin-top: 48px;
    margin-bottom: 24px;
  }

  a{
    color: black;
    text-decoration: underline;
    &:hover {
      color: #249424;
      text-decoration: none;
    }
  }
}

section#block-migal-2025-views-block-about-block-1 {
  margin-top: 58px;

  .views-field-field-image img {
    transition: 0.5s ease;
  }

  .views-field-field-image img:hover {
    opacity: 0.5;
  }

  .views-field-title {
    margin: 24px 35px 0px 27px;
    font-size: 20px;
    line-height: 200%;
    font-weight: 700;
  }

  .views-field-body {
    margin: 4px 35px 0px 27px;
    font-size: 17.5px;
    line-height: 175%;
  }
}

.view-research-departments.view-display-id-block_1,
section#block-migal-2025-views-block-about-block-2,
section#block-migal-2025-views-block-news-full-website-block-1,
section#block-migal-2025-views-block-management-v2-block-1,
body.page-node-3264 div.region-content {
  max-width: 1768px;
  margin: auto;
}

body.page-node-3264 div.region-content {

  section h2.block-title {
    text-align: left;
    font-size: 35px;
    font-weight: 600;
    margin-top: 66px;
  }

  section#block-migal-2025-views-block-management-v2-block-1,
  section#block-migal-2025-views-block-board-members-block-1
  {
    margin-bottom:56px;
  }

  .panel-title{
    font-size: 35px;
    font-weight: 600;
  }

  section#block-migal-2025-views-block-management-v2-block-1{
    .panel-body{
      margin-top: 46px;
    }
  }

}

body.page-node-6866 div.region-content {
  max-width: 1268px;
  margin: auto;
  font-size: 17.5px;
  line-height: 175%;
  font-weight: 400;
  color: #000;
}

section#block-migal-2025-aboutlargetext {
  text-align: center;
  width: 100%;
  margin: auto;
  max-width: 100%;
  iframe {
    max-width: 100%;
  }
}

.ui-widget.ui-widget-content {
  max-width: 100%;
}

div#drupal-modal {
  article {
    color: black;
    line-height: 160%;
    font-size: 16px;

    .layout__region--second {
      padding-top: 24px;
    }
  }
  section.block-field-blocknodemanagementtitle {
    font-size: 28px;
    font-weight: 700;
  }

  section.block-field-blocknodemanagementfield-job-title {
    font-size: 24px;
    margin-top: 12px;
    margin-bottom: 24px;
  }

  section.block-field-blocknodemanagementbody {
    margin-bottom: 12px;
  }
}

.researcher-card-image {
  height: 296px;
  width: 296px;
  margin: auto;
  overflow: hidden;
  background: #aaaaaa;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;

  img {
    object-fit: contain;
    transition: 0.5s ease;
    margin: auto;
    display: block;
  }

  img:hover {
    opacity: 0.5;
  }
}


.three-col{
  .researcher-card-image {
    margin: initial;
  }
}

.grid-of-researchers div.field--items,
.grid-of-researchers.field--items {
  display: flex;
  flex-direction: row;
  column-gap: 40px;
  row-gap: 60px;
  flex-wrap: wrap;

  .field--item {
    max-width: 296px;
  }
}

.researcher-card-title {
  font-size: 16px;
  line-height: 150%;
  font-weight: 700;
  margin: 31px 20px 16px 20px;

  a {
    color: black;
    text-decoration: none;
    transition: 0.5s ease;
  }

  a:hover {
    /* color: #1ac7c6; */
    text-decoration: none;
  }
}

.researcher-card-research-group {
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  margin: 16px 20px;

  a {
    color: black;
    text-decoration: none;
    transition: 0.5s ease;
  }

  a:hover {
    /* color: #1ac7c6; */
    text-decoration: none;
  }
}

.btn-primary {
  color: #000;
  background-color: #69c269;
  border-color: #69c269;
  font-weight: 700;
}

.btn-primary:hover {
  color: #000;
  background-color: #f3bc2a;
  border-color: #f3bc2a;
}

.path-webform {
  .region-content {
    form {
      .error {
        color: #ba0000;
        font-size: 14px;
      }
    }
  }
}

.ui-widget-overlay{
  opacity: 0.7;
  background-color: #000;
}

form#user-login-form, form#user-pass {
  max-width: 680px;
  margin: auto;
}

section#block-migal-2025-views-block-top-banner-block-2{
  margin-right: -15px;
  margin-left: -15px;
  position: relative;
}

div#views_slideshow_cycle_main_top_banner-block_2{
  .hp-banner{
    max-height: 1000px;
    overflow: hidden;
  }
}

section#block-migal-2025-webform-3 {
  display: none;
  padding: 40px;
}

.pager li>a,
.pager li>span {
  display: inline-block;
  padding: 5px 14px;
  background-color: #ced4c1;
  border: 0 solid #ddd;
  border-radius: 15px;
  color: #000;
  font-weight: 800;
  border-radius: 50%;
}

.views_slideshow_cycle_main {
  touch-action: pan-y;
  cursor: grab;
  /* Adds a nice 'grab' hand on desktop 4K screens */
}

.views_slideshow_cycle_main:active {
  cursor: grabbing;
}

#views_slideshow_cycle_main_top_banner-block_2 {
  touch-action: pan-y !important;
  /* Disables horizontal browser swipe, keeps vertical scroll */
  -webkit-user-drag: none;
  user-select: none;
}

@media (max-width: 1024px) {
  div.main-container {
    padding: 0;
    margin: 0;

    div.row {
      margin-right: 0;
      margin-left: 0;
    }

    section.col-sm-12 {
      padding-left: 0;
      padding-right: 0;
    }

    div.col-sm-12 {
      padding-left: 0;
      padding-right: 0;
    }
  }


  section#block-migal-2025-views-block-top-banner-block-2{
    margin: 0;
    padding: 0;
  }

  div.region-highlighted {
    section {
      margin-left: 24px;
      margin-right: 24px;
    }
  }



}

@media (min-width: 640px) {
div#drupal-modal {
    article {
      padding: 12px;

      .layout__region--second {
        padding-left: 24px;
        padding-top: 0;
      }
    }
  }
}

@media (min-width: 1025px) {
  div.region-highlighted {
    max-width: 1556px;
    /* margin: auto;
    display: flex; */
    flex-direction: row;
    justify-content: space-evenly;
    gap: 60px;

    section {
      max-width: 474px;
      width: 33%;
    }

  }

  h1.page-header {
    font-size: 35px;
    font-weight: 800;
    padding-top: 27px;
    padding-bottom: 21px;
  }

  section#block-migal-2025-views-block-about-block-1 {

    .views-field-field-image {
      border-radius: 15px;
      overflow: hidden;
    }
  }

  section#block-migal-2025-views-block-scientific-advisory-committee-block-1 {
    .views-view-responsive-grid {
      row-gap: 71px;
    }
  }



  div.highlighted {
    margin-bottom: 108px;
  }
}



@media (max-width: 1024px) {
  body:not(.path-frontpage) .region.region-content {
    padding: 0 30px 30px;
  }


  body.page-node-3264 div.region-content.region-content
  {
    padding: 0 53px 30px;
  }


  body.page-node-type-researcher div.region-content.region-content
  {
    padding: 0 !important;
  }


  h1.page-header {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 100%;
    color: #000;
    padding: 22px 33px;
  }

  a{
    color: #249424;
    text-decoration: none;
  }
}

