/* ================ */
/* HERO SECTION     */
/* ================ */
.about-hero {
  background-image: url("../../img/about-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-color-2);
  margin-bottom: 80px;
  margin-top: 80px;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    var(--background-color-secondary),
    var(--third-color)
  );
  opacity: 0.5;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.about-title {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 20px;
  text-transform: uppercase;
  background: var(--text-color-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-color-2);
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.services-header {
  background-color: #2a4759;
  color: #fff;
  padding: 100px 0 60px;
  text-align: center;
}

.services-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.services-header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.services-container {
  padding: 40px 0;
}

.service-section {
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.service-section:last-child {
  border-bottom: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Service Header Styles */
.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.service-header h2 {
  font-size: 2rem;
  color: #2a4759;
  margin: 0;
  transition: color 0.3s ease;
}

.service-header:hover h2 {
  color: #3a6a83;
}

.service-header i {
  font-size: 1.2rem;
  color: #2a4759;
  transition: transform 0.3s ease;
}

.service-header.active i {
  transform: rotate(-180deg);
}

.service-description-header-box {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

/* Service Content Styles */
.service-content-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.service-content-wrapper.active {
  max-height: 1000px; /* Large enough to fit content */
  margin-bottom: 40px;
}

.service-content {
  display: flex;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding-top: 20px;
}

.service-content-wrapper.active .service-content {
  opacity: 1;
  transform: translateY(0);
}

.service-content.reverse {
  flex-direction: row-reverse;
}

.service-text {
  flex: 1;
}

.service-text h2 {
  font-size: 2.4rem;
  color: #2a4759;
  margin-bottom: 20px;
}

.service-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  text-align: justify;
}

.service-image {
  flex: 1;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (max-width: 992px) {
  .service-content,
  .service-content.reverse {
    flex-direction: column;
  }

  .services-header {
    padding: 80px 0 40px;
  }

  .services-header h1 {
    font-size: 2.5rem;
  }

  .service-section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .services-header h1 {
    font-size: 2rem;
  }

  .service-header h2 {
    font-size: 1.6rem;
  }

  .service-text h2 {
    font-size: 1.8rem;
  }

  .service-section {
    padding: 40px 0;
  }
}
