
/**roadmap css**/

.roadmap-container {
  position: relative;
  padding: 20px 20px 160px;
  max-width: 1800px;
  margin: 0 auto;
  height: 2550px;
}

.timeline-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  top: 255px;
  height: 2085px;
  z-index: 1;
  background-image: linear-gradient(to bottom, #e2e8f0 50%, transparent 50%);
  background-size: 4px 10px;
}

.timeline-progress {
  position: absolute;
  width: 100%;  
  background-image: linear-gradient(to bottom, #3e3e3e 50%, transparent 50%);
  background-size: 4px 10px;
  height: 0;
  opacity: 0;
  transition: height 0.3s ease, opacity 0.3s ease;
}

.timeline-progress.visible {
  opacity: 1;
}

.timeline-indicator {
  position: absolute;
  left: -5px;
  width: 14px;
  height: 14px;
  background: #3e3e3e;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, top 0.3s ease;
}

.timeline-indicator.visible {
  opacity: 1;
}

.timeline-points-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 40px;
  top: 0;
  z-index: 3;
}

.timeline-point {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 4;
}

.timeline-point.active {
    background: #f5c961;
  color: white;
}

.timeline-point:nth-child(1) { top: 220px; }
.timeline-point:nth-child(2) { top: 639px; }
.timeline-point:nth-child(3) { top: 1065px; }
.timeline-point:nth-child(4) { top: 1500px; }
.timeline-point:nth-child(5) {top: 1935px;}
.timeline-point:nth-child(6) {top: 2345px;}

.roadmap-item {
  display: flex;
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.roadmap-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.roadmap-item[data-step="1"] { top: 30px; }
.roadmap-item[data-step="2"] { top: 450px; }
.roadmap-item[data-step="3"] { top: 870px; }
.roadmap-item[data-step="4"] { top: 1290px; }
.roadmap-item[data-step="5"] { top: 1780px; }
.roadmap-item[data-step="6"] { top: 2160px; }

.content-side {
  width: 47%;
  padding: 30px;
  justify-content: center;
  display: flex;
  align-items: center;
}

.image-side {
  width: 48%;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.content-box {
  background: #f6f6f66b;
  padding: 30px;
  border: 1px solid #efefefef;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.timeline-image {
  /* width: 100%; */
  max-width: 550px;
}

.timeline-image:hover {
  transform: scale(1.02);
}

.content-title {
  color: #2d3748;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 600;
}

.content-text {
  color: #718096;
  font-size: 16px;
  line-height: 1.6;
}

.page-title {
  text-align: center;
  color: #2d3748;
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 700;
}
@media (max-width: 1200px) {
   .lg-padding-0px-bottom {
  padding-bottom:0px!important;
 }
}
/* Mobile responsiveness */
@media (max-width: 1024px) {
  .content-box
  {
    padding:15px;
  }
}

@media (max-width: 920px) {
  /* Container adjustments */
  .roadmap-container {
    position: relative;
    height: auto !important;
    min-height: 600px;
    padding:0 15px 0px 40px; /* More left padding for indicators */
    margin: 15px 0 0 0;
    width: 100%;
  }
  
  /* Fix the timeline wrapper position and styling */
  .timeline-wrapper {
    display: block;
    position: absolute;
    left: 9px; /* Align with indicator center */
    transform: none;
    width: 2px;height:3800px;
    top: 25px; /* Start further down */
    z-index: 1;
    background-image: linear-gradient(to bottom, #4ab271 50%, transparent 50%) !important;
    background-size: 2px 8px !important;
  }
  
  /* Fix the progress indicator */
  .timeline-progress {
    background-image: linear-gradient(to bottom, #3e3e3e 50%, transparent 50%) !important;
    background-size: 2px 8px !important;
    height: 100% !important; /* Show full progress in mobile */
    opacity: 1 !important;
  }
  
  /* Hide the circle indicator that shows on desktop */
  .timeline-indicator {
    display: none;
  }
  
  /* Hide the desktop timeline points container */
  .timeline-points-container {
    display: none;
  }
  
  /* Adjust roadmap items */
  .roadmap-item {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px; /* Increased spacing between items */
    padding: 0;
    width: 100%;
    top: auto !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none;
    background: transparent;
  }
  
  /* Properly style the numbered indicators */
  .roadmap-item::before {
    content: attr(data-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #f5c961;
    border-radius: 50%;
    position: absolute;
    left: -41px;
    top: 10px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Title styling for mobile */
  .roadmap-item h3 {
    padding-left: 0;
    position: relative;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
  }
  
  /* Images for mobile */
  .image-side {
    width: 100%;
    padding: 0;
    margin: 8px 0;
    height: auto;
    order: 2;
  }
  
  .timeline-image {
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    height: auto;
    object-fit: cover;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07); */
  }
  
  /* Content side for mobile */
  .content-side {
    width: 100%;
    padding: 0;
    margin: 0;
    order: 1;
  }
  
  /* Content box adjustments */
  .content-box {
    background: #eeeeeebf;
    padding: 10px;
    box-shadow: none;
    border-radius: 9px;
    width: 100%;
    margin-bottom: 17px;
  }
  
  /* Paragraph spacing */
  .content-box p {
    padding-left: 0;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #4a5568;
  }
  
  /* Section title adjustments */
  #down-section h3.h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  
  /* Add "Why Mentors Love GridPolaris" subtitle */
  #down-section::after {
    content: "";
    display: block;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-top: 20px;
    margin-bottom: 15px;
    width: 100%;
  }
  
  /* Reset any alternating layouts */
  .roadmap-item:nth-child(odd) .content-side,
  .roadmap-item:nth-child(even) .content-side,
  .roadmap-item:nth-child(odd) .image-side,
  .roadmap-item:nth-child(even) .image-side {
    width: 100%;
    padding: 0;
  }
  
  /* Animation overrides */
  [data-anime] {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Ensure all items are visible */
  .roadmap-item {
    display: block !important;
  }
  
  /* Ensure images don't scale on hover */
  .timeline-image:hover {
    transform: none;
  }
  
  /* First item spacing */
  .roadmap-item:first-child {
    padding-top: 10px;
  }
  
  /* Ensure all indicators are visible */
  .roadmap-item[data-step="1"]::before,
  .roadmap-item[data-step="2"]::before,
  .roadmap-item[data-step="3"]::before,
  .roadmap-item[data-step="4"]::before {
    display: flex !important;
  }
  .image-side .w-md-90{
    width: 60%!important;
     margin: 0 auto 0 0;
  }
 
}
@media (max-width: 768px){
.md-ms-auto{
  margin: 0 auto 0 0;

  }
}
@media (max-width: 767px){
   .image-side .w-sm-100{
    width: 100%!important;
  }
}
.float-right{
  float: right;
}