/* Membership Section Styles */
.membership-section {
  background: var(--color-white, #ffffff);
  padding: 80px 0;
  position: relative;
}

.membership-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.membership-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.membership-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark, #2e2f3e);
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
}

.membership-section .section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted, #666666);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 0;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Individual Benefit Cards */
.benefit-card {
  background: var(--color-white, #ffffff);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Benefit Icons */
.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
}

.benefit-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Icon Background Colors */
.benefit-card:nth-child(1) .benefit-icon {
  background: rgba(235, 170, 74, 0.15);
}

.benefit-card:nth-child(2) .benefit-icon {
  background: rgba(173, 89, 141, 0.15);
}

.benefit-card:nth-child(3) .benefit-icon {
  background: rgba(226, 125, 90, 0.15);
}

.benefit-card:nth-child(4) .benefit-icon {
  background: rgba(104, 182, 204, 0.15);
}

.benefit-card:nth-child(5) .benefit-icon {
  background: rgba(134, 191, 169, 0.15);
}

.benefit-card:nth-child(6) .benefit-icon {
  background: rgba(46, 47, 62, 0.15);
}

/* Benefit Text */
.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark, #2e2f3e);
  margin-bottom: 16px;
  line-height: 1.3;
}

.benefit-description {
  font-size: 0.95rem;
  color: var(--color-text-muted, #666666);
  line-height: 1.6;
  margin: 0;
}

/* Corner Decorations */
.benefit-card::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border: 2px solid;
  border-left: none;
  border-bottom: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.benefit-card:hover::before {
  opacity: 1;
}

/* Corner decoration colors */
.benefit-card:nth-child(1)::before {
  border-color: var(--color-orange, #ebaa4a);
}

.benefit-card:nth-child(2)::before {
  border-color: var(--color-purple, #ad598d);
}

.benefit-card:nth-child(3)::before {
  border-color: var(--color-peach, #e27d5a);
}

.benefit-card:nth-child(4)::before {
  border-color: var(--color-teal, #68b6cc);
}

.benefit-card:nth-child(5)::before {
  border-color: var(--color-green, #86bfa9);
}

.benefit-card:nth-child(6)::before {
  border-color: var(--color-dark, #2e2f3e);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .membership-section {
    padding: 60px 0;
  }
  
  .membership-header {
    margin-bottom: 50px;
  }
  
  .membership-section .section-title {
    font-size: 2.25rem;
  }
  
  .benefits-grid {
    gap: 30px;
    max-width: 900px;
  }
  
  .benefit-card {
    padding: 35px 25px;
  }
}

@media (max-width: 768px) {
  .membership-section {
    padding: 50px 0;
  }
  
  .membership-section .container {
    padding: 0 16px;
  }
  
  .membership-header {
    margin-bottom: 40px;
  }
  
  .membership-section .section-title {
    font-size: 2rem;
  }
  
  .membership-section .section-subtitle {
    font-size: 1rem;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 24px;
  }
  
  .benefit-card {
    padding: 30px 20px;
  }
  
  .benefit-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
  }
  
  .benefit-icon img {
    width: 36px;
    height: 36px;
  }
  
  .benefit-title {
    font-size: 1.125rem;
  }
  
  .benefit-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .membership-section {
    padding: 40px 0;
  }
  
  .membership-section .container {
    padding: 0 12px;
  }
  
  .membership-header {
    margin-bottom: 30px;
  }
  
  .membership-section .section-title {
    font-size: 1.75rem;
  }
  
  .membership-section .section-subtitle {
    font-size: 0.95rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 20px;
  }
  
  .benefit-card {
    padding: 25px 16px;
  }
  
  .benefit-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }
  
  .benefit-icon img {
    width: 32px;
    height: 32px;
  }
  
  .benefit-title {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .benefit-description {
    font-size: 0.875rem;
  }
}

/* Loading State */
.benefits-grid.loading {
  opacity: 0.7;
}

.benefit-card.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility */
.benefit-card:focus-within {
  outline: 2px solid var(--color-teal, #68b6cc);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .benefit-card {
    border: 2px solid var(--color-dark, #2e2f3e);
  }
  
  .benefit-card::before {
    border-width: 3px;
    opacity: 1;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .benefit-card {
    transition: none;
  }
  
  .benefit-card:hover {
    transform: none;
  }
  
  .benefit-card.loading {
    animation: none;
  }
}
