/* ==========================================================================
   EVERETT BOROUGH - OFFICIAL MUNICIPAL PORTAL
   Design System & Master Stylesheet
   Inspired by modern Pennsylvania municipal design (Honesdale Borough)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Theme Variables
   -------------------------------------------------------------------------- */
:root {
  --boro-navy-dark: #0a192f;
  --boro-navy: #0f2b48;
  --boro-navy-light: #1e3a5f;
  --boro-keystone-blue: #1d4ed8;
  --boro-keystone-blue-light: #eff6ff;
  --boro-gold: #c59b27;
  --boro-gold-hover: #b08719;
  --boro-gold-light: #fef9c3;
  --boro-amber: #d97706;
  --boro-amber-bg: #fffbeb;
  --boro-amber-border: #fcd34d;
  --boro-forest: #15803d;
  --boro-forest-bg: #f0fdf4;
  --boro-text-main: #1f2937;
  --boro-text-muted: #6b7280;
  --boro-bg-light: #f8fafc;
  --boro-bg-card: #ffffff;
  --boro-border-color: #e2e8f0;
  --boro-border-subtle: #edf2f7;
  
  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 43, 72, 0.08), 0 2px 4px -2px rgba(15, 43, 72, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 43, 72, 0.1), 0 4px 6px -4px rgba(15, 43, 72, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(15, 43, 72, 0.12), 0 8px 10px -6px rgba(15, 43, 72, 0.05);
  --shadow-card-hover: 0 14px 28px rgba(15, 43, 72, 0.12), 0 10px 10px rgba(15, 43, 72, 0.08);

  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Base & Typography Reset
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--boro-text-main);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  color: var(--boro-navy);
  font-weight: 700;
}

h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--boro-navy);
}

a {
  color: var(--boro-keystone-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--boro-navy);
  text-decoration: underline;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 10px;
  background: var(--boro-navy);
  color: #fff !important;
  padding: 8px 16px;
  z-index: 99999;
  border-radius: 4px;
  transition: top 0.2s;
  font-weight: 600;
}
.skip-link:focus {
  top: 10px;
}

/* --------------------------------------------------------------------------
   3. Emergency Alert & Top Utility Banner
   -------------------------------------------------------------------------- */
.emergency-alert-bar > .container,
.top-civic-bar > .container,
.main-header-navbar > .container {
  max-width: 1560px;
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.emergency-alert-bar {
  background: linear-gradient(90deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.emergency-alert-bar a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
}
.emergency-alert-bar a:hover {
  color: #fef08a;
}
.emergency-alert-bar .badge {
  background-color: #78350f;
  color: #fef3c7;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.top-civic-bar {
  background-color: var(--boro-navy-dark);
  color: #cbd5e1;
  font-size: 0.83rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-civic-bar a {
  color: #e2e8f0;
  text-decoration: none;
}
.top-civic-bar a:hover {
  color: var(--boro-gold);
}
.top-civic-bar .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}
.status-badge .indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  flex-shrink: 0;
}
.status-badge .indicator-dot.closed {
  background-color: #ef4444;
}
.status-badge .indicator-dot.lunch {
  background-color: #f59e0b;
}

.a11y-controls {
  display: inline-flex;
  gap: 4px;
}
.a11y-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.a11y-btn:hover {
  background: var(--boro-gold);
  color: var(--boro-navy-dark);
  border-color: var(--boro-gold);
}

/* --------------------------------------------------------------------------
   4. Main Navigation Header
   -------------------------------------------------------------------------- */
.main-header-navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 43, 72, 0.08);
  padding: 10px 0;
  transition: var(--transition-fast);
  z-index: 1030;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.brand-logo-img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-title-group {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--boro-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--boro-gold-hover);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

