/* Hide language selector and RLT text issues */
respond-languages,
respond-languages-toggle {
  display: none !important;
}

/* Centered CVI button below navigation */
.cvi-menu-button {
  display: block !important;
  width: 200px !important;
  margin: 0 auto !important;
  padding: 12px 24px !important;
  background-color: #1a3666 !important;
  color: #f0a725 !important;
  text-decoration: none !important;
  text-align: center !important;
  font-weight: bold !important;
  font-size: 16px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  border-radius: 15px !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 999 !important;
}

.cvi-menu-button:hover {
  background-color: #143056 !important;
  color: #f0a725 !important;
  text-decoration: none !important;
  transform: translateY(2px) !important;
}

.cvi-menu-button:visited {
  color: #f0a725 !important;
}

.cvi-menu-button:focus {
  color: #f0a725 !important;
}

.cvi-menu-button:active {
  color: #f0a725 !important;
}

/* Additional specificity for containers that might override */
div .cvi-menu-button,
.container .cvi-menu-button,
.col .cvi-menu-button,
.hero-section .cvi-menu-button,
.block .cvi-menu-button,
.row .cvi-menu-button,
#content .cvi-menu-button,
div[style] .cvi-menu-button {
  color: #f0a725 !important;
  background-color: #1a3666 !important;
}

/* Super specific selector to override any inheritance issues */
#content .container .block.row .col .cvi-menu-button,
.hero-section .col .cvi-menu-button {
  color: #f0a725 !important;
  background-color: #1a3666 !important;
  text-decoration: none !important;
}

