/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Banner Section */
.hero-banner {
  padding: 0 0 2rem 0;
  background: transparent;
  position: relative;
  z-index: 5;
}

.banner-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Main Banner with diagonal lines */
.main-banner {
  height: 300px;
  background: white;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Cards Row */
.cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: -80px; /* move cards up over hero image */
}

/* All separators now handled by background gradient below */

/* All three separators using unified background gradient */
.cards-row {
  position: relative;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.benefit-card {
  position: relative;
}

.benefit-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  height: 100%;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 180px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.card-image .placeholder-image {
  transition: transform 0.4s ease;
}

/* Real Images */
.card-image img,
.advantage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legacy placeholder styles for fallback */
.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #e9ecef 25%, transparent 25%),
    linear-gradient(-45deg, #e9ecef 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e9ecef 75%),
    linear-gradient(-45deg, transparent 75%, #e9ecef 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.placeholder-image::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid #333;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Flexible spacer to push CTA to bottom while preserving a small gap */
.card-content::after {
  content: "";
  flex: 1 1 auto;
  order: 1;
}

.card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.card-content p {
  color: #666;
  font-size: 0.95rem !important;
  line-height: 1.3;
  margin-bottom: 0;
}

/* Tighter paragraph line-height inside hero cards */
.benefit-card .card-content p,
.featured-card .card-content p {
  line-height: 16px;
}

/* Override global #content p rule that enforces 26px line-height */
#content .benefit-card .card-content p,
#content .featured-card .card-content p {
  line-height: 16px !important;
}

/* ensure floats inside card content don't collapse container */
.card-content::after {
  content: "";
  display: table;
  clear: both;
}

/* Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: #01a2ca !important;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(22, 62, 88, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(22, 62, 88, 0.3);
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(22, 62, 88, 0.25);
}

.cta-btn.light {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.card-content .cta-btn {
  order: 2;
  align-self: flex-start;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 8px;
}

/* Advantage section specific button style: smaller, softer color */
.advantage-content {
  display: flex;
  flex-direction: column;
}
.advantage-content .cta-btn {
  background: #01a2ca;
  color: #ffffff !important;
  border: 1px solid #d7e3ec;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 0.25rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 8px;
  float: none;
  margin-top: 0.25rem;
  align-self: flex-start;
}

.advantage-content .cta-btn:hover {
  background: #e8eef5;
  border-color: #c7d8e5;
}

/* Right-align advantage CTAs like cards */
.advantage-content::after {
  content: "";
  display: table;
  clear: both;
}

.advantage-content .cta-btn {
  float: right;
  margin-top: 1rem !important;
}

/* Tertiary text-style CTA for a more modern look */
.cta-btn--tertiary {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  color: #163e58 !important;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
}

.cta-btn--tertiary::after {
  content: none;
}

.cta-btn--tertiary:hover::after {
}

.card-content .cta-btn--tertiary {
  float: right;
}

/* .advantage-content .cta-btn {
  margin-top: 0.75rem;
} */

/* Membership Section */
.membership-section {
  padding: 4rem 0;
  background: white;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #666;
  line-height: 1.7;
}

.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.advantage-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
}

.advantage-item.text-left .advantage-content {
  order: 1;
}

.advantage-item.text-left .advantage-image {
  order: 2;
}

.advantage-item.image-left .advantage-image {
  order: 1;
}

.advantage-item.image-left .advantage-content {
  order: 2;
}

.advantage-image {
  width: 100%;
  max-width: 600px;
  max-height: 400px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  align-self: start;
}

.advantage-image .placeholder-image {
  transition: transform 0.4s ease;
}

.advantage-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  margin-top: 0;
}

 .advantage-content p {
  color: #666;
  line-height: 1rem !important;
  font-size: 1rem !important;
  margin-bottom: 1rem;
}

.advantage-content p:last-of-type {
  margin-bottom: 0.25rem;
}

.advantage-content strong {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1rem;
  display: block;
  /* margin-bottom: 0.75rem; */
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.stat-item strong {
  font-weight: 700;
  font-size: 1rem;
}

/* Responsive Design */
/* Responsive Banner Design */
@media (max-width: 1024px) and (min-width: 769px) {
  .advantage-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .advantage-item .advantage-image {
    order: 1 !important;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .advantage-item .advantage-content {
    order: 2 !important;
  }
}

@media (max-width: 768px) {
  .benefits-page-container .hero-banner {
    height: 400px;
  }

  .benefits-page-container .banner-text h1 {
    font-size: 2.5rem;
  }

  .benefits-page-container .banner-text p {
    font-size: 1rem;
  }

  .benefits-page-container .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .benefits-page-container .benefits-page {
    margin-top: -120px;
  }

  .home-hero-banner {
    height: 300px;
  }

  .home-banner-text h1 {
    font-size: 2.5rem;
  }

  .home-banner-text p {
    font-size: 1rem;
  }

  .home-cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .hero-banner {
    margin-top: -80px;
  }

  .nav-wrapper {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
  }

  .cards-row {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -80px;
  }

  .advantages-list {
    gap: 2rem;
  }

  .advantage-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  /* On mobile, always show image first, then content - override all desktop order settings */
  .advantage-item .advantage-image {
    order: 1 !important;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .advantage-item .advantage-content {
    order: 2 !important;
  }
  .benefits-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .vendors-grid {
    order: 1;
  }

  .floating-btn {
    position: fixed;
    right: 1rem;
    bottom: 2rem;
    top: auto;
  }

  .partner-slider {
    gap: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

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

  .hero-banner {
    padding: 1.5rem 0;
  }

  .main-banner {
    height: 200px;
  }

  .cards-row {
    grid-template-columns: 1fr;
    margin-top: -60px;
  }

  .membership-section {
    padding: 3rem 0;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .vendors-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .vendor-card.expanded {
    grid-column: span 1;
    grid-row: span 1;
  }

  .sidebar {
    padding: 1rem;
  }
}