/* Nav items */
.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--boro-navy);
  padding: 7px 10px !important;
  border-radius: 6px;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--boro-keystone-blue);
  background-color: var(--boro-keystone-blue-light);
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.dropdown-menu {
  border: 1px solid var(--boro-border-color);
  box-shadow: var(--shadow-xl);
  border-radius: 10px;
  padding: 8px;
  min-width: 255px;
  max-width: calc(100vw - 24px);
  animation: fadeInDropdown 0.18s ease forwards;
  z-index: 1040;
}
.dropdown-item {
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--boro-text-main);
  white-space: normal;
  transition: var(--transition-fast);
}
.dropdown-item:hover {
  background-color: var(--boro-keystone-blue-light);
  color: var(--boro-keystone-blue);
  transform: translateX(4px);
}
.dropdown-item i {
  color: var(--boro-gold);
  width: 20px;
  text-align: center;
  margin-right: 8px;
}

/* Header Action Buttons */
.header-actions {
  flex-shrink: 0;
}
.btn-pay-bill {
  background: linear-gradient(135deg, var(--boro-gold) 0%, #b08719 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 10px rgba(197, 155, 39, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.btn-pay-bill:hover {
  background: linear-gradient(135deg, #b08719 0%, #996e10 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(197, 155, 39, 0.45);
  text-decoration: none;
}

.btn-search-trigger {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-search-trigger:hover {
  background: #e2e8f0;
  color: var(--boro-navy);
}

/* Sticky Sub-Navigation Bar (e.g. Departments Jump Bar) & Anchor Offsets */
.dept-subnav-bar {
  top: var(--sticky-header-height, 76px) !important;
  z-index: 1020;
  transition: top 0.15s ease;
}
.dept-subnav-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
section[id],
div.card[id],
div[id="rtk"],
div[id="permits"],
div[id="tree-transient"],
div[id="tenley-forms"],
div[id="water-forms"],
div[id="employment"] {
  scroll-margin-top: calc(var(--sticky-header-height, 84px) + 24px);
}
#administration,
#beama,
#police,
#fire,
#publicworks,
#codes {
  scroll-margin-top: calc(var(--sticky-header-height, 84px) + 84px);
}

/* Mobile Offcanvas Sub-navigation Styling */
.offcanvas-subnav {
  list-style: none;
  padding-left: 16px;
  margin: 4px 0 8px 8px;
  border-left: 2px solid var(--boro-border-color);
}
.offcanvas-subnav li {
  margin-bottom: 4px;
}
.offcanvas-subnav a {
  display: block;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--boro-text-muted);
  border-radius: 6px;
  text-decoration: none;
}
.offcanvas-subnav a:hover {
  color: var(--boro-keystone-blue);
  background-color: var(--boro-keystone-blue-light);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. Hero Showcase (Honesdale Inspired Full Scenic Canvas)
   -------------------------------------------------------------------------- */
.hero-showcase {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-color: var(--boro-navy-dark);
  color: #ffffff;
  overflow: hidden;
}
.hero-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 8s ease-out;
  transform: scale(1.05);
}
.hero-slide-item.active {
  opacity: 1;
  transform: scale(1);
}
.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 25, 47, 0.88) 0%,
    rgba(15, 43, 72, 0.72) 50%,
    rgba(10, 25, 47, 0.82) 100%
  );
  z-index: 2;
}
.hero-content-container {
  position: relative;
  z-index: 3;
  padding: 60px 0;
}
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #fef08a;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.hero-motto-accent {
  font-family: 'Cinzel', serif;
  color: var(--boro-gold);
  font-size: 1.7rem;
  font-weight: 600;
  font-style: italic;
  display: block;
  margin-bottom: 16px;
}
.hero-lead-text {
  font-size: 1.18rem;
  color: #e2e8f0;
  max-width: 680px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Search bar in Hero */
.hero-search-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-search-input {
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 1rem;
  width: 100%;
  color: var(--boro-navy);
  outline: none;
}
.hero-search-input::placeholder {
  color: #94a3b8;
}
.hero-search-btn {
  background: var(--boro-navy);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.hero-search-btn:hover {
  background: var(--boro-keystone-blue);
}

.hero-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hero-quick-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}
.hero-quick-pill:hover {
  background: var(--boro-gold);
  color: var(--boro-navy-dark);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. Quick Services 8-Card Grid (Honesdale Borough Signature)
   -------------------------------------------------------------------------- */
.quick-services-section {
  position: relative;
  z-index: 10;
  margin-top: -50px;
  padding-bottom: 40px;
}
.service-action-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px 20px;
  border: 1px solid var(--boro-border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: var(--boro-text-main);
  position: relative;
  overflow: hidden;
}
.service-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--boro-navy) 0%, var(--boro-keystone-blue) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-action-card.card-featured::before {
  background: linear-gradient(90deg, var(--boro-gold) 0%, #b08719 100%);
  opacity: 1;
}
.service-action-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: #cbd5e1;
}
.service-action-card:hover::before {
  opacity: 1;
}
.card-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--boro-keystone-blue-light);
  color: var(--boro-keystone-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: var(--transition-fast);
}
.service-action-card.card-featured .card-icon-wrapper {
  background: var(--boro-gold-light);
  color: var(--boro-amber);
}
.service-action-card:hover .card-icon-wrapper {
  background: var(--boro-navy);
  color: #ffffff;
}
.service-card-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--boro-navy);
  margin-bottom: 6px;
  line-height: 1.25;
}
.service-card-desc {
  font-size: 0.88rem;
  color: var(--boro-text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
  line-height: 1.5;
}
.card-action-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--boro-keystone-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.service-action-card:hover .card-action-link {
  color: var(--boro-navy);
  gap: 10px;
}

/* --------------------------------------------------------------------------
   7. Announcement Banner & Public Notice Callout
   -------------------------------------------------------------------------- */
.civic-notice-callout {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-left: 5px solid #ea580c;
  border-radius: 10px;
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.civic-notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #9a3412;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   8. Section Headers
   -------------------------------------------------------------------------- */
.section-header-group {
  margin-bottom: 35px;
}
.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--boro-gold-hover);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.section-main-heading {
  font-size: 2.2rem;
  color: var(--boro-navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-lead-text {
  font-size: 1.05rem;
  color: var(--boro-text-muted);
  max-width: 700px;
}

/* --------------------------------------------------------------------------
   9. News & Announcements Cards (Honesdale Pattern)
   -------------------------------------------------------------------------- */
.news-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--boro-border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.news-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: var(--boro-navy);
}
.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-img {
  transform: scale(1.05);
}
.news-category-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 43, 72, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
}
.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-card-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--boro-navy);
  margin-bottom: 10px;
  line-height: 1.35;
}
.news-card-title a {
  color: var(--boro-navy);
}
.news-card-title a:hover {
  color: var(--boro-keystone-blue);
  text-decoration: none;
}
.news-excerpt {
  font-size: 0.9rem;
  color: var(--boro-text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}
.news-read-more-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--boro-keystone-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.news-read-more-btn:hover {
  color: var(--boro-navy);
  gap: 10px;
}

/* --------------------------------------------------------------------------
   10. Calendar & Upcoming Meetings (Honesdale Pattern)
   -------------------------------------------------------------------------- */
.calendar-widget-box {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--boro-border-color);
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.event-item-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--boro-border-color);
  transition: var(--transition-fast);
}
.event-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.event-item-row:first-child {
  padding-top: 0;
}
.event-date-badge {
  background: var(--boro-keystone-blue-light);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  min-width: 65px;
  text-align: center;
  padding: 8px 6px;
}
.event-date-month {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--boro-keystone-blue);
  display: block;
}
.event-date-day {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--boro-navy);
  line-height: 1;
  display: block;
}
.event-info {
  flex-grow: 1;
}
.event-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--boro-navy);
  margin-bottom: 4px;
}
.event-meta {
  font-size: 0.82rem;
  color: var(--boro-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.event-action-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--boro-navy);
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}
.event-action-btn:hover {
  background: var(--boro-keystone-blue);
  color: #ffffff;
  border-color: var(--boro-keystone-blue);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   11. Tenley Park Showcase Feature
   -------------------------------------------------------------------------- */
.tenley-feature-section {
  background: linear-gradient(135deg, #092c20 0%, #134e38 100%);
  color: #ffffff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.tenley-feature-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('../assets/images/nature-park.jpg') center center / cover no-repeat;
  opacity: 0.25;
  mix-blend-mode: overlay;
}
.tenley-heading {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: #ffffff;
  margin-bottom: 14px;
}
.tenley-amenity-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   12. Department Cards & Services Tabs
   -------------------------------------------------------------------------- */
.department-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--boro-border-color);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  height: 100%;
  transition: var(--transition-smooth);
}
.department-card:hover {
  border-color: var(--boro-keystone-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.department-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--boro-keystone-blue-light);
  color: var(--boro-keystone-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.department-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--boro-navy);
  margin-bottom: 8px;
}
.department-desc {
  font-size: 0.9rem;
  color: var(--boro-text-muted);
  margin-bottom: 16px;
}
.department-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 0.86rem;
}
.department-list li {
  padding: 5px 0;
  border-bottom: 1px dashed var(--boro-border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.department-list li:last-child {
  border-bottom: none;
}
.department-list li i {
  color: var(--boro-forest);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   13. Document & Form Repository Tables
   -------------------------------------------------------------------------- */
.doc-filter-bar {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 20px;
  border: 1px solid var(--boro-border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.doc-row-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 20px;
  border: 1px solid var(--boro-border-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-fast);
}
.doc-row-card:hover {
  border-color: var(--boro-keystone-blue);
  background-color: #fbfdff;
  box-shadow: var(--shadow-sm);
}
.doc-badge-pdf {
  background-color: #fee2e2;
  color: #dc2626;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   14. Permit 5-Step Process Interactive Guide
   -------------------------------------------------------------------------- */
.permit-step-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--boro-border-color);
  position: relative;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.step-number-bubble {
  position: absolute;
  top: -16px;
  left: 20px;
  background: var(--boro-navy);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   15. Report-a-Concern Form Styling
   -------------------------------------------------------------------------- */
.concern-form-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--boro-border-color);
  box-shadow: var(--shadow-md);
  padding: 30px;
}

/* --------------------------------------------------------------------------
   16. Civic Footer
   -------------------------------------------------------------------------- */
.civic-footer {
  background-color: var(--boro-navy-dark);
  color: #94a3b8;
  font-size: 0.9rem;
  padding-top: 60px;
  border-top: 4px solid var(--boro-gold);
}
.civic-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition-fast);
}
.civic-footer a:hover {
  color: var(--boro-gold);
  text-decoration: underline;
}
.footer-logo {
  max-height: 70px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 6px;
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--boro-gold);
}
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-link-list li {
  margin-bottom: 8px;
}
.footer-link-list li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-link-list li a:hover {
  transform: translateX(4px);
}
.footer-bottom-bar {
  background-color: #06111f;
  padding: 20px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   17. Modal & Search Overlay
   -------------------------------------------------------------------------- */
.search-modal-dialog {
  max-width: 680px;
  margin-top: 60px;
}
.search-modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   18. Accessibility High-Contrast & Font-Size Modes
   -------------------------------------------------------------------------- */
body.font-large {
  font-size: 18px;
}
body.font-xlarge {
  font-size: 20px;
}

body.high-contrast {
  --boro-navy-dark: #000000;
  --boro-navy: #000000;
  --boro-text-main: #000000;
  --boro-text-muted: #1a1a1a;
  --boro-bg-light: #ffffff;
  --boro-border-color: #000000;
  background-color: #ffffff !important;
  color: #000000 !important;
}
body.high-contrast a {
  color: #0000ee !important;
  text-decoration: underline !important;
}
body.high-contrast .service-action-card,
body.high-contrast .news-card,
body.high-contrast .calendar-widget-box,
body.high-contrast .department-card {
  border: 2px solid #000000 !important;
  background: #ffffff !important;
}
body.high-contrast .btn-pay-bill {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

/* --------------------------------------------------------------------------
   19. Tenley Park Interactive Calendar & Facility Cards
   -------------------------------------------------------------------------- */
.facility-card-img-wrap {
  position: relative;
  height: 175px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  margin: -24px -24px 16px -24px;
  background-color: var(--boro-navy);
}
.facility-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .facility-card-img {
  transform: scale(1.06);
}
.facility-price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 43, 72, 0.92);
  color: #fef08a;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}
.service-card-thumb {
  height: 120px;
  margin: -24px -20px 16px -20px;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid var(--boro-gold);
}
.service-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-action-card:hover .service-card-thumb img {
  transform: scale(1.08);
}

/* Tenley Park Calendar Grid */
.park-calendar-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--boro-border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.park-calendar-header {
  background: linear-gradient(135deg, #092c20 0%, #1a4d36 100%);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.park-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--boro-border-color);
  border-left: 1px solid var(--boro-border-color);
}
.park-cal-weekday {
  background: #f1f5f9;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--boro-navy);
  text-align: center;
  padding: 10px 4px;
  border-right: 1px solid var(--boro-border-color);
  border-bottom: 1px solid var(--boro-border-color);
}
.park-cal-day {
  min-height: 92px;
  padding: 6px;
  border-right: 1px solid var(--boro-border-color);
  border-bottom: 1px solid var(--boro-border-color);
  background: #ffffff;
  position: relative;
  transition: background 0.15s ease;
}
.park-cal-day:hover {
  background: #f8fafc;
}
.park-cal-day.empty {
  background: #f8fafc;
  color: #cbd5e1;
}
.park-cal-day.today {
  background: #eff6ff;
}
.park-cal-day-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--boro-text-main);
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
}
.park-cal-day.today .park-cal-day-num {
  background: var(--boro-keystone-blue);
  color: #ffffff;
}
.park-cal-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.park-cal-tag.movie {
  background: #fef3c7;
  color: #92400e;
  border-left: 3px solid #f59e0b;
}
.park-cal-tag.rented {
  background: #fee2e2;
  color: #991b1b;
  border-left: 3px solid #ef4444;
}
.park-cal-tag.community {
  background: #dcfce7;
  color: #166534;
  border-left: 3px solid #22c55e;
}

