/*
Theme Name: TurnUpCity
Theme URI: https://turnuphosting.com/
Author: Ferguson
Author URI: https://turnuphosting.com/
Description: Modern city government WordPress theme
Version: 1.0.0
License: GPL v2+
Text Domain: turnupcity
*/


    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
      color: #333;
      line-height: 1.6;
      background: white;
    }

    .screen-reader-text {
      border: 0;
      clip: rect(1px, 1px, 1px, 1px);
      clip-path: inset(50%);
      height: 1px;
      margin: -1px;
      overflow: hidden;
      padding: 0;
      position: absolute !important;
      width: 1px;
      word-wrap: normal !important;
    }

    .screen-reader-text:focus {
      clip: auto !important;
      clip-path: none;
      height: auto;
      margin: 0;
      width: auto;
      padding: 15px 23px 14px;
      background-color: #0f172a;
      color: #fff;
      z-index: 100000;
      border-radius: 8px;
    }

    /* Alias for screen-reader-text */
    .sr-only {
      border: 0;
      clip: rect(1px, 1px, 1px, 1px);
      clip-path: inset(50%);
      height: 1px;
      margin: -1px;
      overflow: hidden;
      padding: 0;
      position: absolute !important;
      width: 1px;
      word-wrap: normal !important;
    }

    .sr-only:focus {
      clip: auto !important;
      clip-path: none;
      height: auto;
      margin: 0;
      width: auto;
      padding: 15px 23px 14px;
      background-color: #0f172a;
      color: #fff;
      z-index: 100000;
      border-radius: 8px;
    }

    /* Auto-generated accessibility labels */
    .auto-generated-label {
      display: block;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: #1f2937;
    }

    /* Skip links */
    .skip-links {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 999999;
    }

    .skip-link {
      position: absolute;
      left: -10000px;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }

    .skip-link:focus {
      position: fixed !important;
      top: 10px !important;
      left: 10px !important;
      width: auto !important;
      height: auto !important;
      padding: 12px 20px !important;
      background: #0f172a !important;
      color: white !important;
      text-decoration: none !important;
      border-radius: 4px !important;
      z-index: 999999 !important;
      font-weight: 600 !important;
      clip: auto !important;
      clip-path: none !important;
      overflow: visible !important;
    }

    /* External link indicators */
    .external-indicator {
      border: 0;
      clip: rect(1px, 1px, 1px, 1px);
      clip-path: inset(50%);
      height: 1px;
      margin: -1px;
      overflow: hidden;
      padding: 0;
      position: absolute !important;
      width: 1px;
    }

    /* Form validation */
    .error-message {
      color: #dc2626;
      font-size: 0.875rem;
      margin-top: 0.25rem;
      display: block;
    }

    .input-hint {
      font-size: 0.875rem;
      color: #3f3f46;
      margin-top: 0.25rem;
      display: block;
    }

    /* Focus indicators - Enhanced for WCAG 2.2 */
    *:focus {
      outline: 2px solid #0369a1 !important;
      outline-offset: 2px !important;
    }

    *:focus:not(:focus-visible) {
      outline: none !important;
    }

    *:focus-visible {
      outline: 2px solid #0369a1 !important;
      outline-offset: 2px !important;
    }

    /* Remove focus outline from body and main container elements */
    body:focus,
    main:focus,
    .container:focus,
    footer:focus,
    section:focus,
    article:focus {
      outline: none !important;
    }

    /* Password toggle */
    .password-toggle {
      margin-left: 8px;
      padding: 4px 8px;
      background: #e5e7eb;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.875rem;
    }

    .password-toggle:hover {
      background: #d1d5db;
    }

    .password-toggle:focus {
      outline: 3px solid #0369a1;
      outline-offset: 2px;
    }

    a {
      color: #15803d;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    a:hover,
    a:focus {
      color: #166534;
      text-decoration: underline;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
      color: #333;
    }

    h3 {
      font-size: 1.5rem;
      margin-bottom: 0.75rem;
    }

    p {
      color: #3f3f3f;
      margin-bottom: 1rem;
    }

    /* HEADER */
    header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: white;
    }

    /* Remove top whitespace on mobile */
    @media (max-width: 1023px) {
      header {
        margin-top: 0;
        padding-top: 0;
      }
      
      body {
        margin-top: 0;
        padding-top: 0;
      }
    }

    .header-alert {
      background: #78350f;
      color: white;
      padding: 0.75rem 20px;
      font-size: 0.9rem;
      text-align: center;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
    }

    /* Reduce alert banner padding on mobile */
    @media (max-width: 768px) {
      .header-alert {
        padding: 0.4rem 15px;
        font-size: 0.8rem;
      }
    }

    @media (max-width: 576px) {
      .header-alert {
        padding: 0.3rem 10px;
        font-size: 0.75rem;
      }
    }

    .header-alert-content {
      flex: 1;
    }

    .header-alert button {
      background: none;
      border: none;
      color: white;
      cursor: pointer;
      font-size: 1.2rem;
      border-radius: 3px;
      padding: 4px 8px;
      opacity: 0.9;
      transition: opacity 0.2s;
    }

    .header-alert button:hover {
      opacity: 1;
    }

    .header-main {
      background: #0369a1;
      padding: 1rem 20px;
      color: white;
    }

    /* Increase header padding on mobile for 60px logo */
    @media (max-width: 768px) {
      .header-main {
        padding: 0.8rem 15px;
      }
    }

    @media (max-width: 576px) {
      .header-main {
        padding: 0.75rem 10px;
      }
    }

    .header-content {
      max-width: 100%;
      margin: 0 auto;
      display: flex;
      justify-content: space-around;
      align-items: center;
      gap: 2rem;
      padding: 0 20px;
      flex-wrap: wrap;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 1.5rem;
      font-weight: bold;
      color: white;
      cursor: pointer;
      text-decoration: none;
      flex: 0 0 auto;
    }

    .logo-icon {
      width: 60px;
      height: 60px;
      background: #84cc16;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.5rem;
    }

    .logo-text {
      display: flex;
      flex-direction: column;
    }

    .logo-text .city-label {
      font-size: 0.65rem;
      letter-spacing: 1px;
    }

    .logo-text .city-name {
      font-size: 1.4rem;
      font-weight: bold;
      letter-spacing: 1px;
    }

    /* Custom Logo Support */
    .custom-logo-container {
      display: flex;
      align-items: center;
      flex: 0 0 auto;
    }

    .custom-logo-container .custom-logo-link {
      display: flex;
      align-items: center;
      text-decoration: none;
    }

    .custom-logo-container .custom-logo {
      max-width: 220px;
      max-height: 60px;
      width: 220px;
      height: 60px;
      object-fit: contain;
      display: block;
    }

    @media (max-width: 768px) {
      .custom-logo-container .custom-logo {
        max-width: 220px;
        max-height: 60px;
        width: 220px;
        height: 60px;
        object-fit: contain;
      }
    }

    @media (max-width: 480px) {
      .custom-logo-container .custom-logo {
        max-width: 220px;
        max-height: 60px;
        width: 220px;
        height: 60px;
        object-fit: contain;
      }
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      flex: 0 0 auto;
    }

    .connect-btn {
      background: white;
      border: none;
      color: #0369a1;
      padding: 0.5rem 1.2rem;
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.3s;
      white-space: nowrap;
      flex: 0 0 auto;
      box-shadow: none;
    }

    .connect-btn:hover {
      background: #f0f9ff;
      transform: translateY(-1px);
    }

    .header-info {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      font-size: 0.9rem;
    }

    .search-bar {
      display: flex;
      align-items: center;
      background: white;
      border-radius: 4px;
      padding: 0.5rem 1rem;
      gap: 0.5rem;
      position: relative;
      border: none;
    }

    .search-bar label {
      flex: 1;
      margin: 0;
      display: flex;
      align-items: center;
    }

    .search-bar input {
      border: none;
      outline: none;
      width: 100%;
      font-size: 0.9rem;
      background: transparent;
      color: #333;
      padding-left: 0.5rem;
      padding-right: 3rem;
    }

    .search-bar input::placeholder {
      color: #525252;
    }
    
    .search-bar .search-submit {
      position: absolute;
      right: 0.5rem;
      top: 50%;
      transform: translateY(-50%);
      background: #78350f;
      border: none;
      cursor: pointer;
      padding: 0.5rem 0.75rem;
      font-size: 1rem;
      line-height: 1;
      color: white;
      transition: all 0.2s;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .search-bar .search-submit:hover {
      background: #0369a1;
    }

    .language-selector {
      position: relative;
      display: flex;
      align-items: center;
    }

    .language-btn {
      background: white;
      border: none;
      color: #0369a1;
      cursor: pointer;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.4rem 0.75rem;
      transition: all 0.3s;
      white-space: nowrap;
      border-radius: 4px;
      box-shadow: none;
    }

    .language-btn:hover {
      background: #f0f9ff;
    }

    .language-dropdown {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: white;
      border: 1px solid #6b7280;
      border-radius: 4px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      min-width: 150px;
      z-index: 50;
      margin-top: 8px;
      flex-direction: column;
    }

    .language-dropdown.is-open {
      display: flex;
    }

    .language-option {
      display: block;
      background: none;
      border: none;
      padding: 10px 16px;
      text-align: left;
      cursor: pointer;
      color: #333;
      font-size: 0.9rem;
      transition: background 0.3s;
      white-space: nowrap;
      text-decoration: none;
    }

    .language-option:hover {
      background: #f3f4f6;
    }

    .language-option:first-child {
      border-radius: 3px 3px 0 0;
    }

    .language-option:last-child {
      border-radius: 0 0 3px 3px;
    }

    /* NAVIGATION */
    .nav-bar {
      background: white;
      border-bottom: 1px solid #6b7280;
      box-shadow: 0 2px 4px rgba(0,0,0,0.05);
      display: flex;
      justify-content: center;
      padding: 0 20px;
    }

    .primary-nav {
      display: flex;
      align-items: stretch;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
    }

    .primary-nav > ul {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      width: 100%;
    }

    .primary-nav > ul > li {
      position: relative;
      flex: 1;
      border-right: 1px solid #6b7280;
    }

    .primary-nav > ul > li:last-child {
      border-right: none;
    }

    .primary-nav > ul > li > a.nav-link {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0.8rem 1rem;
      min-height: 70px;
      width: 100%;
      background: none;
      text-decoration: none;
      color: inherit;
      gap: 0.5rem;
      transition: background 0.3s;
    }

    .primary-nav > ul > li > a.nav-link:hover {
      background: #f9fafb;
    }

    .nav-item-content {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .menu-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-right: 0.35rem;
      font-size: 1rem;
    }

    .nav-label {
      font-size: 0.75rem;
      font-weight: 700;
      color: #374151;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .nav-sublabel {
      font-size: 0.7rem;
      color: #3f3f46;
      font-weight: 400;
    }

    .dropdown-arrow {
      font-size: 0.7rem;
      color: #3f3f46;
      margin-left: 0.25rem;
    }

    /* DROPDOWN MENU */
    .primary-nav .dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      right: 0;
      left: auto;
      width: min(700px, calc(100vw - 40px));
      background: #fff;
      border: 1px solid #6b7280;
      box-shadow: 0 10px 25px rgba(0,0,0,0.15);
      z-index: 100;
    }

    .primary-nav .dropdown-menu.dropdown-menu-right {
      right: 0 !important;
      left: auto !important;
    }
    
    .primary-nav > ul > li:first-child .dropdown-menu,
    .primary-nav > ul > li:nth-child(2) .dropdown-menu,
    .primary-nav > ul > li:nth-child(3) .dropdown-menu {
      left: 0 !important;
      right: auto !important;
    }

    .primary-nav > ul > li:hover > .dropdown-menu,
    .primary-nav > ul > li:focus-within > .dropdown-menu {
      display: grid;
    }

    .primary-nav .dropdown-grid {
      display: grid;
      grid-template-columns: 300px 1fr;
      min-height: 400px;
      max-height: calc(100vh - 200px);
    }

    .primary-nav .dropdown-left {
      padding: 2rem;
      background: #0369a1;
      color: white;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .primary-nav .dropdown-left h3 {
      font-size: 1.5rem;
      margin: 0;
      color: white;
    }

    .primary-nav .dropdown-left p {
      font-size: 0.95rem;
      margin: 0;
      color: white;
      line-height: 1.5;
    }

    .primary-nav .dropdown-category {
      margin-top: auto;
    }

    .primary-nav .dropdown-category-title {
      font-weight: 600;
      margin-bottom: 0.3rem;
      color: white;
    }

    .primary-nav .dropdown-category-desc {
      font-size: 0.85rem;
      color: white;
    }

    .primary-nav .dropdown-right {
      padding: 2rem;
      background: white;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      overflow-y: auto;
      max-height: calc(100vh - 200px);
    }

    .primary-nav .dropdown-right-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .primary-nav .dropdown-right-list > li {
      border: none;
    }

    .primary-nav .dropdown-link {
      text-decoration: none;
      color: inherit;
      display: block;
    }

    .primary-nav .dropdown-item {
      display: flex;
      gap: 1rem;
      padding: 0.75rem;
      border-radius: 0.5rem;
      border: none;
      background: none;
      cursor: pointer;
      align-items: flex-start;
      transition: background 0.2s;
    }

    .primary-nav .dropdown-link:hover .dropdown-item {
      background: #f3f4f6;
    }

    .primary-nav .dropdown-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #0369a1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      color: white;
      flex-shrink: 0;
    }

    .primary-nav .dropdown-item-content {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .primary-nav .dropdown-item-title {
      font-weight: 600;
      color: #1f2937;
    }

    .primary-nav .dropdown-item-desc {
      font-size: 0.85rem;
      color: #404040;
    }

    /* Color classes */
    .bg-lime { background: #84cc16 !important; }
    .bg-navy { background: #001f3f !important; }
    .bg-forest { background: #15803d !important; }
    .bg-dark-blue { background: #1e3a8a !important; }
    .bg-blue-600 { background: #2563eb !important; }
    .bg-red-600 { background: #dc2626 !important; }
    .bg-orange-600 { background: #ea580c !important; }
    .bg-apple-green { background: #15803d !important; }
    .bg-picton-blue { background: #0369a1 !important; }
    .bg-pigment-green { background: #16a34a !important; }
    .bg-dark-slate { background: #111827 !important; }
    .bg-slate-700 { background: #374151 !important; }

    /* HERO */
    .hero {
      position: relative;
      height: 500px;
      overflow: hidden;
      background: #1f2937;
    }

    .hero-slide {
      display: none;
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 1s ease;
    }

    .hero-slide.active {
      display: block;
      opacity: 1;
    }

    .hero-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-content {
      position: absolute;
      top: 46%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      color: white;
      z-index: 10;
      max-width: 600px;
      background: rgba(3, 105, 161, 0.70);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      padding: 1.25rem 2rem;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hero-content h1 {
      font-size: 2.25rem;
      margin-bottom: 0.6rem;
      text-shadow: none;
    }

    .hero-content p {
      font-size: 1.05rem;
      margin-bottom: 1.1rem;
      color: #ffffff;
      text-shadow: none;
    }

    .hero-buttons {
      display: flex;
      gap: 15px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn-hero-primary {
      background: #78350f;
      color: white;
      padding: 12px 30px;
      border: none;
      border-radius: 6px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      box-shadow: 0 4px 12px rgba(120,53,15,0.4);
    }

    .btn-hero-primary:hover {
      background: #0369a1;
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(3,105,161,0.5);
    }

    .btn-hero-secondary {
      background: #78350f;
      color: white;
      padding: 12px 30px;
      border: 2px solid #78350f;
      border-radius: 6px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      box-shadow: 0 2px 8px rgba(120,53,15,0.3);
    }

    .btn-hero-secondary:hover {
      background: #0369a1;
      color: white;
      border-color: #0369a1;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(3,105,161,0.4);
    }

    /* Frosted-glass pill — wraps dots + pause toggle */
    .hero-nav {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 4px;
      z-index: 20;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border-radius: 40px;
      padding: 8px 14px;
      border: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* 24×24 touch target (WCAG 2.5.8); visual dot via ::before */
    .hero-dot {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: transparent;
      cursor: pointer;
      transition: all 0.25s ease;
      border: 0;
      padding: 0;
      appearance: none;
      -webkit-appearance: none;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .hero-dot::before {
      content: '';
      display: block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.55);
      border: 1.5px solid rgba(255, 255, 255, 0.85);
      transition: all 0.25s ease;
    }

    .hero-dot:focus-visible {
      outline: 2px solid white;
      outline-offset: 2px;
      border-radius: 50%;
    }

    .hero-dot.active::before {
      background: white;
      border-color: white;
      width: 10px;
      height: 10px;
    }

    /* Pause/play toggle — separated from dots by a hairline rule */
    .hero-pause-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.15);
      color: white;
      border: 1.5px solid rgba(255, 255, 255, 0.4);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      margin-left: 10px;
      position: relative;
      transition: background 0.25s ease, border-color 0.25s ease;
      flex-shrink: 0;
    }

    /* Hairline separator between dots and pause btn */
    .hero-pause-btn::before {
      content: '';
      position: absolute;
      left: -7px;
      top: 50%;
      transform: translateY(-50%);
      height: 16px;
      width: 1px;
      background: rgba(255, 255, 255, 0.3);
      pointer-events: none;
    }

    .hero-pause-btn:hover {
      background: rgba(255, 255, 255, 0.28);
      border-color: rgba(255, 255, 255, 0.7);
    }

    .hero-pause-btn:focus-visible {
      outline: 2px solid white;
      outline-offset: 2px;
    }

    .hero-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: white;
      color: #1f2937;
      border: 2px solid #374151;
      padding: 10px 15px;
      cursor: pointer;
      font-size: 20px;
      z-index: 20;
      transition: all 0.3s;
      border-radius: 4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .hero-btn:hover {
      background: #f9fafb;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }

    .hero-btn:focus-visible {
      outline: 3px solid #1d4ed8;
      outline-offset: 3px;
      box-shadow: 0 0 0 5px rgba(29,78,216,0.35), 0 2px 8px rgba(0,0,0,0.3);
    }

    .hero-btn.prev {
      left: 20px;
    }

    .hero-btn.next {
      right: 20px;
    }

    /* SECTIONS */
    .quick-services {
      padding: 60px 20px;
      background: white;
    }

    .section-header {
      text-align: center;
      margin-bottom: 40px;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 20px;
    }

    .service-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      padding: 20px 15px;
      background: #f9fafb;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s;
      text-align: center;
      border: 1px solid #9ca3af;
    }

    .service-card:hover {
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      transform: translateY(-2px);
    }

    .service-icon {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #0369a1;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
    }

    .service-card span {
      font-size: 14px;
      font-weight: 500;
      color: #333;
    }

    /* Interior Page Sections */
    .content-section {
      padding: 60px 20px;
    }

    .content-section.section-gray {
      background: #f9fafb;
    }

    .content-section h2 {
      font-size: 2.25rem;
      margin-bottom: 1.5rem;
      color: #111827;
    }

    .content-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }

    .content-grid .card {
      background: white;
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .content-grid .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    }

    .content-grid .card h3 {
      margin-bottom: 12px;
      color: #15803d;
      font-size: 1.2rem;
    }

    .news-section {
      padding: 60px 20px;
      background: #f9fafb;
    }

    .news-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
    }

    .news-card {
      background: white;
      border-radius: 8px;
      overflow: hidden;
      transition: all 0.3s;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    /* SEARCH RESULTS */
    .search-results {
      padding: 60px 0;
      background: #f8fafc;
      width: 100%;
    }

    .search-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }

    .search-card {
      background: white;
      border-radius: 20px;
      border: 1px solid #94a3b8;
      box-shadow: 0 20px 40px rgba(15,23,42,0.08);
      padding: 28px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .search-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 30px 60px rgba(15,23,42,0.15);
    }

    .search-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.85rem;
      color: #334155;
    }

    .search-type {
      background: #ecfccb;
      color: #166534;
      font-weight: 600;
      padding: 4px 12px;
      border-radius: 999px;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .search-title {
      font-size: 1.35rem;
      margin: 0;
      color: #0f172a;
    }

    .search-excerpt {
      color: #334155;
      margin: 0;
      line-height: 1.7;
    }

    .search-link {
      margin-top: auto;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-weight: 600;
      color: #15803d;
    }

    .search-link::after {
      content: '?';
      transition: transform 0.2s ease;
    }

    .search-link:hover::after {
      transform: translateX(3px);
    }

    .search-pagination {
      margin-top: 40px;
      text-align: center;
    }

    .search-empty {
      text-align: center;
      background: white;
      padding: 60px 30px;
      border-radius: 20px;
      border: 1px solid #94a3b8;
      box-shadow: 0 15px 35px rgba(15,23,42,0.08);
    }

    @media (max-width: 640px) {
      .search-card {
        padding: 22px;
      }
    }

    .news-card:hover {
      box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    .news-card-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: block;
    }

    .news-card-content {
      padding: 20px;
    }

    .news-badge {
      display: inline-block;
      background: #047857;
      color: white;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 10px;
    }

    .news-card h3 {
      color: #1f2937;
      font-size: 1.1rem;
      margin-bottom: 10px;
    }

    .news-card p {
      font-size: 14px;
      color: #404040;
      margin-bottom: 10px;
      line-height: 1.5;
    }

.no-results {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.no-results-card {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.15);
  padding: 60px;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.no-results-card h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  color: #0f172a;
  font-weight: 700;
}

.no-results-card p {
  color: #334155;
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Search Form in 404 Page */
.no-results-search {
  max-width: 600px;
  margin: 0 auto 30px;
}

.no-results-search .search-form {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  position: relative !important;
}

.no-results-search .search-form label {
  flex: 1;
  margin: 0;
  display: flex;
  position: relative !important;
}

.no-results-search .search-form input[type="search"],
.no-results-search .search-form .search-field {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  line-height: 1.5;
  height: auto;
  position: static !important;
}

.no-results-search .search-form input[type="search"]:focus,
.no-results-search .search-form .search-field:focus {
  outline: none;
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

.no-results-search .search-form button[type="submit"],
.no-results-search .search-form .search-submit {
  padding: 16px 32px;
  background: #78350f;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 20px;
  transition: background-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  position: static !important;
  transform: none !important;
  top: auto !important;
  right: auto !important;
}

.no-results-search .search-form button[type="submit"]:hover,
.no-results-search .search-form .search-submit:hover {
  background: #0369a1;
  box-shadow: 0 4px 12px rgba(120, 53, 15, 0.3);
  transform: none !important;
}

/* Action Buttons */
.no-results-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.no-results-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 14px 32px;
  background: #0369a1;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.no-results-links .btn:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}

.no-results-links .btn.btn-outline {
  background: transparent;
  color: #0369a1;
  border: 2px solid #0369a1;
}

.no-results-links .btn.btn-outline:hover {
  background: #0369a1;
  color: #fff;
}

/* Responsive Design for 404 Page */
@media (max-width: 768px) {
  .no-results {
    padding: 60px 20px;
  }

  .no-results-card {
    padding: 40px 28px;
    border-radius: 24px;
  }

  .no-results-icon {
    font-size: 40px;
  }

  .no-results-card h2 {
    font-size: 1.75rem;
  }

  .no-results-search .search-form {
    flex-direction: column;
  }

  .no-results-search .search-form button[type="submit"],
  .no-results-search .search-form .search-submit {
    width: 100%;
    padding: 14px 24px;
  }

  .no-results-links {
    flex-direction: column;
  }

  .no-results-links .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .no-results {
    padding: 40px 16px;
  }

  .no-results-card {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .no-results-icon {
    font-size: 36px;
  }

  .no-results-card h2 {
    font-size: 1.5rem;
  }

  .no-results-card p {
    font-size: 15px;
  }
}

/* ========================================
   SIDEBAR & WIDGET STYLES  
   For default widgets in 404 and archive pages
   ======================================== */

.widget-area {
  background: #f8fafc;
  padding: 40px 20px;
}

.widget-area .widget {
  background: white;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.widget-area .widget .widget-title {
  font-size: 1.35rem;
  margin: 0 0 20px;
  color: #0f172a;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 3px solid #0369a1;
}

/* Search Widget */
.widget .search-form {
  display: flex;
  gap: 8px;
  margin: 0;
}

.widget .search-form label {
  flex: 1;
  margin: 0;
}

.widget .search-form input[type="search"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
}

.widget .search-form input[type="search"]:focus {
  outline: none;
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

.widget .search-form button[type="submit"],
.widget .search-form input[type="submit"] {
  padding: 12px 20px;
  background: #0369a1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.widget .search-form button[type="submit"]:hover,
.widget .search-form input[type="submit"]:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}

/* Recent Posts Widget */
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget ul li:first-child {
  padding-top: 0;
}

.widget ul li a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
  display: block;
}

.widget ul li a:hover {
  color: #0369a1;
  text-decoration: underline;
}

.widget ul li .post-date {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

/* Recent Comments Widget */
.widget .recentcomments {
  font-size: 14px;
  line-height: 1.6;
}

.widget .recentcomments a {
  color: #0369a1;
  font-weight: 600;
}

/* Archives Widget */
.widget select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
}

.widget select:focus {
  outline: none;
  border-color: #0369a1;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

.widget select:hover {
  border-color: #94a3b8;
}

/* Categories Widget */
.widget .cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget .cat-item .count {
  background: #e0e7ff;
  color: #3730a3;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Tag Cloud Widget */
.widget .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.widget .tagcloud a {
  display: inline-block;
  padding: 6px 14px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 20px;
  font-size: 13px !important;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid #e2e8f0;
}

.widget .tagcloud a:hover {
  background: #0369a1;
  color: white;
  border-color: #0369a1;
  transform: translateY(-1px);
}

/* Calendar Widget */
.widget table {
  width: 100%;
  border-collapse: collapse;
}

.widget table caption {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  color: #0f172a;
}

.widget table th {
  padding: 10px 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.widget table td {
  padding: 10px 4px;
  text-align: center;
  border: 1px solid #e2e8f0;
  font-size: 14px;
}

.widget table td a {
  display: block;
  color: #0369a1;
  font-weight: 600;
  text-decoration: none;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s;
}

.widget table td a:hover {
  background: #0369a1;
  color: white;
}

/* Text Widget */
.widget .textwidget {
  line-height: 1.7;
  color: #334155;
  font-size: 15px;
}

.widget .textwidget p {
  margin-bottom: 16px;
}

.widget .textwidget p:last-child {
  margin-bottom: 0;
}

/* RSS Widget */
.widget .rsswidget {
  color: #0369a1;
  font-weight: 600;
}

.widget .rss-date {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.widget .rssSummary {
  margin-top: 8px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.widget cite {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  font-style: normal;
}

/* Responsive Widget Styles */
@media (max-width: 768px) {
  .widget-area {
    padding: 30px 15px;
  }

  .widget-area .widget {
    padding: 20px;
    margin-bottom: 24px;
  }

  .widget-area .widget .widget-title {
    font-size: 1.2rem;
  }
}

    .news-date {
      font-size: 12px;
      color: #525252;
    }

    .calendar-controls {
      display: flex;
      gap: 15px;
      margin-bottom: 20px;
      flex-wrap: wrap;
      align-items: center;
    }

    .view-toggle {
      display: flex;
      gap: 10px;
    }

    .view-toggle button {
      padding: 8px 16px;
      border: 2px solid #6b7280;
      background: white;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s;
    }

    .view-toggle button.active {
      background: #0ea5e9;
      color: white;
      border-color: #0284c7;
    }

    .search-events {
      width: 100%;
      max-width: 350px;
      margin-bottom: 15px;
    }

    .search-events input {
      width: 100%;
      padding: 10px 15px;
      border: 2px solid #6b7280;
      border-radius: 6px;
      font-size: 14px;
    }

    .search-events input:focus {
      outline: none;
      border-color: #0369a1;
      box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    }
    
    @media (max-width: 768px) {
      .search-events {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
      }
      
      .search-events input {
        font-size: 16px;
        padding: 12px 15px;
      }
    }
 
    .calendar-wrapper {
      display: grid;
      grid-template-columns: 350px 1fr;
      gap: 30px;
      align-items: start;
      margin-bottom: 30px;
    }

    .calendar-container {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .calendar-nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }

    .calendar-nav button {
      padding: 6px 10px;
      background: #0369a1;
      color: white !important;
      border: 2px solid #075985;
      border-radius: 4px;
      cursor: pointer;
      font-weight: 600;
      transition: background 0.3s;
      font-size: 13px;
    }

    .calendar-nav button:hover {
      background: #0284c7;
    }

    .calendar-nav button:focus-visible {
      outline: 3px solid #1d4ed8;
      outline-offset: 2px;
      box-shadow: 0 0 0 4px rgba(29,78,216,0.3);
    }

    .calendar-month-year {
      font-size: 1.1rem;
      font-weight: bold;
      color: #1f2937;
      text-align: center;
      flex: 1;
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 1px;
      background: #6b7280;
      border: 2px solid #6b7280;
      border-radius: 8px;
      overflow: hidden;
    }

    .calendar-day-header {
      background: #f3f4f6;
      padding: 8px 4px;
      text-align: center;
      font-weight: 600;
      color: #374151;
      font-size: 11px;
    }

    .calendar-day {
      background: white;
      padding: 6px 4px;
      min-height: 40px;
      cursor: pointer;
      transition: all 0.3s;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
    }

    .calendar-day:hover {
      background: #f0fdf4;
    }

    .calendar-day.other-month {
      background: #f9fafb;
      color: #3f3f46;
    }

    .calendar-day.today {
      background: #dbeafe;
      font-weight: 600;
    }

    .calendar-day.selected {
      background: #0369a1;
      color: white;
    }

    .calendar-day.has-events::after {
      content: '';
      position: absolute;
      bottom: 2px;
      left: 50%;
      transform: translateX(-50%);
      width: 3px;
      height: 3px;
      background: #047857;
      border-radius: 50%;
    }

    .calendar-day.selected.has-events::after {
      background: #fff;
    }

    .day-number {
      font-weight: 600;
      font-size: 12px;
    }

    .day-events {
      font-size: 11px;
      color: #404040;
      display: none;
    }

    .calendar-day.selected .day-events {
      display: block;
    }

    .events-section {
      padding: 60px 20px;
      background: white;
    }

    .events-section > .container > h2 {
      padding-left: calc(350px + 30px);
    }

    .events-list-container {
      display: flex;
      flex-direction: column;
      gap: 20px;
      min-height: 400px;
    }

    .events-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      max-height: 550px;
      overflow-y: auto;
      padding-right: 10px;
      margin-top: -110px;
    }

    .events-list::-webkit-scrollbar {
      width: 6px;
    }

    .events-list::-webkit-scrollbar-track {
      background: #f1f5f9;
      border-radius: 4px;
    }

    .events-list::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 4px;
    }

    .events-list::-webkit-scrollbar-thumb:hover {
      background: #94a3b8;
    }

    .event-item {
      border: 2px solid #6b7280;
      border-radius: 8px;
      padding: 20px;
      background: white;
      transition: all 0.3s;
      cursor: pointer;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .event-item:hover {
      box-shadow: 0 8px 16px rgba(0,0,0,0.1);
      border-color: #0369a1;
    }

    .event-item.selected {
      background: #0369a1;
      color: white;
      border-color: #0369a1;
    }

    .event-item h3 {
      margin: 0 0 8px 0;
      font-size: 1rem;
      text-align: center;
    }

    .event-meta {
      font-size: 13px;
      margin-bottom: 8px;
    }

    /* Calendar event-item: icon centered above content */
    .event-item-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      width: 100%;
      margin-bottom: 0;
    }

    .event-item-icon {
      font-size: 1.75rem;
      line-height: 1;
      flex-shrink: 0;
    }

    .event-item-info {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .event-item-info h3 {
      margin: 0 0 8px 0;
      font-size: 1rem;
    }

    .events-list .event-item h3 a {
      display: inline;
      padding: 0 !important;
      margin: 0;
      line-height: 1.25;
    }

    .event-item-excerpt {
      margin-top: 6px;
      margin-bottom: 0;
      color: #475569;
      font-size: 0.9rem;
      line-height: 1.5;
    }

    /* Meta rows (date, time, location) inside calendar event cards */
    .event-item-meta {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      font-size: 13px;
      margin-bottom: 6px;
      flex-wrap: wrap;
    }

    .event-item-meta .meta-icon {
      flex-shrink: 0;
    }

    .view-all-events-btn {
      background: #0ea5e9;
      color: white;
      border: 2px solid #0284c7;
      padding: 12px 24px;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      align-self: center;
      width: 100%;
      max-width: 200px;
      text-align: center;
    }

    .view-all-events-btn:hover {
      background: #38bdf8;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    }

    .event-category {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 10px;
      background: rgba(14, 165, 233, 0.1);
      color: #0369a1;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 600;
      margin-top: 10px;
      margin-left: auto;
      margin-right: auto;
      align-self: center;
      text-align: center;
    }

    .event-item.selected .event-category {
      background: rgba(255,255,255,0.2);
      color: white;
    }

    .event-holiday-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 8px;
      /* WCAG 1.4.3: darkened to #991b1b (6.7:1 contrast on white/light-red bg, passes AA for small text) */
      background: #fee2e2;
      color: #991b1b;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
      margin-top: 6px;
      margin-left: auto;
      margin-right: auto;
      align-self: center;
      text-align: center;
    }

    .no-events-message {
      text-align: center;
      padding: 40px 20px;
      color: #3f3f46;
      font-size: 16px;
    }

    @media (max-width: 1000px) {
      .events-section > .container > h2 {
        padding-left: 0;
      }

      .calendar-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      
      .calendar-container {
        max-width: 100%;
      }
      
      .events-list {
        margin-top: 0;
      }
    }
    
    @media (max-width: 768px) {
      .calendar-wrapper {
        padding: 0 10px;
      }
      
      .calendar-container {
        width: 100%;
        overflow-x: auto;
      }
      
      .calendar {
        min-width: 280px;
        font-size: 0.85rem;
      }
      
      .calendar-nav {
        flex-wrap: wrap;
        gap: 8px;
      }
      
      .calendar-nav h3 {
        font-size: 1rem;
      }
      
      .calendar-nav button {
        padding: 5px 8px;
        font-size: 12px;
      }
      
      .calendar-grid {
        gap: 4px;
      }
      
      .calendar-day {
        padding: 6px;
        font-size: 0.8rem;
      }
      
      .events-list {
        grid-template-columns: 1fr;
        max-height: 400px;
      }
      
      .event-item {
        padding: 15px;
      }
    }
    
    @media (max-width: 576px) {
      .calendar {
        min-width: 100%;
      }
      
      .calendar-day {
        padding: 4px;
        font-size: 0.75rem;
      }
      
      .event-item h3 {
        font-size: 0.95rem;
      }
      
      .event-meta {
        font-size: 11px;
      }
    }

    .event-card {
      background: white;
      border: 1px solid #6b7280;
      border-radius: 8px;
      padding: 20px;
      transition: all 0.3s;
    }

    .event-card:hover {
      box-shadow: 0 8px 16px rgba(0,0,0,0.1);
      transform: translateY(-2px);
    }

    .event-date-box {
      width: 60px;
      height: 60px;
      background: #166534;
      color: white;
      border-radius: 6px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: bold;
      margin-bottom: 15px;
      line-height: 1.2;
    }

    .event-card h3 {
      font-size: 1.1rem;
      margin-bottom: 10px;
    }

    .event-detail {
      font-size: 13px;
      color: #404040;
      display: flex;
      gap: 8px;
      margin-bottom: 8px;
    }

    .mayor-section {
      padding: 60px 20px;
      background: #f9fafb;
    }

    .officials-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 30px;
      margin-bottom: 30px;
    }

    @media (max-width: 1200px) {
      .officials-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .officials-grid {
        grid-template-columns: repeat(1, 1fr);
      }
    }

    .official-card {
      text-align: center;
    }

    .official-image {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 15px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .official-card h3 {
      color: #1f2937;
      margin-bottom: 5px;
      font-size: 1rem;
    }

    .official-card p {
      font-size: 13px;
      color: #404040;
    }

    .single-official {
      background: #f9fafb;
      padding: 60px 0;
    }

    .single-official-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .single-official article {
      background: #ffffff;
      border-radius: 24px;
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
      padding: 40px;
    }

    .council-meetings-template {
      background: #f1f5f9;
    }

    .council-overview {
      padding: 60px 20px 30px;
    }

    .council-overview .container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .council-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 24px;
      margin-bottom: 40px;
    }

    .council-card {
      background: #ffffff;
      border-radius: 24px;
      padding: 32px;
      box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
      border: 1px solid rgba(15, 23, 42, 0.05);
    }

    .council-card h2 {
      margin: 0 0 8px;
      font-size: 1.75rem;
    }

    .council-card .card-label {
      font-size: 0.85rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #2563eb;
      margin-bottom: 12px;
    }

    .council-card .card-meta {
      margin: 0 0 6px;
      color: #334155;
    }

    .council-card .card-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 18px;
      font-weight: 600;
      color: #0369a1;
    }

    .council-card .card-list {
      list-style: none;
      padding: 0;
      margin: 0;
      color: #334155;
      line-height: 1.7;
    }

    .council-card .contact-lines p {
      margin: 0 0 6px;
      color: #0f172a;
      font-weight: 600;
    }

    .council-page-content {
      background: #ffffff;
      border-radius: 24px;
      padding: 40px;
      box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    }

    .council-calendar-section {
      padding: 20px;
    }

    .council-calendar-section .container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .council-meetings-template .calendar-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 20px;
    }

    .council-meetings-template .calendar-header h2 {
      margin: 0 0 4px;
    }

    .council-meetings-template .calendar-legend {
      display: flex;
      gap: 16px;
      align-items: center;
      color: #334155;
    }

    .council-meetings-template .calendar-legend .legend-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #15803d;
      display: inline-flex;
      margin-right: 6px;
    }

    .council-meetings-template .calendar-wrapper {
      background: #ffffff;
      border-radius: 32px;
      padding: 32px;
      box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
    }

    .council-meetings-template .events-list-container {
      border-left: 1px solid rgba(15, 23, 42, 0.08);
    }

    .council-meetings-template .event-item-head h3 {
      margin: 0;
    }

    .council-meetings-template .event-description {
      margin-top: 10px;
      color: #334155;
    }

    @media (max-width: 992px) {
      .council-meetings-template .calendar-wrapper {
        padding: 24px;
      }

      .council-meetings-template .events-list-container {
        border-left: none;
        margin-top: 24px;
      }
    }

    @media (max-width: 768px) {
      .council-card {
        padding: 24px;
      }

      .council-page-content {
        padding: 28px;
      }
    }

    .council-events-grid-section {
      background: #f8fafc;
      padding: 70px 20px 90px;
    }

    .council-events-grid-section .container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .council-events-grid-section .section-heading {
      text-align: center;
      margin-bottom: 40px;
    }

    .council-events-grid-section .section-heading h2 {
      margin: 0 0 12px 0;
      font-size: 2.25rem;
    }

    .council-events-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }

    .council-event-card {
      background: #fff;
      border-radius: 28px;
      padding: 26px;
      box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
      display: flex;
      gap: 20px;
      border: 1px solid rgba(15, 23, 42, 0.05);
      align-items: flex-start;
    }

    .council-event-card .council-event-date {
      width: 64px;
      height: 64px;
      border-radius: 20px;
      background: #15803d;
      color: #fff;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      font-weight: 700;
      box-shadow: 0 20px 40px rgba(21, 128, 61, 0.35);
      flex: 0 0 auto;
    }

    .council-event-card .council-event-date .month {
      font-size: 0.85rem;
      letter-spacing: 0.08em;
    }

    .council-event-card .council-event-date .day {
      font-size: 1.4rem;
      line-height: 1;
    }

    .council-event-content h3 {
      margin: 0 0 10px 0;
      font-size: 1.2rem;
    }

    .council-event-content h3 a {
      text-decoration: none;
      color: inherit;
    }

    .council-event-card .event-meta {
      list-style: none;
      padding: 0;
      margin: 0 0 10px 0;
      color: #334155;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .council-event-card .event-excerpt {
      color: #334155;
      margin-bottom: 8px;
    }

    .council-event-card .btn-link {
      color: #0369a1;
      text-decoration: none;
      font-weight: 600;
    }

    .council-events-pagination {
      margin-top: 48px;
      text-align: center;
    }

    .council-events-pagination ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: inline-flex;
      gap: 10px;
    }

    .council-events-pagination ul li a,
    .council-events-pagination ul li span {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      font-weight: 600;
      color: #0f172a;
      background: #e2e8f0;
    }

    .council-events-pagination ul li span.current {
      background: #15803d;
      color: #fff;
    }

    .council-events-empty {
      background: #fff;
      border-radius: 28px;
      padding: 42px;
      text-align: center;
      box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    }

    @media (max-width: 640px) {
      .council-event-card {
        flex-direction: column;
        align-items: flex-start;
      }
    }

    .departments-template {
      background: #f8fafc;
    }

    .departments-overview {
      padding: 60px 20px 90px;
    }

    .departments-overview .container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .departments-intro {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      align-items: flex-end;
      flex-wrap: wrap;
      margin-bottom: 32px;
    }

    .departments-search {
      flex: 1;
      min-width: 260px;
    }

    .departments-search input {
      width: 100%;
      padding: 18px 22px;
      border-radius: 18px;
      border: 1px solid #94a3b8;
      font-size: 1rem;
      box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    }

    .departments-rich-content {
      background: #ffffff;
      border-radius: 32px;
      padding: 40px;
      box-shadow: 0 25px 70px rgba(15, 23, 42, 0.08);
      margin-bottom: 32px;
    }

    .departments-meta {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      margin-bottom: 40px;
    }

    .meta-card {
      background: #0369a1;
      color: #fff;
      border-radius: 24px;
      padding: 24px;
      box-shadow: 0 20px 60px rgba(14, 165, 233, 0.35);
    }

    .meta-card:nth-child(2) {
      background: #15803d;
      box-shadow: 0 20px 60px rgba(34, 197, 94, 0.35);
    }

    .meta-card:nth-child(3) {
      background: #0f172a;
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.45);
    }

    .meta-value {
      font-size: 2.25rem;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .meta-label {
      font-size: 0.95rem;
      color: #404040;
    }

    .department-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 24px;
    }

    .department-card {
      background: #ffffff;
      border-radius: 24px;
      padding: 28px;
      box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
      border: 1px solid rgba(15, 23, 42, 0.05);
      display: flex;
      flex-direction: column;
      gap: 18px;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .department-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
    }

    .department-card-media {
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      aspect-ratio: 16 / 9;
      background: linear-gradient(135deg, #0f172a, #075985);
    }

    .department-card-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .department-card-media.is-fallback {
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #0f172a, #0369a1);
    }

    .department-card-fallback-icon {
      font-size: 2.2rem;
      color: white;
    }

    .department-card-pill {
      position: absolute;
      top: 16px;
      left: 16px;
      background: rgba(15, 23, 42, 0.9);
      color: #fff;
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 0.8rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .department-card-body {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .department-card h3 {
      margin: 0;
      font-size: 1.25rem;
      color: #0f172a;
    }
    .council-meeting-info {
      padding: 64px 0;
      background: #f9fafb;
    }
    
    .council-meeting-info h2 {
      font-size: 2rem;
      margin-bottom: 16px;
      text-align: left;
    }
    
    .meeting-info-grid {
      margin-top: 24px;
    }
    
    .meeting-info-grid .card {
      background: #fff;
      border-radius: 16px;
      border: 1px solid #6b7280;
      padding: 16px;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .meeting-info-grid .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    }
    
    .council-upcoming-module {
      margin-top: 48px;
      background: #fff;
      border-radius: 20px;
      border: 1px solid #6b7280;
      padding: 32px;
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    }
    
    .council-upcoming-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }
    
    .council-upcoming-head h3 {
      margin: 0;
      font-size: 1.5rem;
    }
    
    .council-upcoming-head p {
      margin: 4px 0 0;
      color: #374151;
    }
    
    .council-upcoming-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
      margin-bottom: 20px;
    }
    
    .council-upcoming-card {
      border: 1px solid #6b7280;
      border-radius: 16px;
      padding: 16px;
      background: #f9fafb;
      height: 100%;
    }
    
    .council-upcoming-card h4 {
      margin: 0 0 8px;
      font-size: 1.05rem;
    }
    
    .council-upcoming-card h4 a {
      color: #0f172a;
      text-decoration: none;
    }
    
    .council-upcoming-card h4 a:hover {
      color: #1d4ed8;
    }
    
    .council-upcoming-date {
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #3f3f46;
      margin-bottom: 6px;
    }
    
    .council-upcoming-meta {
      font-size: 0.9rem;
      color: #374151;
    }
    
    .council-upcoming-actions {
      display: flex;
      gap: 16px;
      align-items: center;
      flex-wrap: wrap;
    }
    
    .council-upcoming-actions span {
      color: #374151;
      font-size: 0.95rem;
    }
    
    .council-upcoming-empty {
      padding: 24px;
      border-radius: 16px;
      background: #fef3c7;
      color: #92400e;
      margin-bottom: 20px;
    }
    
    @media (max-width: 768px) {
      .council-upcoming-module {
        padding: 24px;
      }
      .council-upcoming-head {
        flex-direction: column;
        align-items: flex-start;
      }
      .council-upcoming-grid {
        grid-template-columns: 1fr;
      }
    }

    .department-card p {
      margin: 0;
      color: #334155;
      line-height: 1.7;
    }

    .department-card-contact {
      font-weight: 600;
      color: #0f172a;
      margin-top: 4px;
    }

    .department-card-footer {
      margin-top: auto;
    }

    .department-card .btn-link {
      color: #0369a1;
      text-decoration: none;
      font-weight: 600;
    }

    .department-card.is-hidden {
      display: none;
    }

    .departments-highlight {
      margin-top: 60px;
    }

    .departments-highlight h2 {
      margin: 0 0 20px 0;
      font-size: 2rem;
      color: #0f172a;
    }

    .departments-highlight-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 24px;
    }

    .departments-highlight-card {
      background: #ffffff;
      border-radius: 24px;
      padding: 28px;
      box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
      border: 1px solid rgba(15, 23, 42, 0.05);
    }

    .departments-highlight-card h3 {
      margin: 0 0 12px 0;
      font-size: 1.2rem;
      color: #15803d;
    }

    .departments-highlight-card p {
      margin: 0;
      color: #334155;
      line-height: 1.7;
    }

    @media (max-width: 768px) {
      .departments-rich-content {
        padding: 28px;
      }
    }

    .documents-template {
      background: #f8fafc;
    }

    .documents-overview {
      padding: 60px 20px 90px;
    }

    .documents-overview .container {
      max-width: 1100px;
      margin: 0 auto;
    }

    .documents-intro {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 24px;
      flex-wrap: wrap;
      margin-bottom: 30px;
    }

    .documents-search {
      flex: 1;
      min-width: 260px;
    }

    .documents-search input {
      width: 100%;
      padding: 16px 20px;
      border-radius: 16px;
      border: 1px solid #94a3b8;
      font-size: 1rem;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }

    .documents-rich-content {
      background: #ffffff;
      border-radius: 28px;
      padding: 32px;
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
      margin-bottom: 30px;
    }

    .document-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 20px;
    }

    .document-card {
      background: #ffffff;
      border-radius: 24px;
      padding: 26px;
      box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
      border: 1px solid rgba(15, 23, 42, 0.05);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .document-card.is-hidden {
      display: none;
    }

    .document-chip {
      align-self: flex-start;
      padding: 4px 12px;
      border-radius: 999px;
      background: #0f172a;
      color: #fff;
      font-size: 0.85rem;
      font-weight: 600;
    }

    .document-card h3 {
      margin: 0;
      font-size: 1.1rem;
      color: #0f172a;
    }

    .document-card p {
      margin: 0;
      color: #334155;
    }

    .document-meta {
      font-size: 0.9rem;
      color: #334155;
      display: flex;
      gap: 12px;
    }

    .document-card .btn-link {
      margin-top: auto;
      font-weight: 600;
      color: #0369a1;
      text-decoration: none;
    }

    .events-archive-page {
      background: #f8fafc;
    }

    .events-hero {
      padding: 90px 20px 60px;
      background: linear-gradient(135deg, #0f172a, #0369a1);
      color: #fff;
      text-align: center;
    }

    .events-hero .container {
      max-width: 900px;
      margin: 0 auto;
    }

    .events-hero h1 {
      font-size: 3rem;
      margin: 0 0 12px 0;
      color: #ffffff;
    }

    .events-hero .eyebrow {
      text-transform: uppercase;
      letter-spacing: 0.2em;
      font-size: 0.9rem;
      margin-bottom: 10px;
      color: rgba(255, 255, 255, 0.95);
    }

    .events-hero .lead {
      font-size: 1.1rem;
      margin: 0;
      color: rgba(255, 255, 255, 0.95);
    }

    .events-collection {
      padding: 60px 20px 90px;
    }

    .events-collection .container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .events-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }

    .event-card {
      background: #fff;
      border-radius: 28px;
      padding: 28px;
      box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
      border: 1px solid rgba(15, 23, 42, 0.05);
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .event-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
    }

    .event-date-pill {
      width: 72px;
      height: 72px;
      border-radius: 20px;
      background: #0369a1;
      color: #fff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    }

    .event-calendar-icon {
      font-size: 2.5rem;
      line-height: 1;
    }

    .event-month {
      font-size: 0.95rem;
      letter-spacing: 0.1em;
    }

    .event-day {
      font-size: 1.6rem;
      line-height: 1;
    }

    .event-category {
      font-size: 0.85rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #0f172a;
    }

    .event-card-body h2 {
      margin: 0 0 10px 0;
      font-size: 1.35rem;
    }

    .event-card-body h2 a {
      color: inherit;
      text-decoration: none;
    }

    .event-card .event-meta {
      list-style: none;
      padding: 0;
      margin: 0 0 10px 0;
      color: #334155;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .event-excerpt {
      color: #334155;
      line-height: 1.7;
    }

    .event-card-footer {
      margin-top: auto;
    }

    .event-card .btn-link {
      font-weight: 600;
      color: #0369a1;
      text-decoration: none;
    }

    .events-pagination {
      margin-top: 48px;
    }

    .events-pagination .nav-links {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
    }

    .events-pagination .page-numbers {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      min-width: 44px;
      height: 44px;
      padding: 0 14px;
      border-radius: 22px;
      background: #fff !important;
      color: #0f172a !important;
      text-decoration: none !important;
      font-weight: 600;
      font-size: 0.95rem;
      border: 2px solid #e2e8f0;
      line-height: 1;
      box-sizing: border-box;
      transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    }

    .events-pagination a.page-numbers:hover {
      background: #f1f5f9 !important;
      border-color: #0369a1 !important;
      color: #0369a1 !important;
    }

    .events-pagination a.page-numbers.prev,
    .events-pagination a.page-numbers.next {
      padding: 0 24px;
      border-radius: 22px;
      white-space: nowrap;
      background: #0369a1 !important;
      color: #ffffff !important;
      border-color: #0369a1 !important;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      box-shadow: 0 4px 14px rgba(3, 105, 161, 0.35);
    }

    .events-pagination a.page-numbers.prev:hover,
    .events-pagination a.page-numbers.next:hover {
      background: #0284c7 !important;
      border-color: #0284c7 !important;
      color: #ffffff !important;
      box-shadow: 0 6px 20px rgba(3, 105, 161, 0.45);
    }

    .events-pagination .page-numbers.dots {
      border-color: transparent !important;
      background: transparent !important;
      color: #94a3b8 !important;
      pointer-events: none;
      box-shadow: none;
    }

    .events-pagination .page-numbers.current {
      background: #0369a1 !important;
      color: #fff !important;
      border-color: #0369a1 !important;
      box-shadow: 0 2px 8px rgba(3, 105, 161, 0.3);
    }

    .events-empty {
      background: #fff;
      border-radius: 28px;
      padding: 40px;
      text-align: center;
      box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    }

    .official-header {
      display: flex;
      gap: 30px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 30px;
    }

    .official-photo-large img {
      width: 240px;
      height: 280px;
      object-fit: cover;
      border-radius: 24px;
      box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.5);
    }

    .official-header-info h1 {
      font-size: 42px;
      margin: 0 0 10px;
    }

    .official-position {
      font-size: 22px;
      color: #15803d;
      margin: 0 0 10px;
    }

    .official-department,
    .official-term {
      font-size: 16px;
      color: #334155;
      margin: 0 0 8px;
    }

    .official-contact-box {
      border: 1px solid #94a3b8;
      border-radius: 20px;
      padding: 30px;
      margin-bottom: 30px;
      background: #f8fafc;
    }

    .official-contact-box h3,
    .official-bio h3 {
      margin-top: 0;
      font-size: 24px;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
      margin-top: 20px;
    }

    .contact-item {
      font-size: 15px;
      color: #334155;
    }

    .contact-item a {
      color: #0f172a;
      font-weight: 600;
    }

    .official-bio {
      font-size: 17px;
      line-height: 1.8;
      color: #1f2937;
    }

    @media (max-width: 768px) {
      .single-official article {
        padding: 30px 20px;
      }

      .official-header {
        flex-direction: column;
        align-items: flex-start;
      }

      .official-header-info h1 {
        font-size: 32px;
      }

      .official-photo-large img {
        width: 100%;
        height: auto;
      }
    }

    .community-section {
      padding: 60px 20px;
      background: #f9fafb;
    }

    .get-it-done {
      padding: 60px 20px;
      background: #fef3c7;
    }

    .get-it-done h2 {
      text-align: center;
      color: #1f2937;
      margin-bottom: 40px;
      font-size: 2.5rem;
    }

    .get-it-done-intro {
      text-align: center;
      color: #404040;
      max-width: 600px;
      margin: 0 auto 50px;
      font-size: 1rem;
      display: none;
    }

    .categories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      margin-bottom: 40px;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
    }

    .category-card {
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      transition: all 0.3s ease;
      cursor: pointer;
      background: white;
      border: 2px solid transparent;
    }

    .category-card-link {
      display: block;
      text-decoration: none;
      color: inherit;
    }

    .category-card-link:focus-visible {
      outline: 3px solid #0369a1;
      outline-offset: 4px;
    }

    .category-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

    .category-header {
      padding: 40px 30px;
      color: white;
      transition: background 0.3s;
      border-radius: 16px 16px 0 0;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }

    .category-header.blue {
      background: #3b82f6;
    }

    .category-header.green {
      background: #15803d;
    }

    .category-header.orange {
      background: #f97316;
    }

    .category-header.purple {
      background: #9333ea;
    }

    .category-header.red {
      background: #ef4444;
    }

    .category-header.teal {
      background: #14b8a6;
    }

    .category-icon {
      font-size: 40px;
      line-height: 1;
    }

    .category-card h3 {
      color: white;
      font-size: 1.3rem;
      margin-bottom: 8px;
      font-weight: 600;
    }

    .category-card p {
      color: white;
      font-size: 0.95rem;
      margin: 0;
      line-height: 1.5;
    }

    .track-request {
      display: none;
    }

    .emergency-info {
      display: none;
    }

    .button-group {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .btn {
      padding: 10px 20px;
      border: 2px solid currentColor;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }

    .btn-primary {
      background: #0ea5e9;
      color: white;
      border-color: #0ea5e9;
    }

    .btn-primary:hover {
      background: #0284c7;
      border-color: #0284c7;
    }

    .btn-outline {
      background: white;
      border: 2px solid #0ea5e9;
      color: #0ea5e9;
    }

    .btn-outline:hover {
      background: #0ea5e9;
      border-color: #0ea5e9;
      color: white;
    }

    .emergency-info {
      text-align: center;
      color: #78350f;
      font-size: 14px;
      margin-top: 20px;
    }

    .emergency-info .highlight {
      color: #dc2626;
      font-weight: bold;
    }

    footer {
      background-color: #111827;
      color: #d1d5db;
      padding: 48px 20px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 32px;
      margin-bottom: 32px;
    }

    .footer-logo-link {
      pointer-events: auto;
      transition: opacity 0.2s ease;
      margin: 0;
      padding: 0;
    }

    .footer-logo-link:hover {
      opacity: 0.9;
    }

    .footer-logo,
    .footer-logo-link {
      max-width: 267px;
      margin: 0;
      padding: 0;
    }

    .footer-logo img,
    .footer-logo-link img {
      max-width: 267px;
      height: auto;
      margin: 0;
      padding: 0;
    }

    @media (max-width: 768px) {
      .footer-logo,
      .footer-logo-link {
        max-width: 220px;
      }
      
      .footer-logo img,
      .footer-logo-link img {
        max-width: 220px;
      }
    }

    .footer-section h4 {
      color: white;
      margin-bottom: 16px;
      font-size: 1rem;
    }

    .footer-section p {
      font-size: 14px;
      color: #d1d5db;
      margin-bottom: 16px;
    }

    .footer-section ul {
      list-style: none;
    }

    .footer-section li {
      margin-bottom: 8px;
    }

    .footer-section a {
      color: #15803d;
      text-decoration: none;
      font-size: 14px;
      transition: all 0.3s ease;
      display: inline-block;
      padding: 2px 4px;
      border-radius: 3px;
      position: relative;
    }

    .footer-section a:hover {
      color: #86efac;
      background: rgba(21,128,61,0.1);
      transform: translateX(4px);
    }

    .footer-bottom {
      border-top: 1px solid #374151;
      padding-top: 32px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      align-items: center;
    }

    @media (min-width: 768px) {
      .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
      }
    }

    .footer-copyright {
      margin: 0;
    }

    .footer-bottom p {
      font-size: 14px;
      color: #d1d5db;
      margin: 0;
    }

    .footer-links {
      display: flex;
      align-items: center;
      font-size: 14px;
    }
    
    .footer-legal-menu {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      list-style: none !important;
      margin: 0 !important;
      padding: 0 !important;
      gap: 0;
    }
    
    .footer-legal-menu li {
      display: inline-flex !important;
      align-items: center;
      list-style: none !important;
      margin: 0 !important;
      padding: 0 12px !important;
      border-right: 1px solid #374151;
    }
    
    .footer-legal-menu li::before {
      display: none !important;
    }
    
    .footer-legal-menu li:first-child {
      padding-left: 0 !important;
    }
    
    .footer-legal-menu li:last-child {
      border-right: none;
    }

    .footer-links a,
    .footer-legal-menu a {
      color: #15803d;
      text-decoration: none;
      transition: all 0.3s ease;
      white-space: nowrap;
      padding: 2px 4px;
      border-radius: 3px;
      position: relative;
    }

    .footer-links a:hover,
    .footer-legal-menu a:hover {
      color: #86efac;
      background: rgba(21,128,61,0.1);
      transform: translateX(4px);
    }

    .footer-council-events {
      border-top: 1px solid #1f2937;
      border-bottom: 1px solid #1f2937;
      padding: 32px 0;
      margin-bottom: 32px;
    }

    .footer-council-head {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 20px;
    }

    .footer-council-head h4 {
      color: #fff;
      margin: 0;
      font-size: 1.125rem;
    }

    .footer-council-head p {
      margin: 0;
      color: #d1d5db;
      font-size: 0.95rem;
    }

    .footer-council-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 16px;
      margin-bottom: 16px;
    }

    .footer-council-card {
      background: #1f2937;
      border: 1px solid #374151;
      border-radius: 12px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-council-date {
      font-size: 0.85rem;
      color: #d1d5db;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .footer-council-card h5 {
      margin: 0;
      font-size: 1rem;
    }

    .footer-council-card h5 a {
      color: #fef3c7;
      text-decoration: none;
    }

    .footer-council-card h5 a:hover {
      color: #fde68a;
    }

    .footer-council-meta {
      font-size: 0.85rem;
      color: #d1d5db;
    }

    .footer-council-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      align-items: center;
    }

    .footer-council-actions a {
      color: #15803d;
      text-decoration: none;
      font-weight: 600;
    }

    .footer-council-actions a:hover {
      color: #86efac;
    }

    .footer-council-actions span {
      color: #d1d5db;
      font-size: 0.9rem;
    }

    @media (max-width: 768px) {
      .header-content {
        flex-direction: column;
        align-items: flex-start;
      }
      .events-wrapper {
        grid-template-columns: 1fr;
      }
    }
      
    /* Mobile Menu Toggle */
    .mobile-menu-toggle { 
      display: none; 
      background: rgba(255,255,255,0.1); 
      border: 1px solid rgba(255,255,255,0.25); 
      color: white; 
      font-size: 1.8rem; 
      cursor: pointer; 
      padding: 0.5rem;
      line-height: 1;
      border-radius: 4px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.12);
      transition: all 0.3s;
    }
    
    .mobile-menu-toggle:hover {
      background: rgba(255,255,255,0.2);
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
    
    /* Mobile Navigation - Hidden by default on desktop */
    .mobile-nav { 
      display: none;
      background: white;
      border-top: 2px solid #e5e7eb;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      width: 100%;
      position: relative;
      z-index: 1000;
      max-height: 70vh;
      overflow-y: auto;
      padding-bottom: 30px;
    }
    
    .mobile-nav ul {
      list-style: none;
      padding: 0;
      margin: 0;
      background: white;
    }
    
    .mobile-nav li {
      border-bottom: 1px solid #6b7280;
    }
    
    .mobile-nav .mobile-menu-item-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }
    
    .mobile-nav .mobile-menu-link {
      flex: 1;
      display: block;
      padding: 1.2rem 1.5rem;
      color: #0f172a;
      text-decoration: none;
      font-weight: 600;
      font-size: 1rem;
      transition: all 0.2s;
      background: white;
    }

    .mobile-nav .mobile-menu-link:hover {
      color: #0369a1;
    }
    
    .mobile-nav .mobile-submenu-toggle {
      background: none;
      border: 1px solid #6b7280;
      color: #0f172a;
      font-size: 1.25rem;
      cursor: pointer;
      padding: 1.2rem 1.5rem;
      line-height: 1;
      transition: transform 0.2s;
      border-radius: 3px;
    }
    
    .mobile-nav li.is-open > .mobile-menu-item-row .mobile-submenu-toggle .toggle-icon {
      transform: rotate(45deg);
    }
    
    .mobile-nav .sub-menu {
      display: none;
      padding: 0 1.25rem 0.75rem 2rem;
      margin: 0;
      background: #f9fafb;
    }
    
    .mobile-nav li.is-open > .sub-menu {
      display: block;
    }
    
    .mobile-nav .sub-menu li {
      border: none;
    }
    
    .mobile-nav .sub-menu .mobile-menu-link {
      padding: 0.65rem 0;
      font-weight: 500;
      font-size: 0.95rem;
    }
    
    .mobile-nav li:last-child {
      border-bottom: none;
      margin-bottom: 20px;
      padding-bottom: 10px;
    }
    
    /* Responsive Breakpoints */
    @media (max-width: 1200px) {
      .header-content { gap: 1rem; padding: 0 15px; }
      .search-bar input { width: 200px; }
      .dropdown-menu { width: min(600px, calc(100vw - 30px)); }
      .content-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    }

    @media (max-width: 1023px) {
      .nav-bar {
        display: block;
        padding: 0;
      }
      .primary-nav {
        display: none !important;
      }
      .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
      }
      .mobile-nav {
        border-top: 2px solid #e5e7eb;
      }
      .mobile-nav.active {
        display: block !important;
      }
    }
    
    @media (max-width: 992px) {
      .header-content { flex-wrap: wrap; justify-content: center; }
      .search-bar { order: 4; width: 100%; margin-top: 0.5rem; }
      .search-bar input { width: 100%; }
      .dropdown-menu { width: min(500px, calc(100vw - 30px)); }
      .dropdown-grid { grid-template-columns: 1fr; }
      .dropdown-left { display: none; }
      .page-hero h1 { font-size: 2rem; }
      .page-hero { padding: 3rem 20px; }
      h2 { font-size: 1.75rem; }
    }
    
    @media (max-width: 768px) {
      .header-content { gap: 0.75rem; }
      .logo-icon { width: 50px; height: 50px; }
      .logo-text .city-name { font-size: 1.2rem; }
      .connect-btn { padding: 0.4rem 1rem; font-size: 0.85rem; }
      .language-selector { position: static; }
      .language-dropdown { left: auto; right: 0; }
      .content-grid { grid-template-columns: 1fr; gap: 1.5rem; }
      .card { padding: 1.5rem; }
      .page-hero h1 { font-size: 1.75rem; }
      .page-hero p { font-size: 1rem; }
      .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    }
    
    @media (max-width: 576px) {
      .container { padding: 0 15px; }
      .header-alert { font-size: 0.8rem; padding: 0.5rem 15px; flex-direction: column; gap: 0.5rem; text-align: center; }
      .header-main { padding: 0.75rem 15px; }
      .logo { gap: 0.5rem; }
      .logo-icon { width: 40px; height: 40px; font-size: 1.2rem; }
      .logo-text .city-name { font-size: 1rem; }
      .connect-btn { font-size: 0.75rem; padding: 0.3rem 0.8rem; }
      .language-btn { font-size: 0.8rem; }
      h2 { font-size: 1.5rem; }
      h3 { font-size: 1.25rem; }
      .page-hero { padding: 2rem 15px; }
      .page-hero h1 { font-size: 1.5rem; }
      .page-hero p { font-size: 0.9rem; }
      .content-section { padding: 1.5rem 15px; }
      .card { padding: 1.25rem; }
      footer { padding: 32px 15px; }
    }
    
    @media (max-width: 380px) {
      .header-content { gap: 0.5rem; }
      .logo-text .city-name { font-size: 0.9rem; }
      .connect-btn span:first-child { display: none; }
      .language-selector { font-size: 0.75rem; }
      h2 { font-size: 1.25rem; }
      .page-hero h1 { font-size: 1.25rem; }
    }
      
    /* Mobile Menu Styles */
    .mobile-menu-toggle {
      display: none;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.2);
      color: white;
      font-size: 1.8rem;
      cursor: pointer;
      padding: 0.5rem;
      line-height: 1;
      border-radius: 4px;
      transition: all 0.3s;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .mobile-menu-toggle:hover {
      background: rgba(255,255,255,0.15);
    }
    
    .mobile-nav ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .mobile-nav li {
      border-bottom: 1px solid #6b7280;
    }
    
    .mobile-nav a {
      display: block;
      padding: 1rem 1.5rem;
      color: #15803d;
      text-decoration: none;
      font-weight: 500;
      transition: background 0.2s, color 0.2s;
    }

    .mobile-nav a:hover {
      background: #f9fafb;
      color: #15803d;
    }
    
    /* Responsive Breakpoints */
    @media (max-width: 1200px) {
      .header-content {
        gap: 1rem;
        padding: 0 15px;
        flex-wrap: nowrap;
      }
      
      .search-bar input {
        width: 180px;
      }
      
      .dropdown-menu {
        width: 600px;
      }
      
      .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
      }
    }
    
    @media (max-width: 992px) {
      .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.75rem;
      }
      
      .logo {
        flex: 0 0 auto;
      }
      
      .search-bar {
        order: 4;
        width: 100%;
        margin-top: 0.75rem;
      }
      
      .search-bar input {
        width: 100%;
      }
      
      .connect-btn {
        order: 2;
      }
      
      .language-selector {
        order: 3;
      }
      
      .dropdown-menu {
        width: 90vw;
        left: 5vw;
      }
      
      .dropdown-grid {
        grid-template-columns: 1fr;
      }
      
      .dropdown-left {
        display: none;
      }
      
      .page-hero h1 {
        font-size: 2rem;
      }
      
      .page-hero {
        padding: 3rem 20px;
      }
      
      h2 {
        font-size: 1.75rem;
      }
      
      .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      }
    }
    
    @media (max-width: 768px) {
      .nav-bar {
        display: block;
      }
      .header-content {
        gap: 0.75rem;
        padding: 0 15px;
      }
      
      .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
      }
      
      .logo-text .city-name {
        font-size: 1.2rem;
      }
      
      .connect-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
      }
      
      .language-selector {
        position: relative;
      }
      
      .language-dropdown {
        left: auto;
        right: 0;
      }
      
      .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }
      
      .card {
        padding: 1.5rem;
      }
      
      .page-hero h1 {
        font-size: 1.75rem;
      }
      
      .page-hero p {
        font-size: 1rem;
      }
      
      .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }
      
      .footer-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
      }
    }

    @media (max-width: 768px) {
      .primary-nav {
        overflow-x: auto;
      }

      .primary-nav > ul {
        min-width: 720px;
      }
    }

    @media (max-width: 640px) {
      .mobile-nav a {
        padding: 1rem;
      }
    }
    
    @media (max-width: 576px) {
      .container {
        padding: 0 15px;
      }
      
      .header-alert {
        font-size: 0.8rem;
        padding: 0.5rem 15px;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
      }
      
      .header-main {
        padding: 0.8rem 15px;
      }
      
      .header-content {
        gap: 0.5rem;
      }
      
      .logo {
        gap: 0.5rem;
      }
      
      .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
      }
      
      .logo-text .city-name {
        font-size: 1.1rem;
      }
      
      .logo-text .city-label {
        font-size: 0.6rem;
      }
      
      .connect-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem;
      }
      
      .language-btn {
        font-size: 0.8rem;
      }
      
      .search-bar {
        padding: 0.4rem 0.8rem;
      }
      
      h2 {
        font-size: 1.5rem;
      }
      
      h3 {
        font-size: 1.25rem;
      }
      
      .page-hero {
        padding: 2rem 15px;
      }
      
      .page-hero h1 {
        font-size: 1.5rem;
      }
      
      .page-hero p {
        font-size: 0.9rem;
      }
      
      .content-section {
        padding: 1.5rem 15px;
      }
      
      .card {
        padding: 1.25rem;
      }
      
      footer {
        padding: 32px 15px;
      }
      
      .mobile-nav a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
      }
    }
    
    @media (max-width: 380px) {
      .header-content {
        gap: 0.4rem;
      }
      
      .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
      }
      
      .logo-text .city-name {
        font-size: 0.95rem;
      }
      
      .logo-text .city-label {
        display: none;
      }
      
      .connect-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
      }
      
      .connect-btn span:first-child {
        display: none;
      }
      
      .language-btn {
        font-size: 0.75rem;
      }
      
      h2 {
        font-size: 1.35rem;
      }
      
      .page-hero h1 {
        font-size: 1.35rem;
      }
      
      .mobile-menu-toggle {
        font-size: 1.5rem;
      }
    }
    
    /* Utility Classes for Better Spacing */
    .flex-center {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .flex-between {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .no-overlap {
      position: relative;
      z-index: 1;
    }    
    /* Mobile Header Structure - New Layout */
    .mobile-logo-hamburger-row,
    .mobile-weather-language-row,
    .mobile-connect-btn {
      display: none;
    }
    
    .desktop-connect-btn {
      display: flex;
    }
    
    @media (max-width: 768px) {
      .header-content {
        padding: 0;
        gap: 0.5rem;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto auto;
        row-gap: 0.5rem;
        align-items: center;
      }
      
      /* Hide desktop elements on mobile */
      .header-content > span#weatherInfo,
      .header-content > .language-selector,
      .desktop-connect-btn {
        display: none !important;
      }
      
      /* Row 1: Logo on left, Hamburger on right - vertically centered */
      .custom-logo-container,
      .logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        display: flex;
        align-items: center;
      }
      
      .mobile-logo-hamburger-row {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        align-items: center;
      }
      
      /* Logo size 220x60 on mobile */
      .custom-logo-container .custom-logo {
        max-width: 220px !important;
        max-height: 60px !important;
        width: 220px !important;
        height: 60px !important;
        object-fit: contain;
        display: block;
      }
      
      .logo-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
      }
      
      .logo-text .city-name {
        font-size: 1rem !important;
      }

      .logo-text .city-label {
        font-size: 0.5rem !important;
      }
      
      .mobile-menu-toggle {
        padding: 0.45rem 0.65rem;
        font-size: 1.5rem;
        line-height: 1;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      /* Row 2: Weather on left, Translate on right */
      .mobile-weather-language-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 0.5rem;
      }
      
      .mobile-weather {
        display: flex;
        align-items: center;
        font-size: 0.8rem;
        white-space: nowrap;
        color: white;
        margin-left: 5px;
      }
      
      .mobile-language {
        display: flex !important;
      }
      
      .mobile-language .language-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
      }
      
      /* Row 3: Contact Button Centered - HIDDEN */
      .mobile-connect-btn {
        display: none !important;
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: center;
        width: calc(100% - 10px);
        max-width: 100%;
        padding: 0.45rem 0.8rem;
        font-size: 0.78rem;
        justify-content: center;
        text-align: center;
        white-space: normal;
      }
      
      /* Row 4: Search Bar Full Width */
      .header-content .search-bar {
        grid-column: 1 / -1;
        grid-row: 4;
        width: 100%;
        padding: 0.45rem 0.8rem;
        border-radius: 18px;
      }
      
      .search-bar input {
        width: 100%;
        font-size: 0.95rem;
        padding-right: 2.5rem;
      }
      
      .search-bar .search-submit {
        right: 1rem;
        font-size: 1.2rem;
      }
      
      /* Hero Slider Mobile Responsive */
      .hero {
        height: 500px;
      }
      
      .hero-content {
        max-width: 85%;
        padding: 1rem;
      }
      
      .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
      }
      
      .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
      }
      
      .hero-buttons {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.5rem;
        flex-wrap: wrap;
      }
      
      .btn-hero-primary,
      .btn-hero-secondary {
        padding: 6px 12px;
        font-size: 0.85rem;
        width: auto;
        min-width: 140px;
        max-width: 180px;
      }
      
      .hero-nav {
        bottom: 20px;
        padding: 6px 12px;
      }

      .hero-dot {
        width: 24px;
        height: 24px;
      }

      .hero-pause-btn {
        width: 28px;
        height: 28px;
      }
      
      .hero-btn {
        padding: 6px 10px;
        font-size: 16px;
      }
      
      .hero-btn.prev {
        left: 8px;
      }
      
      .hero-btn.next {
        right: 8px;
      }

      /* Override grid layout when header is shrunk on mobile */
      .header-main.shrunk .header-content {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
        justify-content: space-between !important;
        align-items: center !important;
      }

      .header-main.shrunk .custom-logo-container,
      .header-main.shrunk .logo {
        grid-column: unset !important;
        grid-row: unset !important;
        flex-shrink: 0;
        margin: 0;
      }

      .header-main.shrunk .mobile-logo-hamburger-row {
        grid-column: unset !important;
        grid-row: unset !important;
        flex-shrink: 0;
        margin: 0;
        margin-left: auto;
      }
    }
    
    @media (max-width: 576px) {
      .header-content {
        padding: 0;
        gap: 0.4rem;
        row-gap: 0.4rem;
        align-items: center;
      }
      
      /* Logo size 220x60 on very small screens */
      .custom-logo-container .custom-logo {
        max-width: 220px !important;
        max-height: 60px !important;
        width: 220px !important;
        height: 60px !important;
        object-fit: contain;
      }
      
      .logo-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
      }
      
      .logo-text .city-name {
        font-size: 0.95rem !important;
      }

      .logo-text .city-label {
        font-size: 0.5rem !important;
      }
      
      .mobile-menu-toggle {
        font-size: 1.4rem;
        padding: 0.3rem 0.5rem;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .mobile-weather {
        font-size: 0.75rem;
        margin-left: 2px;
      }
      
      .mobile-language .language-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
      }
      
      .mobile-connect-btn {
        display: none !important;
        padding: 0.35rem 0.7rem;
        font-size: 0.72rem;
      }
      
      .search-bar {
        padding: 0.4rem 0.7rem;
        border-radius: 16px;
      }
      
      .search-bar input {
        font-size: 0.82rem;
      }
      
      .search-bar .search-submit {
        right: 0.8rem;
        font-size: 1.1rem;
      }
      
      /* Hero even smaller on tiny screens */
      .hero {
        height: 440px;
      }
      
      .hero-content {
        max-width: 90%;
        padding: 0.8rem;
      }
      
      .hero-content h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
      }
      
      .hero-content p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
      }
      
      .hero-buttons {
        flex-direction: row;
        gap: 6px;
        justify-content: center;
        margin-bottom: 0.4rem;
        flex-wrap: wrap;
      }
      
      .btn-hero-primary,
      .btn-hero-secondary {
        padding: 5px 10px;
        font-size: 0.8rem;
        min-width: 130px;
        max-width: 160px;
      }
      
      .hero-nav {
        bottom: 15px;
        padding: 5px 10px;
      }

      .hero-dot {
        width: 24px;
        height: 24px;
      }

      .hero-pause-btn {
        width: 28px;
        height: 28px;
        margin-left: 8px;
      }

      /* Override grid layout when header is shrunk on small mobile */
      .header-main.shrunk .header-content {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
        justify-content: space-between !important;
        align-items: center !important;
      }

      .header-main.shrunk .custom-logo-container,
      .header-main.shrunk .logo {
        grid-column: unset !important;
        grid-row: unset !important;
        flex-shrink: 0;
        margin: 0;
      }

      .header-main.shrunk .mobile-logo-hamburger-row {
        grid-column: unset !important;
        grid-row: unset !important;
        flex-shrink: 0;
        margin: 0;
        margin-left: auto;
      }
    }
    
    /* Landscape Mode Fix for Mobile */
    @media (max-height: 560px) and (orientation: landscape) {
      /* Keep all 4 header rows visible in landscape */
      .mobile-connect-btn {
        display: none !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.78rem !important;
      }
      
      .header-content .search-bar {
        display: flex !important;
        padding: 0.45rem 0.85rem !important;
      }
      
      .header-content {
        grid-template-rows: auto auto auto auto !important;
        padding: 0.35rem 12px !important;
        row-gap: 0.4rem !important;
      }
      
      .hero-content {
        max-width: 85%;
        padding: 0.5rem;
      }
      
      .hero-content h1 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
      }
      
      .hero-content p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
      }
      
      .hero-buttons {
        flex-direction: row;
        gap: 6px;
        margin-bottom: 0.3rem;
      }
      
      .btn-hero-primary,
      .btn-hero-secondary {
        padding: 5px 12px;
        font-size: 0.7rem;
        min-width: 100px;
      }
      
      .hero-nav {
        bottom: 12px;
        padding: 4px 8px;
      }

      .hero-dot {
        width: 24px;
        height: 24px;
      }

      .hero-pause-btn {
        width: 28px;
        height: 28px;
        margin-left: 6px;
      }
      
      /* Force all content sections to be visible and scrollable in landscape */
      /* NOTE: deliberately NOT including 'section' or 'main' here — too broad,
         it would collapse the .hero height (which has only abs-positioned children) */
      .quick-services,
      .content-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: auto !important;
        height: auto !important;
      }
      
      .hero-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
      }
      
      .hero-buttons {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
      }
      
      .btn-hero-primary,
      .btn-hero-secondary {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
      }
      
      /* Hero: height set WITH !important here, AFTER the section rules,
         so it cannot be collapsed by any broader rule */
      .hero {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: hidden !important;
        position: relative !important;
        height: 360px !important;
        min-height: 360px !important;
      }
      
      .hero-slide,
      .hero-slide.active {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
      }
      
      .hero-slide.active {
        opacity: 0.6 !important;
      }
      
      .hero-slide img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
      }
      
      body,
      html {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        min-height: 100vh !important;
      }
      
      .header-content {
        padding: 0.4rem 10px !important;
      }
      
      /* Mayor & Council landscape: 2 per row, centered-left / centered-right */
      .mayor-section .container,
      .mayor-section > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
      }

      .officials-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
      }
      
      /* Each card takes exactly half the row minus the gap */
      .official-card {
        flex: 0 0 calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
        width: calc(50% - 12px) !important;
        text-align: center !important;
        box-sizing: border-box !important;
      }
      
      /* Portrait-identical circular images */
      .official-image {
        width: 100% !important;
        aspect-ratio: 1 !important;
        max-width: 150px !important;
        height: auto !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        margin: 0 auto 10px !important;
        display: block !important;
      }
      
      .official-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
      }
      
      .official-card p {
        font-size: 0.78rem !important;
      }
      
      .mayor-section {
        padding: 20px 10px !important;
      }
    }
      /* Mobile Navigation Menu */
    .mobile-nav {
      display: none;
      background: white;
      border-top: 1px solid #e5e7eb;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      width: 100%;
      max-height: 70vh;
      overflow-y: auto;
      position: relative;
      z-index: 200;
    }
    
    .mobile-nav ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .mobile-nav li {
      border-bottom: 1px solid #6b7280;
    }
    
    .mobile-nav .mobile-menu-item-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 1rem 1.25rem;
    }
    
    .mobile-nav .mobile-menu-link {
      flex: 1;
      font-weight: 600;
      color: #0f172a;
      text-decoration: none;
      font-size: 1rem;
    }
    
    .mobile-nav .mobile-menu-link:hover {
      color: #0369a1;
    }
    
    .mobile-nav .mobile-submenu-toggle {
      background: none;
      border: 1px solid #6b7280;
      color: #0f172a;
      font-size: 1.25rem;
      cursor: pointer;
      line-height: 1;
      padding: 0.25rem;
      transition: transform 0.2s;
      border-radius: 3px;
    }
    
    .mobile-nav .mobile-submenu-toggle .toggle-icon {
      display: inline-block;
      transition: transform 0.2s;
    }
    
    .mobile-nav li.is-open > .mobile-menu-item-row .mobile-submenu-toggle .toggle-icon {
      transform: rotate(45deg);
    }
    
    .mobile-nav .sub-menu {
      display: none;
      padding: 0 1.25rem 0.75rem 1.25rem;
      margin: 0;
      background: #f9fafb;
      border-left: 2px solid #e5e7eb;
    }
    
    .mobile-nav li.is-open > .sub-menu {
      display: block;
    }
    
    .mobile-nav .sub-menu li {
      border: none;
    }
    
    .mobile-nav .sub-menu a {
      display: block;
      padding: 0.65rem 0;
      color: #0f172a;
      text-decoration: none;
      font-weight: 500;
      font-size: 0.95rem;
    }
    
    .mobile-nav .sub-menu a:hover {
      color: #0369a1;
    }

    @media (orientation: landscape) and (max-width: 1024px) {
      .mobile-nav {
        max-height: calc(100vh - 120px);
      }
    }
    
    /* Responsive Container Adjustments */
    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }
    
    @media (max-width: 1400px) {
      .container {
        max-width: 1140px;
      }
    }
    
    @media (max-width: 1200px) {
      .container {
        max-width: 960px;
        padding: 0 15px;
      }
    }

    /* =============================================
       WCAG 1.4.11 & 2.1.1 Accessibility Overrides
       AudioEye Compliance — borders are set directly
       on original rules above. This section handles
       focus-visible and additional state styles only.
       ============================================= */

    /* Hero dot active state */
    .hero-dot.active {
      border-color: #ffffff;
    }

    /* Hero primary button border matches bg for clean look */
    .btn-hero-primary {
      border-color: #78350f;
    }

    /* View All News Buttons */
    .view-all-news {
      text-align: center;
      margin-top: 2rem;
    }

    .view-all-news .btn {
      background: #0369a1;
      color: white;
      padding: 12px 32px;
      border: 2px solid #0369a1;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      text-decoration: none;
      display: inline-block;
    }

    .view-all-news .btn:hover {
      background: #0284c7;
      border-color: #0284c7;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(3,105,161,0.3);
    }

    /* Language option hover shows boundary */
    .language-option:hover,
    .language-option:focus {
      border-color: #6b7280;
    }

    /* Dropdown items on hover/focus */
    .primary-nav .dropdown-item:hover,
    .primary-nav .dropdown-item:focus-within {
      border-color: #9ca3af;
    }

    /* Generic focus-visible for all interactive elements */
    button:focus-visible,
    [role="button"]:focus-visible,
    a:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    [tabindex="0"]:focus-visible {
      outline: 2px solid #2563eb;
      outline-offset: 2px;
    }
    
    @media (max-width: 992px) {
      .container {
        max-width: 720px;
        padding: 0 15px;
      }
    }
    
    @media (max-width: 768px) {
      .container {
        max-width: 100%;
        padding: 0 15px;
      }
      
      .content-grid,
      .categories-grid,
      .officials-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
      }
      
      .card,
      .category-card,
      .official-card {
        margin-bottom: 1rem;
      }
    }
    
    @media (max-width: 576px) {
      .container {
        padding: 0 10px;
      }
      
      h1 {
        font-size: 1.75rem !important;
      }
      
      h2 {
        font-size: 1.5rem !important;
      }
      
      h3 {
        font-size: 1.25rem !important;
      }
    }


