.marquee {
  overflow-x: clip;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 2vw;
  padding: 0vh 0 12vh;
  will-change: transform;
}

.marquee-inner img {
  height: 100%;
  transition: transform 0.5s;
  flex-shrink: 0;
  width: 20vw;
  border-radius: 2rem;
}

.marquee-inner img:hover {
  transform: scale(1.03);
}

/* Tablet styles (768px and below) */
@media screen and (max-width: 768px) {
  body {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .marquee-container {
    padding: 0 1rem 2rem;
  }

  .marquee {
    overflow: visible;
    white-space: normal;
  }

  .marquee-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0;
    will-change: auto;
    transform: none !important;
  }

  .marquee-inner img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
  }
}

/* Mobile styles (480px and below) */
@media screen and (max-width: 480px) {
  body {
    padding: 1rem 0.5rem;
  }

  .marquee-inner {
    gap: 0.5rem;
  }

  .marquee-inner img {
    border-radius: 0.5rem;
  }
}

/* Header section styles */
.header-section {
  padding: 4rem 2rem 0rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.area__title {
  margin-bottom: 0rem;
}

.area__title h2 {
  margin-bottom: 1.25rem;
  color: #1c191a;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 114.286%;
  letter-spacing: 0;
}

.area__title h2 span,
.area__title h2 strong {
  color: #0351a3;
  font-weight: 700;
}

@media (min-width: 93.75rem) and (max-width: 99.9375rem) {
  .area__title h2 {
    font-size: 3.125rem;
  }
}

@media (min-width: 87.5rem) and (max-width: 93.6875rem) {
  .area__title h2 {
    font-size: 3.125rem;
  }
}

@media (min-width: 81.25rem) and (max-width: 87.4375rem) {
  .area__title h2 {
    font-size: 2.8125rem;
  }
}

@media (min-width: 75rem) and (max-width: 81.1875rem) {
  .area__title h2 {
    font-size: 2.5rem;
  }
}

@media (min-width: 62rem) and (max-width: 74.9375rem) {
  .area__title h2 {
    font-size: 2.5rem;
  }
}

@media (min-width: 48rem) and (max-width: 61.9375rem) {
  .area__title h2 {
    font-size: 2.8125rem;
  }
}

@media only screen and (max-width: 47.9375rem) {
  .area__title h2 {
    font-size: 2rem;
  }
}

.area__title p {
  font-size: 1.375rem;
  line-height: 133.333%;
  color: #231f20;
}

@media (min-width: 81.25rem) and (max-width: 87.4375rem) {
  .area__title p {
    font-size: 1.125rem;
  }
}

@media (min-width: 75rem) and (max-width: 81.1875rem) {
  .area__title p {
    font-size: 1.125rem;
  }
}

@media (min-width: 62rem) and (max-width: 74.9375rem) {
  .area__title p {
    font-size: 1.125rem;
  }
}

@media (min-width: 48rem) and (max-width: 61.9375rem) {
  .area__title p {
    font-size: 1.125rem;
    line-height: 1.5625rem;
  }
}

@media only screen and (max-width: 47.9375rem) {
  .area__title p {
    font-size: 1.125rem;
    line-height: 1.625rem;
  }

  .area__title p br {
    display: none;
  }
}

.area__title p b {
  color: #0351a3;
}

.area__title .story__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.area__title .story__title img {
  width: 2.5rem;
}

@media (min-width: 87.5rem) and (max-width: 93.6875rem) {
  .area__title .story__title img {
    width: 2rem;
  }
}

@media (min-width: 62rem) and (max-width: 74.9375rem) {
  .area__title .story__title img {
    width: 2rem;
  }
}

/* Adjust body layout for header */
@media screen and (min-width: 769px) {
  body {
    flex-direction: column;
    align-items: stretch;
  }

  .marquee-container {
    display: flex;
    align-items: center;
    min-height: 54vh;
  }
}

/* Mobile header adjustments */
@media screen and (max-width: 768px) {
  .header-section {
    padding: 2rem 1rem 1rem;
    order: -1;
  }
}
