body {
  background: linear-gradient(-45deg, #000D1E, #00162b, #01060C, #000D1E);
  background-size: 300% 300%;
  animation: gradientBG 18s ease infinite;
  color: #ffffff;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  padding: 0 35px;
  /* Moderate padding on both sides */
}

img {
  max-width: 100%;
  height: auto;
}


.logo {
  /* Base size for mobile */
  width: 60px;
  height: auto;
  /* Maintain aspect ratio */
  max-width: 100%;
}

/* Tablet sizes */
@media (min-width: 768px) {
  .logo {
    width: 80px;
  }
}

/* Desktop sizes */
@media (min-width: 992px) {
  .logo {
    width: 70px;
  }
}

.logo:hover {
  transform: scale(1.05);
  /* Subtle hover effect */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}



.navbar-font {
  padding: 12px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sticky-top {
  z-index: 1030;
  transition: box-shadow 0.3s ease-in-out;
}

.auth-switch {
  display: inline-block;
  margin: 1rem 0;
  width: 100%;
  max-width: 280px;
  /* Maximum width on large screens */
}

.switch-track {
  position: relative;
  display: inline-flex;
  background-color: #0d1b2a;
  border-radius: 15px;
  padding: 3px;
  border: 1px solid #ffffff;
  width: 100%;
}

.switch-option {
  position: relative;
  padding: 0.5rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.8rem, 3vw, 0.9rem);
  z-index: 2;
  transition: color 0.2s ease;
  border-radius: 20px;
  text-align: center;
  flex: 1;
  white-space: nowrap;
}

.switch-option.active {
  color: white;
}

.switch-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background-color: #1a9fff;
  border-radius: 10px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}



/* Active state for Register */
.auth-switch.register-active .switch-slider {
  transform: translateX(100%);
}

.auth-switch.register-active .switch-option:nth-child(1) {
  color: rgba(255, 255, 255, 0.7);
}

.auth-switch.register-active .switch-option:nth-child(2) {
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .auth-switch {
    max-width: 240px;
  }

  .switch-option {
    padding: 0.4rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .auth-switch {
    max-width: 100%;
  }

  .switch-option {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

/* Touch devices - larger tap targets */
@media (hover: none) {
  .switch-option {
    padding: 0.7rem 1.5rem;
  }
}

.custom-bg {
  background-color: #0d1b2a !important;
}

.hero-section {
  background: radial-gradient(circle at top left, rgba(0, 13, 30, 0.6), #000D1E 60%, #01060C 100%);
  background-size: cover;
  overflow: hidden;
  background-image: url('/front/images/Frame 1618871764.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.hero-image {
  margin-top: 60px !important;
  /* You can adjust this value (e.g., 40px–100px) */
}
/* Mobile ke liye alag background image */
@Media (max-width: 768px) {
  .hero-section {
    background-image: url('/front/images/Mobile bg.png');
  }
}
@Media (max-width: 576px) {
  /* Text content ko center align karo */
  .hero-section .row {
    text-align: center;
  }
  /* Text column ko center mein rakho */
  .hero-section .col-lg-6:first-child {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: auto;
    margin-right: auto;
  }
  /* Headings ko proper center */
  .hero-section h1,
  .hero-section h2,
  .hero-section h3,
  .hero-section p {
    text-align: center !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* Badge ko center */
  .hero-section .badge {
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-block;
  }
  /* Buttons ko center align */
  .hero-section .btn {
    padding: 6px 16px !important;
    font-size: 0.875rem !important;
    border-radius: 6px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* Button container ko flex center */
  .hero-section .d-flex,
  .hero-section .btn-group {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 10px;
  }
  /* Enlarge hero image */
  .hero-image {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    transform: scale(1.25);
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  /* Center image column */
  .hero-section .col-lg-6 {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .hero-section {
    padding-bottom: 3rem !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Container ko full width center */
  .hero-section .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}
.hero-section h1 span.text-success {
  color: #50FA7B !important;
}
.hero-section .badge.bg-dark {
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}
.pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(2);
  }
  50% {
    transform: scale(2.1);
  }
  100% {
    transform: scale(2);
  }
}
.pop-up {
  animation: popUp 0.7s cubic-bezier(.68, -0.55, .27, 1.55) both;
}
@keyframes popUp {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  80% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.seesaw {
  text-align: center;
  animation: animate 1s linear infinite;
}
@keyframes animate {
  0% {
    transform: rotate(5deg);
  }
  25% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(5deg);
  }
}
/* Tablet View */
@Media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    display: block;
  }
}
@Media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    display: block;
  }
}
/* Extra Small Devices (phones < 576px) */
@Media (max-width: 576px) {
  .hero-section {
    display: block;
  }
}

/* ===== Desktop/Tablet cards ===== */
.payment-card {
  background: #181818;
  border: 1px solid #363636;
  border-radius: 1.25rem;
  padding: 1rem;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}

.payment-card img {
  height: 50px;
  width: auto;
  margin: 0 auto .5rem;
  display: block;
}

.payment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(123, 198, 58, .35);
}

/* ===== Mobile auto-scroll row ===== */
#pmAutoScroll {
  overflow: hidden;
  padding: 0 8px;
}

#pmAutoScroll .pm-track {
  display: flex;
  gap: 12px;
  will-change: transform;
}

#pmAutoScroll .pm-card {
  flex: 0 0 auto;
  width: 120px;
  /* uniform size like your screenshot */
  background: #181818;
  border: 1px solid #363636;
  border-radius: 1.25rem;
  padding: 12px 10px;
  text-align: center;
}

