article.page.full {
  div.content {
    padding: 60px 0;
    max-width: 1256px;
    margin: auto;
    display: flex;
    flex-direction: row;
    column-gap: 60px;

    .field--name-field-image {
      width: 360px;
      img{
        border-radius: 3px;
      }
    }
  }

  .field--name-field-file {
    min-width: 380px;
    direction: ltr;
  }

  .field--name-body {
    a {
      color: #000;
      text-decoration: underline;
    }

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

  div.slideshow {
    max-width: 100%;
    margin: 0 8px;
    overflow: hidden;
    position: relative;

    div.field--items {
      display: flex;
      flex-direction: row;
      column-gap: 24px;
      overflow-x: auto;
      overflow-y: hidden;
      flex-wrap: nowrap;
      border-radius: 15px;

      /* Hide scrollbar for webkit browsers */
      &::-webkit-scrollbar {
        height: 0px;
        width: 0px;
      }

      &::-webkit-scrollbar-track {
        background: transparent;
      }

      &::-webkit-scrollbar-thumb {
        background: transparent;
      }

      /* For Firefox */
      scrollbar-width: none;

      div.field--item {
        width: 622px;
        min-width: 622px;

        img {
          width: 100%;
          height: auto;
          display: block;
          border-radius: 15px;
        }
      }
    }

    /* Navigation dots container */
    .slideshow-dots {
      display: flex;
      justify-content: center;
      margin-top: 15px;
      gap: 8px;

      .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: black;
        cursor: pointer;
        transition: background-color 0.3s ease;

        &.active {
          background-color: #1c8e3c;
        }

        &:hover {
          background-color: #1c8e3c;
        }
      }
    }
  }
}

/* Desktop: Show 2.5 images */
@media (min-width: 1025px) {
  div.slideshow {
    margin: 0 24px;
    border: 10px solid #e3e3e3;
    border-radius: 20px;
    padding: 6px;

    div.field--items {
      div.field--item {
        width: calc((100% - 48px) / 2.5);
        min-width: calc((100% - 48px) / 2.5);
      }
    }
  }

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

  /* Show dots on mobile */
  .slideshow-dots {
    display: none;
  }

  .field.field--name-body.field--type-text-with-summary h2 {


    margin: 0;


}
}

/* Mobile: Show 1 image with dots */
@media (max-width: 1024px) {
  div.slideshow {
    div.field--items {
      column-gap: 0;
      scroll-snap-type: x mandatory;

      div.field--item {
        width: 100%;
        min-width: 100%;
        scroll-snap-align: start;
      }
    }
  }


  article.page.full {
    div.content {
      padding: 0;
      flex-direction: column;
      gap:20px;

      .field--name-field-image {
        width: auto;
      }
    }
  }

  /* div.field--name-body h2{
    padding-bottom:20px;
  } */
}

section#block-migal-2025-webform,
section#block-migal-2025-webform-2 {
  max-width: 1256px;
  margin: auto;
}

body.page-node-6866 {
  article.page.full div.content {
    padding: 0;
  }
}

body.page-node-6923 {
  article.page.full {
    max-width: 1100px;
    margin: auto;
    line-height: 175%;

    a {
      color: black;
      text-decoration: underline;
    }
    div.two-column50-50 {
      padding-top: 38px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      flex-wrap: wrap;
      max-width: 1100px;
      margin: auto;
      row-gap: 38px;
      p {
        width: 310px;
        /* border:1px solid red; */
      }
    }
  }
}

.loggedin {
  display: none;
}
.user-logged-in a.loggedin {
  display: block;
  float: right;
  background: #6cd8d2;
  padding: 10px 20px;
  margin: 20px;
  color: black;
  font-weight: 800;
}

section#block-migal-2025-northernecosystemlargetext {
  max-width: 1256px;
  margin: auto;
  font-weight: 700;
  font-size: 20px;
  margin-top: -75px;
  margin-bottom: 25px;
}

section#block-migal-2025-views-block-about-block-3 {
  div.views-field-field-image {
    border-radius: 15px;
    overflow: hidden;
  }

  div.views-field-title {
    margin: 10px 0;
    font-weight: 700;
    a {
      color: black;
      text-decoration: none;
    }
    a:hover {
      text-decoration: underline;
    }
  }

  div.views-field-body {
    line-height: 175%;
  }
}

/* contact us */
body.page-node-5036 {
  div.region-content {
    max-width: 950px;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    column-gap: 83px;
    flex-wrap: wrap;

    article.page.full {
      width: 100%;

      div.content {
        padding: 0;
      }
    }

    h2 {
      text-align: left;
      margin-bottom: 12px;
      font-size: 17.5px;
      font-weight: 700;
      line-height: 200%;
    }

    section#block-migal-2025-migalmaincontact {
      width: 382px;

      a {
        color: black;
        text-decoration: underline;

        &:hover {
          text-decoration: none;
          color: #249424;
        }
      }
    }
    section#block-migal-2025-contactformslist {
      h2 {
        display: none;
      }
      width: 382px;

      .field--name-body {
        margin-top: 24px;
        ul {
          list-style: none;
          padding: 0;
        }
        a {
          color: black;
          text-decoration: underline;

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

    section#block-migal-2025-socialmenu-3 {
      width: 100%;
      h2 {
        display: none;
      }
      margin-top: 24px;
      margin-bottom: 48px;
      div#social_networks_email {
        display: flex;
        flex-direction: row;
        column-gap: 12px;
        align-items: center;

        /* path.st0 {
      fill: white;
      transition: all 0.5s;
    } */
        a {
          svg {
            max-height: 18px;
          }
        }
        a:hover {
          path.st0 {
            fill: #249424;
          }
        }
      }
    }

    section#block-migal-2025-northcampus,
    section#block-migal-2025-southcampus,
    section#block-migal-2025-agamonhularesearchcenter,
    section#block-migal-2025-northernrdexperimentalfarm
    {
      max-width: 382px;
      min-height:600px;
      margin-bottom:48px;

      p:first-child {
        height: 60px;
      }
      iframe {
        max-width: 100%;
      }
    }
  }
}

section#block-migal-2025-educationlargetext {
  a {
    color: #000;
    text-decoration: underline;
  }

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

article.page.card {

  color: black;

  .field--name-field-image {
    height: 216px;
    overflow: hidden;
    max-width: 403px;
    border-radius: 15px;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: 0.5s ease;
    }

    img:hover {
      opacity: 0.5;
    }
  }

  .card-content {
    margin: 16px 14px;
    font-size: 17.5px;
    line-height: 175%;
    overflow: hidden;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
  }

  .card-title {
    font-size: 20px;
    font-weight: 700;
    padding: 0;
    margin: 0;
    line-height: 130%;
    padding-bottom: 20px;
  }

  a {
    color: black;
    transition: 0.5s ease;
  }

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

  .card-link {
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: black;
  }

  .card-link:hover {
    color: #249424;
  }
}
