/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #ffffff;
  line-height: 1.6;
}

.container {
  width: 90%;
  margin: auto;
}

/* Header */
header {
  background-color: #016738;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.header .logo {
  font-size: 24px;
  font-weight: bold;
}

.header .contact-info {
  font-size: 14px;
}

/* Main Sections */
main {
  padding: 20px;
}

section {
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 8px;
}

section h1,
section h2 {
  color: #016738;
}

.welcome {
  background-color: white;
  color: #016738;
}

.about-us,
.services,
.security-personnel,
.canine-security,
.electronic-security,
.post-contract,
.customer-care,
.quality-safety,
.social-responsibility,
.why-goss {
  background-color: #8e8857;
  color: white;
}

.contact {
  background-color: white;
  color: #016738;
}

/* Footer */
footer {
  background-color: #016738;
  color: white;
  text-align: center;
  padding: 10px 0;
}

.slider-container {
  width: 100%;
  max-width: 800px; /* Adjust based on your layout */
  height: 300px;
  margin: 20px auto;
  overflow: hidden; /* Hides the images outside the box */
  border-radius: 15px; /* Stylish rounded corners */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.slider-track {
  display: flex;
  width: 500%; /* 100% per slide (4 slides + 1 duplicate) */
  height: 100%;
  animation: scroll 15s linear infinite;
}

.slide {
  width: 100%;
  height: 300px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps images from looking squashed */
}

/* The Animation Logic */
.multi-slider-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #f8f9fa;
  padding: 10px 0;
}

.slider-track {
  display: flex;
  width: calc(
    250px * 10
  ); /* Adjust based on total images (original + clones) */
  animation: scroll-left 20s linear infinite;
}

.slide {
  /* For 5 images visible, use 20vw. For 4 images, use 25vw. */
  width: 20vw;
  min-width: 200px; /* Ensures they don't get too small on mobile */
  height: 300px;
  padding: 10px; /* Space between images */
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Hover effect to make it stylish */
.slide img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* Smooth continuous scroll animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-30vw * 2));
  } /* Move by width of the 5 original images */
}

/* SLIDING ON ADS */
/* 1. Centering the Container */
.main-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 0;
}

.multi-slider-container {
  width: 100%; /* Adjust width as needed */
  max-width: 1000px; /* Prevents it from getting too wide */
  height: 270px; /* Your requested height */
  margin: 0 auto; /* Centers the div horizontally */
  overflow: hidden; /* Hides images outside the frame */
  position: relative;
  border-radius: 15px;
}

.slider-track {
  display: flex;
  width: calc(10% * 10); /* 10 slides total, each is 20% of the container */
  animation: slide-step 10s infinite; /* 5 images * 3 seconds = 15s total cycle */
}

.slide {
  width: 250px; /* This shows 5 images at a time */
  height: 250px;
  padding: 5px; /* Margin/Gap between images */
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps images stylish and un-stretched */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 2. The 3-Second Sliding Logic */
/* We move the track by 20% (one image width) every few seconds */
@keyframes slide-step {
  0%,
  15% {
    transform: translateX(0);
  }
  20%,
  35% {
    transform: translateX(-20%);
  }
  40%,
  55% {
    transform: translateX(-40%);
  }
  60%,
  75% {
    transform: translateX(-60%);
  }
  80%,
  95% {
    transform: translateX(-80%);
  }
  100% {
    transform: translateX(-100%);
  } /* Resets instantly back to 0% */
}

/* Pause on hover for better user experience */
.slider-track:hover {
  animation-play-state: paused;
}

/* smal Phones */
@media (max-width: 769px) {
  .multi-slider-container {
    width: 100%; /* Adjust width as needed */
    max-width: 4000px; /* Prevents it from getting too wide */
    height: 100px; /* Your requested height */

    border-radius: 15px;
  }
  .slide {
    width: 110px; /* Smaller width for small phones */
    height: 180px; /* Adjust height accordingly */
    padding: 10px; /* Reduce padding for smaller screens */
  }

  .multi-slider-container {
    height: 200px; /* Adjust container height for smaller slides */
  }
}