/* Ensure all images are properly responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Form styling to match site design */
.form-control {
  width: 100%;
  padding: 12px 15px;
  margin: 8px 0;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #31a785;
  box-shadow: 0 0 0 2px rgba(49, 167, 133, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #314a75;
  font-family: 'Playfair Display', serif;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Radio button styling */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  width: auto;
  margin: 0;
}

.btn-primary {
  background-color: #31a785;
  border: none;
  color: white;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 15px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #2a8f73;
}

/* Dark blue button for Take the CVI */
.btn-dark-blue {
  background-color: #1a3054 !important;
  -webkit-text-stroke: 0;
  font-size: 13px;
  text-transform: none;
  font-weight: 600 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 200px !important;
  height: 75px !important;
  border-radius: 15px;
  white-space: normal;
  font-family: 'Playfair Display', serif !important;
  letter-spacing: 0;
  margin: 16px auto;
  text-decoration: none;
  border: none;
  padding: 0 !important;
}

.btn-dark-blue i {
  margin-right: 8px !important;
  font-size: 48px !important;
}

/* Round all buttons across the site */
.btn-blue,
.btn-yellow,
.btn-green,
.btn-secondary,
.btn-green-foot {
  border-radius: 15px !important;
}

/* Specific overrides for buttons that might have different radius settings */
.btn {
  border-radius: 15px !important;
}

/* CLEAN NAVIGATION REBUILD */

:root {
  --nav-height: 50px;
  --nav-bg: #1a3054;
  --nav-text: #fff;
  --nav-gold: #f0a725;
  --header-height: 68px;
}

/* Base navigation bar */
.navbar {
  background: var(--nav-bg) !important;
  height: var(--nav-height) !important;
  position: fixed !important;
  top: var(--header-height) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  border: none !important;
  margin: 0 !important;
}

/* Adjust body for fixed navigation */
body {
  padding-top: calc(var(--header-height) + var(--nav-height)) !important;
}

/* DESKTOP NAVIGATION - Show all menu items horizontally */
@media (min-width: 1201px) {
  /* Hide all original elements */
  .navbar-header,
  .navbar-brand,
  .navbar-toggle,
  .mobile-menu-section {
    display: none !important;
  }
  
  /* Show desktop menu */
  .navbar-collapse {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
  }
  
  .navbar-nav {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
  }
  
  .navbar-nav > li {
    margin: 0 !important;
  }
  
  .navbar-nav > li > a {
    display: flex !important;
    align-items: center !important;
    height: var(--nav-height) !important;
    padding: 0 10px !important;
    color: var(--nav-text) !important;
    text-decoration: none !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    white-space: nowrap !important;
  }
  
  .navbar-nav > li > a:hover {
    color: var(--nav-gold) !important;
  }
  
  .navbar-nav > li:last-child > a {
    color: white !important;
  }
}

/* MOBILE NAVIGATION - Hamburger + Member Login, with dropdown */
@media (max-width: 1200px) {
  /* Hide desktop elements */
  .navbar-collapse {
    display: none !important;
  }
  
  .navbar-nav {
    display: none !important;
  }
  
  /* Show mobile navigation */
  .mobile-menu-section {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 15px !important;
    width: 100% !important;
  }
  
  /* Hamburger button */
  .navbar-toggle {
    display: block !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    padding: 8px !important;
    cursor: pointer !important;
  }
  
  .navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
  }
  
  .navbar-toggle .icon-bar {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: var(--nav-text) !important;
    margin: 3px 0 !important;
    border-radius: 1px !important;
  }
  
  /* Mobile top buttons container */
  .mobile-top-buttons {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: calc(100% - 20px) !important;
    position: relative !important;
  }
  
  /* Mobile Take CVI Button - Moved 25px left from center */
  .mobile-cvi-button {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(calc(-50% - 25px)) !important;
  }
  
  .mobile-cvi-button a {
    color: #1a3666 !important;
    background-color: var(--nav-gold) !important;
    text-decoration: none !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    border: none !important;
  }
  
  .mobile-cvi-button a:hover {
    background-color: #1a3666 !important;
    color: var(--nav-gold) !important;
  }
  
  /* Mobile Member Login Container - Right aligned */
  .mobile-member-login-container {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 100% !important;
    padding-right: 15px !important;
  }
  
  /* Mobile Member Login */
  .mobile-member-login {
    display: flex !important;
    align-items: center !important;
  }
  
  .mobile-member-login a {
    color: white !important;
    text-decoration: none !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
  }
  
  .mobile-member-login a:hover {
    color: var(--nav-gold) !important;
  }
  
  /* Mobile dropdown menu */
  .navbar-collapse.in {
    display: block !important;
    position: fixed !important;
    top: calc(var(--header-height) + var(--nav-height)) !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--nav-bg) !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .navbar-collapse.in .navbar-nav {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .navbar-collapse.in .navbar-nav > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  /* Show Contact Us in mobile menu - it's now the last item after Member Login removal */
  .navbar-collapse.in .navbar-nav > li:last-child {
    display: block !important;
  }
  
  .navbar-collapse.in .navbar-nav > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px 20px !important;
    color: var(--nav-text) !important;
    text-decoration: none !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    min-height: 50px !important;
  }
  
  .navbar-collapse.in .navbar-nav > li > a:hover {
    color: var(--nav-gold) !important;
  }
}

/* Hide all original bootstrap navbar elements */
.navbar-brand,
.navbar-header {
  display: none !important;
}

/* Logo header section styling */
.logo-header {
  background-color: white;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  width: 100%;
}

.logo-container {
  text-align: center;
  position: relative;
}

.main-logo {
  max-width: 240px;
  height: auto;
  display: inline-block;
}

/* Member Login Button in Logo Section */
.member-login-button {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background-color: #1a3666;
  color: #f0a725 !important;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  z-index: 10;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.member-login-button:hover {
  background-color: #0f2347;
  color: #f0a725 !important;
  text-decoration: none;
}

/* Take CVI button styling - positioned to the left of Member Login */
.take-cvi-button {
  position: absolute !important;
  right: 150px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-color: #f0a725 !important;
  color: #1a3666 !important;
  padding: 8px 16px !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  transition: all 0.3s ease !important;
  width: auto !important;
  margin: 0 !important;
  display: block !important;
  z-index: 10 !important;
}

