html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Logo styling */
.site-logo-link { display: inline-block; }
.site-logo {
  max-width: 160px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.site-logo:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 18px rgba(0,0,0,0.28); }

/* Hero section */
.hero { background: linear-gradient(180deg, rgba(37,140,251,0.06), rgba(37,140,251,0.02)); }
.hero .display-5 { color: #0b3a66; }
.hero .lead { color: #1b3550; }

.quick-cards .card { border: 0; }
.quick-cards .card .card-body { min-height: 140px; }

/* Make hero action buttons equal size and centered */
.hero .d-flex > a.btn {
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Slightly larger min-width on wider screens */
@media (min-width: 768px) {
  .hero .d-flex > a.btn {
    min-width: 200px;
  }
}

/* Ensure all hero buttons use identical height and centered content */
.hero .row .btn {
  /* consistent height for buttons */
  min-height: 56px;
  height: 56px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  white-space: normal;
}

/* On small screens use slightly smaller buttons */
@media (max-width: 575.98px) {
  .hero .row .btn {
    min-height: 48px;
    height: 48px;
    font-size: 0.95rem;
  }
}

@media (max-width: 767px) {
  .site-logo { max-width: 120px; }
}

/* Navbar enhancements */
.navbar-dark .navbar-nav .nav-link { color: rgba(255,255,255,0.9); }
.navbar-dark .navbar-nav .nav-link:hover { color: #fff; text-decoration: underline; }
.navbar-brand .site-logo { box-shadow: none; border-radius: 6px; }

/* Footer */
.footer { background: #0b2e4a; color: rgba(255,255,255,0.8); padding: 18px 0; }
.footer a { color: #cfe8ff; }