/* ========================================
   SINGLE BLOG POST STYLES
   ======================================== */

.single-page {
    background: #f8fafc;
    min-height: 60vh;
}

.single-page article {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    background: white;
}

.single-page .post-thumbnail {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.single-page .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-page h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.single-page .entry-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
}

.single-page .entry-meta span {
    color: #334155;
    font-size: 0.95rem;
}

.single-page .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.single-page .entry-content p {
    margin-bottom: 24px;
}

.single-page .entry-content h2 {
    font-size: 2rem;
    color: #1e293b;
    margin: 48px 0 24px;
    font-weight: 700;
}

.single-page .entry-content h3 {
    font-size: 1.5rem;
    color: #334155;
    margin: 36px 0 20px;
    font-weight: 600;
}

.single-page .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

.single-page .entry-content ul,
.single-page .entry-content ol {
    margin: 24px 0 24px 30px;
}

.single-page .entry-content li {
    margin-bottom: 12px;
}

/* Single Event Styles */
.single-event {
    background: #f8fafc;
    min-height: 60vh;
}

.single-event article {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    background: white;
}

.single-event .event-featured-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.single-event .event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-event .event-category-badge {
    display: inline-block;
    background: #0369a1;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.single-event h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.single-event .event-info-box {
    background: #f1f5f9;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 4px solid #0369a1;
}

