html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Brand theme: white + brand blue (assumed from provided image) */
:root {
  /* Adjust these two values if you want to fine‑tune the shade */
  --brand-primary: #0052cc;
  /* blue from image (assumption) */
  --brand-primary-rgb: 0, 82, 204;

  /* Bootstrap 5 CSS variables */
  --bs-primary: var(--brand-primary);
  --bs-primary-rgb: var(--brand-primary-rgb);
  --bs-link-color: var(--brand-primary);
  --bs-link-hover-color: #003da6;
}

/* Navbar with brand blue background */
.navbar-brand-blue {
  background-color: var(--brand-primary) !important;
  border-bottom: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand-blue .nav-link,
.navbar-brand-blue .navbar-brand,
.navbar-brand-blue .dropdown-toggle,
.navbar-brand-blue .user-brand h1,
.navbar-brand-blue .btn-link {
  color: #ffffff !important;
}

.navbar-brand-blue .nav-link:hover,
.navbar-brand-blue .navbar-brand:hover,
.navbar-brand-blue .btn-link:hover {
  opacity: 1 !important;
  color: #ffffff !important;
}

.navbar-brand-blue .nav-link::after {
  background-color: #ffffff !important;
}

.navbar-brand-blue .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.navbar-brand-blue .dropdown-menu {
  background-color: #ffffff;
}

.navbar-brand-blue .dropdown-item {
  color: #333 !important;
}

.navbar-brand-blue .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

.navbar-brand-blue .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
}

/* Make primary buttons use brand blue even if Bootstrap variables differ */
.btn-primary {
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-bg: #003da6;
  --bs-btn-hover-border-color: #003da6;
  --bs-btn-focus-shadow-rgb: var(--brand-primary-rgb);
  --bs-btn-active-bg: #003997;
  --bs-btn-active-border-color: #003997;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(var(--brand-primary-rgb), .5);
}

html {
  position: relative;
  min-height: 100%;
}

/*body {
  margin-bottom: 60px;
}*/

/* Links and nav links */
a,
.nav-link {
  color: var(--brand-primary);
}

a:hover,
.nav-link:hover {
  color: #003da6;
}

/* OTP input digits */
.otp-digit {
  width: 3rem;
}

/* Auth pages */
.auth-card {
  margin-top: 2rem;
}

.auth-title {
  letter-spacing: 0.2px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #6c757d;
  font-size: .875rem;
  margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background-color: #e9ecef;
}

.btn-google {
  --google-red: #dc3545;
  color: var(--google-red);
  border-color: var(--google-red);
  background-color: #fff;
}

.btn-google:hover {
  color: #fff;
  background-color: var(--google-red);
  border-color: var(--google-red);
}

/* Enhanced auth layout */
.auth-shell {
  max-width: 520px;
  margin: 2.5rem auto;
}

.auth-brand {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), .35);
}

.auth-subtitle {
  color: #6c757d;
}

.auth-input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

.auth-input-action {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  font-size: .875rem;
}

/* Light transparent blue background for main content areas on select pages */
.main-tint {
  background-color: rgba(var(--brand-primary-rgb), .05);
}

/* Hide scrollbars on pages that opt-in */
.no-scroll {
  overflow: hidden;
  height: 100vh;
  margin-bottom: 0 !important;
}

/* Footer Styles */
.home-footer {
  background-color: #f8f9fa;
  color: #333;
  position: relative;
}

.footer-links a:hover {
  color: var(--brand-primary) !important;
}

.newsletter-form .input-group-text {
  border-right: none;
}

.newsletter-form .form-control {
  border-left: none;
}

.newsletter-form .form-control:focus {
  border-color: #ced4da;
  box-shadow: none;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-bottom {
  background-color: #f8f9fa;
}

.social-icons a {
  transition: color .2s ease;
}

.social-icons a:hover {
  color: var(--brand-primary) !important;
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.scroll-to-top.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #212529;
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}