/* === Hero Carousel Section === */
.hero-carousel {
  position: relative;
  height: 80vh;
  overflow: hidden;
  border-radius: 16px;
  margin-top: 15px; /* Slightly reduced space for the badge */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-in-out;
  z-index: 1; /* Ensure it's below the badge */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease-in-out;
  opacity: 0;
  border-radius: 16px;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Improved Hero Overlay with animation */
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-align: center;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  max-width: 90%;
  width: 100%;
  z-index: 2;
  animation: slideUp 0.7s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.hero-overlay h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* Improved CTA button */
.cta-button {
  background-color: #0054a6;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-button:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.cta-button:hover:after {
  transform: translateX(0);
}

.cta-button:hover {
  background-color: #003f7d;
  transform: translateY(-2px);
}


.why-join {
  background: #fff;
  padding: 3rem 2rem; /* Increased horizontal padding */
  border-radius: 12px;
  max-width: 1200px; /* Slightly increased max width */
  margin: 2rem auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-join:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.why-join-container {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping to keep items side-by-side */
  justify-content: space-between;
  gap: 3rem; /* Increased gap for better separation */
  align-items: center; /* Align items vertically */
  max-width: 100%;
}

.why-join-left {
  flex: 1 1 55%; /* Adjusted to give more space to the text content */
  min-width: 0; /* Allow text to shrink if needed */
  text-align: justify; /* Improve text alignment */
}

.why-join-left h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: left; /* Keep headings left-aligned */
}

.why-list {
  padding-left: 1.25rem;
  line-height: 1.6;
  font-size: 1rem;
}

.why-list li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 0.5rem;
}

.why-list li:before {
  content: '→';
  color: #0054a6;
  position: absolute;
  left: -1rem;
}

.why-note {
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #666;
  text-align: left;
}

.why-join-right {
  flex: 1 1 45%; /* Slightly increased flex basis to accommodate larger image */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Center horizontally */
  padding: 1rem; /* Add padding for better spacing */
  min-width: 320px; /* Ensure minimum width */
  width: 100%; /* Use full available width */
}

.promo-line {
  font-weight: 700;
  font-size: 1.15rem;
  color: #003f7d;
  margin-bottom: 1.5rem; /* Increased spacing before image */
  text-shadow: 0 1px 1px rgba(0,0,0,0.05);
  line-height: 1.4;
}

.promo-image {
  width: 100%;
  max-width: 520px; /* Increased size for more prominence */
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Refined shadow */
  margin: 0 auto; /* Ensure centering */
  transition: transform 0.3s ease;
}

/* Removed float animation */

/* === Carousel JS Animation === */
@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 1; }
}

/* === How It Works Section === */
.how-it-works {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 3rem 2rem;
  gap: 2rem;
  margin-top: 3rem;
  border-radius: 10px;
}

.how-it-works-text {
  flex: 1 1 60%;
}

.how-it-works-steps {
  list-style: decimal inside;
  padding-left: 1rem;
  line-height: 1.8;
  font-size: 1.1rem;
  margin: 1rem 0;
}

.how-it-works-steps li {
  transition: transform 0.3s ease;
  cursor: default;
}

.how-it-works-steps li:hover {
  transform: translateX(5px);
  color: #0054a6;
}

.platform-fee {
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 1rem;
  color: #333;
}

.how-it-works-extra {
  flex: 1 1 35%;
  text-align: center;
}

.how-it-works-tagline {
  font-weight: 600;
  color: #004080;
  margin-bottom: 1rem;
}

.how-it-works-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === CTA Section === */
.independent-estimate {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f2f7fb;
  margin-top: 3rem;
}

.independent-estimate h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #002f5c;
  margin-bottom: 1rem;
}

.independent-estimate p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #333;
}

.cta-outline {
  border: 2px solid #003366;
  padding: 0.8rem 2rem;
  font-weight: 600;
  color: #003366;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-outline:hover {
  background-color: #003366;
  color: #fff;
}

/* Map container and badge styles - completely revised */
.map-container {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
}

.promo-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coverage-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 65, 130, 0.9);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  z-index: 5;
  animation: badgePulse 2.5s infinite ease-in-out;
}

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

/* Hover effects */
.map-container:hover .promo-image {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Mobile adjustments for the map container */
@media screen and (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .hero-carousel {
    height: 60vh;
    margin-top: 10px;
  }
  
  .how-it-works {
    flex-direction: column;
    padding: 2rem 1rem;
  }

    .why-join-container {
    flex-direction: column;
    flex-wrap: wrap;
    text-align: left;
    gap: 1rem;
  }

  .promo-line {
    text-align: center;
    font-size: 1.1rem;
  }
  
  .why-join-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
  }
  
  .map-container {
    width: 100%;
    max-width: 480px; /* Increased size for mobile */
  }
  
  .promo-image {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  }

  .why-join {
    padding: 2rem 1rem;
    margin: 1.5rem auto;
  }

  .coverage-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    bottom: 12px;
    right: 12px;
  }
}

/* Subscription Info Section */
.subscription-info {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  max-width: 900px;
  margin: 2.5rem auto 0 auto;
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: left;
  transition: box-shadow 0.3s, transform 0.3s;
}
.subscription-info:hover {
  box-shadow: 0 8px 24px rgba(0,84,166,0.10);
  transform: translateY(-3px);
}
.subscription-info h2 {
  font-size: 1.6rem;
  color: #003f7d;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}
.subscription-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}
.subscription-list li {
  font-size: 1.08rem;
  margin-bottom: 0.85rem;
  padding-left: 1.8rem;
  position: relative;
  color: #222;
}
.subscription-list li:before {
  content: '\2713';
  color: #0054a6;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 1.1rem;
}
.subscription-note {
  font-size: 0.98rem;
  color: #555;
  margin-top: 0.5rem;
  padding-left: 1.8rem;
}
.subscription-note a {
  color: #0054a6;
  text-decoration: underline;
}

.subscription-info .cta-button {
  background-color: #0054a6;
  color: #fff !important;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  margin-top: 1.2em;
  padding: 0.6em 1.5em;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.subscription-info .cta-button:hover {
  background-color: #003f7d;
  color: #fff;
}
