/* ============================================
   CUSTOM V4 STYLES - Overrides and Additions
   ============================================ */

/* V4 Layout fixes */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.v4_layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v4_main_content {
  flex: 1;
  width: 100%;
  overflow-x: hidden;
}

/* Hide Google Translate banner and body offset */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

/* Hide Google Translate widget completely */
#google_translate_element {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Keep Google Translate functional but invisible */
.goog-te-banner-frame {
  display: none !important;
}

.skiptranslate {
  display: none !important;
}

/* Custom language button - exactly matches v4_language_dropdown */
.v4_custom_language_btn {
  /* Reset default button styles */
  all: unset;
  box-sizing: border-box;
  
  /* Apply v4 styles */
  background: transparent;
  border: 1px solid #ffffff29;
  border-radius: 12px;
  margin-right: 6px;
  padding: 4px 8px;
  font-family: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
  line-height: 1;
}

.v4_custom_language_btn:hover {
  opacity: 0.8;
}

.v4_custom_language_btn span {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.v4_custom_language_btn svg {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ============================================
   V4 TOP NAVIGATION RESPONSIVE FIXES
   ============================================ */

/* Mobile responsive - prevent overlapping */
@media (max-width: 768px) {
  .v4_top_nav_content {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 8px 16px !important;
  }
  
  .v4_enroller_welcome {
    margin-bottom: 4px;
  }
  
  .v4_top_nav_right {
    position: relative !important;
    right: auto !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .v4_divider_vertical {
    display: none !important;
  }
  
  .v4_custom_language_btn,
  .v4_top_nav_link {
    font-size: 11px;
  }
}

/* ============================================
   V4 TOP NAVIGATION LINK STYLES
   ============================================ */

.v4_top_nav_link {
  all: unset;
  box-sizing: border-box;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-family: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  font-weight: 400;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: opacity 0.2s;
  padding-left: 10px;
}

.v4_top_nav_link:hover {
  opacity: 0.8;
}

/* ============================================
   V4 MAIN NAVIGATION FONT SIZE FIX
   ============================================ */

/* Ensure consistent nav item font size */
.v4_nav_item {
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: 0.3px !important;
}

/* Fix span inside nav item (Shop dropdown) */
.v4_nav_item span {
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: 0.3px !important;
  line-height: inherit !important;
}

.v4_nav_item .v4_dropdown_arrow {
  width: 12px !important;
  height: 12px !important;
}

/* ============================================
   V4 ACCOUNT BUTTON TEXT SIZE FIX
   ============================================ */

/* Account button text should be 14px */
.v4_btn_account span {
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* ============================================
   V4 ENROLLER WELCOME MESSAGE STYLES
   ============================================ */

/* Enroller message container */
.v4_enroller_welcome {
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  font-family: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  text-align: center;
}

/* Enroller name (underlined and clickable) */
.v4_enroller_name {
  text-decoration: underline;
  cursor: pointer;
  font-weight: 400;
  font-style: italic;
  color: #ffffff;
  font-size: 12px;
  font-family: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.v4_enroller_name:hover {
  opacity: 0.8;
}

/* Enroller text spans */
.v4_enroller_text {
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  font-family: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

[class^="v4_btn_"]:hover {
  color: #ffffff;
}

/* ============================================
   Custom styles for opportunity page
   ============================================ */

.v4_opp_hero_title {
  color: #ffffff;
}

.v4_opp_hero_description {
  color: #ffffff;
}

.v4_opp_hero_description_second {
  color: #ffffff;
}

.v4_opp_chapter_title {
  color: #ffffff;
}

.v4_opp_chapter_description {
  color: #ffffff;
}

/* ============================================
   VISION PAGE FONT FIXES
   ============================================ */

/* Hero Section */
.v4_vision_hero_title,
.v4_vision_hero_description {
  font-family: "Gotham", sans-serif !important;
  color: #ffffff !important;
}

/* Founding Story Section */
.v4_founding_story_title,
.v4_founding_story_subtitle,
.v4_founding_story_paragraph,
.v4_founding_story_list li span {
  font-family: "Gotham", sans-serif !important;
}

/* Values Section */
.v4_values_title,
.v4_values_intro,
.v4_value_letter,
.v4_value_name,
.v4_value_description,
.v4_values_quote_text {
  font-family: "Gotham", sans-serif !important;
}

/* Mission Section */
.v4_mission_title,
.v4_mission_paragraph,
.v4_mission_list li span {
  font-family: "Gotham", sans-serif !important;
}

/* Founder Quote Section */
.v4_founder_quote_text,
.v4_founder_quote_author {
  font-family: "Gotham", sans-serif !important;
}

/* Visionaries Section */
.v4_visionaries_title,
.v4_visionaries_paragraph,
.v4_visionaries_subtitle,
.v4_visionaries_list li span {
  font-family: "Gotham", sans-serif !important;
}

/* Innovation Section */
.v4_innovation_title,
.v4_innovation_paragraph {
  font-family: "Gotham", sans-serif !important;
}

/* Nueva Standard Section */
.v4_nueva_standard_title,
.product-name,
.product-description {
  font-family: "Gotham", sans-serif !important;
}

/* Together Rise Section */
.v4_together_rise_title,
.v4_together_rise_paragraph {
  font-family: "Gotham", sans-serif !important;
  color: #ffffff !important;
}

/* ============================================
   FAQ PAGE FIXES
   ============================================ */

/* Fix FAQ item layout - should NOT be flex */
.v4_faq_item {
  display: block !important;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

/* Question wrapper should be flex with space-between */
.v4_faq_question_wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

/* Question button takes full width */
.v4_faq_question {
  flex: 1 !important;
  background-color: transparent !important;
  border: none !important;
  text-align: left !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

/* Answer styling */
.v4_faq_answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
}

.v4_faq_item.active .v4_faq_answer {
  padding: 0 0 24px 0;
}

/* Toggle button styling */
.v4_faq_toggle {
  flex-shrink: 0 !important;
  margin-left: 16px !important;
}

.v4_faq_toggle svg {
  transition: transform 0.3s ease;
}

.v4_faq_item.active .v4_faq_toggle svg {
  transform: rotate(45deg);
}


/* Tree container */
.v4_shop_sidebar ul {
  list-style: none;
  padding-left: 1.2rem;
  margin: 0;
  position: relative;
}


/* Each item */
.v4_shop_sidebar li {
  position: relative;
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}
/* Parent header indentation */
.v4_shop_sidebar .card-header {
  padding-left: 1.2rem;
  position: relative;
}

/* Rotate arrow when expanded */
.v4_shop_sidebar .card-header:not(.collapsed)::before {
  transform: rotate(90deg);
}

.v4_shop_sidebar .list-check {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  white-space: normal;        /* allows wrapping */
  word-break: break-word;     /* breaks long words */
  line-height: 1.4;
}