/* Photo Gallery Grid */
.gallery-item-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--boro-border-color);
  cursor: pointer;
  height: 250px;
  background: var(--boro-navy-dark);
}
.gallery-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item-card:hover img {
  transform: scale(1.07);
}
.gallery-caption-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #ffffff;
  transition: opacity 0.3s ease;
}

/* What's New / Announcements Board */
.announcements-board-card {
  background: #ffffff;
  border-radius: 16px;
  border: 2px solid var(--boro-gold);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.announcement-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--boro-border-color);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: background 0.2s ease;
}
.announcement-item:last-child {
  border-bottom: none;
}
.announcement-item:hover {
  background: #f8fafc;
}
.announcement-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   20. Responsive Tweaks & Mobile Refinement
   -------------------------------------------------------------------------- */

/* Single-Row Desktop Layout (>= 1280px, standard font size) */
@media (min-width: 1280px) {
  .main-header-navbar .navbar {
    flex-wrap: nowrap;
  }
  .main-header-navbar .brand-wrapper {
    order: 1;
  }
  .main-header-navbar .navbar-collapse {
    order: 2;
    flex: 1 1 auto !important;
    width: auto !important;
    justify-content: center;
  }
  .main-header-navbar .navbar-nav {
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 2px;
  }
  .main-header-navbar .header-actions {
    order: 3;
    margin-left: 0.5rem !important;
    margin-top: 0 !important;
  }
}

