.border-bottom {
  border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

/* Ensure focus ring is distinct for accessibility keyboard navigation */
*:focus-visible {
  outline: 3px solid #ffbf47 !important; /* High contrast yellow focus indicator */
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.9) !important;
}

/* Base styling */

#newsaside img{
    max-height: 175px;
}

.gov-page-header {
  border-bottom: 1px solid var(--gov-primary);
  padding-bottom: 1rem;
}

.gov-card {
  border: 1px solid var(--gov-border-color);
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.gov-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.gov-card-title a {
  color: var(--gov-primary);
  text-decoration: none; 
}

.gov-card-title a:hover, 
.gov-card-title a:focus {
  color: var(--gov-primary-hover);
  text-decoration: none;
}

.gov-badge {
  background-color: var(--gov-primary);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.gov-breadcrumb {
  background-color: var(--gov-bg-muted);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
}

.gov-breadcrumb a {
  color: var(--gov-primary);
  text-decoration: none;
}

/* High contrast pagination */
.gov-pagination .page-link {
  color: var(--gov-primary);
  border-color: var(--gov-border-color);
  font-weight: 600;
}

.gov-pagination .page-item.active .page-link {
  background-color: var(--gov-primary);
  border-color: var(--gov-primary);
  color: #ffffff;
}

/* Print styling compliance */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    color: #000 !important;
    background: #fff !important;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* Card image wrapper and positioning */
.gov-card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--gov-bg-muted);
}

.gov-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gov-card:hover .gov-card-img-wrapper img {
  transform: scale(1.03);
}

/* Badge positioning over images */
.gov-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}