.hero-carousel .carousel-item {
  height: 70vh;
  min-height: 420px;
}

.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 28, 0.55);
}

.hero-slide > .container {
  position: relative;
  z-index: 1;
}

.hero-slide .hero-text {
  max-width: 720px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.hero-slide .hero-text h1,
.hero-slide .hero-text p {
  color: #ffffff;
}

.hero-slide-1 {
  background-image: linear-gradient(135deg, #1d1359, #241572);
}

.hero-slide-2 {
  background-image: linear-gradient(135deg, #1d1359, #c8161a);
}

.hero-slide-3 {
  background-image: linear-gradient(135deg, #241572, #8a5a12);
}

#districtEmptyState {
  margin-top: 1rem;
}

.state-committee-img-wrapper {
  width: 96px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #f8f9fa;
}

.state-committee-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.rounded-xl {
  border-radius: 1rem !important;
}

.district-name-cell {
  display: flex;
  align-items: center;
}

.district-toggle {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--staup-navy);
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  font-weight: inherit;
  vertical-align: baseline;
}

.district-toggle-icon,
.district-toggle-icon-spacer {
  display: inline-block;
  width: 1rem;
  margin-right: 0.35rem;
  flex-shrink: 0;
  text-align: center;
}

.district-toggle-icon {
  transition: transform 0.15s ease-in-out;
}

.district-toggle[aria-expanded="true"] .district-toggle-icon {
  transform: rotate(180deg);
}

.district-detail-inner {
  background-color: #f8f9fa;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
}

.district-detail-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--staup-navy);
  border-top: 0;
}

.district-detail-table td {
  font-size: 0.95rem;
}

.content-placeholder {
  border: 1px dashed var(--staup-gold);
  border-radius: 0.5rem;
  background-color: var(--staup-cream);
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
}

.content-placeholder-badge {
  background-color: var(--staup-gold);
  color: var(--staup-navy);
}

/* Real published content styled like a card — not a dashed "needs content" placeholder */
.leadership-message {
  border-radius: 0.5rem;
  background-color: var(--staup-cream);
  padding: 1.25rem 1.5rem;
  margin-top: 0.75rem;
  box-shadow: 0 0.125rem 0.5rem rgba(29, 19, 89, 0.08);
}

.leadership-badge {
  background-color: var(--staup-gold);
  color: var(--staup-navy);
}

.leadership-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* Brand */
.navbar-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
}

.navbar-nav .nav-link.active {
  color: var(--staup-navy);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--staup-gold);
}

.navbar-nav .dropdown-menu .dropdown-item.active {
  background-color: var(--staup-cream);
  color: var(--staup-navy);
  font-weight: 600;
}

/* Google Translate widget — strip Google's own chrome (logo/border/box) and
   let our .translate-widget pill provide the visual styling instead. */
.translate-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(29, 19, 89, 0.15);
  border-radius: 999px;
  color: var(--staup-navy);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.translate-widget:hover {
  background-color: var(--staup-cream);
  border-color: rgba(29, 19, 89, 0.3);
}

.translate-widget .bi-translate {
  font-size: 0.9rem;
  color: var(--bs-primary);
}

#google_translate_element .goog-te-gadget,
#google_translate_element .goog-te-gadget-simple {
  font-family: inherit !important;
  font-size: 0.85rem !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

#google_translate_element .goog-te-gadget-icon,
#google_translate_element img {
  display: none !important;
}

#google_translate_element .goog-te-gadget-simple span[style*="border-left"] {
  display: none !important;
}

#google_translate_element .goog-te-gadget-simple > span > a {
  text-decoration: none !important;
  color: var(--staup-navy) !important;
}

#google_translate_element .goog-te-gadget-simple span[aria-hidden="true"] {
  color: var(--bs-primary) !important;
  font-size: 0.7rem !important;
}

body.goog-te-banner-show {
  top: 0 !important;
}

.goog-te-banner-frame {
  display: none !important;
}

/* Footer */
.staup-footer {
  background-color: var(--staup-navy);
  color: #e8e6f4;
  border-top: 4px solid var(--staup-gold);
}

.staup-footer h5 {
  color: #ffffff;
}

.staup-footer a {
  color: #c9c5e8;
  text-decoration: none;
}

.staup-footer a:hover {
  color: var(--staup-gold);
}

.staup-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  font-size: 1.1rem;
}

.staup-footer .footer-social a:hover {
  background-color: var(--staup-gold);
  color: var(--staup-navy);
}

/* Light-card variant of the social icon row (footer's is styled for a dark background) */
.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--staup-cream);
  color: var(--bs-primary);
  font-size: 1.1rem;
  border: 1px solid rgba(29, 19, 89, 0.1);
}

.contact-social a:hover {
  background-color: var(--staup-gold);
  color: var(--staup-navy);
  border-color: var(--staup-gold);
}

.staup-footer .footer-divider {
  border-color: rgba(255, 255, 255, 0.15);
}

