/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.contact-info {
  background-color: #e6f2ff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-wrap: wrap;
}

.contact-info span,
.contact-info i {
  margin: 5px 10px;
}

/* Header (Heading bar) styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 10px;
  flex-wrap: wrap;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

header nav a {
  color: darkblue;
  text-decoration: none;
  padding: 10px 30px;
  font-size: 20px;
  text-transform: uppercase;
  margin: 5px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  transition: background-color 0.3s;
}

header nav a:hover {
  background-color: #ff8c00;
  color: #fff;
}

/* Slideshow */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 600px; /* Adjusted for mobile */
  overflow: hidden;
}

.slides {
  width: 100%;
  height: auto;
  display: none;
}

.slides:first-child {
  display: block;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: rgb(225, 226, 228);
  background-color: rgba(231, 227, 227, 0.5);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Box Section */
.box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 10px;
}

.box {
  background-color: steelblue;
  border-radius: 15px;
  padding: 20px;
  margin: 10px;
  flex: 1;
  min-width: 250px;
  max-width: 500px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Text styling */
h2 {
  color: #11264d;
  font-size: 22px;
  margin-bottom: 12px;
}

p {
  color: black;
  font-size: 15px;
  line-height: 1.6;
}

/* Services Section */
.services-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 40px;
}

.service-box {
  background-color: #f4f4f4;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Benefits Section */
.benefits-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 40px;
}

.benefit-box {
  background-color: #eaf2f8;
  padding: 20px;
  width: 100%;
  max-width: 250px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Font Awesome / Icons */
.content {
  background-color: black;
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.fa {
  padding: 15px;
  font-size: 24px;
  width: 40px;
  text-align: center;
  text-decoration: none;
}

.fa:hover {
  opacity: 0.7;
}

/* Media Queries for Tablets and Phones */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header nav {
    flex-direction: column;
  }

  .slideshow-container {
    height: 250px;
  }

  .box-container {
    flex-direction: column;
    align-items: center;
  }

  .box {
    width: 90%;
    max-width: 90%;
  }

  .services-container,
  .benefits-container {
    flex-direction: column;
    align-items: center;
  }

  .service-box,
  .benefit-box {
    width: 90%;
    max-width: 90%;
  }

  .prev,
  .next {
    font-size: 20px;
    padding: 6px;
  }
}

@media (max-width: 480px) {
  header nav a {
    font-size: 0.9rem;
    padding: 8px 10px;
  }

  h2 {
    font-size: 20px;
  }

  p {
    font-size: 14px;
  }

  .fa {
    font-size: 20px;
    padding: 10px;
  }

  .slideshow-container {
    height: 200px;
  }
}
