
/* ======================
   How It Works Section
====================== */


/* Responsive breadcrumbs */

#how-it-works h2 {
    letter-spacing: -0.02em;
    color: var(--text-black);
  }
  #how-it-works .text-grey {
    color: var(--text-grey);
  }
  
  .hiw-stat  { padding: 1rem 0; }
  .hiw-value { line-height: 1.1; }
  .hiw-label { font-size: 1.02rem; }
  
  
  /* ======================
     AI Market Scanning / Steps
  ====================== */
  
  #ai-market-scanning {
    background: var(--text-white);
  }
  
  /* Equal height columns on desktop */
  #ai-market-scanning .row.align-items-stretch > [class*="col-"] {
    display: flex;
  }
  
  /* Step card */
  .ai-step-card {
    background: var(--text-white);
    border-radius: 1.5rem;
    border: 1px solid var(--border-soft-2);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  /* Icon */
  .ai-step-icon {
    width: 72px;
    height: 72px;
    border-radius: 1.4rem;
    background: #09ff811a;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ai-step-icon img {
    width: 34px;
    height: 34px;
  }
  
  /* Stat pills */
  .ai-stat-pill {
    background: #f5f9ff;
    border-radius: 0.9rem;
    padding: 0.9rem 0.7rem;
    font-size: 0.98rem;
    border: 1px solid #e0ecff;
  }
  
  /* Image wrapper card */
  .ai-step-image-wrapper {
    background: var(--text-white);
    border-radius: 1.5rem;
    border: 1px solid var(--border-soft-2);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    height: 100%;
    min-height: 100%;
  }
  .ai-step-image-wrapper img.object-cover {
    object-fit: cover;
  }
  
  /* Image wrapper full: enforce object-fit cover */
  .ai-step-image-wrapper-full img.object-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* Corner step number badge */
  .ai-step-number-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--light-blue);
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
    border-top-right-radius: 15px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 0;
  }
  
  
  
  .ai-video-section {
    background: #f8f9fa;
  }
  
  .max-w-800 {
    max-width: 800px;
  }
  
  /* Video Demo Card */
  .video-demo-card {
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }
  
  /* Video Placeholder with Gradient */
  .video-placeholder {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  
  .video-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
  }
  
  .video-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .video-content p {
    font-size: 1.1rem;
    opacity: 0.9;
  }
  
  /* Decorative Circle */
  .video-decoration-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
  
  /* Video Play Button */
  .btn-video-play {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .btn-video-play:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
  }
  
  .btn-video-play svg {
    width: 20px;
    height: 20px;
  }
  
  /* Stats Cards */
  
  .stat-value {
    font-size: 1.5rem;
    color: #10b981 !important;
  }
  
  .stat-label {
    font-size: 0.95rem;
    color: #6c757d;
  }
  
  .technology-section {
    background: #f8f9fa;
  }
  
  /* Technology Cards */
  .tech-card {
    background: #fff;
    padding: 28px 16px;
    border-radius: 12px;

    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  }
  
  .tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
  }
  
  /* Icon Box */
  .tech-icon-box {
    width: 64px;
    height: 64px;
    background: #009444;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
  }
  
  .tech-icon-box svg {
    width: 32px;
    height: 32px;
  }
  
  /* Label */
  .tech-label {
    font-size: 0.95rem;
    color: #111827;
    font-weight: 600;
  }
  
  .ai-invest-cta-section {
    background: #f8f9fa;
  }
  
  .ai-invest-cta-card {
    border: 1px solid #e4efe6;
    border-radius: 16px;
    padding: 60px 30px;
    max-width: 950px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.03);
  }
  
  .ai-invest-cta-card h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #151b26;
  }
  
  .ai-invest-cta-card p {
    font-size: 1.4rem;
    color: #677286;
  }
  
  .btn-success {
    background: #22c55e;
    border: none;
    color: #fff;
    transition: background 0.2s;
  }
  
  .btn-success:hover {
    background: #16a34a;
  }
  
  .btn-outline-secondary {
    border: 1.7px solid #e4efe6;
    color: #151b26;
    background: #fff;
    transition: border-color 0.18s;
  }
  
  .btn-outline-secondary:hover {
    border-color: #22c55e;
    color: #16a34a;
  }

  

/* AI Process Flow specific styles */

/* AI Process Flow base (already have card styles) */
.ai-flow-card {
    background: var(--text-white);
    border-radius: 1.25rem;
    border: 1px solid var(--border-soft-2);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    padding: 2.4rem 1.8rem 2.6rem;
    position: relative;
  }
  
  /* Number circle */
  .ai-flow-step-circle {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: var(--dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }
  
  /* Bottom pill */
  .ai-flow-pill {
    margin-top: 2rem;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    background: rgba(39, 195, 115, 0.1);
  }
  
  /* Arrow between cards */
  .ai-flow-arrow {
    display: inline-block;
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--dark-green);
    right: -10px;
    top: 50%;
  }
  
  /* Arrow head */
  .ai-flow-arrow::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--dark-green);
  }
  
  /* checklist */
.ai-step-list {
    list-style: none;        /* remove default bullets */
    padding-left: 0;
    margin: 0 0 1.5rem;
  }
  
  .ai-step-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
  }
  
  .ai-step-list li:last-child {
    margin-bottom: 0;
  }
  
  .ai-check-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
  }
  
  /* bottom stats */
  .ai-stat-pill {
    background-color: #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.8rem 0.6rem;
  }
  
  .ai-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;          /* green; ensure visible on light bg */
  }
  
  .ai-stat-icon svg {
    width: 32px;
    height: 32px;
  }
  
  
  
  
  

  /* === Wrapper & layout === */
.allocation-flow-wrapper {
  position: relative;
  width: 100%;
}

.allocation-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.75rem;
  padding: 40px 0px;          /* space above/below cards */
  margin: 0 auto;
}

/* === Cards === */
.allocation-card {
  position: relative;
  z-index: 1;               /* above line/dots */
  flex: 0 1 240px;          /* control card width */
  max-width: 210px;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.4rem 1.25rem 1.3rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.allocation-icon {
  margin-bottom: 0.9rem;
}

.allocation-icon img {
  max-width: 56px;
}

.allocation-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.allocation-card p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6b7280;
  margin-bottom: 0;
}

/* === Dashed horizontal connector === */
.allocation-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 49%;                 /* vertical position of line */
  z-index: 0;
  pointer-events: none;
}

.allocation-line-inner {
  position: relative;
  margin: 0 auto;
  max-width: 800px;         /* roughly matches 4 cards span */
  border-top: 3px dashed #2e76c7;
}

/* === arrows between cards === */
.allocation-node {
    position: relative;
    top: 50%;
    right: 6px;
    transform: translateY(120%);
    width: 70px;
    height: 46px;
    background: transparent url(../image/ai-arrow.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}



#videoModal .modal-content {
  background: #000;
  border-radius: 24px;
  padding: 0 !important;
  height: auto;
  max-height: 90vh;
  overflow: hidden;
}

#videoModal video {
  width: 100% !important;
  height: 70vh !important;
  object-fit: contain;
  background: #000;
}

#videoModal .btn-close-white {
    right: 0;
}