/* Single-row tuning for 1280px - 1439px laptop viewports */
@media (min-width: 1280px) and (max-width: 1439.98px) {
  .brand-logo-img {
    height: 42px;
    width: 42px;
  }
  .brand-name {
    font-size: 1.14rem;
  }
  .brand-tagline {
    font-size: 0.64rem;
  }
  .navbar-nav .nav-link {
    font-size: 0.85rem;
    padding: 7px 8px !important;
  }
  .btn-pay-bill {
    font-size: 0.82rem;
    padding: 7px 12px;
  }
  .btn-search-trigger {
    font-size: 0.82rem;
    padding: 7px 10px;
  }
}

/* Balanced Two-Tier Desktop Header for 992px - 1279px OR Large-Font Accessibility Mode */
@media (min-width: 992px) and (max-width: 1279.98px) {
  .main-header-navbar .navbar {
    flex-wrap: wrap !important;
  }
  .main-header-navbar .brand-wrapper {
    order: 1;
  }
  .main-header-navbar .header-actions {
    order: 2;
    margin-left: auto !important;
    margin-top: 0 !important;
  }
  .main-header-navbar .navbar-collapse {
    order: 3;
    flex-basis: 100% !important;
    width: 100% !important;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--boro-border-subtle);
  }
  .main-header-navbar .navbar-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .main-header-navbar .navbar-nav .nav-link {
    font-size: 0.88rem;
    padding: 6px 11px !important;
  }
}