.single-event .event-info-item {
    padding: 12px 0;
    font-size: 1.1rem;
    color: #334155;
}

.single-event .event-info-item strong {
    color: #1e293b;
    margin-right: 8px;
}

.single-event .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 50px;
}

.single-event .event-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
    gap: 20px;
}

.single-event .event-navigation a {
    padding: 12px 24px;
    background: #0369a1;
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.single-event .event-navigation a:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    margin-top: 60px;
    border-top: 2px solid #e2e8f0;
    gap: 20px;
}

.post-navigation a {
    padding: 12px 24px;
    background: #0369a1;
    color: white !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.post-navigation a:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* ===================================
   MOBILE SCROLLING HEADER BEHAVIOR
   =================================== */

/* Base header transitions for smooth animations */
@media (max-width: 1023px) {
    header {
        transition: transform 0.3s ease-in-out;
        will-change: transform;
    }

    .header-main {
        transition: padding 0.3s ease-in-out;
        will-change: padding;
    }

    .header-main .header-content {
        transition: gap 0.3s ease-in-out;
    }

    /* Hide elements that should disappear when header shrinks - instant, no transition */
    .header-main.shrunk #weatherInfo,
    .header-main.shrunk .mobile-weather,
    .header-main.shrunk .mobile-weather-language-row,
    .header-main.shrunk .mobile-connect-btn,
    .header-main.shrunk .language-selector.mobile-language,
    .header-main.shrunk .search-bar,
    .header-main.shrunk .connect-btn.desktop-connect-btn,
    .header-main.shrunk > .header-content > .language-selector:not(.mobile-language) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: none !important;
    }

    /* Keep logo and hamburger visible when shrunk - force display with maximum specificity */
    @media (max-width: 1023px) {
        .header-main.shrunk .mobile-logo-hamburger-row,
        .header-main.shrunk .custom-logo-container,
        .header-main.shrunk .custom-logo-link,
        .header-main.shrunk .custom-logo,
        .header-main.shrunk .mobile-menu-toggle {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        .header-main.shrunk .custom-logo,
        .header-main.shrunk .custom-logo img {
            display: block !important;
        }
    }

    /* Reduce header padding when shrunk - accommodate 60px logo */
    .header-main.shrunk {
        padding: 0.8rem 10px;
        min-height: 70px;
        height: auto;
    }

    .header-main.shrunk .header-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;
        min-height: 70px;
        height: auto;
        padding: 0;
        width: 100%;
        max-width: 100%;
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
        position: relative;
    }

    /* Position logo and hamburger correctly when shrunk - use flex instead of absolute */
    .header-main.shrunk .custom-logo-container,
    .header-main.shrunk .logo {
        margin: 0;
        padding: 0;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static;
        align-items: center;
        flex-shrink: 0;
        grid-column: unset !important;
        grid-row: unset !important;
        z-index: 10;
    }

    .header-main.shrunk .custom-logo-container .custom-logo-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center;
        line-height: 0;
    }
    
    .header-main.shrunk .custom-logo-container .custom-logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .header-main.shrunk .mobile-logo-hamburger-row {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static;
        align-items: center;
        margin: 0;
        margin-left: auto;
        flex-shrink: 0;
        grid-column: unset !important;
        grid-row: unset !important;
        z-index: 10;
    }

    /* Extra compact on small phones when shrunk */
    @media (max-width: 576px) {
        .header-main.shrunk {
            padding: 0.75rem 8px;
            min-height: 70px;
        }

        .header-main.shrunk .header-content {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: space-between !important;
            width: 100%;
            grid-template-columns: unset !important;
            grid-template-rows: unset !important;
            position: relative;
        }

        .header-main.shrunk .custom-logo-container,
        .header-main.shrunk .logo {
            grid-column: unset !important;
            grid-row: unset !important;
        }

        .header-main.shrunk .mobile-logo-hamburger-row {
            grid-column: unset !important;
            grid-row: unset !important;
        }
    }

    /* Set logo to 220x60px when scrolling */
    .header-main.shrunk .custom-logo-container .custom-logo {
        max-width: 220px !important;
        max-height: 60px !important;
        height: 60px !important;
        width: 220px !important;
        object-fit: contain;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transition: none;
    }

    /* Logo size on all mobile screens */
    @media (max-width: 768px) {
        .header-main.shrunk .custom-logo-container .custom-logo {
            max-width: 220px !important;
            max-height: 60px !important;
            height: 60px !important;
            width: 220px !important;
        }
    }

    .header-main.shrunk .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        transition: width 0.25s ease-in-out, height 0.25s ease-in-out, font-size 0.25s ease-in-out;
    }

    .header-main.shrunk .logo-text {
        font-size: 0.85em;
        transition: font-size 0.25s ease-in-out;
    }

    .header-main.shrunk .logo-text .city-name {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    /* Make hamburger properly sized when shrunk */
    .header-main.shrunk .mobile-menu-toggle {
        font-size: 1.6rem;
        padding: 0.4rem 0.6rem;
        height: auto;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center;
        justify-content: center;
        transition: font-size 0.25s ease-in-out, padding 0.25s ease-in-out;
    }

    /* Logo size on all mobile screens - keep 220x60 */
    @media (max-width: 576px) {
        .header-main.shrunk .custom-logo-container .custom-logo {
            max-width: 220px !important;
            max-height: 60px !important;
            height: 60px !important;
            width: 220px !important;
        }

        .header-main.shrunk .logo-icon {
            width: 32px;
            height: 32px;
            font-size: 0.9rem;
        }
        
        .header-main.shrunk .mobile-menu-toggle {
            font-size: 1.4rem;
        }

        .header-main.shrunk .logo-text .city-name {
            font-size: 0.9rem !important;
        }

        .header-main.shrunk .mobile-menu-toggle {
            font-size: 1.4rem;
            padding: 0.35rem 0.5rem;
            height: 34px;
        }
    }

    /* Hide alert banner when scrolling down */
    header.scroll-down .header-alert {
        display: none;
        visibility: hidden;
    }

    .header-alert {
        transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
    }

    /* Keep nav-bar visible */
    .nav-bar {
        transition: transform 0.3s ease-in-out;
    }
}

