/* Large Tablets & Laptops (<= 1200px) */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3.4rem;
  }

  .timeline {
    width: 96%;
  }

  .journey-card {
    width: 340px;
    padding: 24px;
  }

  .timeline-stop.left .journey-card {
    right: calc(50% + 70px);
  }

  .timeline-stop.right .journey-card {
    left: calc(50% + 70px);
  }

  .connector {
    width: 70px;
  }

  .journey-card h2 {
    font-size: 26px;
  }
}

/* Medium Tablets (<= 992px) */
@media (max-width: 992px) {
  .hero {
    min-height: 85vh;
    padding: 80px 24px 60px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.25;
  }

  .hero-content p {
    font-size: 1.05rem;
    max-width: 580px;
  }

  .main {
    margin: 40px auto 20px;
  }

  /* Reduce empty spacing on tablets */
  section div[style*="height: 150px;"] {
    height: 70px !important;
  }

  .timeline {
    width: 98%;
    padding: 20px 0;
  }

  .journey-card {
    width: 300px;
    padding: 20px;
  }

  .timeline-stop.left .journey-card {
    right: calc(50% + 60px);
  }

  .timeline-stop.right .journey-card {
    left: calc(50% + 60px);
  }

  .connector {
    width: 60px;
  }

  .journey-card h2 {
    font-size: 22px;
  }

  .journey-card p {
    font-size: 13px;
    margin-bottom: 12px;
  }
}

/* Small Tablets & Mobile Devices (<= 860px)
   Transforms timeline from 2-column alternating into a sleek
   single-column vertical roadmap with line on the left. */
@media (max-width: 860px) {
  /* Hero adjustments */
  .hero {
    min-height: 80vh;
    padding: 100px 20px 50px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.4rem;
    line-height: 1.25;
  }

  .hero-content p {
    font-size: 0.98rem;
    margin: 18px auto 28px;
    padding: 0 10px;
  }

  .badge {
    font-size: 0.82rem;
    padding: 6px 14px;
    margin-bottom: 18px;
  }

  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
  }

  .hero-buttons .btn {
    min-width: 140px;
    padding: 12px 26px;
    font-size: 0.95rem;
  }

  /* Highlights Section Header */
  section div[style*="height: 150px;"] {
    height: 40px !important;
  }

  .main {
    margin: 20px auto 25px;
    padding: 0 16px;
  }

  .main h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }

  .main p {
    font-size: 0.95rem;
    max-width: 90%;
    margin: 8px auto 0;
  }

  /* Single-Side Mobile Timeline Architecture */
  .timeline {
    width: 100%;
    max-width: 100%;
    padding: 15px 12px 40px;
    box-sizing: border-box;
  }

  /* Left-aligned vertical track */
  .timeline-track,
  .timeline-progress {
    left: 24px;
    transform: none;
    width: 3px;
  }

  .timeline-stop {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    margin-bottom: 45px;
    padding-left: 56px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
  }

  /* Left Node Dot */
  .stop-dot {
    left: 24px;
    top: 32px;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
  }

  .timeline-stop.reached .stop-dot {
    transform: translate(-50%, -50%) scale(1.15);
  }

  /* Horizontal Connector to Card */
  .connector {
    top: 32px;
    left: 24px !important;
    right: auto !important;
    width: 32px !important;
    height: 2px;
  }

  /* Cards are fully responsive and placed cleanly on the right */
  .journey-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
    padding: 22px 18px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 8px;
  }

  .timeline-stop.left .journey-card,
  .timeline-stop.right .journey-card {
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  .journey-card:hover,
  .timeline-stop.left .journey-card:hover,
  .timeline-stop.right .journey-card:hover {
    transform: translateY(-3px) !important;
  }

  .card-year {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  .journey-card h2 {
    font-size: 20px;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .journey-card p {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .journey-card img {
    max-height: 200px;
    border-radius: 6px;
    object-fit: cover;
  }
}

/* Standard Mobile Devices (<= 600px) */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  .stops{
      text-decoration:none;
      
  }

  .timeline-track,
  .timeline-progress {
    left: 18px;
  }

  .timeline-stop {
    padding-left: 46px;
    margin-bottom: 35px;
  }

  .stop-dot {
    left: 18px;
    width: 18px;
    height: 18px;
  }

  .connector {
    left: 18px !important;
    width: 28px !important;
  }

  .journey-card {
    padding: 18px 15px;
  }

  .journey-card h2 {
    font-size: 18px;
  }

  .journey-card p {
    font-size: 13px;
  }

  .journey-card img {
    max-height: 175px;
  }
}

/* Small Screens & Budget Devices (<= 380px) */
@media (max-width: 380px) {
  .hero {
    padding: 90px 14px 40px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .timeline-stop {
    padding-left: 38px;
  }

  .timeline-track,
  .timeline-progress {
    left: 14px;
  }

  .stop-dot {
    left: 14px;
    width: 16px;
    height: 16px;
  }

  .connector {
    left: 14px !important;
    width: 24px !important;
  }

  .journey-card {
    padding: 15px 12px;
  }

  .journey-card h2 {
    font-size: 16.5px;
  }

  .journey-card p {
    font-size: 12.5px;
  }
}
