@import url('/css/variables.css');
@import url('/css/overlay-hamburger.css');

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.carousel-section {
  background: #02233d;
  padding: 1rem 2.5rem;
  position: relative;
  border-radius: 0.5rem;
}

.carousel-main {
  display: block !important;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-main::-webkit-scrollbar{display:none;}

.slide {
  flex: 0 0 auto;
  width: 270px;
  scroll-snap-align: start;
}

.slide-link {
  display: block;
  position: relative;
  overflow: hidden;
  border: 2px solid #d2dbee;
  border-radius: 12px;
  transition: transform .25s;
}

.slide-link:hover {
  transform: translateY(-4px);
}

.carousel-main ul {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.slide-link img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.slide-link .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: .6rem .8rem;
  background: rgba(2,35,61,.75);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.25;
}

.carousel-button {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}

.carousel-button:hover { background: rgba(255,255,255,.4); }

.carousel-button.prev { left: .5rem; }
.carousel-button.next { right: .5rem; }

.view-all-link {
  background-color: var(--secoundary-blue-color);
  border: 1px bold black;
  border-radius: 20px;
  padding: 4px;
  position: absolute;
  right: .8rem;
  bottom: .4rem;
  font-size: .8rem;
  color: #c9d7f1;
  text-decoration: none;
}

.view-all-link:hover { text-decoration: underline; }