/* Ensure content fits within screen width on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .header-content,
    .nav-bar,
    .container,
    main {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Prevent text overflow */
    .header-alert-content,
    .logo-text,
    .connect-btn {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Ensure all potentially wide content fits */
    table {
        max-width: 100%;
        overflow-x: auto;
        display: block;
    }

    pre {
        max-width: 100%;
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    /* Prevent iframes from overflowing */
    iframe {
        max-width: 100%;
    }

    /* Ensure form elements fit */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    textarea,
    select {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Prevent flex items from overflowing */
    .header-content > * {
        min-width: 0;
        flex-shrink: 1;
    }
}

/* News Badge Colors */
.news-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.tag-infrastructure { background: #dcfce7; color: #166534; }
.tag-public-safety { background: #fed7aa; color: #9a3412; }
.tag-community { background: #e9d5ff; color: #6b21a8; }
.tag-local-events { background: #dbeafe; color: #1e40af; }
.tag-neighborhood { background: #cffafe; color: #155e75; }
.tag-business { background: #fce7f3; color: #9f1239; }
.tag-government { background: #dbeafe; color: #1e3a8a; }
.tag-environment { background: #d1fae5; color: #065f46; }
.tag-transportation { background: #e0e7ff; color: #3730a3; }
.tag-health { background: #fee2e2; color: #991b1b; }

/* ========================================
   UNIVERSAL PAGE TEMPLATE STYLES
   For all pages editable via WordPress Editor
   ======================================== */

/* Page Wrapper */
.page-content-wrapper {
    background: #f8fafc;
    min-height: 60vh;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.breadcrumb a {
  color: #15803d;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #15803d;
  text-decoration: underline;
}

.breadcrumb strong {
    color: #1e293b;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0 60px;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 165, 233, 0.85);
}

.page-hero .hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 3rem;
    margin: 0 0 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: white;
}

.page-hero p {
    font-size: 1.25rem;
    margin: 0;
    color: white;
}

/* Page Content Area */
.page-content-area {
    padding: 60px 0 80px;
    background: white;
}

.entry-content {
    max-width: 100%;
    line-height: 1.8;
}

.entry-content h2 {
    color: #1e293b;
    font-size: 2rem;
    margin: 48px 0 24px;
    font-weight: 700;
}

.entry-content h3 {
    color: #334155;
    font-size: 1.5rem;
    margin: 32px 0 16px;
    font-weight: 600;
}

.entry-content h4 {
    color: #475569;
    font-size: 1.25rem;
    margin: 24px 0 12px;
    font-weight: 600;
}

.entry-content p {
    margin-bottom: 20px;
    color: #334155;
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    display: block;
}

.entry-content figure {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  max-width: 100%;
}

.entry-content figure.wp-block-embedpress-embedpress {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.entry-content figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ensure images in page content sections are properly contained */
.page-content-area img,
.section-content img,
.content-section img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-content-area figure,
.section-content figure,
.content-section figure {
    max-width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.page-content-area figure img,
.section-content figure img,
.content-section figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* WordPress alignment classes */
.page-content-area .alignleft,
.section-content .alignleft,
.content-section .alignleft {
    float: left;
    margin: 10px 20px 10px 0;
    max-width: 50%;
}

.page-content-area .alignright,
.section-content .alignright,
.content-section .alignright {
    float: right;
    margin: 10px 0 10px 20px;
    max-width: 50%;
}

.page-content-area .aligncenter,
.section-content .aligncenter,
.content-section .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .page-content-area .alignleft,
    .page-content-area .alignright,
    .section-content .alignleft,
    .section-content .alignright,
    .content-section .alignleft,
    .content-section .alignright {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0 20px 24px;
    color: #334155;
}

.entry-content li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.entry-content a {
  background: #0ea5e9;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline;
}

.entry-content a:hover {
  background: #0284c7;
  color: white;
}

/* WordPress Block Editor Support */
.wp-block-columns {
    display: flex;
    gap: 32px;
    margin: 32px 0;
}

.wp-block-column {
    flex: 1;
}

.wp-block-group {
    padding: 24px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 24px 0;
}

.wp-block-group.has-background {
    padding: 32px;
}

.wp-block-button__link {
    background: #0ea5e9;
    color: white !important;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(14,165,233,0.3);
}

.wp-block-button__link:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2,132,199,0.4);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.entry-content th,
.entry-content td {
    padding: 12px;
    border: 1px solid #94a3b8;
    text-align: left;
}

.entry-content th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1e293b;
}

.entry-content blockquote {
    border-left: 4px solid #0369a1;
    padding: 16px 24px;
    margin: 24px 0;
    background: #f8fafc;
    color: #334155;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .wp-block-columns {
        flex-direction: column;
    }
    
    .page-content-area {
        padding: 40px 0 60px;
    }
}


/* ========================================
   ACCESSIBILITY WIDGET MOBILE FIX
   Fix Pojo Accessibility widget on mobile
======================================== */

/* Fix accessibility toolbar/widget on mobile devices - Position from LEFT */
@media (max-width: 768px) {
  /* Override right positioning and force left side on mobile */
  #pojo-a11y-toolbar {
    left: -75vw !important;
    right: auto !important;
    max-width: 75vw !important;
    width: 75vw !important;
    font-size: 14px !important;
    transition: left 750ms cubic-bezier(0.23, 1, 0.32, 1) !important;
    overflow-x: hidden !important;
  }
  
  #pojo-a11y-toolbar.pojo-a11y-toolbar-right {
    left: -75vw !important;
    right: auto !important;
  }
  
  #pojo-a11y-toolbar.pojo-a11y-toolbar-left,
  #pojo-a11y-toolbar.pojo-a11y-toolbar-right {
    left: -75vw !important;
    right: auto !important;
  }
  
  #pojo-a11y-toolbar.pojo-a11y-toolbar-open,
  #pojo-a11y-toolbar.pojo-a11y-toolbar-left.pojo-a11y-toolbar-open,
  #pojo-a11y-toolbar.pojo-a11y-toolbar-right.pojo-a11y-toolbar-open {
    left: 0 !important;
    right: auto !important;
  }
  
  #pojo-a11y-toolbar .pojo-a11y-toolbar-overlay {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  
  #pojo-a11y-toolbar .pojo-a11y-toolbar-toggle {
    left: 100% !important;
    right: auto !important;
  }
  
  #pojo-a11y-toolbar.pojo-a11y-toolbar-right .pojo-a11y-toolbar-toggle,
  #pojo-a11y-toolbar.pojo-a11y-toolbar-left .pojo-a11y-toolbar-toggle {
    left: 100% !important;
    right: auto !important;
  }
  
  #pojo-a11y-toolbar ul {
    max-width: 100% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }
  
  #pojo-a11y-toolbar li {
    font-size: 13px !important;
    padding: 8px 10px !important;
  }
  
  #pojo-a11y-toolbar button,
  #pojo-a11y-toolbar a.pojo-a11y-toolbar-link {
    font-size: 13px !important;
    padding: 8px 10px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Ensure all content stays within bounds */
  #pojo-a11y-toolbar * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  #pojo-a11y-toolbar .pojo-a11y-toolbar-title {
    font-size: 14px !important;
  }
}

@media (max-width: 576px) {
  /* Even smaller on very small screens - still from LEFT */
  #pojo-a11y-toolbar {
    width: 80vw !important;
    max-width: 80vw !important;
    left: -80vw !important;
    right: auto !important;
    overflow-x: hidden !important;
  }
  
  #pojo-a11y-toolbar.pojo-a11y-toolbar-right,
  #pojo-a11y-toolbar.pojo-a11y-toolbar-left {
    left: -80vw !important;
    right: auto !important;
  }
  
  #pojo-a11y-toolbar.pojo-a11y-toolbar-open,
  #pojo-a11y-toolbar.pojo-a11y-toolbar-right.pojo-a11y-toolbar-open,
  #pojo-a11y-toolbar.pojo-a11y-toolbar-left.pojo-a11y-toolbar-open {
    left: 0 !important;
    right: auto !important;
  }
  
  #pojo-a11y-toolbar .pojo-a11y-toolbar-overlay {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  #pojo-a11y-toolbar li {
    font-size: 12px !important;
    padding: 6px 8px !important;
  }
  
  #pojo-a11y-toolbar button,
  #pojo-a11y-toolbar a.pojo-a11y-toolbar-link {
    font-size: 12px !important;
    padding: 6px 8px !important;
  }
  
  /* Ensure all content stays within bounds on small screens */
  #pojo-a11y-toolbar * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Fix accessibility button position on mobilee */
