:root {
  --bs-primary-rgb: #caf56a;
  --bs-bg-opacity: 1;
  --bg-theme-primary: #2c2c2c;
}

body {
  background-color: #1a1a1a;
  color: #fff;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
}

.navbar {
  background-color: #1a1a1a;
  position: relative;
  z-index: 1000;
}

.nav-custom {
  background-color: #2c2c2c !important;
  border-radius: 30px;
  padding: 0.5rem 4.5rem !important;
  min-width: 400px;
  max-width: 600px;
  display: flex;
  justify-content: center;
}
.navbar-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

.navbar-nav .nav-link {
  padding: 0.3rem 0.3rem;
  white-space: nowrap;
  font-size: 0.95rem;
}

.nav-link.active {
  color: #bfff00 !important;
}

.logo {
  color: #bfff00;
  font-size: 24px;
}

.get-app,
.get-cash {
  background-color: #bfff00;
  color: #1a1a1a;
  border: none;
}

.content {
  padding: 50px 20px;
  position: relative;
}

.content h1 {
  color: #bfff00;
  font-size: 48px;
}

.content p {
  max-width: 600px;
  margin: 0 auto 30px;
}

.card,
.bag,
.cube {
  position: absolute;
}

.card {
  top: 20%;
  right: 20%;
  width: 13%;
  transform: rotate(10deg);
}

.bag {
  bottom: -20%;
  left: 40%;
  transform: translateX(-50%);
}

.lead {
  font-size: 1.4rem;
  font-weight: 100 !important;
}

@media (max-width: 768px) {
  .card,
  .bag,
  .cube {
    display: none;
  }
  .content h1 {
    font-size: 36px;
  }
  .nav-custom {
    border-radius: 0;
  }
}

.btn {
  gap: 12px;
  border: 0;
  line-height: 1;
  font-size: 16px;
  overflow: hidden;
  font-weight: 700;
  transition: 300ms;
  position: relative;
  padding: 26px 40px;
  align-items: center;
  letter-spacing: 1px;
  display: inline-flex;
  letter-spacing: -0.2px;
  justify-content: center;
  border-radius: 10px;
}

.bg-primary {
  --bs-bg-opacity: 1;
  background-color: rgba(
    var(--bs-primary-rgb),
    var(--bs-bg-opacity)
  ) !important;
}

.btn.btn-main {
  padding: 22px 38px;
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover {
  --bs-btn-hover-border-color: transparent;
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}

.btn.btn-main::after {
  position: absolute;
  top: -288px;
  left: -302px;
  width: 650px;
  height: 650px;
  background-image: url(../images/btn_shape.webp);
  content: "";
  z-index: -1;
  background-repeat: no-repeat;
  transition: 0.7s;
}

.btn.btn-main:hover::after {
  transform: rotate(90deg);
}

.need-cash-head {
  font-size: 60px;
  color: var(--bs-primary-rgb);
}

.hero-sec-head-2 {
  font-size: 40px;
  font-weight: 400;
}

.get-cash-now-btn {
  padding: 22px 90px !important;
}

.pt-8per {
  padding-top: 8%;
}

/* New floating animation for cube */
.cube {
  position: absolute;
  top: -50px;
  left: 30px;
  width: 100px;
  height: 100px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.clr-theme-primary {
  color: var(--bs-primary-rgb) !important;
}

.stat-box {
  padding: 2%;
  background: #2c2c2c;
  border-radius: 10px;
  width: 70%;
  margin-left: 15%;
  animation: floatVertical 15s ease-in-out infinite;
}

.stat-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-text {
  font-size: 16px;
}

/* New animation for stat-box */
@keyframes floatVertical {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(400%);
  }
}

.bg-theme-primary {
  background: var(--bg-theme-primary);
}

.how-it-works-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.how-it-works-card::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #7ed321, #a8e6cf);

  transition: top 0.4s ease;
  z-index: 1;
}

.how-it-works-card:hover::before {
  top: 0;
}

.how-it-works-card:hover {
  transform: translateY(-5px);
}

