/* About Two Speciality Section Styles */
.about-two-speciality {
  padding: 80px 0;
  position: relative;
  z-index: 5;
  overflow: visible;
}
.about-two-speciality .container {
  max-width: 1280px;
  margin: 0 auto;
}
.about-two-speciality .speciality-content {
  padding-right: 30px;
}
.about-two-speciality .subheading {
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c4eff;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.about-two-speciality .speciality-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e1e2d;
}
.about-two-speciality .speciality-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #5f6b8a;
}
.about-two-speciality .features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.about-two-speciality .feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about-two-speciality .feature .icon {
  color: #6c4eff;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 4px;
}
.about-two-speciality .feature h4 {
  margin: 0 0 8px;
  font-weight: 700;
  color: #1e1e2d;
}
.about-two-speciality .feature p {
  margin: 0;
  color: #5f6b8a;
  font-size: 0.95rem;
}
.about-two-speciality .cta-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.about-two-speciality .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
}
.about-two-speciality .btn.gradient {
  background: linear-gradient(to right, #6c4eff, #ff4ecd);
  color: white;
}
.about-two-speciality .btn.gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 78, 255, 0.3);
  color: white;
  text-decoration: none;
}
.about-two-speciality .btn.secondary {
  color: #1e1e2d;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}
.about-two-speciality .btn.secondary:hover {
  background: #e9ecef;
  color: #1e1e2d;
  text-decoration: none;
}
.about-two-speciality .speciality-cards {
  padding-left: 0;
  position: relative;
  min-height: 480px;
  overflow: hidden;
  z-index: 10;
  width: 100%;
  margin-top: 20px;
}
.about-two-speciality .speciality-cards .row {
  position: relative;
  height: 480px;
  z-index: 10;
}
.about-two-speciality .speciality-cards .col-md-6 {
  position: absolute;
  width: 240px;
  z-index: 10;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none;
}
/* First card - top left (close to center) */
.about-two-speciality .speciality-cards .col-md-6:nth-child(1) {
  top: 20px;
  left: calc(50% - 250px);
}
/* Second card - top right (close to center) */
.about-two-speciality .speciality-cards .col-md-6:nth-child(2) {
  top: 20px;
  left: calc(50% + 20px);
}
/* Third card - bottom center */
.about-two-speciality .speciality-cards .col-md-6:nth-child(3) {
  top: 260px;
  left: calc(50% - 120px);
}
.about-two-speciality .card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(44, 62, 80, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  border: none;
  height: 220px;
  width: 100%;
  z-index: 15;
  position: relative;
}
.about-two-speciality .card:hover {
  box-shadow: 0 25px 50px rgba(44, 62, 80, 0.15);
  transform: translateY(-3px);
}
.about-two-speciality .card h3 {
  color: #6c4eff;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  font-family: 'Inter', sans-serif;
}
.about-two-speciality .card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 12px 0;
  color: #1e1e2d;
}
.about-two-speciality .card hr {
  border: none;
  border-top: 1px solid #e0e6f1;
  margin: 16px 0;
}
.about-two-speciality .card p {
  color: #5f6b8a;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 991px) {
  .about-two-speciality .container {
    flex-direction: column;
    gap: 40px;
  }
  .about-two-speciality .speciality-content {
    padding-right: 0;
    margin-bottom: 40px;
  }
  .about-two-speciality .speciality-cards {
    padding-left: 0;
    min-height: 405px;
  }
  .about-two-speciality .speciality-cards .col-md-6 {
    width: 200px;
  }
  /* Adjust triangle for smaller screens - keep cards close to center */
  .about-two-speciality .speciality-cards .col-md-6:nth-child(1) {
    top: 15px;
    left: calc(50% - 210px);
  }
  .about-two-speciality .speciality-cards .col-md-6:nth-child(2) {
    top: 15px;
    left: calc(50% + 20px);
  }
  .about-two-speciality .speciality-cards .col-md-6:nth-child(3) {
    top: 210px;
    left: calc(50% - 100px);
  }
  
  .about-two-speciality .card { /* Added this rule for responsive card height */
    height: 190px;
  }

  .about-two-speciality .speciality-content h2 {
    font-size: 2rem;
  }
}
@media (max-width: 767px) {
  .about-two-speciality {
    padding: 60px 0;
  }
  
  .about-two-speciality .speciality-content h2 {
    font-size: 1.75rem;
  }
  
  .about-two-speciality .cta-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .about-two-speciality .btn {
    width: 100%;
    justify-content: center;
  }
  
  .about-two-speciality .card {
    padding: 20px;
  }
  
  .about-two-speciality .card h3 {
    font-size: 1.75rem;
  }
  
  /* Stack cards vertically on mobile */
  .about-two-speciality .speciality-cards {
    min-height: auto;
  }
  
  .about-two-speciality .speciality-cards .col-md-6 {
    position: relative;
    width: 100%;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-bottom: 20px;
  }
}
