/* Top Section */

.top {
  text-align: center;
  margin: 0 auto;
  align-self: center;
}

.significant {
  margin: 50px 0 0 0;
  font-size: 5rem;
}

.top p {
  font-size: 1.2rem;
  color: var(--text-grey);
  max-width: 650px;
  margin: 0 auto;
}

.top span {
  font-weight: bold;
  font-size: 1.2rem;
}

/* Services list and items */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 40px;
  max-width: 1640px;
  margin-top: 40px;
  /* padding: 0 24px; */
}

.service-item {
  display: flex;
  align-items: center;
  gap: 50px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(22, 38, 57, 0.07);
}

.service-item > img {
  display: block;
  max-width: 100%;
  max-height: 128px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex: 0 0 140px;
  margin: 0 auto;
  padding: 20px;
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  flex: 2 1 0;
}

.service-content .details-button {
  align-self: flex-start;
}

.service-item,
.service-content {
  min-width: 0;
}

.service-content .heading {
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}

.service-content p {
  font-size: 1.2rem;
  margin: 0;
  color: var(--text-grey, #6b7280);
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 800px) {
  .top {
    margin-left: 24px;
    margin-right: 24px;
  }

  /* Collapse grid to single column on small screens */
  .services {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-item {
    gap: 12px;
    padding: 30px;
    /* stack icon above content on small screens */
    flex-direction: column;
    align-items: flex-start;
  }

  .service-item > img {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    padding: 8px;
    margin: 0 0 8px 0;
    object-fit: contain;
  }

  .service-content {
    text-align: left;
  }

  .service-content .details-button {
    align-self: flex-start;
    margin-top: 12px;
  }

  .curved-arrow {
    display: none;
  }
}

/* Additional styles for detailed AI service page */
.service-detail {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px 56px;
}

.detail-hero {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.detail-hero img {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  margin-top: 8px;
}

.hero-copy h2 {
  margin: 0 0 8px 0;
  font-size: 1.6rem;
}

.hero-copy p {
  margin: 0 0 12px 0;
  color: var(--text-grey, #6b7280);
  max-width: 720px;
}

.section-title {
  margin: 36px 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
}

.offerings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.offer-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(22, 38, 57, 0.06);
}

.offer-card h4 {
  margin: 0 0 6px 0;
  font-size: 1rem;
}

.offer-card p {
  margin: 0;
  color: var(--text-grey, #9ca3af);
  line-height: 1.5;
  font-size: 0.95rem;
}

.how-we-work {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.how-we-work .step {
  background: transparent;
  padding: 12px 8px;
}

.engagements {
  margin: 10px 0 0 0;
  padding-left: 18px;
}

.case-studies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.case {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 14px;
  border-radius: 10px;
}

.faq {
  margin-bottom: 20px;
}

.faq details {
  background: rgba(255,255,255,0.02);
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  margin: 10px 0;
}

@media (max-width: 1000px) {
  .offerings { grid-template-columns: repeat(2, 1fr); }
  .how-we-work { grid-template-columns: repeat(2, 1fr); }
  .case-studies { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .detail-hero { flex-direction: column; align-items: flex-start; }
  .offerings { grid-template-columns: 1fr; }
  .how-we-work { grid-template-columns: 1fr; }
}