/* ==========================================================================
   SERVICES ARCHIVE STYLES (archive-service.php) - LOGO GREEN COLOR
   ========================================================================== */

.services-archive-modern {
  background: var(--light-bg);
}

.services-hero-section {
  background: linear-gradient(135deg, #002856 0%, #004080 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.services-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at top right,
    rgba(57, 166, 61, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.services-hero-content {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  color: #fff;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: #39a63d;
}

.breadcrumb-nav .separator {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-nav .current {
  color: #fff;
  font-weight: 600;
}

.services-hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 25px;
  color: #fff;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  margin: 0 auto 35px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.services-hero-section .btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
}

.services-hero-section .btn-primary {
  background: #39a63d;
  color: #fff;
  border: 2px solid #39a63d;
}

.services-hero-section .btn-primary:hover {
  background: #2d8532;
  border-color: #2d8532;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(57, 166, 61, 0.3);
}

.services-hero-section .btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.services-hero-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Services Grid Section */
.services-grid-section {
  padding: 80px 0;
  background: #fff;
}

/* FIXED: Center align the heading */
.section-header-center {
  text-align: center;
  margin-bottom: 60px;
  max-width: 100%;
}

.section-header-center h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 auto;
  text-align: center;
  max-width: 100%;
}

/* FIXED: Increased gap between service cards */
.services-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-modern-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 2px 20px rgba(0, 40, 86, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #39a63d, var(--navy-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-modern-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 40, 86, 0.15);
  border-color: #39a63d;
}

.service-modern-card:hover::before {
  transform: scaleX(1);
}

.service-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.service-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(57, 166, 61, 0.1) 0%,
    rgba(57, 166, 61, 0.05) 100%
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.4s ease;
}

.service-modern-card:hover .service-card-icon {
  background: #39a63d;
  transform: rotateY(360deg);
}

.service-card-icon i {
  font-size: 40px;
  color: #39a63d;
  transition: color 0.4s ease;
}

.service-modern-card:hover .service-card-icon i {
  color: #fff;
}

.service-card-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.service-modern-card:hover .service-card-icon img {
  transform: scale(1.1);
}

.service-modern-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-modern-card:hover h3 {
  color: #39a63d;
}

.service-modern-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-dark);
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.service-card-link i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.service-modern-card:hover .service-card-link {
  color: #39a63d;
}

.service-modern-card:hover .service-card-link i {
  transform: translateX(5px);
}

.no-services-found {
  text-align: center;
  padding: 80px 20px;
}

.no-services-found i {
  font-size: 80px;
  color: #d1d5db;
  margin-bottom: 20px;
}

.no-services-found h3 {
  font-size: 1.8rem;
  color: var(--navy-dark);
  margin: 0 0 10px;
}

.no-services-found p {
  font-size: 1.05rem;
  color: #6b7280;
  margin: 0;
}

.services-stats-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0, 40, 86, 0.06);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 40, 86, 0.12);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #39a63d, #2d8532);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 28px;
  color: #fff;
}

.stat-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 5px;
  line-height: 1;
}

.stat-content p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.services-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #003d6b 100%);
  position: relative;
  overflow: hidden;
}

.services-cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(57, 166, 61, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.services-cta-section .cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.services-cta-section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.2;
}

.services-cta-section p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 35px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.archive-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.archive-pagination .nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.archive-pagination a,
.archive-pagination span {
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.archive-pagination a {
  background: #fff;
  color: var(--navy-dark);
  border: 2px solid #e5e7eb;
}

.archive-pagination a:hover {
  background: #39a63d;
  color: #fff;
  border-color: #39a63d;
  transform: translateY(-2px);
}

.archive-pagination .current {
  background: var(--navy-dark);
  color: #fff;
  border: 2px solid var(--navy-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .services-hero-section {
    padding: 70px 0 50px;
  }

  .services-modern-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .services-grid-section,
  .services-stats-section,
  .services-cta-section {
    padding: 50px 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .services-hero-section {
    padding: 50px 15px 40px;
  }

  .service-modern-card {
    padding: 35px 25px;
  }

  .service-card-icon {
    width: 70px;
    height: 70px;
  }

  .service-card-icon i {
    font-size: 35px;
  }

  .stat-item {
    padding: 25px 20px;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
  }

  .stat-icon i {
    font-size: 24px;
  }

  .stat-content h3 {
    font-size: 1.8rem;
  }
}

@media (min-width: 1024px) {
  .services-modern-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}