@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

.custom-slide-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 300px);
  overflow: hidden;
  background-color: #f7f1e2;
  font-family: 'Open Sans', sans-serif;
}

.custom-slide-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.custom-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f7f1e2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.custom-slide.active {
  opacity: 1;
  z-index: 1;
}

.custom-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f7f1e2;
  pointer-events: none;
  z-index: 1;
}

.custom-slide-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 4vh 3vw 6rem 3vw;
  box-sizing: border-box;
  color: #ffffff;
}

.custom-slide-content * {
  word-wrap: break-word;
  box-sizing: border-box;
}

.custom-slide-content h1 {
  font-size: 2.25rem;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  font-weight: 600;
  color: #ffffff;
}

.custom-slide-content h2 {
  font-size: 1.75rem;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  font-weight: 600;
  color: #ffffff;
}

.custom-slide-body {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 400;
}

.custom-slide-body ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
  list-style-type: disc;
}

.custom-slide-body li {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

/* NAV + PAGINATION CONTAINED */
.custom-slide-nav {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.custom-slide-pagination {
  position: absolute;
  bottom: 30px;
  left: 40px;
  z-index: 10;
  color: #23408f;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
}

/* Buttons */
.custom-slide-nav button {
  background: #556ba8;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.custom-slide-nav button:hover {
  background: #23408f;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .custom-slide-content {
    max-width: 80vw;
    padding: 4vh 6vw 6rem 6vw;
  }

  .custom-slide-content h1 {
    font-size: 2rem;
  }

  .custom-slide-content h2 {
    font-size: 1.5rem;
  }

  .custom-slide-body {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .custom-slide-content {
    padding: 3vh 5vw 6rem 5vw;
  }

  .custom-slide-content h1 {
    font-size: 1.75rem;
  }

  .custom-slide-content h2 {
    font-size: 1.25rem;
  }

  .custom-slide-body {
    font-size: 0.95rem;
  }

  .custom-slide-nav {
    bottom: 20px;
    right: 20px;
  }

  .custom-slide-pagination {
    bottom: 20px;
    left: 20px;
  }

  .custom-slide-nav button {
    padding: 0.4rem 0.8rem;
    font-size: 1.25rem;
  }
}