.card-content {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.how-it-works-card:hover .card-content {
  color: white;
}

.how-it-works-card:hover .card-description {
  color: #333;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: #7ed321;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: background 0.3s ease;
}

.how-it-works-card:hover .card-icon {
  /* background: rgba(255,255,255,0.2); */
  background: white;
}

.how-it-works-card:hover .card-icon svg {
  fill: #7ed321; /* the original card background color */
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.card-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.card-number {
  /*position: absolute;*/
  bottom: -10px;
  right: -10px;
  font-size: 120px;
  font-weight: bold;
  color: #efefef;
  text-align: center;
  z-index: 0;
}

.how-it-works-card:hover .card-number {
  color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  .col-6 {
    min-width: 100%;
  }

  .how-it-works-card {
    height: auto;
    min-height: 180px;
  }

  .card-number {
    font-size: 80px;
  }
}

@media (max-width: 480px) {
  .how-it-works-card {
    padding: 20px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-description {
    font-size: 13px;
  }

  .card-number {
    font-size: 60px;
  }
}

.accordion {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accordion-item {
  border: none;
  margin-bottom: 2px;
}

.accordion-header {
  background: #2c2c2c;
  color: #ffffff;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.accordion-header:hover {
  background: #2c2c2c;
}

.accordion-header.active {
  background: #e3ff65;
  color: #2c3e50;
}

.accordion-header.active:hover {
  background: #e2ff66;
}

.accordion-arrow {
  font-size: 24px;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.accordion-arrow.rotated {
  transform: rotate(135deg);
}

.accordion-content {
  background: white;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #555;
  line-height: 1.6;
}

.accordion-content.active {
  max-height: 200px;
  padding: 20px 24px;
}

.accordion-content p {
  margin: 0;
  font-size: 15px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  .accordion-header {
    padding: 16px 20px;
    font-size: 16px;
  }

  .accordion-content {
    padding: 0 20px;
  }

  .accordion-content.active {
    padding: 16px 20px;
  }

  .accordion-arrow {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .accordion-header {
    padding: 14px 16px;
    font-size: 15px;
  }

  .accordion-content {
    padding: 0 16px;
  }

  .accordion-content.active {
    padding: 14px 16px;
  }
}

/* Feature Card */
.feature-card {
  background: #2a2a2a;
  border: 2px solid #3a3a3a;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* justify-content: center;
    align-items: center;
    text-align: center; */
  height: 150px;
  margin-bottom: 20px;
}

.feature-card:hover {
  border-color: #e3ff65;
  background: #2f2f2f;
}

.feature-card:hover .card-text {
  color: #e3ff65;
}

.feature-card:hover .card-number {
  color: white;
}

.card-text {
  font-size: 18px;
  line-height: 1.4;
  color: #ffffff;
  transition: color 0.3s ease;
  z-index: 2;
  position: relative;
}

.card-number {
  position: absolute;
  bottom: -65px;
  left: 5%;
  font-size: 100px;
  font-weight: bold;
  color: transparent;
  -webkit-text-stroke: 2px #3a3a3a;
  text-stroke: 2px #3a3a3a;
  transition: all 0.3s ease;
  z-index: 1;
}

.card-number.dashed {
  -webkit-text-stroke: 2px #3a3a3a;
  text-stroke: 2px #3a3a3a;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-dasharray: 8px 4px;
}

.feature-card-4,
.feature-card-5 {
  padding-left: 60px;
  padding-right: 60px;
}

@media (max-width: 992px) {
  .col-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .offset-2 {
    margin-left: 0;
  }

  .feature-card-4,
  .feature-card-5 {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 768px) {
  .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .feature-card {
    height: 150px;
    padding: 25px;
  }

  .feature-card-4,
  .feature-card-5 {
    padding-left: 25px;
    padding-right: 25px;
  }

  .card-text {
    font-size: 16px;
  }

  .card-number {
    font-size: 80px;
    bottom: -20px;
    left: -5px;
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: 20px;
  }

  .card-text {
    font-size: 14px;
  }

  .card-number {
    font-size: 60px;
    bottom: -15px;
  }
}

.trust-security-box {
  padding: 5%;
  background: #caf56a;
  border-radius: 20px;
}

.footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 20px 0;
}
.footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}
.footer a:hover {
  color: #a3e635;
}
.social-icons a {
  background-color: #a3e635;
  color: #000;
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
}
.social-icons a:hover {
  background-color: #d4f20e;
  color: #fff;
  transform: rotate(360deg) scale(1.2);
}

.sanady-cards-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* .sanady-card {
    display: flex; */
/* justify-content: center;
    align-items: center; */
/* position: sticky;
    background-color: #f9f9f9;
    border-radius: 20px;
    width: 50%;
    height: 35vh;
    padding: 4%;
  } */

.sanady-card {
  background-color: var(--bg-theme-primary, #f9f9f9);
  border-radius: 10px;
  display: flex;
  position: sticky;
  width: 50%; /* take full width of column */
  min-height: 150px; /* allow to grow if content needs */
  padding: 20px;
  overflow: hidden; /* hide anything outside */
  word-wrap: break-word;
  text-align: left;
}

.sanady-card:nth-child(1) {
  top: 10%;
  margin-left: 30px;
  /* margin-bottom: 116px; */
  background-color: var(--bg-theme-primary);
}

.sanady-card:nth-child(2) {
  top: 10%;
  margin-left: 20%;
  /* margin-bottom: 100px; */
  background-color: var(--bg-theme-primary);
}

.sanady-card:nth-child(3) {
  top: 10%;
  margin-left: 35%;
  /* margin-bottom: 84px; */
  background-color: var(--bg-theme-primary);
}

.sanady-card:nth-child(4) {
  top: 10%;
  margin-left: 50%;
  /* margin-bottom: 68px; */
  background-color: var(--bg-theme-primary);
}

.sanady-card:nth-child(5) {
  top: 10%;
  margin-left: 65%;
  /* margin-bottom: 52px; */
  background-color: var(--bg-theme-primary);
}

.sticky-left {
  position: sticky;
  top: 10%;
  align-self: flex-start;
}

.sanady-pay {
  transform: rotate(-10deg);
  animation: float-rotate 8s ease-in-out infinite;
  position: absolute;
  top: -120px;
  right: 20%;
  /* right: 140px; */
  width: 220px;
}
@media (width: 1024px) {
  .sanady-pay {
    right: 5% !important;
  }
}

@keyframes float-rotate {
  0% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(-15px) rotate(10deg);
  }
  100% {
    transform: translateY(0) rotate(-10deg);
  }
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 400px; /* force it to match the left column's height */
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.block-2 {
  position: absolute;
  top: 480px;
  right: 0;
  z-index: 1;
}

.carousel-section {
  width: 100vw;
  position: relative;
  overflow: hidden;
}

.carousel-rectangle {
  width: 100%;
  display: block;
}

.carousel-track {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  width: max-content;
  animation: scroll-carousel 20s linear infinite;
  gap: 90px;
  padding: 0 60px;
}

.carousel-logo {
  height: 60px; /* or whatever fits visually */
  object-fit: contain;
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0) translateY(-50%);
  }
  100% {
    transform: translateX(-50%) translateY(-50%);
  }
}

.block-6 {
  top: 90px;
  right: 180px;
  position: relative;
}

.block-4 {
  position: absolute;
  top: 360px;
  left: 0;
  z-index: 2;
  width: 150px;
  height: auto;
}

.block-7 {
  position: absolute;
  left: 250px;
}

.block-5 {
  position: absolute;
  top: 900px;
  right: 0;
  z-index: 2;
  width: auto; /* or specify width if needed */
  height: auto;
}

@media (max-width: 992px) {
  #why-us .row {
    flex-direction: column;
    align-items: center;
  }
  #why-us .col-4.sticky-left {
    position: static;
    width: 100%;
    max-width: 100%;
    text-align: center;
    align-self: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  #why-us .col-4.sticky-left > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #why-us .col-8 {
    width: 100%;
    max-width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .sanady-cards-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    position: relative;
  }
  .sanady-card {
    width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: -32px;
    position: relative;
    z-index: unset;
    left: 0;
    right: 0;
    top: 0;
    text-align: center;
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.18);
    transition: transform 0.3s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #232323;
    max-width: 380px;
    margin: 0 auto -32px auto !important;
  }
  .sanady-card img {
    margin: 0 auto;
    display: block;
  }
  .sanady-card:nth-child(1) {
    z-index: 5;
    transform: translateY(0px) scale(1);
  }
  .sanady-card:nth-child(2) {
    z-index: 4;
    transform: translateY(-24px) scale(0.98);
  }
  .sanady-card:nth-child(3) {
    z-index: 3;
    transform: translateY(-48px) scale(0.96);
  }
  .sanady-card:nth-child(4) {
    z-index: 2;
    transform: translateY(-72px) scale(0.94);
  }
  .sanady-card:nth-child(5) {
    z-index: 1;
    transform: translateY(-96px) scale(0.92);
  }
  .sanady-card:not(:last-child) {
    margin-bottom: -32px;
  }
  .sanady-cards-container {
    margin-top: 40px;
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .sanady-card {
    width: 100%;
    min-width: 0;
    padding: 16px;
    font-size: 15px;
    max-width: 98vw;
  }
  #why-us .col-4.sticky-left {
    padding: 0 8px;
  }
  .sanady-cards-container {
    padding: 0;
    max-width: 99vw;
  }
}

/* Remove margin-left stacking for sanady-card on mobile/tablet */
@media (max-width: 992px) {
  .sanady-card:nth-child(1),
  .sanady-card:nth-child(2),
  .sanady-card:nth-child(3),
  .sanady-card:nth-child(4),
  .sanady-card:nth-child(5) {
    margin-left: 0 !important;
  }
}

@media (max-width: 992px) {
  .sanady-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
  }
  .sanady-card {
    width: 100%;
    max-width: 380px;
    background: #232323;
    text-align: center;
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.3s;
    position: relative;
    margin: 24px 0 0 0;
    z-index: auto;
    margin-left: 0 !important;
    margin-top: 24px !important;
    margin-bottom: 0 !important;
  }
  .sanady-card:first-child {
    margin-top: 0 !important;
  }
  .sanady-card:last-child {
    margin-bottom: 32px !important;
  }
}

/* --- How it works section responsive improvements --- */
@media (max-width: 1200px) {
  #how-it-works .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  #how-it-works .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

#how-it-works .row {
  align-items: center;
}

#how-it-works .card-title,
#how-it-works .card-description {
  text-align: center;
}

