/* Navigation Button Stacking Fix */
/* Ensures CTA buttons and social media buttons in navigation header stack vertically */

.header-top-row .cta-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: var(--space-sm, 0.5rem) !important;
  flex-shrink: 0 !important;
}

/* Social Media Section Fix - 2x2 Grid Layout */
.header-top-row .social-section {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--space-xs, 0.25rem) !important;
  max-width: 90px !important;
  flex-shrink: 0 !important;
}

.header-top-row .social-section .social-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  flex: 0 0 calc(50% - var(--space-xs, 0.25rem) / 2) !important;
  box-sizing: border-box !important;
}

.header-top-row .cta-section .btn {
  display: block !important;
  width: 100% !important;
  max-width: 140px !important;
  text-align: center !important;
  margin: 0 !important;
  flex: none !important;
  box-sizing: border-box !important;
}

/* Ensure consistent spacing between buttons */
.header-top-row .cta-section .btn + .btn {
  margin-top: var(--space-sm, 0.5rem) !important;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .header-top-row .cta-section {
    order: 2 !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  .header-top-row .cta-section .btn {
    max-width: 200px !important;
    padding: var(--space-sm, 0.5rem) var(--space-md, 1rem) !important;
  }
  
  .header-top-row .social-section {
    order: 3 !important;
    justify-content: center !important;
    max-width: 80px !important;
  }
  
  .header-top-row .social-section .social-link {
    width: 35px !important;
    height: 35px !important;
    flex: 0 0 calc(50% - var(--space-xs, 0.25rem) / 2) !important;
  }
}

/* Tablet and desktop */
@media (min-width: 768px) {
  .header-top-row .cta-section .btn {
    min-width: 120px !important;
  }
  
  .header-top-row .social-section {
    max-width: 100px !important;
  }
  
  .header-top-row .social-section .social-link {
    width: 45px !important;
    height: 45px !important;
    flex: 0 0 calc(50% - var(--space-xs, 0.25rem) / 2) !important;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .header-top-row .cta-section {
    gap: var(--space-lg, 1rem) !important;
  }
  
  .header-top-row .cta-section .btn + .btn {
    margin-top: var(--space-lg, 1rem) !important;
  }
  
  .header-top-row .social-section {
    gap: var(--space-sm, 0.5rem) !important;
    max-width: 110px !important;
  }
}