@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&family=Roboto:wght@300;400;500;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

/* Base styles (Mobile First) */
main {
  position: relative;
  width: calc(min(90rem, 90%));
  margin: 0 auto;
  min-height: 100vh;
  column-gap: 1.5rem;
  padding: 2rem 1rem;
}

.bg {
  position: fixed;
  top: -4rem;
  left: -12rem;
  z-index: -1;
  opacity: 0;
}

.bg2 {
  position: fixed;
  bottom: -2rem;
  right: -3rem;
  z-index: -1;
  width: 9.375rem;
  opacity: 0;
}

main > div span {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1rem;
  color: #717171;
}

main > div h1 {
  text-transform: capitalize;
  letter-spacing: 0.8px;
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: clamp(3.4375rem, 3.25rem + 0.75vw, 4rem);
  background-color: #005baa;
  background-image: linear-gradient(45deg, #005baa, #000000);
  background-size: 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
}

main > div hr {
  display: block;
  background: #005baa;
  height: 0.25rem;
  width: 6.25rem;
  border: none;
  margin: 1.125rem 0 1.875rem 0;
}

main > div p {
  line-height: 1.6;
}

main a {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  color: #717171;
  font-weight: 500;
  background: #fff;
  border-radius: 3.125rem;
  transition: 0.3s ease-in-out;
}

main > div > a {
  border: 2px solid #c2c2c2;
  margin-top: 2.188rem;
  padding: 0.625rem 1.875rem;
}

main > div > a:hover {
  border: 0.125rem solid #005baa;
  color: #005baa;
}

.swiper {
  height: 75%;
  padding-top: 3.125rem;
}

.swiper-pagination-bullet,
.swiper-pagination-bullet-active {
  background: #fff;
}

.swiper-pagination {
  bottom: 1.25rem !important;
}

.swiper-slide {
  /* Base: on mobile, use a percentage width for better touch handling */
  width: 80%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;
  border-radius: 10px;
  margin: 0 auto;
}

.swiper-slide h2 {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 0.625rem;
  padding-left: 1rem;
  text-transform: uppercase;
}

.swiper-slide p {
  color: #dadada;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  padding: 0 1rem;
  line-height: 1.6;
  font-size: 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.swiper-slide a {
  margin: 1rem 1rem 2rem 1rem;
  padding: 0.4em 1.5rem;
  font-size: 0.85rem;
}

.swiper-slide a:hover {
  color: #005baa;
}

.swiper-slide div {
  display: none;
  opacity: 0;
  padding-bottom: 0.625rem;
}

.swiper-slide-active div {
  display: block;
  opacity: 1;
}

.swiper-slide--one {
  border-radius: 10px;
  background: linear-gradient(
      to top,
      #0f2027,
      #203a4300,
      #2c536400
    ),
    url("https://images.unsplash.com/photo-1628944682084-831f35256163?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80")
      no-repeat center/cover;
}

.swiper-slide--two {
  border-radius: 10px;
  background: linear-gradient(
      to top,
      #0f2027,
      #203a4300,
      #2c536400
    ),
    url("https://images.unsplash.com/photo-1515309025403-4b0184873cef?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=735&q=80")
      no-repeat center/cover;
}

.swiper-slide--three {
  border-radius: 10px;
  background: linear-gradient(
      to top,
      #0f2027,
      #203a4300,
      #2c536400
    ),
    url("https://images.unsplash.com/photo-1545671913-b89ac1b4ac10?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80")
      no-repeat center/cover;
}

.swiper-slide--four {
  border-radius: 10px;
  background: linear-gradient(
      to top,
      #0f2027,
      #203a4300,
      #2c536400
    ),
    url("https://images.unsplash.com/photo-1598977123118-4e30ba3c4f5b?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80")
      no-repeat center/cover;
}

.swiper-slide--five {
  border-radius: 10px;
  background: linear-gradient(
      to top,
      #0f2027,
      #203a4300,
      #2c536400
    ),
    url("https://images.unsplash.com/photo-1570481662006-a3a1374699e8?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=765&q=80")
      no-repeat center/cover;
}

.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right {
  background-image: none;
}

/* -------------------------------
   Media Queries for Responsiveness
-----------------------------------*/

/* Medium devices and up (min-width: 48rem / 768px) */
@media screen and (min-width: 48rem) {
  main {
    display: flex;
    align-items: center;
    padding: min(20vh, 3rem);
    column-gap: 3rem;
  }
  
  /* Reveal subtle background elements on larger screens */
  .bg,
  .bg2 {
    opacity: 0.1;
  }
  
  /* Adjust swiper-slide sizing */
  .swiper-slide {
    width: 10rem;
    height: 28.125rem;
  }
  
  .swiper-slide h2 {
    font-size: 1.4rem;
    padding-left: 1.563rem;
  }
  
  .swiper-slide p {
    font-size: 0.75rem;
    padding: 0 1.563rem;
  }
  
  .swiper-slide a {
    margin: 1.25rem 1.563rem 3.438rem 1.563rem;
    padding: 0.438em 1.875rem;
    font-size: 0.9rem;
  }
}

/* Extra large devices (min-width: 93.75rem / ~1500px) */
@media screen and (min-width: 93.75rem) {
  .swiper {
    width: 85%;
  }
  
  main > div h1 {
    /* Increase the heading size slightly on very large screens */
    font-size: clamp(3.5rem, 3.5rem + 0.5vw, 4.5rem);
  }
}
