@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/assets/fonts/montserrat-latin.woff2") format("woff2");
}
:root {
  --primary: #0079c3;
  --navy: #001b46;
  --navy-glass: rgba(0, 27, 70, 0.3);
  --navy-solid: rgba(0, 27, 70, 0.86);
  --link: #7fcdee;
  --link-hover1: #54bce8;
  --link-hover: #ff6a00;
  --dot-idle: rgba(157, 195, 255, 0.4);
  --white: #fff;
  --ease: ease-in-out;
  /* Space reserved for the fixed top nav: 85px on desktop, scaled down on tablet/mobile */
  --nav-height: clamp(56px, 8.3vw, 85px);
}

*,
*::before,
*::after {box-sizing: border-box;}

html,
body {margin:0;padding:0;}

body {
  overflow-x: hidden;
  background: var(--navy);
  /*color: var(--white);*/
  font-family: "Montserrat", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
a {-webkit-tap-highlight-color:transparent;}

button:focus-visible,
a:focus-visible {outline: 2px solid var(--primary);outline-offset: 3px;}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ---------- Section ---------- */
.eyd-home-hero-carousel {
  margin-top: var(--nav-height);
  /*height: 1024px;*/height: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
  /*background: var(--primary);*/
  background: var(--navy);
}

.carousel-track {
  display: grid;
  height: auto;
  position: relative;
  width: 100%;
}

.eyd-home-hero-carousel__container {
  grid-area: 1 / 1;
  height: auto;
  inset: auto;
  opacity: 0;
  pointer-events: none;
  position: relative;
  transition: opacity 600ms var(--ease), visibility 0s linear 600ms;
  visibility: hidden;
  width: 100%;
}

.eyd-home-hero-carousel__container.is-active {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 600ms var(--ease), visibility 0s linear 0s;
  visibility: visible;
  z-index: 1;
}

/* ---------- Image ---------- */
.eyd-home-hero-carousel__img {
  height: 360px;
  overflow: hidden;
  position: relative;
  width: 100%;
  background: var(--primary);
}

.eyd-home-hero-carousel__img picture {
  display: block;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 0;
}

.eyd-home-hero-carousel__img img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.eyd-home-hero-carousel__img .gradient-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent 8%);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

/* ---------- Text card ---------- */
.eyd-home-hero-carousel__footer {
  align-content: start;
  background-color: var(--navy);
  display: grid;
  grid-template-areas:
    "title title"
    "link link"
    "controls controls";
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  height: auto;
  padding: 25px 25px 25px;
  position: relative;
  row-gap: 28px;
  width: 100%;
}

