main[role="main"] {
  overflow-x: clip;
}

.cover {
  position: relative;
  min-height: 670px;
}

@media (min-width: 992px) {
  .cover {
    height: 85vh;
  }
}

@media (max-width: 991px) {
  .cover {
    min-height: 400px;
    padding: 15px;
    padding-top: 125px;
    /* header height + padding */
  }
}

.articles-slick {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

.articles-slick div {
  height: 100%;
}

.articles-slick .slick-slide > div > div {
  background-size: cover;
  background-position: center;
}

.articles-slick .inner {
  display: flex;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(24, 52, 116, 0.82) 90%);
  padding-right: 5rem;
  padding-bottom: 10rem;
}

.articles-slick .wrap {
  position: relative;
  height: fit-content;
  width: 75%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-right: 2rem;
  margin-top: auto;
  border-right: 10px solid var(--prime2);

  & a {
    color: #fff;

    &:hover {
      text-decoration: none;

      & i {
        margin-right: 1rem;
      }
    }
  }
}

.articles-slick h2 {
  width: 87%;
  font-weight: 700;
  line-height: 0.9;
  font-size: calc(3.25vw + 16px);
}

@media (max-width: 1550px) {
  .articles-slick h2 {
    width: 98%;
  }
}

.articles-slick h2 + span {
  margin-top: 0.5rem;
  font-size: calc(1vw + 16px);
  line-height: 1;
}

.articles-slick em {
  display: block;
  font-style: normal;
  color: var(--prime2);
  font-size: calc(0.5vw + 16px);

  & i {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
  }
}

.cover .toggle-slick {
  position: absolute;
  top: 125px;
  right: 3vw;
  background: none;
  z-index: 2;
  border-radius: 2px;
  border: 1px solid #fff;
  background-color: rgb(from #fff r g b / 0.7);
}

@media (max-width: 991px) {
  .articles-slick .inner {
    height: 100%;
    align-items: center;
    padding-right: 1rem;
    padding-bottom: unset;
  }

  .articles-slick .wrap {
    width: 90%;
    margin-top: unset;
    padding-right: 1rem;
    border-right: 7px solid var(--prime2);
  }

  .cover .toggle-slick {
    display: none;
  }
}

.slick-dots {
  list-style-type: none;
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.15rem;
  margin: auto;
  bottom: 100px;
  padding-right: 6.5%;
}

.slick-dots li {
  margin-inline: 1px;
  list-style-type: none;
}

.slick-dots li.slick-active button {
  background-color: var(--prime2);
}

.slick-dots li button {
  position: relative;
  line-height: 0;
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 0.15rem;
  cursor: pointer;
  color: transparent;
  border: 2px solid #fff;
  outline: none;
  background: rgb(from #ffffff r g b / 0.275);
  font-size: 0;
  border-radius: 50%;
}

@media (max-width: 991px) {
  .slick-dots {
    bottom: 55px;
  }
}

/**/

video {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  transition: 1s opacity;
  object-fit: cover;
  z-index: -1;
}

#toggle-video {
  position: absolute;
  top: 125px;
  right: 15px;
  background: none;
  border: 0;
}

@media (max-width: 991px) {

  video,
  #toggle-video {
    display: none;
  }
}

/* CSS GRID ONLY */
@media (min-width: 992px) {
  .gridded {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    row-gap: 25px;
    column-gap: 25px;
    width: 100%;
    height: 768px;
  }

  .gridded .div1 {
    grid-column: span 2 / span 2;
  }

  .gridded .div2 {
    grid-column: span 2 / span 2;
    grid-column-start: 3;
  }

  .gridded .div3 {
    grid-column-start: 1;
    grid-row-start: 2;
  }

  .gridded .div4 {
    grid-column: span 2 / span 2;
    grid-row-start: 2;
  }

  .gridded .div5 {
    grid-column-start: 4;
    grid-row-start: 2;
  }
}