.take-cvi-button:hover {
  background-color: #d49620 !important;
  color: #1a3666 !important;
  text-decoration: none !important;
}

.take-cvi-button:visited,
.take-cvi-button:focus,
.take-cvi-button:active {
  color: #1a3666 !important;
  text-decoration: none !important;
}

/* Hide both member login button and take CVI button on mobile when hamburger menu appears */
@media (max-width: 1200px) {
  .member-login-button,
  .take-cvi-button {
    display: none !important;
  }
}

/* Adjust navbar position to account for logo header */
.navbar-fixed-top {
  top: 121px !important; /* Logo header height + padding */
}

/* Adjust body padding to account for both logo and navbar */
body {
  padding-top: 171px !important; /* Logo header + navbar height */
}

/* Hide duplicate logo content areas to ensure only one logo per page */
.respond-image.logo,
.top .col-md-4:has(.respond-image.logo),
div[class*="logo"]:not(.logo-header):not(.logo-container):not(.main-logo) {
  display: none !important;
}

/* More specific selectors to hide duplicate logos in content */
.container.top .respond-image.logo,
.top.container .respond-image.logo,
.top .respond-image.logo {
  display: none !important;
}

/* Hide any content columns that contain the old logo structure */
.top .col-md-4:first-child:has(.respond-image.logo) {
  display: none !important;
}

/* Alternative approach - hide specific logo images in content area */
img[src*="TPLogo"]:not(.main-logo) {
  display: none !important;
}

/* Responsive adjustments for logo header */
@media (max-width: 768px) {
  .logo-header {
    padding: 10px 0;
  }
  
  .main-logo {
    max-width: 200px;
  }
  
  .navbar-fixed-top {
    top: 101px !important;
  }
  
  body {
    padding-top: 151px !important;
  }
}

@media (max-width: 480px) {
  .logo-header {
    padding: 8px 0;
  }
  
  .main-logo {
    max-width: 180px;
  }
  
  .navbar-fixed-top {
    top: 87px !important;
  }
  
  body {
    padding-top: 137px !important;
  }
}

/* HERO SECTION STYLING - All elements on same row */
.hero-section {
  display: flex !important;
  align-items: center !important;
  min-height: 120px !important;
  padding: 20px 0 !important;
}

.hero-section .col-md-3:first-child {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.hero-section .col-md-6 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Default hero section text - large and bold for all non-home pages */
.hero-section .col-md-6 h1 {
  text-align: center !important;
  margin: 0 !important;
  padding: 0 15px !important;
  font-size: 36px !important;
  font-weight: bold !important;
  line-height: 1.4em !important;
}

/* Home page hero text - smaller size */
.home-hero .col-md-6 h1 {
  text-align: center !important;
  margin: 0 !important;
  padding: 0 15px !important;
  font-size: 18px !important;
  font-weight: normal !important;
  line-height: 1.4em !important;
}

.hero-section .col-md-3:last-child {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.hero-section .btn-dark-blue {
  margin: 0 !important;
  white-space: nowrap !important;
}

.hero-section .respond-image img {
  max-width: 200px !important;
  height: auto !important;
}

/* Mobile responsive for hero section */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column !important;
    text-align: center !important;
    padding: 30px 15px !important;
  }
  
  .hero-section .col-md-3,
  .hero-section .col-md-6 {
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .hero-section .col-md-3:last-child {
    margin-bottom: 0 !important;
  }
  
  /* Default mobile hero text - large for all non-home pages */
  .hero-section .col-md-6 h1 {
    font-size: 28px !important;
    font-weight: bold !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
  }
  
  /* Home page mobile - smaller size */
  .home-hero .col-md-6 h1 {
    font-size: 20px !important;
    font-weight: normal !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
  }
}