/* -------------------------------------
   Background and Hero Banner
------------------------------------- */
.background-container {
  position: flex;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100%;
  background-image: url(../images/services8.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 60vh;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: none;
}

.hero-overlay {
  position: absolute;
  top: 1px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
  z-index: 10;
}

.breadcrumb {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  opacity: 0.8;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: capitalize;
  margin: 0;
}

section.hero-banner + .about-us {
  margin-top: 20px;
}

.animate-left,
.animate-right {
  opacity: 0;
}

.animate-now.animate-left {
  animation: slideInLeft 1s ease-out forwards;
}

.animate-now.animate-right {
  animation: slideInRight 1s ease-out forwards;
}


/* -------------------------------------
   Services Intro Section
------------------------------------- */
.services-intro {
  margin-top: 100px;
  margin-left: 100px;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  padding-bottom: 10px;
}

.services-intro-headline h1 {
  margin-top: 80px;
  margin-left: 100px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 32px;
  padding-bottom: 30px;
  text-align: center;
}

.highlight {
  color: #D02B2F;
  font-weight: bold;
}

.services-intro-headline p {
  margin-left: 100px;
  margin-bottom: 80px;
  padding-bottom: 50px;
  font-size: 20px;
  text-align: center;
  line-height: 1.6;
}

/* -------------------------------------
   Services Layout and Content
------------------------------------- */
.services-container {
  display: flex;
  width: calc(100% - 200px);
  margin: 0 auto;
  background-color: rgb(240, 240, 240);
}

/* Left Column - Links */
.service-links {
  width: 25%;
  padding: 15px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.services-box {
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.service-item {
  padding: 15px;
  border: 1px solid rgb(195, 199, 208);
  color: rgb(53, 59, 70);
  margin: 5px 0;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  align-items: center;
}

.service-item:hover {
  background: red;
  color: white;
  border: none;
}

.arrow {
  font-size: 14px;
}

/* Right Column - Details */
.service-details {
  width: 75%;
  padding: 40px;
}

.service-content {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  border-bottom: 2px solid lightgray;
  padding-bottom: 40px;
  align-items: stretch;
}

.service-image {
  flex: 1;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.6s ease-in-out;
}

.service-image img:hover {
  transform: scale(1.05);
}

.service-info {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-info h3 {
  font-size: 14px;
  font-weight: bold;
  color: rgb(208, 43, 47);
  margin-bottom: 5px;
}

h2 {
  font-size: 22px;
  font-weight: bold;
}

.underline {
  width: 50px;
  height: 3px;
  background: rgb(208, 43, 47);
  margin: 10px 0;
}

.services-intro-headline p {
  font-size: 16px;
  color: #353b46;
}

/* Sub-Services */
.sub-services {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.sub-services li {
  font-size: 14px;
  padding: 5px 0;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.sub-services li:hover {
  color: rgb(208, 43, 47);
  font-weight: bold;
}

.plus {
  color: rgb(208, 43, 47);
  font-size: 18px;
  margin-right: 8px;
}

.sub-services li.expanded {
  color: #0073e6;
  font-weight: bold;
  padding-left: 5px;
}

.sub-services li.expanded .plus::after {
  content: " (clicked)";
  font-size: 0.8em;
  color: #999;
}

/* Learn More */
.learn-more {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
  color: rgb(208, 43, 47);
  font-weight: bold;
  transition: 0.3s ease-in-out;
}

.learn-more:hover {
  text-decoration: underline;
  color: black;
}

/* -------------------------------------
   CTA Section
------------------------------------- */
.services-cta {
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
}

.services-cta h2 {
  font-size: 32px;
  padding-bottom: 20px;
}

.services-cta p {
  font-size: 20px;
  padding-bottom: 60px;
}

.cta-button {
  display: block;
  width: fit-content;
  margin: 20px auto 0 auto;
  background-color: #d62828;
  color: white;
  font-size: 18px;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease-in-out;
}

.cta-button:hover {
  background-color: #b71c1c;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background-color: #c40000;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  display: none;
  z-index: 1000;
}

/* -------------------------------------
   Responsive Design
------------------------------------- */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-left {
  animation: slideInLeft 1s ease-out forwards;
}

.animate-right {
  animation: slideInRight 1s ease-out forwards;
}


@media (max-width: 1024px) {
  .services-container {
    flex-direction: column;
    width: 100%;
  }

  .service-links,
  .service-details {
    width: 100%;
  }

  .services-intro,
  .services-intro-headline h1,
  .services-intro-headline p {
    margin-left: 40px;
    margin-right: 40px;
  }

  .service-content {
    flex-direction: column;
  }

  .service-image,
  .service-info {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    height: 200px;
  }

  .breadcrumb {
    font-size: 0.9rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .services-intro-headline h1 {
    font-size: 26px;
  }

  .services-intro-headline p {
    font-size: 16px;
  }

  .services-cta h2 {
    font-size: 24px;
  }

  .services-cta p {
    font-size: 16px;
  }

  .cta-button {
    font-size: 16px;
    padding: 10px 20px;
  }

  .back-to-top {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.4rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }

  .service-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-content {
    padding: 20px;
  }

  .cta-button {
    padding: 8px 16px;
    font-size: 14px;
  }
}