main {
  color: black;
}

#service-section-page {
  width: 100%;
}

.service-page-container {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.services-up {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.services-up img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.service-second {
  position: relative;  
  width: 100%;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  box-sizing: border-box;
}

.service-card {
  flex: 1 1 280px;  
  max-width: 350px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 25px;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.service-cardImg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.service-card img {
  border-radius: 15px;
  max-width: 150px;
  width: 100%;
  height: auto;
  padding: 1rem 0;
}

.service-title {
  font-size: 1.5rem;
  color: #333;
  text-align: center;
  margin-bottom: 1rem;
}

.service-list {
  margin-top: 1rem;
  padding: 0;
}

.service-list ul {
  list-style: none;
  padding-left: 1rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .service-card {
    flex: 1 1 100%;  
    max-width: 100%;
    padding: 1.5rem 1rem;
  }

  .service-card img {
    max-width: 120px;
  }

  .service-title {
    font-size: smaller;
  }

  .service-list ul {
    font-size: smaller;
  }
}

@media (min-width: 1024px) {
  .service-second {
    padding: 4rem 5%;
  }

  .service-card {
    flex: 1 1 300px;
    max-width: 400px;
  }
}

.service-first {
  display: flex;
  flex-direction: column;
}

.services-text {
  text-align: center;
  padding: 4rem 0 3rem;
}

.services-text h3 {
  font-size: 3rem;
  margin-bottom: 3rem;
  color: hsl(120, 85%, 30%);
}

.services-text p {
  padding: 0 5%;
}

.services-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 5rem 2rem;
  gap: 2rem;
}

#services-left,
#services-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.img-text {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.img-text h2 {
  font-size: clamp(1rem, 1.5rem, 10vw);
  padding: 1rem;
  background-color: hsl(91, 89%, 63%);
  color: white;
  width: 350px;
}

#services-left .img-text {
  padding-left: 5rem;
}

#services-right .img-text {
  padding-right: 5rem;
}

.img-text ul {
  padding-left: 1rem;
}

.services-images img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
}

.img-text a {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  width: 120px;
  color: #1E1E1E;
  transition: color 0.2s ease-in-out;
}

.img-text a:hover {
  color: hsl(120, 84%, 40%);
}

.service-preText{
  background-color: #1E1E1E;
  text-align: center;
  color: white;
  padding-top: 2rem;
}

.service-pre {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 2rem 1rem;
  background-color: #1E1E1E;
  justify-items: center;
}

.service-aft {
  max-width: 400px;
  width: 100%;
  min-height: 300px; 
  background-color: white;
  border-radius: 25px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-aft:hover {
  background-color: hsl(91, 89%, 63%);
  color: white;
}

.service-aft:hover svg path {
  fill: white;
}

.service-aftico {
  padding-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-afttext {
  padding: 1rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-afttext h3 {
  padding: 1.5rem 0 1rem 0;
  margin: 0;
  font-size: 1.4rem;
  color: inherit;
}

.service-afttext p {
  margin: 0;
  font-size: 1rem;
  color: inherit;
}

@media (max-width: 500px){
  .service-pre{
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
  }

  .service-aft{
    min-height: auto;
    padding: 1rem;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .service-afttext{
    max-height: 0;
    opacity: 0;
    padding: 0;
  }

  .service-aft.active{
    border-radius: 25px;
    width: 100%;
    height: auto;
    padding: 1rem;
  }

  .service-aft.active .service-afttext{
    max-height: 300px;
    opacity: 1;
    padding: 1rem 1rem;
  }

  .service-aftico{
    padding: 0;
  }

  .service-aft svg{
    width: 48px;
    height: 48px;
  }
}



@media (max-width: 1024px){
  .services-images {
    flex-direction: column;
    margin: 0 1rem;
  }

  #services-left .img-text, #services-right .img-text{
    padding: 2rem 1rem 0;
  }

  .services-text h3{
    font-size: 2.5rem;
  }
}

@media (max-width: 600px){
  .services-text h3 {
    font-size: 2rem;
  }

  .services-text p{
    padding: 0 2rem;
    font-size: 0.95rem;
  }

  .services-images img{
    max-height: 200px;
  }
}

@media (max-width: 480px){
  .img-tar {
    display: flex;
    justify-content: center;
  }

  .services-zero p {
    font-size: smaller;
  }

  .img-text{
    font-size: smaller;
    
  }

  .img-text h2 {
  width: 250px;
  }


  .service-preText{
    font-size: smaller;
  }
}

