/* Timeline layout fix for "Why Choose Us" section */

/* Main container styling */
.reasons-container {
  position: relative;
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 0 20px;
}

/* Timeline vertical line */
.reasons-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, #f4a1ad 5%, #f4a1ad 95%, transparent);
  z-index: 1;
}

/* Item styling */
.reason-item {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
  width: 100%;
}

/* Alternate left and right positioning */
.reason-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.reason-item:nth-child(even) {
  flex-direction: row;
}

/* Icon circle in center */
.reason-icon {
  width: 110px;
  height: 110px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 5px 15px rgba(244, 161, 173, 0.3);
  border: 8px solid #fbe5ea;
}

/* Animate icon on hover */
.reason-icon::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px dashed #f4a1ad;
  animation: rotate 30s linear infinite;
  opacity: 0.5;
}

.reason-icon i {
  font-size: 2rem;
  color: #b44354;
}

/* Content boxes styling */
.reason-content {
  background-color: #ffffff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  width: calc(50% - 80px);
  position: relative;
}

/* Arrow pointer for content boxes */
.reason-item:nth-child(odd) .reason-content::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%) rotate(45deg);
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  box-shadow: 3px -3px 5px rgba(0, 0, 0, 0.05);
}

.reason-item:nth-child(even) .reason-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%) rotate(45deg);
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  box-shadow: -3px 3px 5px rgba(0, 0, 0, 0.05);
}

.reason-content h3 {
  color: #b44354;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.reason-content p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Animation for spinning border */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
  .reason-icon {
    width: 100px;
    height: 100px;
  }
  
  .reason-content {
    width: calc(50% - 70px);
    padding: 20px 25px;
  }
}

@media screen and (max-width: 768px) {
  .reasons-container::before {
    left: 45px;
    transform: none;
  }

  .reason-item, 
  .reason-item:nth-child(odd),
  .reason-item:nth-child(even) {
    flex-direction: row;
  }

  .reason-icon {
    width: 90px;
    height: 90px;
    left: 45px;
    transform: translateX(-50%);
  }

  .reason-content {
    width: calc(100% - 100px);
    margin-left: 80px;
  }

  .reason-item:nth-child(odd) .reason-content::before,
  .reason-item:nth-child(even) .reason-content::before {
    left: -10px;
    right: auto;
    top: 30px;
  }
}

@media screen and (max-width: 576px) {
  .reasons-container::before {
    display: none;
  }

  .reason-item, 
  .reason-item:nth-child(odd),
  .reason-item:nth-child(even) {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
  }

  .reason-icon {
    position: relative;
    left: auto;
    transform: none;
    margin-bottom: 20px;
  }

  .reason-content {
    width: 100%;
    margin-left: 0;
  }

  .reason-item:nth-child(odd) .reason-content::before,
  .reason-item:nth-child(even) .reason-content::before {
    display: none;
  }
} 