@media (min-width: 992px) {
  body.font-large .main-header-navbar .navbar,
  body.font-xlarge .main-header-navbar .navbar {
    flex-wrap: wrap !important;
  }
  body.font-large .main-header-navbar .brand-wrapper,
  body.font-xlarge .main-header-navbar .brand-wrapper {
    order: 1;
  }
  body.font-large .main-header-navbar .header-actions,
  body.font-xlarge .main-header-navbar .header-actions {
    order: 2;
    margin-left: auto !important;
    margin-top: 0 !important;
  }
  body.font-large .main-header-navbar .navbar-collapse,
  body.font-xlarge .main-header-navbar .navbar-collapse {
    order: 3;
    flex-basis: 100% !important;
    width: 100% !important;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--boro-border-subtle);
  }
  body.font-large .main-header-navbar .navbar-nav,
  body.font-xlarge .main-header-navbar .navbar-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Tablet & Mobile (< 992px) */
@media (max-width: 991.98px) {
  .main-header-navbar .brand-wrapper {
    order: 1;
  }
  .main-header-navbar .header-actions {
    order: 2;
    margin-left: auto !important;
    margin-top: 0 !important;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-motto-accent {
    font-size: 1.3rem;
  }
  .quick-services-section {
    margin-top: 20px;
  }
  .brand-logo-img {
    height: 42px;
    width: 42px;
  }
  .brand-name {
    font-size: 1.18rem;
  }
  .brand-tagline {
    font-size: 0.66rem;
  }
  .park-cal-day {
    min-height: 70px;
    padding: 4px;
  }
  .park-cal-tag {
    font-size: 0.62rem;
    padding: 2px 4px;
  }
}

/* Small Mobile (< 576px) */
@media (max-width: 575.98px) {
  .emergency-alert-bar > .container,
  .top-civic-bar > .container,
  .main-header-navbar > .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .brand-wrapper {
    gap: 8px;
    margin-right: 0.25rem;
  }
  .brand-logo-img {
    height: 36px;
    width: 36px;
  }
  .brand-name {
    font-size: 1.04rem;
  }
  .brand-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }
  .top-civic-bar .status-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-search-box {
    flex-direction: column;
  }
  .hero-search-btn {
    width: 100%;
  }
  .park-cal-day {
    min-height: 58px;
  }
  .btn-group[role="group"] {
    flex-wrap: wrap;
  }
}

/* Extra-Small Screens (< 380px) */
@media (max-width: 379.98px) {
  .brand-logo-img {
    height: 32px;
    width: 32px;
  }
  .brand-name {
    font-size: 0.94rem;
  }
  .brand-tagline {
    font-size: 0.54rem;
  }
}
