* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.contact-us-hero-section {
  width: 100vw;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/bg-img.jpg');
  background-repeat: no-repeat;
  background-size: cover;
}


.contact-us-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.9;
  pointer-events: none;
}

.contact-us-hero-section .page-details {
  color: white;
  opacity: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  z-index: 1;
}

.page-details h1 {
  margin: 0;
  color: white;
  opacity: 1;
  justify-self: center;
  font-size: 4rem;
  z-index: 1;
  margin-top: 100px;
}

/* Header Service Card */
.services-section {
  width: 80vw;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  margin-top: -7rem;
  margin-bottom: 4rem;
  border-radius: 1rem;
}

.service-item {
  width: 33.33%;
  background-color: #e5d0c8;
  text-align: center;
  padding: 32px 24px;
}

.service-item:first-child {
  background-color: #eee;
}

.service-item:last-child {
  border-left: 2px solid white;
}

.service-item h2 {
  color: #9c7883;
  font-size: 44px;
  font-weight: 500;
}

.service-item i {
  font-size: 40px;
  color: #7a5676;
  margin-top: 1.6rem;
  margin-bottom: .6rem;
}

.service-item h3 {
  color: black;
  font-size: 1.6rem;
  font-weight: 400;
}

.service-item:first-child h3 {
  color: #7a5676;
  font-size: 1.6rem;
  font-weight: 400;
}



