/* ==========================================================================
   GET INVOLVED PAGE REDESIGN
   Sleek, modern, and aligned design improvements
   ========================================================================== */

/* Header Section - Using header50 structure like sponsor page */
.section_header50 {
  position: relative !important;
  overflow: hidden !important;
}

.header50_background-image-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

.header50_background-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.image-overlay-layer {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(26, 26, 26, 0.7) !important;
  z-index: 2 !important;
}

.header50_component {
  position: relative !important;
  z-index: 3 !important;
}

/* Typography for header */
.section_header50 .heading-style-h1-overlay {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.section_header50 .text-size-medium_overlay {
  line-height: 1.6 !important;
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.section_header50 .text-style-tagline {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Three Ways Section Improvements */
.section_layout239 {
  background: #ffffff !important;
}

.layout239_component {
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* Center alignment for header */
.text-style-tagline {
  color: var(--_primitives---colors--neutral-darkest, #1a1a1a) !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  opacity: 0.7 !important;
}

.heading-style-h2 {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

/* Card Grid Layout */
.layout239_list.sponsor {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 32px !important;
  align-items: stretch !important;
}

/* Individual Card Styling */
.layout239_item {
  background: white !important;
  border: 1px solid rgba(26, 26, 26, 0.08) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.layout239_item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--_primitives---colors--blue-gem-lighter, #dbcfed) !important;
}

/* Image Styling with 12px radius */
.layout239_image-wrapper {
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #f8f9fa !important;
  aspect-ratio: 16/10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
}

.layout239_image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  transition: transform 0.3s ease !important;
}

.layout239_item:hover .layout239_image {
  transform: scale(1.05) !important;
}

/* Typography Improvements */
.heading-style-h4 {
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
  color: var(--_primitives---colors--neutral-darkest, #1a1a1a) !important;
  margin-bottom: 12px !important;
}

.layout239_item p {
  color: rgba(26, 26, 26, 0.7) !important;
  line-height: 1.6 !important;
  flex-grow: 1 !important;
  margin-bottom: 20px !important;
}

/* Button Group Alignment */
.button-group {
  margin-top: auto !important;
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.button-group.is-right {
  justify-content: center !important;
}

/* Button Styling - Using Website Purple Theme */
.button {
  padding: 12px 24px !important;
  border-radius: 100px !important;
  font-weight: 500 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Primary Button - Purple Theme */
.button.is-alternate {
  background: var(--_primitives---colors--blue-gem-lighter, #dbcfed) !important;
  color: var(--_primitives---colors--neutral-darkest, #1a1a1a) !important;
  border: 1.5px solid var(--_primitives---colors--neutral-darkest, #1a1a1a) !important;
  box-shadow: inset 0 4px 0 0 var(--_primitives---opacity--white-20, rgba(255,255,255,0.2)), 
              inset 0 -5px 0 0 var(--_primitives---opacity--neutral-darkest-15, rgba(26,26,26,0.15)), 
              0 2px 2px 0 var(--_primitives---opacity--neutral-darkest-15, rgba(26,26,26,0.15)) !important;
}

.button.is-alternate:hover {
  background: var(--_primitives---colors--blue-gem-lightest, #ede7f6) !important;
  transform: translateY(-2px) !important;
}

/* Secondary Button - Light Purple */
.button.is-secondary {
  background: var(--_primitives---colors--blue-gem-lightest, #ede7f6) !important;
  color: var(--_primitives---colors--neutral-darkest, #1a1a1a) !important;
  border: 1.5px solid var(--_primitives---colors--neutral-darkest, #1a1a1a) !important;
  box-shadow: inset 0 4px 0 0 var(--_primitives---opacity--white-20, rgba(255,255,255,0.2)), 
              inset 0 -5px 0 0 var(--_primitives---opacity--neutral-darkest-15, rgba(26,26,26,0.15)), 
              0 2px 2px 0 var(--_primitives---opacity--neutral-darkest-15, rgba(26,26,26,0.15)) !important;
}

.button.is-secondary:hover {
  background: var(--_primitives---colors--blue-gem-lighter, #dbcfed) !important;
  transform: translateY(-2px) !important;
}

/* Social Share Buttons Enhancement */
.social-share-buttons {
  padding: 20px !important;
  background: #f8f9fa !important;
  border-radius: 12px !important;
  border: 1px solid rgba(26, 26, 26, 0.08) !important;
  margin: 20px 0 !important;
}

.share-button {
  width: 56px !important;
  height: 56px !important;
  background: white !important;
  border: 1.5px solid rgba(26, 26, 26, 0.1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.share-button:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  border-color: currentColor !important;
}

.share-button .material-icons {
  font-size: 28px !important;
}

/* Empty Space Filler */
.div-block-13.blank {
  flex-grow: 1 !important;
  min-height: 20px !important;
}

/* CTA Section Enhancement with Background Image */
.cta-with-background {
  position: relative !important;
  overflow: hidden !important;
  background: transparent !important;
  border-top: none !important;
}

.cta-background-image-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

.cta-background-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.cta-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(26, 26, 26, 0.75) !important;
  z-index: 2 !important;
}

.cta-with-background .cta7_component {
  position: relative !important;
  z-index: 3 !important;
  padding: 48px !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cta-with-background .cta7_content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
  flex-wrap: wrap !important;
}

/* White text styling for CTA section */
.cta-with-background .heading-style-h3 {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.cta-with-background .text-size-medium_ovelay_light {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile Responsive Design */
@media screen and (max-width: 767px) {
  .section_header50 .heading-style-h1-overlay {
    font-size: 2.5rem !important;
  }
  
  .section_header50 .text-size-medium_overlay {
    font-size: 1rem !important;
  }
  
  .layout239_list.sponsor {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  .layout239_item {
    padding: 20px !important;
  }
  
  .layout239_image-wrapper {
    aspect-ratio: 16/12 !important;
    margin-bottom: 16px !important;
  }
  
  .button-group {
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .button-group .button {
    width: 100% !important;
  }
  
  .cta-with-background .cta7_content {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .cta-with-background .cta7_component {
    padding: 32px 20px !important;
  }
  
  .share-button {
    width: 48px !important;
    height: 48px !important;
  }
  
  .share-button .material-icons {
    font-size: 24px !important;
  }
}

@media screen and (max-width: 479px) {
  .section_header50 .heading-style-h1-overlay {
    font-size: 2rem !important;
  }
  
  .section_header50 .text-size-medium_overlay {
    font-size: 0.9rem !important;
  }
  
  .layout239_item {
    padding: 16px !important;
    border-radius: 12px !important;
  }
  
  .layout239_image-wrapper {
    border-radius: 10px !important;
  }
  
  .layout239_image {
    border-radius: 10px !important;
  }
  
  .heading-style-h4 {
    font-size: 1.125rem !important;
  }
  
  .button {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
  }
  
  .social-share-buttons {
    padding: 16px !important;
  }
  
  .share-button {
    width: 44px !important;
    height: 44px !important;
  }
  
  .share-button .material-icons {
    font-size: 22px !important;
  }
}

/* Animation on Load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.layout239_item {
  animation: fadeInUp 0.6s ease-out forwards !important;
}

.layout239_item:nth-child(1) {
  animation-delay: 0.1s !important;
}

.layout239_item:nth-child(2) {
  animation-delay: 0.2s !important;
}

.layout239_item:nth-child(3) {
  animation-delay: 0.3s !important;
}

/* Ensure all images have proper alignment */
.layout239_item.get-involved .layout239_image {
  object-position: center !important;
}

/* Footer logo images - no border radius */
.footer5_logo,
.navbar6_logo {
  border-radius: 0 !important;
}