@media (max-width: 768px) {
  #pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a {
    font-size: 180% !important;
    padding: 8px !important;
  }
}

/* ========================================
   TUC WIDGET MOBILE RESPONSIVE FIX
   Uses position:fixed so the panel is always
   anchored to the full viewport — never cut off
======================================== */

@media (max-width: 768px) {
  /*
   * The panel is normally position:absolute inside a small fixed button
   * container, so on mobile it overflows the top of the screen.
   * Switching to position:fixed makes it anchor to the viewport itself.
   * top:8px + bottom:74px = fills screen height between 8px from top
   * and ~74px from bottom (button 48px + margin 16px + gap 10px).
   */
  .tuc-widget-panel {
    position: fixed !important;
    top: 8px !important;
    bottom: 74px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 999998 !important;
    transform: translateY(12px) scale(0.98) !important;
  }
  
  .tuc-widget-panel.tuc-panel-open {
    transform: translateY(0) scale(1) !important;
  }
  
  /* Panel body scrolls within the fixed container */
  .tuc-panel-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 !important;
    min-height: 0 !important;
    width: 100% !important;
  }
  
  .tuc-panel-header {
    flex-shrink: 0 !important;
    padding: 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .tuc-panel-footer {
    flex-shrink: 0 !important;
  }
  
  /* Compact trigger button */
  .tuc-btn-label {
    display: none !important;
  }
  
  .tuc-widget-btn {
    padding: 0 14px !important;
    min-width: 48px !important;
    height: 48px !important;
  }
  
  /* Full-width grid so all feature buttons display */
  .tuc-btn-grid {
    gap: 8px !important;
    width: 100% !important;
  }
  
  .tuc-feature-btn {
    padding: 10px 6px !important;
    font-size: 11px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .tuc-feat-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .tuc-panel-title {
    font-size: 15px !important;
  }
  
  .tuc-section {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 576px) {
  /* Tighter margins on small phones */
  .tuc-widget-panel {
    top: 6px !important;
    bottom: 74px !important;
    left: 8px !important;
    right: 8px !important;
  }
  
  .tuc-feature-btn {
    padding: 9px 4px !important;
    font-size: 10.5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .tuc-section {
    padding: 4px 10px 6px !important;
    box-sizing: border-box !important;
  }
}