#pmAutoScroll .pm-card img {
  height: 50px;
  width: auto;
  display: block;
  margin: 0 auto 6px;
}

#pmAutoScroll .pm-label {
  font-size: .8rem;
  color: #fff;
  white-space: nowrap;
}

/* Make tap targets a bit bigger on very small phones */
@media (max-width: 360px) {
  #pmAutoScroll .pm-card {
    width: 112px;
  }
}

/* About Section - Base Styles */
.about-section {
  background-color: #0a0a0a;
  padding: 3rem 0;
  overflow: hidden;

}

/* Image Container with Responsive Background */
.about-image-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Aspect ratio handling */
  aspect-ratio: 16/9;
  background-image: url('/front/images/aboutusimage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Glass Card Styles */
.glass-card {
  background-color: rgba(33, 33, 33, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: absolute;
  width: 240px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Card Positioning */
.refer-card {
  bottom: 2rem;
  left: 2rem;
  cursor: pointer;
}

.earn-fast-wrapper {
  position: absolute;
  bottom: 14.4rem;
  left: 2rem;
  transform: translateX(260px);
  cursor: pointer;
}

/* Card Content Styles */
.glass-card h5 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.glass-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.glass-card i {
  margin-right: 0.5rem;
}

/* Hover Effects */
.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(123, 198, 58, 0.4);
}



@media (max-width: 992px) {
  .about-image-container {
    aspect-ratio: 4/3;
    /* Taller for tablets */
  }

  .glass-card {
    width: 220px;
    padding: 1.25rem;
  }

  .earn-fast-wrapper {
    transform: translateX(240px);
  }
}

@media (max-width: 767.98px) {
  .about-image-container {
    aspect-ratio: 1/1;
    /* Square for mobile */
    min-height: 300px;
  }

  /* Stack cards vertically on mobile */
  .glass-card {
    position: relative !important;
    width: 80% !important;
    max-width: 300px;
    margin: 0 auto 1rem !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  .earn-fast-wrapper {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    bottom: auto !important;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .about-section {
    padding: 2rem 0;
  }

  .about-image-container {
    min-height: 250px;
    border-radius: 8px;
  }

  .glass-card {
    width: 90% !important;
    padding: 1rem !important;
    margin-top: 3rem !important;
    opacity: 80% !important;
    margin-left: 0 !important;
  }

  .glass-card h5 {
    font-size: 1rem;
  }

  .glass-card p {
    font-size: 0.8rem;

  }
}

@media (max-width: 410.98px) {
  .glass-card {
    width: 100% !important;
    padding: 0.2rem !important;
    margin-top: 3rem !important;
    opacity: 70% !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 380.98px) {
  .glass-card {
    width: 100% !important;
    padding: 0.2rem !important;
    margin-top: 2.5rem !important;
    opacity: 70% !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 350.98px) {
  .glass-card {
    width: 100% !important;
    padding: 0.2rem !important;
    margin-top: 0.5rem !important;
    opacity: 70% !important;
    margin-left: 0 !important;
  }
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1/1) {
  .about-image-container {
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 ratio fallback */
  }

  @media (max-width: 991.98px) {
    .about-image-container {
      padding-bottom: 75%;
      /* 4:3 ratio fallback */
    }

    .about-image-container {
      aspect-ratio: 4/3;
    }
  }

  @media (max-width: 767.98px) {
    .about-image-container {
      padding-bottom: 100%;
      /* 1:1 ratio fallback */
    }

    .about-image-container {
      aspect-ratio: 1/1;
    }
  }


}

@media (min-width: 993px) and (max-width: 1199.98px) {

  .about-image-container {
    aspect-ratio: 4/3;
  }
}


.btn-outline:hover {
  background-color: #7BC63A;
}

/* WHY US SECTION */

/* General Styles for Section */
.why-us-section {
  background-color: #0a0a0a;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(123, 198, 58, 0);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(123, 198, 58, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(123, 198, 58, 0);
  }
}

.feature-card:hover {
  animation: pulse 1s ease;
  border-color: #0095ff;
}

.feature-card {
  background-color: rgb(27, 27, 27);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: #ddd;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Default (desktop) */
.whyus_vector,
.whyus_vector2 {
  position: absolute;
  height: 80px;
  width: 80px;
  left: 91%;
  bottom: -210px;
}

.rotate-arrow {
  width: 80px;
  height: 80px;
  margin: 400px auto;
  display: block;
  transition: filter 0.2s;
  filter: drop-shadow(0 0 12px #0008);
}

/* Rotate effect */
@keyframes rotate360 {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.rotate-arrow {
  animation: rotate360 4s linear infinite;
  animation-play-state: paused;
}

.rotate-arrow.in-view {
  animation-play-state: running;
}

.card-highlight:hover {
  background-color: #0095ff;
  color: #000000;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card-highlight::after {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  opacity: 0.2;
}

@media (max-width: 1200px) {

  .whyus_vector,
  .whyus_vector2 {
    bottom: -170px;
    left: 86%;
  }
}

@media (max-width: 991.98px) {

  .whyus_vector,
  .whyus_vector2 {
    bottom: -150px;
    left: 85%;
  }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .feature-card {
    padding: 2rem;
  }

  .rotate-arrow {
    width: 60px;
    height: 60px;
  }

  .whyus_vector,
  .whyus_vector2 {
    bottom: -220px;
    left: 90%;
  }

  /* Grid system for 2 cards per row on medium screens */
  .col-md-4 {
    flex: 0 0 50%;
    /* Adjust width for 2 cards in a row */
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  .feature-card {
    padding: 1rem;
  }

  .rotate-arrow {
    width: 50px;
    height: 50px;
  }

  .whyus_vector,
  .whyus_vector2 {
    display: none;
  }

  /* Grid system for 1 card per row on mobile screens */
  .col-md-4 {
    flex: 0 0 100%;
    /* Adjust width for 1 card per row */
    max-width: 100%;
  }
}










/* STEPS */

/* General Styles for the Step Boxes */
/* Original Styling - Step Box */
.step-box {
  border-radius: 16px;
  padding: 30px;
}

.step-number {
  color: #00ff99;
  font-weight: bold;
  margin-bottom: 50px;
  font-size: 14px;
  text-transform: uppercase;
}

.step-box-img {
  max-height: 325px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.step-box-img:hover {
  transform: translateY(-5px);
}

/* Make the carousel items fill the screen width */
.carousel-inner {
  width: 100%;
  max-width: 100%;
}

/* Ensure images inside carousel scale properly */
.carousel-item {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Mobile and Tablet Responsiveness */
@media (max-width: 992px) {
  .step-box-img {
    max-height: 250px;
  }

  .carousel-inner {
    display: flex;
    justify-content: center;
  }

  .carousel-item {
    padding: 0;
    margin: 0;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: block;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 8%;
    background-color: transparent;
  }
}

/* Mobile Specific Adjustments */
@media (max-width: 575px) {

  #stepsCarousel,
  .carousel-inner {
    margin-bottom: 0 !important;
    /* Remove bottom margin */
    padding-bottom: 0 !important;
    /* Remove bottom padding */
    overflow: hidden !important;
    /* Hide overflow */
  }

  .carousel-item {
    margin-bottom: 0 !important;
    /* Remove margin */
    padding-bottom: 0 !important;
    /* Remove bottom padding */
  }

  .step-box {
    margin-top: 80px !important;
    /* Increase top margin to push content down */
    margin-bottom: 0 !important;
    /* Remove bottom margin */
  }
}


/* Tablet Specific Adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .carousel-item {
    padding: 0;
    margin: 0;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 8%;
    background-color: transparent;
  }

  .step-box-img {
    max-height: 300px;
  }
}

/* Desktop Styles */
@media (min-width: 992px) {

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

/* ✅ FIX: Prevent vertical compression and enable smooth slide */

/* Lock the carousel height to prevent content shrinking */
#stepsCarousel .carousel-inner {
  min-height: 600px;
  /* Adjust based on your tallest step */
  position: relative;
}

/* All carousel items overlap and fade-slide smoothly */
#stepsCarousel .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.6s ease-in-out;
}

/* Only the active slide is visible */
#stepsCarousel .carousel-item.active {
  position: relative;
  opacity: 1;
  z-index: 1;
  transform: translateX(0);
}





.btn-custom {
  background-color: #7BC63A;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-custom:hover {
  background-color: #5a9e2e;
  color: black;
}

.btn,
.payment-card {
  min-width: auto;
  min-height: auto;
}

.btn-custom {
  background: rgb(43, 43, 43);
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  border: 1px solid rgb(54, 54, 54);
}

.btn-custom:hover {
  background-color: #7BC63A;
  transform: translateY(-2px);

}

.register_btn {
  min-width: 44px;
  min-height: 44px;

}

.register-btn-custom {
  background: rgb(43, 43, 43);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  color: #7BC63A;
  width: 150px;
  border: 1px solid rgb(54, 54, 54);
}

.register-btn-custom:hover {
  background-color: #7BC63A;
  color: #000000;
  transform: translateY(-2px);
}

.img-placeholder {
  background-color: #1f1f1f;
  height: 200px;
  border-radius: 10px;
  border: 1px solid #2c2c2c;
}

.accordion-button {
  border-radius: 10px !important;
  padding: 1rem 1.25rem;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: #0591D7;
  color: white;
}

.accordion-item {
  background-color: transparent;
  border: none;
}

.floating-badge {
  position: absolute;
  z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .toggle-container {
    margin-top: 15px;
    width: 100%;
    max-width: 220px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }



}

@media (max-width: 768px) {

  .accordion-button {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .accordion-body {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .hero-section h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .hero-section .btn #btn .register_btn {
    font-size: 1rem;
    padding: 8px 16px;
  }



}

@media (max-width: 576px) {

  .toggle-container {
    width: 100%;
    max-width: 220px;
    margin: 15px auto;
  }

  .floating-badge {
    display: none !important;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .navbar-brand img {
    height: 80px;
    width: auto;
  }

  .navbar-toggler {
    margin-left: auto;
  }


}


.vector {
  border-radius: 50%;
  width: 25px;
  height: 25px;
  background: #7BC63A;
  text-align: center;
  margin: 6px;
  padding: 6px;
}


/* FOOTER */
footer {
  background-color: #191919;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}

footer h4 {
  color: #7BC63A;
  font-size: 1.1rem;
}

footer a:hover {
  color: #7BC63A !important;
}

@media (max-width: 992px) {

  footer .col-md-4,
  footer .col-md-8 {
    margin-bottom: 2rem;
  }

  footer .col-4 {
    width: 33%;
    margin-bottom: 0.5rem;
  }

  .icons {
    width: 12px;
    /* Adjust icon size */
    height: 12px;
    /* Adjust icon size */
  }
}

@media (max-width: 768px) {

  footer .col-md-4,
  footer .col-md-8 {
    margin-bottom: 2rem;
  }

  footer .col-4 {
    width: 33%;
    margin-bottom: 0.5rem;
  }

  .icons {
    width: 14px;
    /* Adjust icon size */
    height: 14px;
    /* Adjust icon size */
  }
}

@media (max-width: 575px) {
  footer .col-4 {
    width: 47% !important;
    text-align: center;
    margin-bottom: 1rem;
  }

  .register-btn-custom {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }

  footer .contact-info a {
    font-size: 0.9rem;
  }
}

.responsive-align {
  text-align: center;
  /* Default for mobile */
}

@media (min-width: 1200px) {
  .responsive-align {
    align-items: center;
    /* For tablets and desktops */
    padding-right: 5rem !important;
  }
}

@media (min-width: 768px) {
  .responsive-align {
    align-items: center;
    /* For tablets and desktops */
    padding-right: 1rem;
  }
}

@media (max-width: 576px) {
  .responsive-align {
    display: block;
    /* Align items vertically for mobile */
    text-align: center;
  }

  .responsive-align a {
    display: inline-block;
    /* Ensure icons are inline */
    margin: 0 0px;
    /* Add spacing between the icons */
  }

  .icons {
    width: 15px;
    /* Adjust icon size */
    height: 15px;
    /* Adjust icon size */
  }
}




.contact-info p {
  margin-bottom: 0.5rem;
}

.vector1 {
  border-radius: 70%;
  background: rgb(43, 43, 43);
  text-align: center;
  margin: 6px;
  padding: 8px;
}

.icons {
  border-radius: 20%;
}

.icons:hover {
  background: rgb(43, 43, 43);
  opacity: 0.9;
  transform: translateY(-2px);
}

.border-secondary {
  border-color: rgba(255, 255, 255, 0.1) !important;
}



/* TIMELINE CONTAINER */

.timeline-carousel-outer {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 36px;
  overflow: hidden;
}

.timeline-carousel-view {
  overflow: hidden;
  width: 100%;
}

.timeline-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(.7, 0, .3, 1);
  will-change: transform;
}

.timeline-card {
  background: #181c25;
  color: #fff;
  border-radius: 16px;
  padding: 26px 16px 22px;
  box-shadow: 0 2px 14px rgba(123, 198, 58, 0.13);
  text-align: center;
  border: 1px solid #222;
  min-width: 0;
  /* Stop flex from squishing text! */
  flex: 0 0 calc((100% - 48px) / 3);
  /* 3 cards per row, 2 gaps of 24px = 48px */
  max-width: 320px;
}

.timeline-circle {
  width: 40px;
  height: 40px;
  background-image: url('/assets/images/task&earn.png');
  background-position: center;
  background-size: cover;
  margin: 0 auto 12px;
}

/* No buttons, autoplay implemented */
.timeline-btn {
  display: none;
  /* Buttons are removed */
}

/* Add this media query to your existing CSS for 1200px and larger */
@media (min-width: 1200px) {
  .timeline-card {
    flex: 0 0 calc((100% - 72px) / 4);
    /* 4 cards per row, 3 gaps of 24px = 72px */
    max-width: none;
    /* remove max-width limitation */
  }
}


@media (min-width: 768px) and (max-width: 991.98px) {
  .timeline-card {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: 350px;
  }

  .timeline-carousel-outer {
    padding: 0 24px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .timeline-card {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: 98vw;
  }

  .timeline-carousel-outer {
    padding: 0 10px;
  }
}

@media (max-width: 575.98px) {
  .timeline-card {
    flex: 0 0 100%;
    max-width: 98vw;
  }

  .timeline-carousel-outer {
    padding: 0 10px;
  }
}




/* Desktop: min-width 1400px */
@media (min-width: 1400px) {
  .hero-section h1 {
    font-size: 3rem;
  }

}

/* Desktop: min-width 1200px */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .hero-section h1 {
    font-size: 3rem;
  }

}

/* Laptop: 993px–1199px */
@media (min-width: 993px) and (max-width: 1199.98px) {
  .hero-section h1 {
    font-size: 2.6rem;
  }


  .payment-card {
    padding: 1rem;
  }
}

/* Tablet: 768px–992px */
@media (min-width: 768px) and (max-width: 992px) {
  .hero-section h1 {
    font-size: 2rem;
  }



}

/* Mobile: 576px–767px */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 1.6rem;
  }




  .footer h4 {
    font-size: 1rem;
  }

}

/* Extra small devices */
@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

  .hero-section h1 {
    font-size: 1.4rem;
    text-align: center;
  }

  .hero-section p {
    font-size: 0.95rem;
  }

  .register-btn-custom {
    width: 100%;
  }

  .container-our-services {
    margin: 0 0.5rem;
  }

  footer .row>div {
    text-align: center;
  }
}

.text-light {
  color: white !important;
}

.text-muted {
  color: #6c757d !important;
}




/* ===== Mobile steps: same height on every slide + smooth fade ===== */
@media (max-width: 767.98px) {

  /* prevent jump: lock track height */
  #stepsCarousel .carousel-inner {
    min-height: 560px;
  }

  /* smooth fade (Bootstrap-compatible) */
  #stepsCarousel.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity .6s ease-in-out;
    /* smoother */
    will-change: opacity;
  }

  #stepsCarousel.carousel-fade .carousel-item.active,
  #stepsCarousel.carousel-fade .carousel-item-next.carousel-item-start,
  #stepsCarousel.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    z-index: 1;
  }

  #stepsCarousel.carousel-fade .active.carousel-item-start,
  #stepsCarousel.carousel-fade .active.carousel-item-end {
    opacity: 0;
    z-index: 0;
  }

  /* uniform slide layout */
  .step-slide {
    max-width: 360px;
    margin: 0 auto;
    padding: 8px 10px;

    /* equal height for all slides */
    height: 520px;
    /* जरूरत हो तो 540–560px करें */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* button हमेशा नीचे रहे */
    text-align: center;
    background: transparent;
  }

  .step-slide-img {
    height: 170px;
    /* fixed visual area */
    width: auto;
    object-fit: contain;
    margin: 0 auto 6px;
    display: block;
  }

  .step-slide-number {
    color: #7BC63A;
    font-weight: 700;
    margin: 4px 0 2px;
    font-size: 0.95rem;
  }

  .step-slide-title {
    font-weight: 700;
    line-height: 1.2;
    min-height: 48px;
    /* 2 lines space */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
  }

  .step-slide-desc {
    color: #cbd5e1;
    line-height: 1.45;

    /* keep height same across slides */
    min-height: 96px;
    /* ~4 lines */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    /* clamp to 4 lines */
    overflow: hidden;

    padding: 0 6px;
    margin-bottom: 6px;
  }

  .btn-step {
    background: #2b2b2b;
    color: #fff;
    border: 1px solid #363636;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
  }

  .btn-step:hover {
    background: #7BC63A;
    color: #000;
  }

  /* bigger tap areas for arrows */
  #stepsCarousel .carousel-control-prev,
  #stepsCarousel .carousel-control-next {
    width: 18%;
    opacity: .95;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, .35));
  }

  /* accessibility: respect reduced motion */
  @media (prefers-reduced-motion: reduce) {
    #stepsCarousel.carousel-fade .carousel-item {
      transition: none;
    }
  }
}