/*Main service page content */
.our-services {
    text-align: center;
    padding: 60px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.our-services h1{
    font-size: 2rem;
}

.our-services p {
  max-width: 1250px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  color: #444;
  text-align: justify;
}

.interactive-services {
  max-width: 1600px;
  margin: auto;
  padding: 20px;
  text-align: center;
}

.services-buttons {
  padding: 12px 30px;
  background-color: transparent;
  color: #fff;
  border-radius: 2px;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.services-buttons button {
  padding: 18px 30px;
  border: 2px solid #000;
  background-color: white;
  cursor: pointer;
  transition: background-color 0.3s;
  flex: 1 1 200px;
  text-transform: uppercase;
}

.services-buttons button:hover {
  background-color: rgba(255,197,35,255);
  color: #fff;
}

.services-details {
  border: 1px solid #ccc;
  padding: 20px;
  background-color: transparent;
  width: 100%;
  max-width: 1250px;
  margin: auto;
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.services-details p {
  margin: 0;
  text-align: center;
  max-width: 1250px;
  width: 100%;
}

.services-container {
  display:flex;
  gap:40px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.services-item {
  flex: 1 1 45%;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  max-width: 600px;
}

.services-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 20px;
}
.services-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.services-item:hover {
  background-color: #1e1e2f;
  color: #fff;
}

.learn-more {
  font-style: italic;
  color: #000000;
  font-weight: bold;
}

.learn-more:hover {
  color: #fff;
}

/*HR and Extended Services pages*/
.services-dark,
.services-light {
    padding: 60px 20px;
    text-align: left;
    width: 100%;
    margin: 0 auto;
}

.services-dark {
    background-color: #1e1e2f;
    color: #ffffff;
}

.services-light {
    background-color: #E6F0FF;
    color: #222;
}

.services-container {
    padding: 60px 40px;
    justify-content: space-between;
    gap: 40px;
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.service {
    flex: 1;
    font-size: 17.5px;
    line-height: 1.8;
    width: 100%;
    border-right: 1px solid rgba(255,197,35,255);
    border-left: 1px solid rgba(255,197,35,255);
    padding: 60px 20px;
    max-width: 1500px;
    margin: 0 auto;
}
.service p{
    font-size: 16px;
    text-align: center;
    line-height: 1.8;
}

.service strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.services-title {
    text-align: center;
    padding: 60px 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.services-title h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.services-title p {
    font-size: 16px;
    color: #444;
    text-align: justify;
    line-height: 1.9;
}

/*Extended workforce top and bottom images*/
.services-top {
    background-image: url('./images/Servicestop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 400px; /* Adjust this height to control the rectangle shape */
    width: 100%;
}
.services-top-over {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Optional: dark overlay for contrast */
}

.services-bottom {
    background-image: url('./images/Servicesbottom.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 400px; /* Adjust this height to control the rectangle shape */
    width: 100%;
}

.services-bottom-over {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Optional: dark overlay for contrast */
}

/*HR solutions top and bottom images */
.services-top1 {
    background-image: url('./images/Servicestop1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 400px; /* Adjust this height to control the rectangle shape */
    width: 100%;
}

.services-top-over1 {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Optional: dark overlay for contrast */
}

.services-bottom1 {
    background-image: url('./images/Servicesbottom1.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 400px; /* Adjust this height to control the rectangle shape */
    width: 100%;
}

.services-bottom-over1 {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Optional: dark overlay for contrast */
}

.servicesmail {
  text-align: center;
  margin: 10px 0;
  width: 100%;
}

.servicesmail-button {
  padding: 12px 30px;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,197,35,255);
  border-radius: 2px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.servicesmail-button:hover {
  background-color: rgba(255,197,35,255);
  color: #fff;
}

@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
  }

  .service {
    padding: 20px 10px;
    font-size: 15px;
  }
  
  .services-top1,
  .services-bottom1,
  .services-bottom,
  .services-top {
    background-attachment: scroll;
    height: 250px; /* smaller height for mobile */
  }

  .our-services {
    max-width: 100%;
  }
  .our-services h1{
    font-size: 1.5em;
    margin-bottom: 1.5rem;
  }

  .our-services p {
    font-size: 14.5px;
    text-align: left;
    width: 100%;
    line-height: 1.7;
  }

  .interactive-services {
    display: none;
  }

  .services-title p {
    text-align: center;
}
}
