/* ==============================
   BENEFITS SECTION - FLIP CARDS
   ============================== */

.benefits-section {
  background: white;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.benefits-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.benefits-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  width: 100%;
}

.benefits-container::-webkit-scrollbar {
  display: none;
}

/* FLIP CARD BASE STYLES */
.benefit-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  perspective: 1000px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  cursor: pointer;
  min-height: 320px;
}

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

.benefit-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.benefit-card.flipped .benefit-card-inner {
  transform: rotateY(180deg);
}

.benefit-card-front, .benefit-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.benefit-card-front {
  background-color: white;
  color: var(--text);
  border-top: 4px solid var(--gold);
}

.benefit-card-back {
  background-color: white;
  color: var(--text);
  transform: rotateY(180deg);
  border-top: 4px solid var(--gold);
}

.benefit-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.benefit-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.benefit-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.3;
}

.benefit-description {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 15px;
}

.benefit-back-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* GOLD BULLET POINTS - RELIABLE METHOD */
.benefit-back-content ul,
.benefit-card-front ul {
  text-align: left;
  margin: 0;
  padding-left: 20px;
  flex: 1;
  list-style: none; /* Remove default bullets */
}

.benefit-back-content li,
.benefit-card-front li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
  position: relative;
  padding-left: 15px;
}

/* GOLD BULLETS USING ::BEFORE */
.benefit-back-content li::before,
.benefit-card-front li::before {
  content: "•";
  color: var(--gold);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.flip-hint {
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
  margin-top: auto;
  text-align: center;
  cursor: pointer;
  transition: color 0.3s;
  padding-top: 15px;
}

.flip-hint:hover {
  color: var(--gold-dark);
}

/* LAYOUT VARIANTS */
.benefit-card {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .benefit-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (min-width: 1024px) {
  .benefit-card {
    flex: 0 0 calc(33.333% - 14px);
  }
}

/* BENEFITS ARROWS */
.benefits-wrapper .scroll-arrow {
  position: absolute;
  top: 90px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.benefits-wrapper .scroll-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  transform: translateY(-50%) scale(1.05);
}

.benefits-wrapper .scroll-arrow.left {
  left: 15px;
}

.benefits-wrapper .scroll-arrow.right {
  right: 15px;
}

.benefits-wrapper .scroll-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.benefits-wrapper .scroll-arrow.disabled:hover {
  background: rgba(0, 0, 0, 0.3);
  color: white;
  transform: translateY(-50%);
}

.benefits-wrapper.hide-arrows .scroll-arrow {
  display: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .benefits-section {
    padding: 30px 20px;
  }
  
  .benefits-container {
    gap: 15px;
  }
  
  .benefit-image {
    height: 160px;
  }
  
  .benefits-wrapper .scroll-arrow {
    width: 35px;
    height: 35px;
    top: 80px;
  }
  
  .benefits-wrapper .scroll-arrow.left {
    left: 10px;
  }
  
  .benefits-wrapper .scroll-arrow.right {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .benefits-section {
    padding: 25px 15px;
  }
  
  .benefits-container {
    gap: 12px;
  }
  
  .benefit-image {
    height: 140px;
  }
  
  .benefit-card {
    min-height: 280px;
  }
  
  .benefits-wrapper .scroll-arrow {
    display: none !important;
  }
  
  .benefit-content,
  .benefit-back-content {
    padding: 15px;
  }
}