/* Main Container Styles */
refer-block {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Increased padding for laptop and iPad screens */
@media (min-width: 768px) {
  refer-block {
    padding: 3rem 4rem; /* Increased from 2rem 1rem */
  }
}

@media (min-width: 992px) {
  refer-block {
    padding: 4rem 6rem; /* Even more padding for larger laptops */
  }
}

/* Text Content Section */
.text-content {
  padding: 1rem;
  animation: fadeInLeft 0.8s ease-out;
}

/* Increased side padding for text on medium+ screens */
@media (min-width: 768px) {
  .text-content {
    padding: 1rem 2rem; /* Added right padding */
  }
}

.heading {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.main-heading {
  color: var(--dark-secondary-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.content-text {
  color: var(--primary-text-color);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Button Styles */
.custom-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
}

.custom-btn:hover {
  background-color: var(--dark-secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.image-container {
  padding: 1rem;
  animation: fadeInRight 0.8s ease-out;
}

/* Increased padding for image on medium+ screens */
@media (min-width: 768px) {
  .image-container {
    padding: 1rem 2rem; /* Added left padding */
  }
}

.refer-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
  border: 8px solid #f8f9fa;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.refer-img:hover {
  transform: rotate(5deg) scale(1.05);
}


/* How it works */
.refer-block-work {
  background-image: url('../image/12/WhatsApp-Image-2024-12-24-at-22.15.29_7431d39e.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px; /* Increased height to accommodate larger spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
  padding: 3rem;
  text-align: center;
}

.secondary-text-color {
  color: var(--dark-secondary-color);
  font-weight: 600;
}

.max-desc-width {
  max-width: 250px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Animations (unchanged) */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .main-heading {
    font-size: 2rem;
  }

  .content-text {
    font-size: 1rem;
  }

  .refer-img {
    max-width: 350px;
  }

    .refer-block-work {
      padding: 2rem;
    }

    .icons-row {
      gap: 3rem !important;
    }
}

@media (max-width: 768px) {
  .row.align-items-center {
    flex-direction: column-reverse;
    text-align: center;
  }

  .text-content, .image-container {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
  }

  .main-heading {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .custom-btn {
    margin-bottom: 2rem;
  }

  .refer-img {
    max-width: 300px;
    margin-bottom: 1.5rem;
  }

    .refer-block-work {
      min-height: auto;
      padding: 2rem 1rem;
    }

    .icons-row {
      flex-direction: column;
      gap: 3rem !important;
    }

    .max-desc-width {
      max-width: 300px;
    }
}

@media (max-width: 576px) {
  .main-heading {
    font-size: 1.5rem;
  }

  .heading {
    font-size: 1.1rem;
  }

  .refer-img {
    max-width: 250px;
    border-width: 5px;
  }
}