/* membership_groups2 CSS */
/* Spacing Scale */
:root {
  --space-xs: 1rem;
  --space-sm: 1.5rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 5rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --container-max: 1200px;
  --container-padding: 2rem;
}

.membershipgroups h2 {
  font-weight: 500;
  color: #006995;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
  font-family: 'montserrat';
}

.secondary-hero-wrapper {
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
}

.header-container {
  max-width: none;
}

.header .nav-link {
  color: #006995;
}

.header:not(.scrolled) .nav-link:hover {
  color: #006995;
}

.header:not(.scrolled) .nav-link::after {
  background-color: #006995;
}

.hamburger span {
  background: #006995;
}

/* Hero Section */
.secondary-hero-combined {
  position: relative;
  width: calc(100% - 16px);
  height: 75vh;
  border-radius: 20px;
  overflow: hidden;
  margin: 0px auto 0 auto;
  margin-left: 8px;
  margin-right: 8px;
  background-image: url('photos/Membership Banner_3.webp');
  background-size: cover;
  background-position: right 50%; /* Adjust the % (0% = top, 50% = center, 100% = bottom) */
  background-repeat: no-repeat;
}

@media (max-width: 480px) {
  .secondary-hero-combined {
    background-position: 80% 50%;
  }
}


.secondary-hero-combined::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.secondary-hero-image-section {
  height: 75vh;
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

.secondary-hero-card {
  background: #ffffffb5;
  border-radius: 16px;
  border: 1px solid white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 10;
}

.secondary-hero-card-container {
  max-width: 1200px;
  margin: 0 auto;
}

.desktop-title {
  display: none;
}

.mobile-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #006995;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.secondary-hero-text-grid {
  display: grid;
}

.secondary-hero-text-main {
  font-size: 1.625rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.secondary-hero-text-secondary {
  font-size: 1.0625rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 2rem;
}

.secondary-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #006995 0%, #0093D1 100%);
  color: white;
  border: none;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 105, 149, 0.25);
  position: relative;
}

.secondary-contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #005580 0%, #0077a8 100%);
  opacity: 0;
  transition: opacity 0.4s ease-out;
  z-index: -1;
  border-radius: 8px;
}

.secondary-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 105, 149, 0.3);
}

.secondary-contact-btn:hover .btn-arrow {
  transform: translateX(8px);
}

.secondary-contact-btn:hover::before {
  opacity: 1;
}

.secondary-contact-btn:active {
  transform: translateY(-1px);
  transition: all 0.1s ease;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.4s ease-out;
  font-size: 20px;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Content Section */
.main-content-section {
  padding: var(--space-3xl) 0;
  background: #ffffff;
}

.content-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  padding-bottom: var(--space-3xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.content-left h2 {
  font-weight: 500;
  color: #006995;
  margin-bottom: var(--space-md);
  margin-top: 0;
}

.content-left p {
  color: #555;
  margin-bottom: var(--space-sm);
}

/* Chart Box */
.chart-title {
  font-weight: 500;
  color: #006995;
  margin-bottom: var(--space-md);
  margin-top: 0;
  text-align: left;
 
}

.chart-box {
  position: relative;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  margin-bottom: 3rem;
  padding: 2rem;  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;  
  border: 1px solid #e0e0e0;  
  border-radius: 12px;  
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  opacity: 0;  
  transform: translateY(60px);  
	min-height: 600px;
}

.chart-box.animate {
  animation: slideUpCard 0.8s ease-out forwards;
}

@keyframes slideUpCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.donut-subtitle {
  font-weight: 500;
  color: #666666;
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
  text-align: center;
  width: 100%;
	opacity: 0;
transform: translateY(20px);
}

.donut-subtitle.animate {
  animation: fadeInSubtitle 0.6s ease-out 0.5s forwards;
}

@keyframes fadeInSubtitle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#donutchart {
  width: 100% !important;
  height: auto !important;
  max-width: 600px;
  max-height: 600px;
	align-items: center;
	opacity: 0;
}
#donutchart.animate {
  animation: fadeInChart 0.6s ease-out 0.8s forwards;
}

