/* ============================================== */
/* HOVER MENU STYLES (Applies to Desktop/lg screens and up) */
/* ============================================== */

@media (min-width: 992px) {

    /* 1. Primary Dropdown (Mega Menu) on Hover */
    .navbar-nav .dropdown:hover>.dropdown-menu {
        /* Makes the dropdown menu visible when the list item is hovered */
        display: block;

        /* Ensures the dropdown opens correctly in Bootstrap 5 */
        margin-top: 0;
    }

    /* 2. Mega Menu Sub-menus (Columns of links) on Hover */
    /* If you have nested dropdowns (which are usually discouraged inside a mega menu
       but if you need them to pop out) this covers that. */
    .dropdown-menu .dropdown:hover>.dropdown-menu {
        display: block;
        margin-left: 0;
        /* Reset margins */
    }

    /* 3. Dropdown Menu Animation/Appearance Fix */
    /* This ensures a smoother transition when the menu appears on hover. */
    .dropdown-menu {
        /* Hide by default (Bootstrap does this, but we explicitly use hover to show) */
        display: none;

        /* Optional: Add a subtle transition for appearance */
        transition: visibility 0.2s, opacity 0.2s linear;
        opacity: 0;
        visibility: hidden;
    }

    .dropdown:hover>.dropdown-menu {
        opacity: 1;
        visibility: visible;
    }

}

/* [NOTE: If you have sub-menus (nested dropdowns) inside the Mega Menu columns, 
   you might need to adjust their positioning (e.g., using position: absolute 
   and setting left/right properties) to make them fly out sideways.] */
/* -------------------- */
/* MOBILE (max-width: 768px) */
/* -------------------- */
@media (max-width: 768px) {
    .header-top-one-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .right {
        width: 100%;
    }

    .btn-gradient {
        width: 100%;
        justify-content: center;
    }

    .timeline-steps {
        justify-content: flex-start;
        padding-left: 0;
    }

    .timeline-item {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0;
    }

    .timeline-card {
        padding: 2rem 1rem !important;
    }
     /* Universe container */
  .universe {
    padding: 0 16px;   /* mobile side spacing */
  }

  /* All cards */
  .card-node {
    position: relative;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    transform: none !important;

    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px;
    box-sizing: border-box;
  }

  /* Wealth card specific fix */
  .card-node.wealth {
    margin-bottom: 0;
  }
}

/* -------------------- */
/* TABLET & DESKTOP ADJUSTMENTS */
/* -------------------- */
@media (min-width: 768px) {
    .timeline-steps::before {
        display: block;
        /* Show timeline line on larger screens */
    }

    .timeline-item {
        padding: 0;
    }
      .step-container::after {
    content: '';
    position: absolute;
    top: 65px; /* Center of the 80px circle */
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, #0d6efd96 50%, #0d6efd96 50%);
    z-index: 1;
  }

}
/* -------------------- */
/* MEDIUM SCREENS (max-width: 991.98px) */
/* -------------------- */
@media (max-width: 991.98px) {
    .feature-cards-container .col-md-4 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .feature-cards-container {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    }
    
}

/* -------------------- */
/* EXTRA SMALL SCREENS (max-width: 575.98px) */
/* -------------------- */
@media (max-width: 575.98px) {
    .heading-sec h2, .blue-heading h2 {
        font-size: 25px !important;
        line-height: 35px !important;
    }

    .heading-sec p {
        font-size: 16px;
    }

    .sub-title {
        padding: 8px 16px;
        font-size: 12px;
    }
    .market-section{
        padding: 20px;
    }
    .hero-banner-section h1 {
    font-size: 40px;
    line-height: 38px;
}
.support-hero-section .hero-subtitle, .support-hero-section .hero-title{
  font-size: 35px;
}
.timeline-header{
    font-size: 25px;
}
.cta-card .btn-link{
        font-size: 16px;
}
  .wealth-club {
    margin: 16px;
    padding: 28px 20px;
  }

  .wealth-club__title {
    font-size: 22px;
    line-height: 1.3;
  }

  .wealth-club__subtitle {
    font-size: 14px;
  }

  .wealth-club__btn-primary,
  .wealth-club__btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    padding: 12px;
    white-space: nowrap;
  }

  .wealth-club__back-btn {
    top: 15px;
    left: 15px;
    font-size: 14px;
    padding: 6px 10px;
  }
.policy-tab .d-flex.flex-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .policy-tab .policy-btn {
    display: none;
  }
   /* Stack heading & breadcrumb */
  .policy-header {
    flex-direction: column;
    text-align: center;
  }

  .policy-header h4 {
    margin-bottom: 8px;
  }

  .policy-header .breadcrumb {
    justify-content: center;
  }
    .policy-header {
    margin-bottom: 0 !important;
  }
  .future-hero-title
 {
    font-weight: 600;
    font-size: 40px;
    line-height: 45px;
}
.eduzone-sec .hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 52px;
}
  .circle-wrapper {
    transform: scale(0.8);
  }
    .financial-hub .circle-wrapper {
    transform: scale(0.8);
    animation-duration: 65s;
  }
  .financial-hub-title .title {
    font-size: 25px;
}
.artical-sec .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .artical-sec .icon-box svg {
    width: 22px;
    height: 22px;
  }
    .artical-sec .report-card .small {
    flex-wrap: wrap;
    gap: 2px 6px !important;
    font-size: 12px;
  }
  .artical-sec .btn-download {
    width: 100%;
    /* justify-content: center; */
    /* padding: 10px 16px; */
    font-size: 14px;
  }
    .artical-sec .report-card .d-flex {
    flex-direction: column;
  }

  .artical-sec .report-card .flex-shrink-0 {
    margin-bottom: 16px;
  }
}
