/* Services Page Specific Styles */

/* Page Header - reusing same structure from about.css */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 120px 0 70px;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('./asset/bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Services Overview */
.services-overview {
  padding: 70px 0;
  background-color: white;
  text-align: center;
}

.overview-content {
  max-width: 900px;
  margin: 0 auto;
}

.overview-content p {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

/* Service Detail Sections */
.service-detail {
  padding: 100px 0;
  background-color: white;
}

.service-detail.alt-bg {
  background-color: var(--gray-color);
}

.service-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: center;
}

.service-content.reverse {
  grid-template-columns: 2fr 3fr;
  grid-auto-flow: dense;
}

.service-content.reverse .service-text {
  grid-column: 2;
}

.service-content.reverse .service-image {
  grid-column: 1;
  grid-row: 1;
}

.service-text h2 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.service-tagline {
  font-size: 20px;
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 25px;
}

.service-text > p {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 30px;
}

.service-text h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  margin-bottom: 30px;
}

.service-list li {
  margin-bottom: 20px;
  padding-left: 25px;
  position: relative;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.list-title {
  display: block;
  font-weight: 600;
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
}

.list-text {
  display: block;
  font-size: 16px;
  color: #666;
  line-height: 1.5;
}

.service-cta {
  margin-top: 30px;
}

.service-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.service-image:hover img {
  transform: scale(1.03);
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
  background-color: white;
}

.faq-container {
  max-width: 900px;
  margin: 40px auto 0;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f9f9f9;
}

.faq-question h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px;
  max-height: 1000px;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* CTA Section - already styled in about.css, reusing here */
.cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-content .btn {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}


.cta-content .btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  transform: translateY(-3px);
}

.brand {
  display: grid;
  grid-template-columns: 1fr 4fr; 
  gap: 2rem; 
  align-items: center;
}



/* Animations */
.service-detail.animation-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-detail.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.service-detail:nth-child(odd).animation-ready .service-image {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-detail:nth-child(even).animation-ready .service-image {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-detail.animate-in .service-image {
  opacity: 1;
  transform: translateX(0);
}

.service-detail.animation-ready .service-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.service-detail.animate-in .service-text {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .service-content,
  .service-content.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-content.reverse .service-text,
  .service-content.reverse .service-image {
    grid-column: auto;
    grid-row: auto;
  }

  .service-image {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 100px 0 50px;
  }

  .page-header h1 {
    font-size: 36px;
  }

  .overview-content p,
  .service-tagline {
    font-size: 16px;
  }

  .services-overview,
  .service-detail,
  .faq-section {
    padding: 70px 0;
  }

  .service-text h2,
  .cta-content h2 {
    font-size: 30px;
  }

  .service-text h3 {
    font-size: 20px;
  }

  .list-title {
    font-size: 17px;
  }

  .faq-question h3 {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .page-header h1 {
    font-size: 32px;
  }

  .page-header p {
    font-size: 18px;
  }

  .service-text h2,
  .cta-content h2 {
    font-size: 28px;
  }

  .service-detail,
  .faq-section {
    padding: 50px 0;
  }
}
