/* Improved styling for ordered lists */
.stats-icon {
	margin-bottom: 1rem;
}
.stats-icon i {
    font-size: 2.5rem;
}

.loans-list {
    padding: 0;
    margin: 20px;
    display: flex;
    flex-wrap: wrap;
	list-style: none;
    column-count: 3; /* Divides content into 3 columns */
    column-gap: 20px; /* Adds 20px space between columns */
    row-gap: 14px;
  }

  .loans-list li {
    position: relative;
    padding-left: 30px;
    display: inline-block; /* desktop inline layout */
    max-width: 1080px;      /* adjust if needed */
    line-height: 1.25em;
	flex-basis: 25%; /* Adjust for desired column width and gap */
	margin-right: 2%; /* Optional: create a gap between columns */
  }

  .loans-list li:last-child {
    position: relative;
    padding-left: 30px;
    display: inline-block; /* desktop inline layout */
    max-width: 1080px;      /* adjust if needed */
    line-height: 1.25em;
	flex-basis: 100%; /* Adjust for desired column width and gap */
	margin-right: 0; /* Optional: create a gap between columns */
  }

  .loans-list li::before {
    content: "";
    width: 10px;   /* bullet width */
    height: 10px;  /* bullet height */
    background: #004B7C;
    position: absolute;
    left: 0;
    top: 25%;   /* aligns bullet vertically for multi-line text */
  }

  /* ---------------------------------
     MOBILE: one item per line
     --------------------------------- */
  @media (max-width: 600px) {
    .loans-list {
      flex-direction: column;
      row-gap: 10px;
    }

    .loans-list li {
      display: block;    /* one per line */
      width: 100%;
      line-height: 1.5em;
    }

    .loans-list li::before {
      top: 0.4em;            /* align bullet to top on mobile */
      transform: none;
    }
  }

@media (max-width: 480px) {
	.loans-list li.last::before {
    content: "";
    width: 10px;             /* <-- Bullet width */
    height: 10px;            /* <-- Bullet height */
    background: #004B7C;        /* Bullet color */
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0.55em;
    transform: translateY(-50%); /* Vertically center bullet */
  }
}

/* Different color for social categories */
/*h2.greensub-header + ol + h2 + ol li::before {
  background-color: #4d6e9d;
}*/
	
/* Quick Access / Featured Section */
    .featured-section {
      background-color: #f9fafb; /* or #ffffff */
      padding: 3rem 0;
    }
    .featured-container {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
      margin-top: 2rem;
    }
    .featured-card {
      flex: 1 1 300px;
      background-color: #ffffff;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-md);
      padding: 2rem;
      text-align: center;
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .featured-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
    }
    .featured-icon {
      font-size: 2rem;
      color: var(--primary);
      margin-bottom: 1rem;
    }
    .featured-card-title {
      font-size: var(--fs-lg);
      margin-bottom: 1rem;
      color: var(--primary-dark);
    }
    .featured-card-text {
      font-size: var(--fs-base);
      color: var(--text-secondary);
      margin-bottom: 1.5rem;
    }
    .featured-card .btn {
      font-size: var(--fs-base);
      padding: 0.5rem 1.5rem;
    }
    @media (max-width: 991px) {
      .featured-container {
        flex-direction: column;
        align-items: center;
      }
      .featured-card {
        max-width: 500px;
        width: 100%;
      }
    }

/* ===================================================
       AOS (Animate on Scroll) OVERRIDES
       =================================================== */
    [data-aos] {
      opacity: 0;
      transition-property: opacity, transform;
    }
    [data-aos="fade-up"] {
      transform: translateY(50px);
    }
    [data-aos="fade-down"] {
      transform: translateY(-50px);
    }
    [data-aos="fade-right"] {
      transform: translateX(-50px);
    }
    [data-aos="fade-left"] {
      transform: translateX(50px);
    }
    [data-aos].aos-animate {
      opacity: 1;
      transform: translate(0);
    }
	
	/* ===================================================
       SECTION LAYOUT / HEADERS
       =================================================== */
    .section {
      padding: 2rem 0;
    }
    .section-header {
      text-align: center;
      max-width: 800px;
      margin: 0 auto 2rem;
    }
    .section-subtitle {
      font-size: var(--fs-md);
      color: var(--primary);
      font-weight: 500;
      margin-bottom: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 2px;
    }
    .section-title {
      font-size: var(--fs-3xl);
      margin-bottom: 1rem;
      position: relative;
      padding-bottom: 1.25rem;
    }
    .section-title::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 3px;
      background-color: var(--primary);
    }
    .section-description {
      font-size: var(--fs-lg);
      color: var(--text-secondary);
    }

/* Counter */
.container {
  display: flex;
  justify-content: center; /* horizontal center */
  }

  .counter-box {
    background-color: #004B7C;
    color: white;
    text-align: center;
    border-radius: 20px;
    padding: 20px 20px 30px 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    max-width: 1160px;
    width: 100%;
    transition: transform 0.3s;
    justify-content: center;
    align-items: center;
  }

  .counter-box:hover {
    transform: translateY(-5px);
  }

  .counter-box p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    color: #e3f2ff;
    text-align: left;
  }

  .counters {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
  }

  .counter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
  }

  /* Fixed width for the last group */
  .counter-group:last-child {
    width: 500px;
  }

  /* Divider line centered between 2nd and 3rd group */
  .counters::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    left: 48.5%; /* approximately halfway between 2nd and 3rd groups */
    transform: translateX(-50%);
  }

  .counter {
    font-size: 3.75rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
  }

  .label {
    font-size: 1.1rem;
  }

  .more-than {
	font-size: 1.5rem;
  	opacity: 0;                /* hidden initially */
  	transition: opacity 1.5s ease;   /* <-- adjust this number to slow it down */
	}

  .more-than.visible {
  	opacity: 1;                /* fade in */
  }

  /* Responsive behavior */
  @media (max-width: 991px) {
    .counters {
      flex-direction: column;
    }

    .counters::after {
      display: none;
    }

    .counter-group {
      padding-bottom: 20px;
      border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    }

    .counter-group:last-child {
      border-bottom: none;
      width: 100%;
    }
  }

  @media (max-width: 1180px) and (orientation: landscape) {
	/* Fixed width for the last group */
	.counter-group:last-child {
    width: 360px;
  	}
	  
	/* Divider line centered between 2nd and 3rd group */
  .counters::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    left: 55%; /* approximately halfway between 2nd and 3rd groups */
    transform: translateX(-50%);
  }
  }