.eyd-home-hero-carousel__footer h4 {
  align-self: start;
  color: var(--white);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1.375em;
  font-weight: 600;
  grid-area: title;
  line-height: 1.5;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eyd-home-hero-carousel__footer-link {
  align-self: end;
  display: flex;
  grid-area: link;
  padding: 0 0 10px;
}

.eyd-home-hero-carousel__footer-link a {
  align-items: center;
  color: var(--link);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 500;
  margin: 0 5px 0 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.eyd-home-hero-carousel__footer-link a:hover {
  color: var(--link-hover);
}

.eyd-home-hero-carousel__footer-link .icon-container {
  display: inline-block;
  height: 20px;
  margin-left: 12px;
  position: relative;
  width: 20px;
}

.eyd-home-hero-carousel__footer-link .icon {
  height: 20px;
  inset: 0;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 20px;
}

.eyd-home-hero-carousel__footer-link .icon-arrow-right {
  opacity: 1;
  transform: translateX(-5px);
}

.eyd-home-hero-carousel__footer-link .icon-long-arrow-right {
  opacity: 0;
  transform: translateX(0);
}

.eyd-home-hero-carousel__footer-link a:hover .icon-arrow-right {
  opacity: 0;
  transform: translateX(0);
}

.eyd-home-hero-carousel__footer-link a:hover .icon-long-arrow-right {
  opacity: 1;
  transform: translateX(5px);
}

/* ---------- Controls row: arrows + dots on one line, right below Read more ---------- */
.carousel-controls {
  align-items: center;
  display: flex;
  gap: 16px;
  grid-area: controls;
  justify-content: space-between;
  pointer-events: none;
  width: 100%;
  z-index: 5;
}

.carousel-controls .slick-arrow {
  align-items: center;
  background: var(--navy-glass);
  border: 0;
  border-radius: 4px;
  color: var(--link);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  height: 32px;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 52px;
}

.carousel-controls .slick-arrow:hover {
  /*background: var(--primary);*/
  background: var(--link-hover);
  color: var(--white);
}

.carousel-controls .slick-arrow svg {
  height: 22px;
  width: 22px;
}

/* ---------- Dots (centred inside the controls row) ---------- */
.carousel-dots {
  flex: 1 1 auto;
  min-width: 0;
  pointer-events: none;
}

.eyd-home-hero-carousel .slick-dots {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.eyd-home-hero-carousel .slick-dots li {
  line-height: 0;
  margin-right: 10px;
}

.eyd-home-hero-carousel .slick-dots li:last-child {
  margin-right: 0;
}

.eyd-home-hero-carousel .slick-dots li button {
  background: var(--dot-idle);
  border: 0;
  border-radius: 4px;
  color: transparent;
  cursor: pointer;
  display: block;
  font-size: 0;
  height: 6px;
  outline: none;
  padding: 0;
  pointer-events: auto;
  transition: background-color 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
  width: 26px;
}

.eyd-home-hero-carousel .slick-dots li.slick-active button {
  background: var(--white);
  border-radius: 4px;
  height: 8px;
  width: 66px;
}

.eyd-home-hero-carousel .slick-dots li button:hover {
  background: var(--primary);
}

.eyd-home-hero-carousel .slick-dots li.slick-active button:hover {
  background: var(--white);
}

/* ---------- Tablet: 768px - 1023px ---------- */
@media only screen and (min-width: 768px) {
  .eyd-home-hero-carousel__img {
    height: 360px;
  }

  .eyd-home-hero-carousel__footer {
    height: auto;
    padding: 35px 28px 35px; /*Tablet top-bottom*/
  }

  .eyd-home-hero-carousel__footer h4 {
    font-size: 1.475em;line-height:1.5;
  }
}

/* ---------- Desktop: >= 1024px ---------- */
@media only screen and (min-width: 1024px) {
  .eyd-home-hero-carousel {
    height: 1024px;
  }

  .carousel-track {
    display: block;
    height: 100%;
  }

  .eyd-home-hero-carousel__container {
    grid-area: auto;
    height: 100%;
    inset: 0;
    position: absolute;
  }

  .eyd-home-hero-carousel__img {
    height: 100%;
    max-height: none;
  }

  .eyd-home-hero-carousel__img img {
    object-position: center center;
  }

  .eyd-home-hero-carousel__img .gradient-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent 8%);
  }

  .eyd-home-hero-carousel__footer {
    align-content: space-between;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    background-color: var(--navy-glass);
    border-radius: 8px;
    bottom: 40px;
    grid-template-rows: 1fr auto auto;
    height: 240px;
    left: 50%;
    margin: 0;
    max-width: 1232px;
    padding: 24px;
    position: absolute;
    row-gap: 0;
    transform: translateX(-50%);
    width: 90%;
    z-index: 3;
  }
  .eyd-home-hero-carousel__footer h4 {
    font-size: 1.8em; /*pc fonts*/
    -webkit-line-clamp: 2;
    line-height: 1.5;
    margin-bottom: 12px;
    padding: 0;
  }
  .eyd-home-hero-carousel__footer-link {
    padding: 0 0 20px; 
  }
}
 /* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .eyd-home-hero-carousel__container,
  .eyd-home-hero-carousel__footer-link a,
  .eyd-home-hero-carousel__footer-link .icon,
  .carousel-controls .slick-arrow,
  .eyd-home-hero-carousel .slick-dots li button {
    transition-duration: 0.01ms !important;
  }
}