/* index page cards css starts here */

.stats-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  /* margin-top: 100px; */
  /* padding: 0 16px; */
  overflow: hidden;
  padding: 0 10%;
  margin-bottom: 5%;
}

.stats-grid {
  display: grid;
  grid-template-columns: 664px 376px;
  grid-template-rows: auto auto;
  gap: 25px;
  max-width: 1060px;
  width: 100%;
  /* overflow:hidden; */
}

.stat-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
  border-radius: 36px;
  color: white;
  font-family: 'Syne', sans-serif;
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, #07101f, #0e1526) padding-box,
    linear-gradient(104.59deg, #FFFFFF 0.76%, rgba(255, 255, 255, 0.256) 32.78%, rgba(255, 255, 255, 0.735) 69.11%, rgba(255, 255, 255, 0.07) 99%) border-box;
}

.card1 {
  width: 664px;
  height: 117px;
}

.card2 {
  width: 376px;
  height: 117px;
}

.card3 {
  width: 351px;
  height: 117px;
}

.card4 {
  width: 680px;
  height: 117px;
  justify-self: end;
}

.num {
  font-size: 45px;
  font-weight: 600;
  background: linear-gradient(100.77deg, #CED6FF 8.16%, #51B1FF 42.72%, #0147FF 80.05%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.txt {
  font-weight: 700;
  text-align: right;
}

.separator {
  width: 2px;
  height: 85px;
  margin: 0 20px;
  opacity: 0.48;
  background: linear-gradient(180deg,
      rgba(0, 14, 31, 0.2) 0%,
      rgba(255, 255, 255, 0.8) 45%,
      rgba(0, 14, 31, 0.2) 100%);
}

.rolling-number {
  display: inline-flex;
  font-weight: bold;
  font-family: 'Syne', sans-serif;
}

.rolling-number .digit {
  display: inline-block;
  position: relative;
}
/* index page cards css ends here */

/* MEDIA QUERIES starts here */

@media (min-width: 768px) and (max-width: 1400px){
  .stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  .stat-card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 15px 20px;
    height: 110px;
  }

  .separator {
    height: 65%;
    margin: 0 12px;
  }

  .card1,
  .card4 {
    width: 100%;
  }

  .card2,
  .card3 {
    width: calc(50% - 7.5px);
  }

  .card1 .num,
  .card4 .num {
    font-size: 36px !important;
  }

  .card2 .num,
  .card3 .num {
    font-size: 36px !important;
  }

  .card1 .txt,
  .card4 .txt {
    font-size: 15px !important;
  }

  .card2 .txt,
  .card3 .txt {
    font-size: 15px !important;
  }
}

/* Tablet / Small Laptop */
@media (max-width: 1024px) {
  .stats-wrapper {
    padding: 0 5%;
    margin-bottom: 3%;
  }
}

@media(max-width: 767px) {

  /* Stats wrapper */
  .stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
  }

  /* All cards: horizontal content */
  .stat-card {
    height: 103px;
    box-sizing: border-box;
    padding: 10px 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .separator {
    width: 2px;
    height: 70%;
    /* make slightly smaller for mobile */
    margin: 0 10px;
    /* default spacing */
    opacity: 0.48;
    background: linear-gradient(180deg,
        rgba(0, 14, 31, 0.2) 0%,
        rgba(255, 255, 255, 0.8) 45%,
        rgba(0, 14, 31, 0.2) 100%);
  }

  /* Cards 2 & 3: shift separator a bit */
  .card2 .separator,
  .card3 .separator {
    margin-left: 6px;
    /* move slightly to the left */
    margin-right: 6px;
    /* adjust right spacing */
    height: 60%;
    /* optional: slightly smaller */
  }

  /* Card widths */
  .card1,
  .card4 {
    width: 100%;
    /* full width */
  }

  .card2,
  .card3 {
    width: calc(50% - 5px);
    /* side by side */
  }

  /* Numbers: different sizes */
  .card1 .num,
  .card4 .num {
    font-size: 32px;
    /* larger for 1 & 4 */
  }

  .card2 .num,
  .card3 .num {
    font-size: 32px;
    /* smaller for 2 & 3 */
  }

  /* Text: different sizes */
  .card1 .txt,
  .card4 .txt {
    font-size: 16px !important;
    /* larger text */
    font-weight: 700;
  }

  .card2 .txt,
  .card3 .txt {
    font-size: 16px !important;
    /* smaller text */
    font-weight: 700;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Margin between number and text */
  .num {
    margin-right: 8px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Text takes remaining space */
  .txt {
    flex: 1;
  }
}

@media(max-width:480px) {

  .card1 .num,
  .card4 .num {
    font-size: 26px !important;
  }

  .card2 .num,
  .card3 .num {
    font-size: 26px !important;
  }

  .card1 .txt,
  .card4 .txt {
    font-size: 12px !important;
    /* larger text */
    font-weight: 500 !important;
  }

  .card2 .txt,
  .card3 .txt {
    font-size: 12px !important;
    /* smaller text */
    font-weight: 500 !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

@media(max-width:320px) {

  .card1 .num,
  .card4 .num {
    font-size: 16px !important;
  }

  .card2 .num,
  .card3 .num {
    font-size: 16px !important;
  }

  .card1 .txt,
  .card4 .txt {
    font-size: 12px !important;
    /* larger text */
    font-weight: 500 !important;
  }

  .card2 .txt,
  .card3 .txt {
    font-size: 12px !important;
    /* smaller text */
    font-weight: 500 !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}
/* MEDIA QUERIES ends here */