/* Services Section */
.services {
  margin: 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section>h3 {
  font-size: 1.8rem;
  font-weight: 400;
  border-bottom: 2px solid var(--primary-color);
}

.services .service-row {
  width: 100%;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  border: 3px solid red;
}

.service-row .service-title-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.service-row .service-category {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.service-category .subservice-title {
  color: white;
  background-color: var(--primary-color);
  padding: .2rem .4rem;
}

.subservice-item {
  transition: all 200ms ease-in;
}

.subservice-item:hover {
  transform: translateX(.4rem);
}

.service-row .service-detail-container {
  width: 50%;
  display: flex;
  flex-direction: row;
  border: 2px solid salmon;
}

.service-detail-container .service-details {
  padding: 1rem;
  background-color: #7a5676;
  border: 2px dashed green;
}

.service-details img {
  width: 80%;
}

.service-section {
  display: flex;
  width: 94%;
  margin: 4rem auto;
  background-color: #ffffff;
  justify-content: center;
  flex-wrap: wrap;
  margin: 4rem 2rem;
}


.sidebar-left {
  width: 465px;
  min-width: 465px;
}

.sidebar h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.category h3 {
  font-size: 18px;
  margin: 15px 0;
  margin-top: 1.6rem;
  background-color: var(--primary-color);
  color: white;
  padding: .2rem .4rem;
  width: max-content;
  padding: 4px 83px;
}

.category ul {
  list-style-type: none;
  padding-left: 15px;
}

.category ul li {
  font-size: 16px;
  margin: 10px 0;
  cursor: pointer;
}

.category ul li:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.content-area {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.content {
  display: none;
}


/* Add your CSS here */
.active-services {
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: underline;
}

.rounded-shape {
  width: 80%;
  border: 4px solid var(--primary-color);
  border-top-left-radius: 8rem;
  border-top-right-radius: 3rem;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 4rem;
  transform: rotateZ('30');
  height: 400px;
}

.category svg {
  width: .5rem;
  fill: var(--primary-light-color);
  margin: 0px 5px;
}

.category li:hover {
  cursor: pointer;
  color: var(--primary-color);
  padding-left: 20px;
  transition: all 1s;
}

.content-div {
  padding: 50px;
}

.d-flex-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 46px 0px;
  flex-wrap: wrap;
}

.d-flex-img img {
  width: 48%;
  border-radius: 11px;
  height: 335px;
}

.buttons-action {
  padding: .6rem 1.6rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  margin-top: 2rem;
  cursor: pointer;
  text-decoration: none;
}

.buttons-action a {
  text-decoration: none;
  text-align: center;
  color: inherit;
}

.buttons-action:hover {
  background-color: var(--primary-light-color);
}

@media (max-width: 1148px) {
  .content-area {
    order: 2;
  }

  .sidebar-left {
    width: 90%;
    min-width: unset;
    order: 3;
  }

  .service-section {

    justify-content: flex-start;

  }

  .content-area {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
  }

  .rounded-shape {
    width: 54%;

  }
}

@media (max-width: 659px) {
  .rounded-shape {
    width: 98%;
  }
}

@media (max-width: 935px) {
  .d-flex-img img {
    min-width: 400px;
    margin: 20px;
  }

  .d-flex-img {

    justify-content: center;

  }
}

@media (max-width: 475px) {
  .d-flex-img img {
    min-width: unset;
    width: 100%;
  }

  .category h3 {

    /* width: max-content; */
    padding: 4px 32px;
  }

  .content-div {
    padding: 20px;
  }

  .service-section {
    margin: 15px;
  }
}

.container-service {
  position: relative;
  width: 50%;
}


.text-section-service h1 {
  margin: 0;
  font-size: 1.8rem;
}

.text-section-service p {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.text-section-service a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}

.text-section-service a:hover {
  text-decoration: underline;
}

.text-section-service a::after {
  content: "→";
  margin-left: 0.5rem;
}

.image-section-service {
  height: auto;
  background-size: cover;
  background: #e0e0e0;
  background-position: center;
  clip-path: polygon(0 30%, 100% 0%, 100% 100%, 0 100%);
  padding: 2rem;
  text-align: left;
  color: #36204e;
  border-radius: 10px;
  margin: 10px;
  padding-top: 91px;
  margin-top: -43px;
  min-height: 225px;
  border-top-right-radius: 0px;
}

.text-section-service {
  background-color: #edc7b4;
  color: #36204e;
  padding: 2rem;
  text-align: left;
  border-radius: 10px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 0 100%);
  margin: 10px;
  margin-bottom: 0;
  padding-bottom: 60px;
  border-bottom-left-radius: 0px;
}

.flex-service {
  display: flex;
  width: 100%;
}

.flex-right-service {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-right-service img {
  max-width: 100%;
  height: 450px;
  border-radius: 10px;
}

@media (max-width: 1021px) {
  .text-section-service {
    padding-bottom: 75px;
  }

  .image-section-service {

    padding-top: 100px;

  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .flex-service {
    flex-direction: column;
    align-items: center;
  }

  .container-service {
    width: 100%;
  }

  .flex-right-service {
    width: 90%;
    margin-top: 10px;
  }

  .text-section-service,
  .image-section-service {
    margin: 10px 0;

    border-radius: 5px;
  }


  .image-section-service {
    margin: 10px 0;
    border-radius: 5px;
    margin-top: -51px;
  }

  .text-section-service h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .image-section-service {
    margin: 10px 0;
    border-radius: 5px;
    margin-top: -106px;
  }

  .text-section-service {
    padding-bottom: 124px;
  }

  .image-section-service {
    padding-top: 131px;
  }
}

.image-section-service {
  padding-top: 140px;
}

#contact-us-hero-section {
  animation: scaleDown 1.5s ease-in-out forwards;
}

#header {
  animation: fadeTop 1.5s ease-in-out forwards;
}

#footer {
  animation: fadeTop 1.5s ease-in-out forwards;
}

#rotate-silder-animation {
  animation: fadeDown 1.5s ease-in-out forwards;
}

#service-section {
  animation: fadeTop 1.5s ease-in-out forwards;
}

#sidebar-left-animation {
  animation: fadeLeft 1.5s ease-in-out forwards;
}

#content-area-right {
  animation: fadeRight 1.5s ease-in-out forwards;
}

#content-div {
  animation: scaleDown 1.5s ease-in-out forwards;
}

#text-section-service {
  animation: fadeLeft 3s ease-in-out forwards;
}

#image-section-service {
  animation: fadeRight 3s ease-in-out forwards;

}

#container-three-image {
  animation: scaleDown 3s ease-in-out forwards;

}

@media screen and (max-width: 840px) {

  .contact-us-hero-section {

    height: 60vh;

  }
}

.sidebar-left p {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.image-section-service p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.category ul li a {
  text-decoration: none;
  color: inherit;
  font-size: 1.1rem;
}