@media (max-width: 992px) {
  #how-it-works .row {
    flex-direction: column;
    align-items: center;
  }
  #how-it-works .col-4,
  #how-it-works .col-8 {
    width: 100%;
    max-width: 100%;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #how-it-works .col-8 > .row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  #how-it-works .col-6 {
    width: 100%;
    max-width: 100%;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
  }
  .how-it-works-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 24px auto;
    min-height: 180px;
    height: auto;
    text-align: center;
    align-items: center;
  }
  .how-it-works-card .card-title,
  .how-it-works-card .card-description {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .how-it-works-card {
    padding: 16px;
    font-size: 15px;
    max-width: 98vw;
    min-height: 120px;
  }
  .how-it-works-card .card-title {
    font-size: 16px;
  }
  .how-it-works-card .card-description {
    font-size: 13px;
  }
  .how-it-works-card .card-number {
    font-size: 60px;
  }
}

@media (max-width: 480px) {
  .how-it-works-card {
    padding: 10px;
    min-height: 100px;
  }
  .how-it-works-card .card-title {
    font-size: 15px;
  }
  .how-it-works-card .card-description {
    font-size: 12px;
  }
  .how-it-works-card .card-number {
    font-size: 40px;
  }
}

@media (min-width: 601px) and (max-width: 992px) {
  .how-it-works-card .card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 12px auto;
    float: none;
  }
  .how-it-works-card .card-number {
    display: block;
    margin: 0 auto 0 auto;
    line-height: 1;
    position: static;
    text-align: center;
  }
  .how-it-works-card .card-title,
  .how-it-works-card .card-description {
    text-align: center;
  }
  .how-it-works-card {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .how-it-works-card .card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 12px auto;
    float: none;
  }
  .how-it-works-card .card-number {
    display: block;
    margin: 0 auto 0 auto;
    line-height: 1;
    position: static;
    text-align: center;
  }
  .how-it-works-card .card-title,
  .how-it-works-card .card-description {
    text-align: center;
  }
  .how-it-works-card {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
}

