/* Modern Services CSS - matches reference implementation */

/* Service Cards Grid */
.services-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

/* Modern Service Card */
.service-card-modern {
  background-color: var(--color-bg-card, #ffffff);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
}

.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary, #4361ee);
}

.service-icon-container {
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary, linear-gradient(135deg, var(--primary-color, #4361ee), var(--primary-dark, #3a0ca3)));
  border-radius: 12px;
  transition: all 0.3s ease;
}

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

.service-icon i {
  font-size: 1.75rem;
  color: #ffffff;
}

.service-card-modern .service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-heading, #2d3748);
  transition: color 0.3s ease;
}

.service-card-modern:hover .service-title {
  color: var(--color-primary, #4361ee);
}

.service-card-modern .service-description-brief {
  color: var(--color-text, #4a5568);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link-wrapper {
  margin-top: auto;
}

.service-card-link {
  color: var(--color-primary, #4361ee);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-card-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.service-card-link:hover {
  color: var(--color-secondary, #3a0ca3);
}

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

/* Service Detail Modern */
.services-page .service-detail-modern {
  background-color: var(--color-bg-card, #ffffff);
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  position: relative;
  overflow: hidden; /* Ensures pseudo-elements stay within the card */
}

.service-detail-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary, #4361ee);
}

/* Service Header Wrapper - Full Width */
.service-header-wrapper {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
}

.service-brief {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-muted, #718096);
  max-width: 85%;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .service-deliverables-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .service-sidebar {
    margin-top: 1.5rem;
  }
  
  .service-header-wrapper {
    padding-bottom: 1rem;
  }
  
  .service-brief {
    max-width: 100%;
  }
}

.service-header {
  display: flex;
  align-items: center;
}

.service-header-icon-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary, linear-gradient(135deg, var(--primary-color, #4361ee), var(--primary-dark, #3a0ca3)));
  border-radius: 10px;
  margin-right: 1.25rem;
  flex-shrink: 0;
}

.service-header-icon-wrapper i {
  font-size: 1.5rem;
  color: #ffffff;
}

.service-main-content .service-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-heading, #2d3748);
  margin: 0;
}

.service-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text, #4a5568);
  margin-bottom: 1rem;
}

.service-deliverables-section {
  background-color: rgba(67, 97, 238, 0.03);
  border-radius: 8px;
  padding: 1.5rem;
}

.service-deliverables-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-heading, #2d3748);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.service-deliverables-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--color-primary, #4361ee);
}

.service-deliverables-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem 1.5rem;
}

.service-deliverables-list li {
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

.deliverable-icon {
  color: var(--color-primary, #4361ee);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Sidebar Styles */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.key-benefits-card {
  background-color: rgba(16, 185, 129, 0.05);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.key-benefits-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-heading, #2d3748);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.key-benefits-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--color-success, #10b981);
}

.key-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-benefits-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.benefit-icon {
  color: var(--color-success, #10b981);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}


.service-cta-card {
  margin-top: 1rem;
}

.btn-consultation {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Services Page Hero Section */
.services-hero-section {
  background: linear-gradient(135deg, var(--primary-dark, #3a0ca3) 0%, var(--primary-color, #4361ee) 100%);
  color: #ffffff;
  padding: 8rem 0 5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.services-hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.services-hero-section p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}
