.services-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.services-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.services-section .section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.services-section .nav-buttons {
  display: flex;
  gap: 0.75rem;
}

.services-section .nav-buttons button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  font-size: 1.25rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.services-section .nav-buttons button:hover {
  background-color: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
}

.services-section .cards-container {
  display: flex;
  gap: 1.25rem;
  height: 440px;
  width: 100%;
}

.services-section .service-card {
  flex: 1;
  background-color: #f1f5f9;
  border-radius: 28px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.services-section .service-card:nth-child(even) {
  background-color: #faf5f8;
}

.services-section .card-icon {
  height: 80px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-section .card-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.services-section .service-card hr{
    background-color: #000;
    width: 100%;
    margin-bottom: 20px;
}
.services-section .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.services-section .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  letter-spacing: 0.5px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  margin: 0;
}

.services-section .card-details {
	height:100%;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
  width: 100%;
}

/* Active State */
.services-section .service-card.active {
  flex: 3.5;
  background-color: #ffffff;
  align-items: flex-start;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
}

.services-section .service-card.active .card-content {
  align-items: flex-start;
}

.services-section .service-card.active .card-title {
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.services-section .service-card.active .card-details {
  opacity: 1;
  max-height: unset;
  transition: opacity 0.4s ease 0.2s;
}

.services-section .card-desc {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.services-section .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.services-section .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1e293b;
  font-weight: 500;
  font-size: 0.95rem;
}

.services-section .check-icon {
  color: #8b5cf6;
  font-weight: bold;
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 768px) {
  .services-section .cards-container {
    flex-direction: column;
    height: auto;
  }
  
  .services-section .service-card {
    flex: none;
    height: 100px;
    flex-direction: row;
    padding: 1.5rem;
  }
  
  .services-section .card-icon {
    margin-bottom: 0;
    margin-right: 1.5rem;
  }
  
  .services-section .card-title {
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
  }

  .services-section .service-card.active {
    height: auto;
    flex-direction: column;
  }
	.services-section .card-content {
		justify-content: center;
	}
	
	.services-section .service-card:not(:active) hr {
		background-color: #000;
		width: 1%;
		height: 50%;
		margin-bottom: 0px;
		margin-left: 20px;
	}
}

/* Fix for Elementor Icon Library icons inside the card */
.services-section .card-icon i,
.services-section .card-icon svg {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #1e293b;
  fill: #1e293b;
}

/* Action Button Base Styling */
.services-section .card-action-wrap {
  margin-top: 1.5rem;
  display: flex;
}

.services-section .card-action-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Ensure the button never triggers accordion expansion when clicked */
.services-section .card-action-btn {
  position: relative;
  z-index: 5;
}