/* Responsive styles for Flexible Repayment section */
@media (max-width: 992px) {
  .flexible-repayment-section .flex-repay-text {
    text-align: center !important;
    margin-bottom: 24px;
  }
  .flexible-repayment-section .flex-repay-accordion {
    margin-left: 0 !important;
    max-width: 100%;
  }
}
/* Desktop/tablet layout for Flexible Repayment section (>=768px) */
@media (min-width: 768px) {
  .flexible-repayment-section .flex-repay-text {
    text-align: left !important;
    margin-bottom: 0;
  }
  .flexible-repayment-section .flex-repay-accordion {
    max-width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .flexible-repayment-section .row {
    flex-direction: row !important;
  }
}

/* Only apply mobile stacking and centering for <768px */
@media (max-width: 767.98px) {
  .flexible-repayment-section .flex-repay-text {
    text-align: center !important;
    margin-bottom: 20px;
  }
  .flexible-repayment-section .flex-repay-accordion {
    margin-left: 0 !important;
    max-width: 100%;
  }
  .flexible-repayment-section .accordion {
    width: 100%;
  }
  .flexible-repayment-section .accordion-header {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .flexible-repayment-section .flex-repay-text {
    text-align: center !important;
    margin-bottom: 16px;
  }
  .flexible-repayment-section .accordion-header {
    font-size: 0.95rem;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 768px) {
  .flexible-repayment-section .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .flexible-repayment-section .accordion {
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .flexible-repayment-section .flex-repay-accordion {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Flexible Repayment section full width styles */
.flexible-repayment-section .flex-repay-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 992px) {
  .flexible-repayment-section .flex-repay-inner {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
}
@media (max-width: 768px) {
  .flexible-repayment-section .flex-repay-inner {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
}

.flexible-repayment-section {
  padding: 48px 0;
}
@media (max-width: 768px) {
  .flexible-repayment-section {
    padding: 0 16px !important;
    margin-top: 32px;
  }
}
@media (min-width: 768px) {
  .flexible-repayment-section {
    padding-left: 48px;
    padding-right: 48px;
  }
}
.custom-toggler {
  background-color: #caf56a !important;
  border-color: #caf56a !important;
}

/* --- Responsive Navbar Fixes --- */
.navbar .container-fluid {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (max-width: 991.98px) {
  .navbar .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .navbar .d-lg-none {
    display: flex !important;
  }
  .navbar .d-lg-block {
    display: none !important;
  }
  .nav-custom {
    border-radius: 0;
    background: #2c2c2c;
    width: 100%;
    margin: 0;
    box-shadow: none;
    padding: 0;
  }
  .navbar-collapse.nav-custom {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #2c2c2c;
    z-index: 999;
    width: 100vw;
    min-width: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.18);
    margin: 0;
    padding: 0.5rem 0;
  }
  .navbar-nav {
    flex-direction: column;
    gap: 0;
  }
  .navbar-nav .nav-link {
    padding: 1rem 0;
    font-size: 1.1rem;
  }
  .navbar-toggler {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .navbar .d-lg-none {
    display: none !important;
  }
  .navbar .d-lg-block {
    display: block !important;
  }
  .nav-custom {
    border-radius: 30px;
    background: #2c2c2c;
    min-width: 400px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: none;
    padding: 0.75rem 3rem;
  }
  .navbar-collapse.nav-custom {
    position: static;
    background: none;
    box-shadow: none;
    width: auto;
    border-radius: 30px;
    padding: 0;
  }
  .navbar-nav {
    flex-direction: row;
    gap: 1rem;
  }
  .navbar-nav .nav-link {
    padding: 0.3rem 0.3rem;
    font-size: 0.95rem;
  }
  .navbar-toggler {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .navbar .container-fluid {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .navbar .logo {
    margin-right: auto;
  }
  .navbar .d-flex.align-items-center.ms-auto {
    margin-left: auto !important;
  }
  .navbar .btn.btn-main {
    padding: 10px 18px;
    font-size: 1rem;
  }
  .navbar-collapse.nav-custom {
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    min-width: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.18);
    margin: 0;
    padding: 0.5rem 0;
  }
  .navbar-nav {
    gap: 0;
  }
  .navbar-nav .nav-link {
    padding: 0.6rem 0 !important;
    font-size: 0.98rem !important;
  }
}

@media (max-width: 767.98px) {
  .get-app-mobile {
    font-size: 0.95rem !important;
    padding: 7px 16px !important;
    min-width: 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .navbar .btn.btn-main {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-left: 12px; /* adds gap from nav */
  }
}

#backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-size: 24px; /* bigger arrow */
  font-weight: bold; /* bolder */
  background: rgba(0, 0, 0, 0.3); /* semi-transparent */
  backdrop-filter: blur(6px); /* blurred bg */
  color: #fff;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  border-radius: 8px; /* slightly rounded */
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.2s ease;
}

#backToTop:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.5);
}
