/* ========================================
   UX Lab Marketing - Navbar & Button Styles
   ======================================== */

/* ===== PRIMARY COLOR OVERRIDE ===== */
:root {
  --bs-primary: #0d6efd !important;
  --bs-primary-rgb: 13, 110, 253 !important;
  --bs-text-opacity: 1 !important;
}

/* ===== NAVBAR BRAND COLOR ===== */
.navbar-brand .text-primary {
  color: var(--bs-primary) !important;
}

/* ===== SHADOW STYLING ===== */
.card,
.navbar,
img.rounded-4 {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

/* ===== FOOTER ICON LINK RESET ===== */
footer .fs-5 a {
  text-decoration: none !important;
}
footer .fs-5 a:hover {
  text-decoration: none !important;
}

/* ===== KILL ANY TEAL (#4aa4bc) IF USED INLINE ===== */
*[style*="#4aa4bc"] {
  color: #0d6efd !important;
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
}

/* ===== BOOTSTRAP UTILITY CLASS OVERRIDES ===== */
.text-primary {
  color: #0d6efd !important;
}
.bg-primary {
  background-color: #0d6efd !important;
}
.border-primary {
  border-color: #0d6efd !important;
}
.alert-primary {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  color: #fff !important;
}
.badge.bg-primary {
  background-color: #0d6efd !important;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #0b5ed7 !important;
  border-color: #0a58ca !important;
  color: #fff !important;
}

.btn-outline-primary {
  color: #0d6efd !important;
  border-color: #0d6efd !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: #0d6efd !important;
  color: #fff !important;
  border-color: #0d6efd !important;
}
/* Force toggles to use UX Lab blue */
.form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Optional: focus state to match */
.form-check-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* === Brand Blue Borders on Form Fields === */
.auth-card input.form-control,
.auth-card select.form-select,
.card input.form-control,
.card select.form-select {
  border: 2px solid #0d6efd !important;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s ease-in-out;
}

/* Focus state for all matching inputs/selects */
.auth-card input.form-control:focus,
.auth-card select.form-select:focus,
.card input.form-control:focus,
.card select.form-select:focus {
  border-color: #0d6efd !important;
  outline: none;
}


/* ========================================
   Responsive Mobile Nav Fixes (Updated)
   ======================================== */
@media (max-width: 991.98px) {
  /* Stack and equalize width of all nav buttons & toggles */
  #mainNav .navbar-nav .nav-item > a.btn,
  #mainNav .navbar-nav .nav-item.dropdown > a.dropdown-toggle {
    display: block;
    width: 100%;
    margin: 0.75rem 0;      /* vertical spacing between items */
    text-align: center;
  }

  /* Remove leftover lg-margin utilities */
  #mainNav .navbar-nav .btn.ms-lg-3,
  #mainNav .navbar-nav .btn.me-lg-2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Ensure dropdown menu matches parent width */
  #mainNav .navbar-nav .nav-item.dropdown .dropdown-menu {
    width: 100%;
    box-sizing: border-box;
  }

  /* Full-width dropdown items */
  #mainNav .navbar-nav .dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Slight bottom margin between link-only items */
  #mainNav .navbar-nav .nav-item {
    margin-bottom: 0.25rem;
  }
}

@media (min-width: 992px) {
  /* Restore inline buttons for desktop */
  .navbar .btn {
    display: inline-block;
    width: auto;
    margin-top: 0;
    text-align: left;
  }

  .navbar .dropdown {
    width: auto;
  }

  .navbar .dropdown .dropdown-toggle {
    width: auto;
  }
}
/* ========================================
   UX Lab Marketing - Blog Intro Mobile Fix
   ======================================== */
@media (max-width: 767px) {
  .blog-intro-wrapper {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .blog-intro-text {
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .blog-intro-text h1 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin: 0 0 0.5rem 0 !important;
  }

  .blog-intro-text p {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }
}