/* CSS STYLE */
.gridded {
  & a {
    display: flex;
    color: #fff;
    font-weight: 500;
    font-size: calc(1.5vw + 16px);
    position: relative;
    background-size: cover;
    background-position: center;
    isolation: isolate;
    line-height: 1;
    text-shadow: 2px 2px 9px rgba(0, 0, 0, 0.5);

    &:nth-of-type(odd) {
      padding: 2rem 2rem 4rem;
    }

    &:nth-of-type(even) {
      padding: 4rem 5rem;
    }

    &::after {
      content: "";
      position: absolute;
      background: rgb(from var(--prime3) r g b / 0.1);
      width: 100%;
      height: 100%;
      z-index: -1;
      mix-blend-mode: multiply;
      inset: 0;
    }
  }

  @media (min-width: 992px) {
    & a.item1 {
      align-items: center;

      & figcaption {
        padding-top: 5rem;
      }
    }

    & a.item2 {
      align-items: center;
    }

    & a.item3 {
      align-items: flex-end;
    }

    & a.item4 {
      align-items: flex-start;
      padding-top: 7rem;
      background-position: bottom;
    }

    & a.item5 {
      background: linear-gradient(0deg,
          rgba(251, 200, 10, 0.1) 1%,
          rgba(251, 200, 10, 1) 100%);
      z-index: 1;

      & img {
        right: -50px;
        position: absolute;
        width: 90%;
        height: auto;
        max-height: 90%;
        object-fit: cover;
        bottom: 0;
      }
    }
  }
}

@media (max-width: 991px) {
  .gridded {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .gridded {
    & a {
      font-size: calc(3vw + 16px);

      &:nth-of-type(odd),
      &:nth-of-type(even) {
        padding: 4rem 2.5rem;
        align-items: center;
        aspect-ratio: 3 / 1.5;
      }

      &::after {
        background: rgb(from var(--prime1) r g b / 0.4);
      }

      & img {
        position: absolute;
        height: 100%;
        left: 1rem;
      }
    }
  }
}

.yay {
  margin-block: 8rem;
  color: var(--prime1);

  & .wrap {
    display: flex;
  }

  & .wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;

    &::after {
      content: "";
      position: absolute;
      bottom: 109px;
      width: 53%;
      right: 47%;
      height: 1px;
      background-color: var(--prime2);
      z-index: 0;
    }
  }

  & .data {
    position: relative;

    & strong,
    & h3 {
      margin: 0;
      font-weight: 700;
      font-size: calc(2.25vw + 16px);
      line-height: 1;
    }

    p {
      padding: 0;
      margin: 0;
      font-weight: 500;
      font-size: calc(1.25vw + 16px);
    }

    p + p {
      margin-top: 2.5rem;
      line-height: 1;
      font-size: calc(0.65vw + 16px);
    }

    a {
      margin-top: 2.7rem;
      background-color: #66c430;
      border-radius: 100vw;
      color: #fff;
      font-size: calc(0.75vw + 16px);
      padding: 0.2rem 1.75rem;
      position: relative;
      z-index: 1;
      width: max-content;

      &:hover {
        background-color: var(--prime1);
      }
    }
  }

  & .framed {
    position: relative;
    width: 100%;
    max-width: 680px;
    padding: 40px;
    z-index: -1;
    aspect-ratio: 1;

    &::before {
      content: "";
      position: absolute;
      background: url(./images/bday_frame.png?v=1) center/100% 100% no-repeat;
      width: 100%;
      height: 100%;
      inset: 0;
      margin: auto;
    }
  }

  & .emp {
    width: 100%;
    margin-inline: auto;
    aspect-ratio: 1;
    display: block;
    object-fit: cover;
    padding: 1rem;
  }

  & .balloons {
    display: flex;
    height: 120%;
    align-items: center;

    & img {
      width: min(90%, 320px);
    }
  }

  & .bottom {
    padding-right: 7rem;
  }
}

.upcoming-birthdays {
  li {
    font-size: 1.4rem;
    font-weight: 500;
    position: relative;

    &::after {
      content: " | ";
      position: relative;
      position: relative;
      display: inline-block;
      margin-inline: 1rem;
      left: 0;
      top: auto;
      width: 1px;
      height: 100%;
    }
  }
}

@media (max-width: 1500px) {
  .yay {
    & .wrap {
      &::after {
        bottom: 50px;
      }
    }
  }
}

@media (max-width: 991px) {
  .yay {
    margin-top: 3rem;
    margin-bottom: 8rem;

    & .wrap {
      flex-direction: column;
    }

    & .framed {
      margin: auto;
    }

    & .wrap {
      &::after {
        content: none;
      }
    }

    & .data {
      text-align: center;
    }

    & .data {

      & strong,
      & h3 {
        display: inline;
      }

      & p + p {
        margin-top: 1rem;
      }
    }

    & .balloons {
      justify-content: flex-end;

      & img {
        position: absolute;
        width: 120px;
      }
    }

    & .bottom {
      padding-right: unset;
      margin-top: 3.5rem;
    }

    & .breaking-news-ticker h2 {
      text-align: center;
      margin-bottom: 1rem;
    }
  }
}

