body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #080808;
}

.slideshow-container {
  background: #0627cc;
  background: linear-gradient(to right, #18323e, #122b34, #133644b8);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 480px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: 50px;
  padding-left: 50px;
  padding-right: 50px;
}

.slideshow-container .overlay {
  background: rgba(255, 255, 255, 0.9); /* translucent white */
  padding: 30px;
}

.slide {
  position: relative;
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.slide.active {
  display: flex;
}

.slide-pic {
  width: 100%;
  height: auto;
  max-width: 300px;
  display: block;
  margin: 0 auto;
}

.text-container {
  width: 50%;
  padding: 20px;
  box-sizing: border-box;
}

.slide-pic img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.text-container h1 {
  margin-top: 0;
  font-size: 28px;
  color: #ffffff;
}

.text-container {
  width: 50%;
  padding: 20px 40px 20px 60px;
  box-sizing: border-box;
  z-index: 2;
  color: aliceblue;
  font-size: 1em;
  color: darksalmon;
}

/* Controls */
.controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 0 20px;
}
.slideshow-container:hover .controls {
  pointer-events: auto;
  opacity: 1;
}
.slideshow-container:hover .controls {
  opacity: 1;
}

.controls button {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  margin: 0 15px;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.controls button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.btn {
  padding: 12px 24px;
  margin: 10px 10px 0 0;
  border: none;
  border-radius: 25px;
  background-color: #0004ff;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 8px rgba(255, 255, 255, 0.2);
  display: inline-block;
  text-align: center;
  background: #6868e4;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 16px #00c6ff44;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  outline: none;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: rgb(82 136 181) 0px 0px 7px 1px;
}

.btn:hover {
  background-color: #0b2066;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .slide {
    flex-direction: column;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .slide-pic {
    width: 90%; /* Use most of the screen width */
    max-width: 170px;
    margin: 0 auto; /* Center the image */
    padding: 0 20px; /* Add some padding */
    box-sizing: border-box;
  }
  .text-container {
    width: 100%;
    padding: 20px 40px 20px 60px; /* Add more left padding */
    align-items: center;
    text-align: center;
    font-size: 14px;
  }

  .text-container h1 {
    font-size: 15px;
  }

  .text-container p {
    font-size: 11px;

    padding-right: 20px;
  }

  .controls {
    top: 45%;
    padding: 0 10px;
  }

  .controls button {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .numbertext {
    font-size: 10px;
    left: 10px;
    top: 8px;
  }
}
@media (max-width: 768px) {
  .btn {
    margin: 10px 0;
    font-size: 10px;
    width: auto;
    padding: 10px 20px;
        background: #6868e4;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 16px #00c6ff44;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    outline: none;
    width: auto;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: rgb(82 136 181) 0px 0px 7px 1px;
  }

  .text-container {
    padding: 20px;
  }
}