@keyframes fadeInChart {
  to {
    opacity: 1;
  }
}

.chart-legend li span {
  border-radius: 8px !important;
}

/* Why Partner Section */
.why-partner-section {
  padding: 1.5rem 0;
  /* background: #F8F7FA; OLD GREY SECTION BACKGROUND COLOR */ 
}

.why-partner-section .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

p.options {
  text-align: center;
  color: #555555;
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

.section-title {
  font-weight: 500;
  color: #006995;
  text-align: center;
  margin-bottom: var(--space-md);
}

.benefits-container {
  background-color: transparent;
  border-radius: 8px;
  padding: var(--space-md) var(--space-lg);
  margin: 0 auto;
  max-width: 900px;
}

.benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.benefit-item:last-child {
  margin-bottom: 0;
}

.benefit-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.benefit-number {
  background: #006995;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  margin-right: var(--space-md);
  flex-shrink: 0;
}

.benefit-text {
  color: #333;
  font-weight: 500;
  line-height: 1.4;
}

/* Mobile/Tablet Styles */
@media (max-width: 767px) {
  .mobile-title {
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
    line-height: 1.35;
  }

  .secondary-hero-text-main {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .secondary-hero-text-secondary {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  .secondary-hero-card {
    margin: -120px 16px 40px 16px;
    padding: 1.75rem;
  }
  
  .main-content-section {
    padding: var(--space-2xl) 0;
  }
  
  .content-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
  }
  
.chart-box {
  max-width: 100%;
  padding: 1.5rem;
}
  
  .why-partner-section {
    padding: 1.5rem 0;
  }
  
  .why-partner-section .container {
    padding: 0 var(--space-md);
  }
  
  
  .chart-box {
    padding: var(--space-sm);
  }
  
  #donutchart {
    max-width: 600px;
    max-height: 600px;
  }
  
  
  .benefits-container {
    padding: var(--space-sm) var(--space-md);
  }
}

/* Mobile Only Styles */
@media (max-width: 480px) {
  .desktop-title {
    display: none;
  }
  
  .mobile-title {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  
  .secondary-hero-wrapper {
    padding: 0;
  }
  
  .secondary-hero-combined {
    margin-top: 0px;
    height: 60vh;
    margin-left: 8px;
    margin-right: 8px;
  }
  
  .secondary-hero-image-section {
    height: 60vh;
    padding: 20px;
  }
  
  .secondary-hero-card {
    margin: -100px 16px 40px 16px;
    padding: 1.5rem;
  }
  
  .secondary-hero-combined::after {
    background: rgba(0, 0, 0, 0.0);
  }
  
  .secondary-hero-text-main {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 0.875rem;
  }

  .secondary-hero-text-secondary {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .secondary-contact-btn {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  
  .main-content-section {
    padding: var(--space-lg) 0;
  }
  
  .content-container {
    padding: 0 0.5rem;
  }

  

  
  .chart-box {
    padding: var(--space-sm);
  }
  

  
  .benefit-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-right: var(--space-sm);
  }

  
  .benefit-item {
    margin-bottom: var(--space-md);
  }
  
  .benefits-container {
    padding: var(--space-sm);
  }
  
  .why-partner-section .container {
    padding: 0 0.5rem;
  }
}

/* Tablet/Desktop Styles 768px+ */
@media (min-width: 768px) {
  .mobile-title {
    display: none;
  }
  
  .desktop-title {
    display: block;
    position: absolute;
    top: 80px;
    left: 60px;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0;
    z-index: 3;
    max-width: 800px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
  }
  
  .secondary-hero-image-section {
    position: relative;
  }
  
  .secondary-hero-card {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.3s forwards;
    padding: 3rem;
    margin: -200px 40px 60px 40px;
  }
  
  .secondary-hero-text-main {
    font-size: 1.375rem;
  }

  .secondary-hero-text-secondary {
    font-size: 1rem;
  }
}