/**
 * GVA PROGRAMS LIST - CSS EXTERNE
 * 3 Styles: Elegant Stepper, Iconic Flow, Floating Dots
 */

/* ===================================
   VARIABLES
   =================================== */
.gva-programs-list {
   --primary-green: #27ae60;
   --dark-blue: #0f172a;
   --light-border: #e2e8f0;
   --text-muted: #475569;
}

/* ===================================
   STYLE 1: ELEGANT STEPPER
   =================================== */
.stepper-wrapper {
   max-width: 850px;
   margin: 0 auto;
}

.step-item {
   display: flex;
   gap: 30px;
   margin-bottom: 0;
}

.step-left {
   display: flex;
   flex-direction: column;
   align-items: center;
}

.step-number {
   width: 40px;
   height: 40px;
   background: var(--primary-green);
   color: white;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   flex-shrink: 0;
   z-index: 2;
   font-size: 0.9rem;
}

.step-line {
   width: 2px;
   background: var(--light-border);
   flex-grow: 1;
   margin-top: 10px;
}

.step-item:last-child .step-line {
   display: none;
}

.step-content {
   padding-bottom: 50px;
}

.step-content h5 {
   font-weight: 700;
   margin-bottom: 10px;
   color: var(--dark-blue);
   font-size: 1.1rem;
}

.step-content p {
   color: var(--text-muted);
   margin-bottom: 0;
   line-height: 1.6;
}

/* ===================================
   STYLE 2: ICONIC FLOW
   =================================== */
.flow-wrapper {
   max-width: 850px;
   margin: 0 auto;
   border-left: 1px solid var(--light-border);
   padding-left: 40px;
   position: relative;
}

.flow-item {
   position: relative;
   margin-bottom: 50px;
}

.flow-item:last-child {
   margin-bottom: 0;
}

.flow-icon {
   position: absolute;
   left: -61px;
   top: 0;
   width: 40px;
   height: 40px;
   background: white;
   border: 1px solid var(--light-border);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--primary-green);
   transition: all 0.3s ease;
   font-size: 1rem;
}

.flow-item:hover .flow-icon {
   background: var(--primary-green);
   color: white;
   border-color: var(--primary-green);
   transform: scale(1.1);
}

.flow-title {
   font-weight: 800;
   text-transform: uppercase;
   font-size: 0.75rem;
   letter-spacing: 1px;
   color: var(--primary-green);
   margin-bottom: 8px;
   display: block;
}

.flow-item p {
   color: var(--text-muted);
   margin: 0;
   line-height: 1.6;
}

/* ===================================
   STYLE 3: FLOATING DOTS
   =================================== */
.dots-wrapper {
   max-width: 850px;
   margin: 0 auto;
   position: relative;
}

.dots-wrapper::before {
   content: "";
   position: absolute;
   left: 7px;
   top: 10px;
   bottom: 10px;
   width: 1px;
   background: linear-gradient(to bottom, var(--primary-green), transparent);
}

.dot-item {
   padding-left: 40px;
   position: relative;
   margin-bottom: 60px;
}

.dot-item:last-child {
   margin-bottom: 0;
}

.dot-point {
   position: absolute;
   left: 0;
   top: 8px;
   width: 15px;
   height: 15px;
   background: var(--primary-green);
   border-radius: 50%;
   box-shadow: 0 0 0 5px rgba(39, 174, 96, 0.1);
   animation: pulse 2s infinite;
}

.dot-item p {
   font-size: 1.1rem;
   line-height: 1.7;
   color: var(--text-muted);
   margin: 0;
}

.dot-item p strong {
   color: var(--dark-blue);
   font-weight: 700;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes pulse {
   0%, 100% {
      box-shadow: 0 0 0 5px rgba(39, 174, 96, 0.1);
   }
   50% {
      box-shadow: 0 0 0 10px rgba(39, 174, 96, 0.05);
   }
}

.step-item,
.flow-item,
.dot-item {
   animation: fadeInUp 0.6s ease-out;
   animation-fill-mode: both;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
.step-item:nth-child(4) { animation-delay: 0.4s; }
.step-item:nth-child(5) { animation-delay: 0.5s; }
.step-item:nth-child(6) { animation-delay: 0.6s; }

.flow-item:nth-child(1) { animation-delay: 0.1s; }
.flow-item:nth-child(2) { animation-delay: 0.2s; }
.flow-item:nth-child(3) { animation-delay: 0.3s; }
.flow-item:nth-child(4) { animation-delay: 0.4s; }
.flow-item:nth-child(5) { animation-delay: 0.5s; }
.flow-item:nth-child(6) { animation-delay: 0.6s; }

.dot-item:nth-child(1) { animation-delay: 0.1s; }
.dot-item:nth-child(2) { animation-delay: 0.2s; }
.dot-item:nth-child(3) { animation-delay: 0.3s; }
.dot-item:nth-child(4) { animation-delay: 0.4s; }
.dot-item:nth-child(5) { animation-delay: 0.5s; }
.dot-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
   .stepper-wrapper,
   .flow-wrapper,
   .dots-wrapper {
      padding: 0 20px;
   }
   
   .flow-wrapper {
      margin-left: 20px;
   }
   
   .step-item {
      gap: 20px;
   }
   
   .step-content {
      padding-bottom: 30px;
   }
   
   .flow-item {
      margin-bottom: 35px;
   }
   
   .dot-item {
      margin-bottom: 40px;
   }
}

@media (max-width: 576px) {
   .step-number {
      width: 35px;
      height: 35px;
      font-size: 0.8rem;
   }
   
   .flow-icon {
      width: 35px;
      height: 35px;
      left: -58px;
      font-size: 0.9rem;
   }
   
   .flow-wrapper {
      padding-left: 35px;
   }
   
   .dot-point {
      width: 12px;
      height: 12px;
   }
   
   .dot-item p {
      font-size: 1rem;
   }
}

/* ============================================
   rtl SUPPORT
   ============================================ */
   html[lang="ar"] .flow-icon {
    position: absolute;
    right: -54px;
    left: 0;
   }
html[lang="ar"] .flow-wrapper {
    border-right: 1px solid var(--light-border);
    padding-right: 35px;
      border-left: 0;
      padding-left: 0;
}