/* ===========================================================
   SERVICES SECTION
=========================================================== */

#services {
  width: 100%;
  padding: 80px 20px;
  background: #f7f9fc;
  box-sizing: border-box;
}

.services-container {
  max-width: 1300px;
  margin: auto;
}

/* ===========================================================
   HEADING
=========================================================== */

.services-heading {
  text-align: center;
  margin-bottom: 40px;
}

.services-heading h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #22315f;
  margin-bottom: 15px;
}

.services-heading p {
  max-width: 700px;
  margin: auto;
  color: #666;
  line-height: 1.8;
}

/* ===========================================================
   TABS
=========================================================== */

.service-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;

  margin-bottom: 36px;
}

.service-tab {
  background: #fff;

  border: none;

  border-radius: 18px;

  padding: 18px 24px;

  min-width: 170px;

  cursor: pointer;

  transition: 0.3s;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.service-tab:hover {
  transform: translateY(-5px);
}

.service-tab.active {
  background: #247e4d;

  color: #fff;
}

.service-title {
  font-weight: 600;

  font-size: 1rem;
}

/* ===========================================================
   CONTENT
=========================================================== */

.services-content {
  position: relative;
}

/* ===========================================================
   CARD
=========================================================== */

.service-card {
  display: none;

  background: #fff;

  border-radius: 28px;

  padding: 48px;

  gap: 48px;

  align-items: center;

  grid-template-columns: 1fr 420px;

  animation: fade 0.45s ease;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.service-card.active {
  display: grid;
}

.service-card:nth-child(even) {
  grid-template-columns: 420px 1fr;
}

.service-card:nth-child(even) .service-image {
  order: 1;
}

.service-card:nth-child(even) .service-info {
  order: 2;
}

/* ===========================================================
   TEXT
=========================================================== */

.service-info h3 {
  font-size: 2rem;

  color: #22315f !important;

  margin-bottom: 16px;

  line-height: 1.2;
}

.service-info h3 a {
  text-decoration: none;
  color: #22315f !important;
}

.service-info h3 a:hover {
  text-decoration: underline;
}
.service-info p {
  color: #666;

  line-height: 1.9;

  margin-bottom: 24px;
}

/* ===========================================================
   FEATURES
=========================================================== */

.service-features {
  display: flex;

  flex-wrap: wrap;

  gap: 14px;
}

.service-features span {
  background: #eef2ff;

  color: #4255d8;

  padding: 10px 18px;

  border-radius: 30px;

  font-size: 0.9rem;

  font-weight: 500;
}

/* ===========================================================
   IMAGE
=========================================================== */

.service-image {
  width: 100%;
}

.service-image img {
  width: 100%;

  height: auto;

  display: block;

  aspect-ratio: 4/3;

  object-fit: cover;

  border-radius: 24px;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* ===========================================================
   ANIMATION
=========================================================== */

@keyframes fade {
  from {
    opacity: 0;

    transform: translateY(20px);
  }

  to {
    opacity: 1;

    transform: none;
  }
}

/* ===========================================================
   TABLET
=========================================================== */

@media (max-width: 1000px) {
  .service-card {
    grid-template-columns: 1fr;

    padding: 34px;

    gap: 30px;
  }

  .service-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .service-card:nth-child(even) .service-image,
  .service-card:nth-child(even) .service-info {
    order: unset;
  }
}

/* ===========================================================
   MOBILE
=========================================================== */

@media (max-width: 768px) {
  #services {
    padding: 60px 15px;
  }

  .service-tabs {
    flex-direction: column;
  }

  .service-tab {
    width: 100%;

    align-items: flex-start;

    text-align: left;

    min-width: unset;
  }

  .service-card {
    padding: 28px;
  }

  .service-info h3 {
    font-size: 1.8rem;
  }

  .service-features {
    gap: 10px;
  }

  .service-features span {
    font-size: 0.85rem;
  }
}