@media (max-width: 767px) {
  .yay {
    & .wrap {
      flex-direction: column;
    }
  }
}

@media (max-width: 500px) {
  .yay {
    & .balloons {
      & img {
        width: 82px;
      }
    }
  }
}

/* Articles */

.eom {
  position: relative;
  color: #fff;
  left: -20px;
  width: 100%;

  display: flex;
  margin-block: 8rem;

  & h2 {
    margin-bottom: 3rem;
    font-size: calc(2vw + 16px);
  }

  & h3 {
    line-height: 1;
    margin: 0;
    font-size: calc(1.6vw + 16px);

    & + span {
      line-height: 1;
      font-size: calc(0.7vw + 16px);
    }
  }

  & p {
    margin-top: 2rem;
    font-size: calc(0.7vw + 16px);
    line-height: 1.1;
  }

  & > div {
    padding: 5rem 10rem;
    background-color: var(--prime1);
    border-radius: 0 50px 50px 0;
  }

  & img {
    width: min(100%, 360px);
    margin: auto;
    border-radius: 40px;
  }

  & > div:last-child > .row > div:last-child {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 1600px) {
  .eom {
    & > div {
      padding: 4.5rem;
    }
  }
}

@media (max-width: 991px) {
  .eom {
    left: 0;

    & > div {
      padding: 2.5rem;
    }

    & .row {
      flex-direction: column;
    }

    & .offset-2 {
      margin-right: 8.666667%;
    }
  }
}

.lined h2 {
  position: relative;
  padding-block: 1rem;

  & a {
    color: #fff;
  }
}

.lined h2::after {
  content: "";
  display: block;
  /* allow width/height */
  position: absolute;
  width: 150px;
  height: 5px;
  right: 0;
  bottom: -1rem;
  background: linear-gradient(to left,
      var(--prime2) 0%,
      var(--prime1) 23%,
      var(--prime3) 25%,
      var(--prime4) 48%,
      var(--prime4) 50%,
      var(--prime5) 73%,
      var(--prime6) 75%,
      var(--prime6) 100%);
}

.gall {
  width: 100vw;
  margin-block: 10rem;

  & h2 {
    text-align: center;
    font-size: calc(2vw + 16px);

    & a {
      color: var(--prime1);
    }

    &::after {
      inset: 0;
      top: auto;
      bottom: -1rem;
      margin-inline: auto;
      width: 120px;
    }
  }
}

.gall-slick {
  margin-top: 5rem;
  height: 400px;
  width: 100%;
}

.gall-slick div {
  height: inherit;
}

.gall-slick p {
  position: relative;
  background-size: cover;
  background-position: top;
  width: 100%;
  height: 100%;

  & span {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5rem 1rem;
    color: #fff;
    width: 100%;
    text-align: center;
    font-size: calc(0.25vw + 16px);
    background-color: var(--prime3);
  }
}

.gall-slick .slick-slide img {
  max-height: 250px;
}

.gall-slick .slick-slide {
  margin-right: 20px;
}

.gall-slick .slick-slide {
  transition: transform 0.5s ease;
  padding: 10px;
}

.gall-slick p {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin: 0;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: block;
}

.gall-slick p:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gall-slick p span {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  font-weight: 600;
  padding: 1rem;
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  display: block;
}

.gall-slick a {
  text-decoration: none;
  display: block;
}

.gall-slick button {
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100vw;
  background-color: #fff;
  filter: drop-shadow(2px 4px 6px rgb(from #000 r g b / 0.25));

  &::before {
    color: var(--prime1);
  }

  &:hover,
  &:active,
  &:focus {
    background-color: var(--prime1);

    &::before {
      color: #fff;
    }
  }
}

.gall-slick .slick-next {
  left: 1rem;

  &::before {
    content: '\f060';
  }

}

.gall-slick .slick-prev {
  z-index: 9;
  right: 1rem;

  &::before {
    content: '\f061';
  }
}

@media (max-width: 1200px) {
  .gall-slick {
    height: 250px;
  }
}

@media (max-width: 991px) {
  .lined h2 {
    font-size: calc(3vw + 16px);
  }

  .gall-slick {
    height: 425px;
  }

  .gall {
    margin-block: 8rem;

    & h2 {
      font-size: calc(3vw + 16px);
    }
  }
}


/* News * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

.news.updates {
  /* top: -59px; */
  position: relative;
  margin-right: 0 !important;
  width: 100%;
  background: var(--prime1);
  height: 60px !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 999;
}

.news .container,
.news .container-fluid {
  max-width: 100% !important;
  width: 100%;
  padding-right: 0;
  padding-left: 0;
  margin: 0;
  height: 100%;
}

.breaking-news-ticker {
  width: 100% !important;
  height: 60px !important;
  line-height: 60px !important;
  padding-block: 0;
  display: flex;
  align-items: center;
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
}

.bn-news {
  left: 0 !important;
  height: 100%;
}

.bn-news ul li {
  height: 60px !important;
  line-height: 60px !important;
}

.bn-news ul li a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 60px !important;
  line-height: 60px !important;
  width: auto !important;
  min-width: 300px;
  padding-block: 0 !important;
  color: #fff !important;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  background-color: transparent !important;
  transition: background 0.3s;
}

.bn-news ul li a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

time.date {
  font-weight: bold;
  color: #fff;
  margin-right: 1rem;
  margin-left: 1rem;
  font-size: 1.1rem;
}

.updates span.name {
  color: #fff;
  font-size: 1.1rem;
  padding-inline: 0.5rem;
}

.all {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--prime2);
  display: flex;
  align-items: center;
  padding-inline: 1.5rem;
  z-index: 10;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.all a {
  color: #fff !important;
  white-space: nowrap;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bn-controls {
  right: 0;
  left: auto;
  height: 100%;
  display: flex;
  align-items: center;
  background: transparent !important;
  border: none !important;
  z-index: 5;
}

.bn-controls button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.bn-controls button:hover {
  background-color: var(--prime2);
}

/* התאמה לנייד */
@media (max-width: 991px) {
  .news.updates {
    height: 50px !important;
  }

  .breaking-news-ticker,
  .bn-news ul li a,
  .all {
    height: 50px !important;
    line-height: 50px !important;
  }
}

/**/
.container-fluid {
  position: relative;
}

.personnel {
  position: relative;
}

.personnel .row {
  display: flex;
}

.frame {
  position: absolute;
  right: 0;
  top: -110px;
  width: 30vw;
  background-color: var(--prime1);
  height: 800px;
  z-index: -1;
}

.frame.left {
  right: auto;
  left: -25px;
  top: auto;
  bottom: -110px;
}

.txt {
  display: flex;
  align-items: center;
}


.left + .personnel .txt {
  padding-left: 4rem;
}

.personnel .txt .wrapper span {
  line-height: 1;
  /* color: var(--prime2); */
  font-size: calc(0.5vw + 16px);
  color: var(--prime1);
}

.txt h2 {
  position: relative;
  font-size: calc(1.25vw + 16px);
  font-weight: 900;
  color: var(--prime1);
  line-height: 1;
}

.txt h2::after {
  content: "";
  position: relative;
  display: block;
  width: 135px;
  height: 4px;
  right: 0;
  bottom: -1rem;
  background-color: var(--prime4);
}

.txt .text {
  font-weight: 500;
  font-size: 1.1rem;
  margin-top: 2.4rem;
  color: var(--prime1);
}

.txt .text p {
  text-align: justify;
}

.txt .text a {
  color: var(--prime4);
  padding: 8px 1rem;
  width: fit-content;
  text-align: center;
  border: 1px solid var(--prime4);
  font-size: calc(0.7vw + 16px);
  margin-top: 3rem;
  display: block;
}

.personnel img {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  object-fit: contain;
}

.personnel .img {
  position: relative;
  display: flex;
  filter: drop-shadow(4px 1px 10px rgba(0, 0, 0, 0.7));
}

.personnel .img .right {
  margin-right: 0;
  margin-left: auto;
}

.personnel .img .left {
  margin-right: auto;
  margin-left: 0;
}

.container:has(.right) {
  margin-block: 11rem;
}

.personnel + .personnel {
  margin-block: 5rem;
}

@media (max-width: 991px) {

  .right + .txt,
  .left + .personnel .txt {
    padding-right: 15px;
    padding-left: 15px;
  }

  .txt h2 {
    font-size: calc(2.25vw + 16px);
  }

  .txt h2::after {
    width: 90px;
  }

  .container:has(.right) {
    margin-block: 5rem;
  }

  .frame {
    width: 100%;
    top: 0;
    height: 50vw;
  }

  .personnel .img {
    padding-top: 5rem;
  }

  div.txt {
    margin-top: 5rem;
  }

  .frame.left + .personnel {
    flex-direction: column-reverse;
  }

  .personnel .img .right,
  .personnel .img .left {
    margin: auto;
    max-width: 450px;
  }
}

@media (max-width: 500px) {
  .frame {
    height: 73vw;
  }
}