/* Services Page Specific Styles */

/* Hero Section */
.service-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: inherit;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.404);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #000000;
  padding: 2rem 2.5rem;
  max-width: 700px;
  background: rgba(117, 117, 117, 0.842);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
    color: #000000;
  margin-bottom: 1rem;
  text-shadow: none;
}

.hero-content p {
  font-size: 1.3rem;
  opacity: 0.95;
  margin: 0;
}

/* Services Overview Section */
.services-overview {
  padding: 80px 0;
  background: #f2f2f2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-overview h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #000;
}

.intro-text {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background: #fff;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 280px;
}

.service-item.expanded {
  height: auto;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-image {
  flex: 0 0 50%;
  overflow: hidden;
  background: #e0e0e0;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-text {
  flex: 1;
  padding: 20px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-item:not(.has-image) .service-text {
  padding: 20px;
  padding-bottom: 60px;
}

.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.service-item h3 {
  font-size: 1.4rem;
  margin: 0;
  color: #000;
  font-weight: 600;
  flex: 1;
}

.expand-btn {
  background: #0066cc;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  position: absolute;
  bottom: 15px;
  right: 15px;
}

.expand-btn:hover {
  background: #0052a3;
  transform: scale(1.1);
}

.service-item.expanded .expand-btn {
  background: #0052a3;
}

/* Single paragraph that auto-adjusts */
.service-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  flex: 1;
}

/* Collapsed state - limit height to fill 50% space */
.service-item:not(.expanded) .service-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cards with images - auto-fit text in available space */
.service-item.has-image:not(.expanded) .service-description {
  -webkit-line-clamp: 6;
}

/* Cards without images - more lines for full card */
.service-item:not(.has-image):not(.expanded) .service-description {
  -webkit-line-clamp: 10;
}

/* Expanded state - show all text */
.service-item.expanded .service-description {
  display: block;
  overflow: visible;
}

.service-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Why Choose Section */
.why-choose {
  padding: 80px 0;
  background: #fff;
}

.why-choose h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #000;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit {
  text-align: center;
  padding: 20px;
}

.benefit h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.benefit h3 .tick {
  color: #00b300;
  display: inline-block;
  opacity: 0;
  transform: scale(0);
}

.benefit.animate h3 .tick {
  animation: tickPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.benefit:nth-child(1).animate h3 .tick { animation-delay: 0.1s; }
.benefit:nth-child(2).animate h3 .tick { animation-delay: 0.5s; }
.benefit:nth-child(3).animate h3 .tick { animation-delay: 0.9s; }
.benefit:nth-child(4).animate h3 .tick { animation-delay: 1.6s; }
.benefit:nth-child(5).animate h3 .tick { animation-delay: 2.0s; }
.benefit:nth-child(6).animate h3 .tick { animation-delay: 0.6s; }

@keyframes tickPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.benefit p {
  font-size: 1rem;
  color: #666;
}

/* CTA Section */
.cta-section {
  padding: 30px 0;
  background: linear-gradient(135deg, #969696 0%, #666 100%);
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 0px;
  opacity: 0.9;
  padding: 20px;
}

/* Contact Section */
.contact .contact-intro {
  padding: 10px 20px;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #fff;
  color: #000;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: none;
}

.cta-button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: none;
}

/* Convenient Support Section */
.convenient-support {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  background:  #ffffff ;
}

.convenient-support::before {
  content: none;
}

.convenient-support .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 28px 26px;
  border-radius: 14px;
  background: rgba(117, 117, 117, 0.842);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.convenient-support .container::after {
  content: none;
}

.convenient-support h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.35;
  color: #000000;
  text-align: center;
  letter-spacing: 0.2px;
}

.convenient-support h2:last-child {
  margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .service-hero::before {
    background-attachment: scroll;
    inset: 0;
  }

  .hero-content {
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .services-overview h2,
  .why-choose h2,
  .cta-section h2 {
    font-size: 2rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-image {
    flex: 0 0 50%;
    width: 100%;
  }

  .service-text {
    padding: 20px !important;
  }

  .service-item h3 {
    font-size: 1.2rem;
  }

  .expand-btn {
    width: 28px;
    height: 28px;
    font-size: 1.3rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-overview,
  .why-choose,
  .cta-section {
    padding: 50px 0;
  }

  .convenient-support {
    padding: 50px 0;
  }

  .convenient-support .container {
    padding: 22px 18px;
    border-radius: 12px;
  }

  .convenient-support h2 {
    font-size: 1.15rem;
  }
}


