/* ==================== GPDC SHARED STYLES ==================== */

:root {
    --primary: #B85C38;
    --primary-dark: #9A4A2C;
    --primary-light: #D4775A;
    --primary-subtle: rgba(184, 92, 56, 0.08);
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --bg-light: #f5f3f0;
    --bg-white: #ffffff;
    --border-light: #e5e2dd;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
    --shadow-btn: 0 2px 8px rgba(184, 92, 56, 0.25);
    --shadow-btn-hover: 0 6px 20px rgba(184, 92, 56, 0.35);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-back: cubic-bezier(0.34, 1.4, 0.64, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
    line-height: 1.2;
}

.label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
}

/* ==================== LOGO ==================== */
.logo-horizontal {
    height: 36px;
    width: auto;
    display: block;
    transition: opacity 0.3s var(--ease-out);
}

.logo-symbol {
    height: 40px;
    width: auto;
    display: none;
    transition: opacity 0.3s var(--ease-out);
}

.nav-logo:hover .logo-horizontal,
.nav-logo:hover .logo-symbol {
    opacity: 0.8;
}

/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    transition: all 0.5s var(--ease-out);
}

.nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav.scrolled::after {
    opacity: 1;
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.5s var(--ease-out);
}

.nav.scrolled .nav-inner {
    padding: 0.625rem 1.5rem;
}

.nav-logo-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    gap: 0.5rem;
}

.beta-badge-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.beta-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.beta-badge-wrapper:hover .beta-badge {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(184, 92, 56, 0.3);
}

.beta-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1rem;
    width: 260px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 1001;
}

.beta-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent var(--bg-white) transparent;
    filter: drop-shadow(0 -1px 1px rgba(0,0,0,0.05));
}

.beta-badge-wrapper:hover .beta-tooltip,
.beta-badge-wrapper:focus-within .beta-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.beta-tooltip p {
    font-size: 0.8125rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.beta-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s var(--ease-out);
}

.beta-feedback-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn-hover);
}

/* Mobile beta tooltip positioning */
@media (max-width: 768px) {
    .beta-tooltip {
        left: 0;
        transform: translateX(0) translateY(-8px);
        width: 240px;
    }

    .beta-tooltip::before {
        left: 20px;
        transform: none;
    }

    .beta-badge-wrapper:hover .beta-tooltip,
    .beta-badge-wrapper:focus-within .beta-tooltip {
        transform: translateX(0) translateY(0);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--bg-light);
    border-radius: 4px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s var(--ease-out);
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link svg {
    width: 12px;
    height: 12px;
    transition: transform 0.35s var(--ease-spring);
}

.nav-link:hover svg {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: -8px;
    min-width: 220px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transform-origin: top left;
    transition: all 0.35s var(--ease-out-back);
    border: 1px solid var(--border-light);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.25s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.25s var(--ease-out);
}

.dropdown-item:hover {
    background: var(--primary-subtle);
    color: var(--primary);
    padding-left: 1rem;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    opacity: 0.6;
    transition: all 0.25s var(--ease-out);
}

.dropdown-item:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

/* Nested Submenu Styles */
.has-submenu {
    position: relative;
}

.has-submenu > .dropdown-item {
    justify-content: flex-start;
}

.submenu-arrow {
    margin-left: auto;
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 260px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.25s var(--ease-out);
    border: 1px solid var(--border-light);
    margin-left: 4px;
    z-index: 1000;
}

.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu-item {
    display: block;
    padding: 0.5rem 0.875rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s var(--ease-out);
}

.submenu-item:hover {
    background: var(--primary-subtle);
    color: var(--primary);
    padding-left: 1rem;
}

.badge {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(184, 92, 56, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.4s var(--ease-spring);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-btn);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-btn);
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-outline {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1.5px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-subtle);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background: white;
    color: var(--text-dark);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.btn-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-light);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-light:hover::before {
    opacity: 1;
}

.btn-light span,
.btn-light svg {
    position: relative;
    z-index: 1;
}

/* Link Arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.link-arrow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s var(--ease-out);
}

.link-arrow:hover::after {
    width: calc(100% - 22px);
}

.link-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s var(--ease-spring);
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

/* ==================== SEARCH COMPONENT ==================== */
.search-wrapper {
    position: relative;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 280px;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1.5px solid var(--border-light);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s var(--ease-out);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    width: 14px;
    height: 14px;
    color: var(--primary);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s var(--ease-out);
    z-index: 1001;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.search-result-item {
    display: block;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.25s var(--ease-out);
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.highlighted {
    background: var(--primary-subtle);
}

.search-result-circuit {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.search-result-counties {
    font-size: 0.75rem;
    color: var(--text-light);
}

.search-no-results {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.8125rem;
}

.search-hint {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    font-size: 0.6875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-light);
}

/* Opt-Out Circuit Notice */
.search-opt-out-notice {
    display: flex;
    gap: 0.875rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3e2 0%, #fef9f3 100%);
    border-left: 3px solid #e6a23c;
}

.opt-out-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #e6a23c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opt-out-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.opt-out-content {
    flex: 1;
    min-width: 0;
}

.opt-out-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #8a6914;
    margin-bottom: 0.25rem;
}

.opt-out-message {
    font-size: 0.8125rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.opt-out-help {
    font-size: 0.75rem;
    color: var(--text-light);
}

.opt-out-help a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.opt-out-help a:hover {
    text-decoration: underline;
}

/* Dark mode opt-out notice */
[data-theme="dark"] .search-opt-out-notice {
    background: linear-gradient(135deg, #3d3520 0%, #2d2a24 100%);
    border-left-color: #c99a2e;
}

[data-theme="dark"] .opt-out-icon {
    background: #c99a2e;
}

[data-theme="dark"] .opt-out-title {
    color: #f0d78c;
}

[data-theme="dark"] .opt-out-message {
    color: #bbb;
}

[data-theme="dark"] .opt-out-help {
    color: #999;
}

/* ==================== MOBILE NAV TOGGLE ==================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 8px;
    transition: background 0.3s var(--ease-out);
}

.nav-toggle:hover {
    background: var(--bg-light);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.05);
    animation: heroZoom 20s var(--ease-out) infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.1); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.45) 100%);
}

.hero-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 7rem 1.5rem 3.5rem;
    color: white;
}

.hero-label {
    color: white;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.2s forwards;
}


.hero-title {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 500;
    max-width: 700px;
    margin-bottom: 1.75rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.4s forwards;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-title em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
}

.hero-actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.6s forwards;
}

/* Glassmorphic FMPD button — desktop hero (matches mobile search pill) */
.hero-fmpd-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: white;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-fmpd-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateY(-1px);
}

/* Hero FMPD Inline Search — mobile only */
.hero-fmpd-search {
    display: none;
    width: 100%;
    max-width: 400px;
    margin-top: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-fmpd-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.hero-fmpd-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-fmpd-icon {
    position: absolute;
    left: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    z-index: 1;
}

.hero-fmpd-search-icon {
    position: absolute;
    right: 0.875rem;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.hero-fmpd-input-wrap input {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 2.75rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.hero-fmpd-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.hero-fmpd-input-wrap input:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.hero-fmpd-input-wrap input:focus ~ .hero-fmpd-search-icon {
    color: rgba(255, 255, 255, 0.6);
}

.hero-fmpd-results {
    margin-top: 0.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-fmpd-results:empty {
    display: none;
}

.hero-fmpd-result {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.15s ease;
}

.hero-fmpd-result:hover,
.hero-fmpd-result:active {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-fmpd-result-info {
    flex: 1;
    min-width: 0;
}

.hero-fmpd-result-circuit {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-fmpd-result-detail {
    font-size: 0.6875rem;
    opacity: 0.75;
    margin-top: 0.0625rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-fmpd-result-phone {
    font-size: 0.6875rem;
    opacity: 0.6;
    white-space: nowrap;
}

.hero-fmpd-result-arrow {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.hero-fmpd-no-results {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.hero-fmpd-fallback {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.hero-fmpd-fallback:hover {
    color: white;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 0;
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeIn 1s var(--ease-out) 1s forwards;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
    animation: bounce 2s var(--ease-in-out) infinite;
}

/* ==================== CIRCUIT HERO ==================== */
.circuit-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.circuit-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.circuit-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.circuit-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.5) 100%);
}

.circuit-hero-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 8rem 1.5rem 5rem;
    color: white;
}

.circuit-hero-label {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.2s forwards;
}

.circuit-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.4s forwards;
}

.circuit-hero-counties {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.6s forwards;
}

/* ==================== SECTIONS ==================== */
section {
    padding: 4rem 1.5rem;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-dark);
    margin-top: 0.375rem;
}

.section-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.section-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.section-note svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ==================== CIRCUIT CONTENT ==================== */
.circuit-content {
    padding: 4rem 1.5rem;
    background: var(--bg-light);
}

.circuit-container {
    max-width: 1140px;
    margin: 0 auto;
}

.circuit-section {
    margin-bottom: 3rem;
}

.circuit-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.circuit-defender {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.circuit-defender strong {
    font-weight: 600;
}

.circuit-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
    max-width: 900px;
    margin-bottom: 2rem;
}

.circuit-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
}

.circuit-info-item h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.circuit-info-item p {
    font-size: 0.9375rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.circuit-info-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}

.circuit-info-item a:hover {
    color: var(--primary);
}

.circuit-divider {
    height: 1px;
    background: var(--border-light);
    margin: 3rem 0;
}

.circuit-additional-offices {
    margin-top: 0;
    margin-bottom: 2rem;
}

.circuit-office-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.circuit-office-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s var(--ease-out);
}

.circuit-office-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.circuit-office-card h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.circuit-office-card p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.circuit-office-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s var(--ease-out);
}

.circuit-office-card a:hover {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .circuit-office-cards {
        grid-template-columns: 1fr;
    }
}

/* ==================== CIRCUIT — REDESIGN ==================== */

/* Hero subtitle (county count) */
.circuit-hero-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.7s forwards;
}

/* Regional hero gradient tints */
.circuit-hero--mountains .circuit-hero-bg::after {
    background: linear-gradient(135deg, rgba(15,50,35,0.65) 0%, rgba(0,0,0,0.35) 50%, rgba(10,30,20,0.5) 100%);
}
.circuit-hero--metro .circuit-hero-bg::after {
    background: linear-gradient(135deg, rgba(25,25,45,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(20,20,40,0.55) 100%);
}
.circuit-hero--piedmont .circuit-hero-bg::after {
    background: linear-gradient(135deg, rgba(40,30,15,0.6) 0%, rgba(0,0,0,0.35) 50%, rgba(30,25,10,0.5) 100%);
}
.circuit-hero--coastal .circuit-hero-bg::after {
    background: linear-gradient(135deg, rgba(15,35,60,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(10,25,50,0.5) 100%);
}
.circuit-hero--south .circuit-hero-bg::after {
    background: linear-gradient(135deg, rgba(35,25,10,0.6) 0%, rgba(0,0,0,0.35) 50%, rgba(25,20,5,0.5) 100%);
}
.circuit-hero--augusta .circuit-hero-bg::after {
    background: linear-gradient(135deg, rgba(50,25,15,0.6) 0%, rgba(0,0,0,0.35) 50%, rgba(40,20,10,0.5) 100%);
}

/* Quick-action cards */
.circuit-actions {
    padding: 0 1.5rem;
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
}

.circuit-action-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1140px;
    margin: 0 auto;
}

.circuit-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    text-align: center;
    transition: all 0.4s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.circuit-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.circuit-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.circuit-action-icon svg {
    width: 22px;
    height: 22px;
}

.circuit-action-card--call .circuit-action-icon {
    background: rgba(34, 139, 34, 0.1);
    color: #228B22;
}
.circuit-action-card--directions .circuit-action-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}
.circuit-action-card--email .circuit-action-icon {
    background: var(--primary-subtle);
    color: var(--primary);
}
.circuit-action-card--apply .circuit-action-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.circuit-action-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-dark);
}

.circuit-action-detail {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* County badges (inside hero) */
.circuit-hero-counties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.9s forwards;
}

.circuit-county-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    letter-spacing: 0.01em;
}

/* Two-column map + office info */
.circuit-detail {
    padding: 4rem 1.5rem;
    background: var(--bg-light);
}

.circuit-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1140px;
    margin: 0 auto;
}

.circuit-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.circuit-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.circuit-contact-item > svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.circuit-contact-label {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.circuit-contact-value {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    color: var(--text-dark);
    line-height: 1.5;
}

a.circuit-contact-value {
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}

a.circuit-contact-value:hover {
    color: var(--primary);
}

.circuit-detail-map {
    position: sticky;
    top: 6rem;
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.circuit-detail-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    border-radius: 12px;
}

/* Additional offices section */
.circuit-additional {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

/* Circuit responsive */
@media (max-width: 1024px) {
    .circuit-detail-grid {
        grid-template-columns: 1fr;
    }
    .circuit-detail-map {
        position: static;
        min-height: 350px;
    }
    .circuit-detail-map iframe {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .circuit-action-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .circuit-actions {
        margin-top: -1.5rem;
        padding: 0 1.25rem;
    }
    .circuit-action-card {
        padding: 1rem 0.75rem;
    }
    .circuit-action-detail {
        display: none;
    }
    .circuit-detail {
        padding: 3rem 1.25rem;
    }
    .circuit-detail-map {
        min-height: 280px;
    }
    .circuit-detail-map iframe {
        min-height: 280px;
    }
    .circuit-additional {
        padding: 3rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .circuit-action-icon {
        width: 40px;
        height: 40px;
    }
    .circuit-action-icon svg {
        width: 18px;
        height: 18px;
    }
    .circuit-county-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
}

@media (hover: none) {
    .circuit-action-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
}

/* ==================== NEWSROOM ==================== */
.newsroom {
    background: var(--bg-light);
}

.featured-article {
    display: block;
    position: relative;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s var(--ease-out);
    text-decoration: none;
    color: inherit;
}

.featured-article:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.7s var(--ease-out);
}

.featured-article:hover .featured-image img {
    transform: scale(1.06);
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.featured-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.featured-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.featured-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.35;
    transition: color 0.3s var(--ease-out);
}

.featured-article:hover .featured-title {
    color: var(--primary);
}

.featured-excerpt {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.875rem;
    flex-grow: 1;
}

/* ==================== SUPPORT CTA ==================== */
.support-cta {
    position: relative;
    margin: 0 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.support-cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.support-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s var(--ease-out);
}

.support-cta:hover .support-cta-bg img {
    transform: scale(1.05);
}

.support-cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(30, 30, 30, 0.75) 0%, rgba(20, 20, 20, 0.9) 100%);
}

.support-cta-content {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: white;
}

.support-cta .label {
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.support-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.625rem;
}

.support-cta-text {
    max-width: 520px;
    margin: 0 auto 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* ==================== EVENTS ==================== */
.events {
    background: var(--bg-light);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.event-card {
    position: relative;
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s var(--ease-out);
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.event-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.event-card:hover .event-image img {
    transform: scale(1.06);
}

.event-content {
    padding: 1.25rem;
}

.event-title {
    font-size: 1rem;
    margin-bottom: 0.375rem;
    color: var(--text-dark);
    line-height: 1.35;
    transition: color 0.3s var(--ease-out);
}

.event-card:hover .event-title {
    color: var(--primary);
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.75rem;
}

.event-location {
    color: var(--primary);
    font-weight: 500;
}

.event-date {
    color: var(--text-light);
}

.event-description {
    color: var(--text-medium);
    font-size: 0.8125rem;
    line-height: 1.55;
}

/* ==================== CIRCUIT CTA BANNER ==================== */
.circuit-cta {
    padding: 0 1.5rem;
    background: var(--bg-white);
}

.circuit-cta-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3.5rem 0;
    border-top: 1px solid var(--border-light);
}

.circuit-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.circuit-cta-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.circuit-cta-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.circuit-cta-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.circuit-cta-icon svg {
    width: 24px;
    height: 24px;
}

.circuit-cta-card--news .circuit-cta-icon {
    background: var(--primary-subtle);
    color: var(--primary);
}

.circuit-cta-card--careers .circuit-cta-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.circuit-cta-text h3 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    transition: color 0.3s var(--ease-out);
}

.circuit-cta-card:hover .circuit-cta-text h3 {
    color: var(--primary);
}

.circuit-cta-text p {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
}

.circuit-cta-arrow {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-light);
    transition: all 0.4s var(--ease-spring);
}

.circuit-cta-arrow svg {
    width: 20px;
    height: 20px;
}

.circuit-cta-card:hover .circuit-cta-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .circuit-cta-grid {
        grid-template-columns: 1fr;
    }
    .circuit-cta-inner {
        padding: 2.5rem 0;
    }
    .circuit-cta-card {
        padding: 1.25rem;
    }
}

@media (hover: none) {
    .circuit-cta-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--border-light);
    }
    .circuit-cta-card:hover .circuit-cta-arrow {
        transform: none;
    }
}

/* ==================== FOOTER ==================== */
#site-footer {
    width: 100%;
    max-width: none;
}

.newsletter-section,
.footer {
    width: 100%;
    max-width: none;
}

.footer {
    background: var(--bg-white);
    padding: 2.5rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border-light);
}

.footer-main {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.footer-col h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.footer-col a {
    display: block;
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.8125rem;
    padding: 0.25rem 0;
    transition: all 0.25s var(--ease-out);
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1140px;
    margin: 0 auto;
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-light);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-staff-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-staff-link svg {
    width: 14px;
    height: 14px;
}

.footer-staff-link:hover {
    color: var(--primary);
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: 28px;
    height: 28px;
    opacity: 0.5;
    transition: opacity 0.3s var(--ease-out);
}

.footer-logo:hover img {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 0.3rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-dark);
    transition: all 0.4s var(--ease-out);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(184, 92, 56, 0.3);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 0.7; }
}

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

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.8s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ==================== MOBILE NAVIGATION ==================== */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-white);
    z-index: 999;
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s var(--ease-out);
}

.mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.mobile-nav-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.mobile-nav-actions .fmpd-inline-search {
    padding: 0;
}

/* Mobile Nav Collapsible Groups */
.mobile-nav-group {
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.875rem 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.3s var(--ease-out);
}

.mobile-nav-group-header:hover,
.mobile-nav-group-header:active {
    color: var(--primary);
}

.mobile-nav-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out);
    color: var(--text-light);
}

.mobile-nav-group.expanded .mobile-nav-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.mobile-nav-sublinks {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-out), opacity 0.3s var(--ease-out);
    opacity: 0;
}

.mobile-nav-group.expanded .mobile-nav-sublinks {
    max-height: 300px;
    opacity: 1;
}

.mobile-nav-sublink {
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-medium);
    text-decoration: none;
    padding: 0.75rem 0 0.75rem 1.25rem;
    border-left: 2px solid var(--border-light);
    margin-left: 0.25rem;
    min-height: 48px;
    transition: all 0.2s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-sublink:hover,
.mobile-nav-sublink:active {
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 1.5rem;
}

.mobile-nav-sublink:last-child {
    margin-bottom: 0.5rem;
}

/* ==================== FMPD INLINE SEARCH (Mobile Nav) ==================== */
.fmpd-inline-search {
    padding: 0.75rem 1rem 0.75rem 1.5rem;
}

.fmpd-search-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.fmpd-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.fmpd-search-input-wrap svg {
    position: absolute;
    left: 0.75rem;
    color: var(--text-light);
    pointer-events: none;
}

.fmpd-search-input-wrap input {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.25rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
}

.fmpd-search-input-wrap input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.fmpd-search-input-wrap input::placeholder {
    color: var(--text-light);
}

.fmpd-search-results {
    margin-top: 0.375rem;
}

.fmpd-search-results:empty {
    display: none;
}

.fmpd-result-item {
    display: block;
    padding: 0.625rem 0.75rem;
    margin-top: 0.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.15s ease;
}

.fmpd-result-item:hover,
.fmpd-result-item:active {
    background: var(--primary-subtle);
    border-color: var(--primary);
}

.fmpd-result-circuit {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.fmpd-result-county {
    font-size: 0.75rem;
    color: var(--text-medium);
    margin-top: 0.125rem;
}

.fmpd-result-phone {
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 0.125rem;
}

.fmpd-no-results {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.fmpd-browse-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s ease;
}

.fmpd-browse-link:hover {
    opacity: 0.7;
}

/* ==================== PAGE TRANSITIONS ==================== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    z-index: 9999;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-in-out);
}

.page-transition.active {
    transform: scaleX(1);
}

.page-transition.exit {
    transform-origin: right;
    transform: scaleX(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .nav-links, .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .logo-horizontal {
        display: none;
    }

    .logo-symbol {
        display: block;
    }

    .featured-image {
        min-height: 240px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .circuit-info-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 2.5rem 1.25rem;
    }

    .hero-content {
        padding: 5.5rem 1.25rem 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }


    .circuit-hero-content {
        padding: 6rem 1.25rem 3rem;
    }

    .circuit-content {
        padding: 3rem 1.25rem;
    }

    .support-cta {
        margin: 0 1.25rem;
        border-radius: 12px;
    }

    .support-cta-content {
        padding: 2.5rem 1.25rem;
    }

    .featured-content {
        padding: 1.25rem;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile touch-friendly improvements */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        -webkit-tap-highlight-color: transparent;
    }

    .quick-link-card {
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
    }

    .cta-contact-item {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    /* Prevent hover states from sticking on touch */
    @media (hover: none) {
        .btn:hover {
            transform: none;
        }
        .position-card:hover {
            transform: none;
        }
        .quick-link-card:hover {
            transform: none;
        }
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-sm {
    min-height: 50vh;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.55) 100%);
}

.page-hero-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 8rem 1.5rem 4rem;
    color: white;
}

.page-hero-content .label {
    color: white;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.2s forwards;
}

.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.4s forwards;
}

.page-hero-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    opacity: 0.9;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.6s forwards;
}

.page-hero-content .btn {
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out) 0.8s forwards;
}

/* ==================== QUICK LINKS ==================== */
.quick-links {
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s var(--ease-out);
}

.quick-link-card:hover {
    background: var(--primary-subtle);
    color: var(--primary);
    transform: translateY(-2px);
}

.quick-link-card svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.content-section-alt {
    background: var(--bg-light);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text .label {
    margin-bottom: 0.5rem;
}

.content-text .section-title {
    margin-bottom: 1rem;
}

.content-paragraph {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-image {
    border-radius: 12px;
    overflow: hidden;
}

.content-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.services-list {
    list-style: none;
    margin-top: 1rem;
}

.services-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* ==================== PRINCIPLES SECTION ==================== */
.principles-section {
    padding: 4rem 1.5rem;
    background: var(--bg-light);
}

.section-header.centered {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.section-subtitle {
    color: var(--text-medium);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.principle-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
}

.principle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.principle-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.principle-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.principle-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.principle-card p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ==================== FACTS SECTION ==================== */
.facts-section {
    padding: 4rem 1.5rem;
    background: var(--bg-light);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.fact-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.fact-number {
    font-family: 'Ubuntu', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.fact-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.fact-description {
    font-size: 0.8125rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ==================== PRINCIPLES INLINE (merged into mission) ==================== */
.principles-inline {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-light);
}

/* ==================== FACTS BAR (compact stat bar) ==================== */
.facts-bar {
    padding: 2rem 1.5rem;
    background: var(--bg-white);
}

.facts-bar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

.facts-bar-item {
    padding: 1.25rem 1rem;
}

.facts-bar .fact-number {
    font-family: 'Ubuntu', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.facts-bar .fact-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
}

@media (max-width: 640px) {
    .facts-bar-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .facts-bar-item {
        padding: 0.75rem 1rem;
        display: flex;
        align-items: baseline;
        gap: 0.75rem;
        text-align: left;
        justify-content: center;
    }
    .facts-bar .fact-number {
        font-size: 2rem;
    }
}

/* ==================== ABOUT PAGE — REDESIGN ==================== */

/* Bold Hero Treatment */
.page-hero-bold .page-hero-title {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.page-hero-bold .page-hero-title em {
    font-style: italic;
    font-weight: 400;
}

/* Mission Band — Dark Authoritative Quote */
.about-mission-band {
    background: var(--text-dark);
    padding: 4rem 1.5rem;
}

.about-mission-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-mission-quote {
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: white;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.about-mission-attr {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-light);
}

/* Timeline Section */
.about-timeline-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.about-timeline {
    position: relative;
    display: flex;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 2rem;
}

/* Animated connecting line that draws across on scroll */
.about-timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-light);
}

.about-timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-timeline.visible .about-timeline-line::after {
    width: 100%;
}

.about-timeline-item {
    flex: 1;
    position: relative;
    padding-top: 2.5rem;
    border-top: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-timeline.visible .about-timeline-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.about-timeline.visible .about-timeline-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.about-timeline-dot {
    position: absolute;
    top: calc(-2.5rem + 3px);
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-subtle);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.about-timeline.visible .about-timeline-item:nth-child(2) .about-timeline-dot {
    transform: scale(1);
    transition-delay: 0.7s;
}

.about-timeline.visible .about-timeline-item:nth-child(3) .about-timeline-dot {
    transform: scale(1);
    transition-delay: 1.1s;
}

@keyframes dot-pulse {
    0% { box-shadow: 0 0 0 3px var(--primary-subtle); }
    50% { box-shadow: 0 0 0 8px rgba(184, 92, 56, 0.08); }
    100% { box-shadow: 0 0 0 3px var(--primary-subtle); }
}

.about-timeline.visible .about-timeline-dot {
    animation: dot-pulse 2s ease-in-out 1.5s 1;
}

.about-timeline-year {
    font-family: 'Ubuntu', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.about-timeline-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.about-timeline-content p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.65;
}

/* Stats Band — Bold Dark */
.about-stats {
    background: var(--primary);
    padding: 3rem 1.5rem;
}

.about-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.about-stat {
    color: white;
    padding: 0.5rem;
}

.about-stat .count-up {
    font-family: 'Ubuntu', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.about-stat-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.03em;
}

/* CTA Cards — Multiple Paths */
.about-cta-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.about-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1140px;
    margin: 0 auto;
}

.about-cta-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-out);
}

.about-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-cta-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.about-cta-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.about-cta-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-cta-card p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.6;
    flex: 1;
}

.about-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    transition: gap 0.3s ease;
}

.about-cta-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.about-cta-card:hover .about-cta-link svg {
    transform: translateX(3px);
}

/* About Page — Responsive */
@media (max-width: 900px) {
    .about-stats-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .about-mission-band {
        padding: 3rem 1.25rem;
    }

    .about-timeline {
        flex-direction: column;
        gap: 0;
        padding-top: 0;
    }

    .about-timeline-line {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 2px;
        height: 100%;
    }

    .about-timeline-line::after {
        width: 100%;
        height: 0;
        transition: height 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .about-timeline.visible .about-timeline-line::after {
        width: 100%;
        height: 100%;
    }

    .about-timeline-item {
        padding-top: 1.5rem;
        padding-left: 2rem;
        padding-bottom: 2rem;
        border-top: none;
        border-left: none;
        transform: translateX(-20px);
    }

    .about-timeline.visible .about-timeline-item:nth-child(2),
    .about-timeline.visible .about-timeline-item:nth-child(3) {
        transform: translateX(0);
    }

    .about-timeline-item:last-child {
        padding-bottom: 0;
    }

    .about-timeline-dot {
        top: 1.5rem;
        left: -5px;
    }

    .about-timeline-year {
        font-size: 2rem;
    }

    .about-cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .about-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stat .count-up {
        font-size: 2.25rem;
    }

    .page-hero-bold .page-hero-title {
        font-size: clamp(2rem, 7vw, 2.75rem);
    }
}

@media (max-width: 480px) {
    .about-stats-inner {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .about-stat {
        display: flex;
        align-items: baseline;
        gap: 0.75rem;
        text-align: left;
        justify-content: center;
        padding: 0.5rem 1rem;
    }

    .about-stat .count-up {
        font-size: 2rem;
        min-width: 80px;
        text-align: right;
    }
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.cta-card {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.cta-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-card > p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.cta-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* ==================== TEAM SECTION ==================== */
.team-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.team-section-alt {
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-card {
    position: relative;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.team-section-alt .team-card {
    background: var(--bg-white);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    height: 200px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.25rem;
}

.team-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.team-title {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.8125rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.council-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.council-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.council-card h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.council-card p {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* ==================== DIVISIONS SECTION ==================== */
.divisions-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.division-card {
    position: relative;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.4s var(--ease-out);
}

.division-card:hover {
    background: var(--primary-subtle);
    transform: translateY(-4px);
}

.division-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.division-card:hover .division-icon {
    background: var(--primary);
}

.division-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: color 0.3s var(--ease-out);
}

.division-card:hover .division-icon svg {
    color: white;
}

.division-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.division-card p {
    font-size: 0.8125rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.services-overview {
    padding: 4rem 1.5rem;
    background: var(--bg-light);
}

/* ==================== INFO CARDS ==================== */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

.info-card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.info-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.info-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.info-card ul {
    list-style: none;
    margin-top: 0.5rem;
}

.info-card ul li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.info-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.support-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
}

.support-card h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.support-card p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ==================== FINDER SECTION ==================== */
.finder-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.finder-search-box {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.finder-search-wrapper {
    position: relative;
}

.finder-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.finder-search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s var(--ease-out);
}

.finder-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-subtle);
}

.finder-search-hint {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

.circuits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.circuit-card {
    display: block;
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-out);
}

.circuit-card:hover {
    background: var(--primary-subtle);
    transform: translateY(-2px);
}

.circuit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.circuit-card-header h3 {
    font-size: 0.9375rem;
    color: var(--text-dark);
    transition: color 0.3s var(--ease-out);
}

.circuit-card:hover .circuit-card-header h3 {
    color: var(--primary);
}

.circuit-card-header svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s var(--ease-out);
}

.circuit-card:hover .circuit-card-header svg {
    opacity: 1;
    transform: translateX(0);
}

.circuit-card-counties {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.circuit-card-defender {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 500;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s var(--ease-out);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: transform 0.3s var(--ease-out);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--text-medium);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--primary);
}

/* ==================== CAREERS & BENEFITS ==================== */
.benefits-section {
    padding: 4rem 1.5rem;
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.benefit-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.career-paths-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.career-paths-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.career-path-card {
    display: block;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--ease-out);
}

.career-path-card:hover {
    background: var(--primary-subtle);
    transform: translateY(-4px);
}

.career-path-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background 0.3s var(--ease-out);
}

.career-path-card:hover .career-path-icon {
    background: var(--primary);
}

.career-path-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    transition: color 0.3s var(--ease-out);
}

.career-path-card:hover .career-path-icon svg {
    color: white;
}

.career-path-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.career-path-card p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ==================== POSITIONS ==================== */
.positions-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

/* ==================== UNIFIED FILTER TABS ==================== */
.page-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 60px;
    z-index: 100;
}

/* Legacy aliases */
.positions-filters,
.news-filters,
.team-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 60px;
    z-index: 100;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.filter-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

.filter-btn .tab-count {
    background: rgba(0,0,0,0.08);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 4px;
}

.filter-btn.active .tab-count {
    background: rgba(255,255,255,0.2);
}

/* Filter toggle button (hidden on desktop) */
.filter-toggle {
    display: none;
}

/* On desktop, filter-pills just display as flex (inline) */
.filter-pills {
    display: contents;
}

@media (max-width: 768px) {
    .page-filters,
    .positions-filters,
    .news-filters,
    .team-tabs {
        gap: 6px;
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    /* Show toggle button on mobile */
    .filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.5rem 1rem;
        font-family: 'Manrope', sans-serif;
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--text-medium);
        background: var(--bg-light);
        border: 1px solid var(--border-light);
        border-radius: 50px;
        cursor: pointer;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.2s ease;
    }
    .filter-toggle:hover,
    .filter-toggle[aria-expanded="true"] {
        background: var(--primary-subtle);
        color: var(--primary);
        border-color: var(--primary);
    }
    .filter-toggle-chevron {
        transition: transform 0.2s ease;
    }
    .filter-toggle[aria-expanded="true"] .filter-toggle-chevron {
        transform: rotate(180deg);
    }

    /* Hide pills by default on mobile, show when expanded */
    .filter-pills {
        display: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding-top: 0.5rem;
    }
    .filter-pills.filters-expanded {
        display: flex;
        animation: filterSlideDown 0.2s ease-out;
    }
    @keyframes filterSlideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* Milestones toggle button (hidden on desktop) */
.milestones-toggle {
    display: none;
}

/* Mobile milestones panel (hidden on desktop) */
.milestones-mobile-panel {
    display: none;
}

@media (max-width: 768px) {
    .milestones-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.5rem 1rem;
        font-family: 'Manrope', sans-serif;
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--text-medium);
        background: var(--bg-light);
        border: 1px solid var(--border-light);
        border-radius: 50px;
        cursor: pointer;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.2s ease;
    }
    .milestones-toggle:hover,
    .milestones-toggle[aria-expanded="true"] {
        background: var(--primary-subtle);
        color: var(--primary);
        border-color: var(--primary);
    }
    .milestones-toggle-chevron {
        transition: transform 0.2s ease;
    }
    .milestones-toggle[aria-expanded="true"] .milestones-toggle-chevron {
        transform: rotate(180deg);
    }

    /* Hide sidebar milestones on mobile */
    .milestones-sidebar {
        display: none;
    }

    /* Mobile milestones panel — styled card */
    .milestones-mobile-panel {
        display: none;
        width: 100%;
        margin-top: 0.5rem;
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: 12px;
        padding: 0.25rem 1rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }
    .milestones-mobile-panel.milestones-expanded {
        display: block;
        animation: filterSlideDown 0.2s ease-out;
    }
    .milestones-mobile-panel .milestone-item {
        border-bottom: 1px solid var(--border-light);
    }
    .milestones-mobile-panel .milestone-item:last-child {
        border-bottom: none;
    }
    .milestones-mobile-panel .milestone-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        cursor: pointer;
        gap: 0.5rem;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    .milestones-mobile-panel .milestone-stat {
        font-size: 0.8125rem;
        font-weight: 700;
        color: var(--text-dark);
        line-height: 1.3;
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
    }
    .milestones-mobile-panel .milestone-stat small {
        display: inline;
        font-size: 0.6875rem;
        font-weight: 700;
        color: var(--primary);
        letter-spacing: 0.02em;
        min-width: 3rem;
    }
    .milestones-mobile-panel .milestone-toggle {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        color: var(--text-light);
        transition: transform 0.3s var(--ease-out);
    }
    .milestones-mobile-panel .milestone-item.open .milestone-toggle {
        transform: rotate(180deg);
    }
    .milestones-mobile-panel .milestone-detail {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease-out), padding 0.3s var(--ease-out);
    }
    .milestones-mobile-panel .milestone-item.open .milestone-detail {
        max-height: 150px;
        padding-bottom: 0.75rem;
    }
    .milestones-mobile-panel .milestone-detail p {
        font-size: 0.8125rem;
        color: var(--text-medium);
        line-height: 1.6;
        padding-left: 3.5rem;
    }
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.position-card {
    position: relative;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}

.position-card:hover {
    background: var(--primary-subtle);
}

.position-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.position-type {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.position-new {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    background: #22c55e;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.position-title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.position-location {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.position-description {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.position-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.position-posted {
    font-size: 0.75rem;
    color: var(--text-light);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.no-positions {
    text-align: center;
    padding: 4rem 2rem;
}

.no-positions svg {
    width: 48px;
    height: 48px;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-positions h3 {
    margin-bottom: 0.5rem;
}

.no-positions p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* ==================== NEWSROOM ==================== */
.newsroom-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-card {
    position: relative;
    display: block;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--ease-out);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    height: 180px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 1.25rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.news-card-category {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
}

.news-card-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.news-card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s var(--ease-out);
}

.news-card:hover .news-card-title {
    color: var(--primary);
}

.news-card-excerpt {
    font-size: 0.8125rem;
    color: var(--text-medium);
    line-height: 1.5;
}

/* ==================== MILESTONES SIDEBAR ==================== */
.newsroom-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 860px);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.milestones-sidebar {
    position: sticky;
    top: 150px;
    align-self: start;
}

.milestones-panel {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border-light);
}

.milestones-panel h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.milestones-panel h3 svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.milestone-item {
    border-bottom: 1px solid var(--border-light);
}

.milestone-item:last-child {
    border-bottom: none;
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    cursor: pointer;
    gap: 0.5rem;
    user-select: none;
    transition: color 0.2s;
}

.milestone-header:hover {
    color: var(--primary);
}

.milestone-stat {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.milestone-stat small {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.03em;
    margin-bottom: 0.125rem;
}

.milestone-toggle {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform 0.3s var(--ease-out);
}

.milestone-item.open .milestone-toggle {
    transform: rotate(180deg);
}

.milestone-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}

.milestone-item.open .milestone-detail {
    max-height: 120px;
    padding-bottom: 0.75rem;
}

.milestone-detail p {
    font-size: 0.8125rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.newsroom-content {
    min-width: 0;
}

@media (max-width: 900px) {
    .newsroom-layout {
        grid-template-columns: 1fr;
    }

    .milestones-sidebar {
        position: relative;
        top: 0;
    }

    .milestones-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 1rem;
    }

    .milestones-panel h3 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .milestones-panel {
        grid-template-columns: 1fr;
    }
}

/* ==================== CONTACT ==================== */
.contact-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-header {
    margin-bottom: 2rem;
}

.contact-info-header .label {
    margin-bottom: 0.5rem;
}

.contact-info-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.contact-info-header p {
    color: var(--text-medium);
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 1.25rem;
}

.contact-detail-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.contact-detail-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.contact-detail-content h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-detail-content p {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.contact-detail-content a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}

.contact-detail-content a:hover {
    color: var(--primary);
}

.contact-form-container {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group .required {
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-white);
    outline: none;
    transition: all 0.3s var(--ease-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
}

/* ==================== RESPONSIVE ADDITIONS ==================== */
@media (max-width: 1024px) {
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .divisions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .circuits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .career-paths-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .positions-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Compact page heroes on mobile */
    .page-hero {
        min-height: 40vh;
    }
    .page-hero-sm {
        min-height: 30vh;
    }
    .page-hero-content {
        padding: 5rem 1.25rem 2rem;
    }

    /* Reduce hero title size on mobile */
    .hero-title {
        font-size: clamp(2rem, 5.5vw, 2.75rem);
    }

    /* Hide hero buttons on mobile, show FMPD search instead */
    .hero-actions {
        display: none;
    }
    .hero-fmpd-search {
        display: block;
        align-items: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    .hero-fmpd-label {
        color: white;
    }

    .quick-links {
        margin-top: -2rem;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .council-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .divisions-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .circuits-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .career-paths-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .cta-contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==================== MAP SECTION ==================== */
.map-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
}

.map-container {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
}

.map-header {
    text-align: center;
    margin-bottom: 2rem;
}

.map-header h2 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--text-dark);
}

.map-header p {
    color: var(--text-medium);
    font-size: 0.9375rem;
}

.map-header-mobile {
    display: none;
}

@media (max-width: 768px) {
    .map-header-desktop {
        display: none;
    }
    .map-header-mobile {
        display: block;
    }
}

.map-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

.georgia-map {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    transition: box-shadow 0.3s ease;
}

.georgia-map:hover {
    box-shadow: var(--shadow-md);
}

.georgia-map svg {
    width: 100%;
    height: auto;
    display: block;
}

.circuit-region {
    fill: var(--bg-light);
    stroke: var(--border-light);
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.circuit-region:hover,
.circuit-region.hover {
    fill: var(--primary-subtle);
    stroke: var(--primary);
    stroke-width: 2;
}

.circuit-region.active {
    fill: var(--primary);
    stroke: var(--primary-dark);
    stroke-width: 2;
}

.state-outline {
    pointer-events: none;
}

/* County SVG Map Styles */
.county {
    fill: #f7f5f0 !important;
    stroke: #d4d0c8 !important;
    stroke-width: 0.5 !important;
    cursor: pointer;
    transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}

.county:hover,
.county.hovered {
    fill: #e8dcc8 !important;
    stroke: var(--primary) !important;
    stroke-width: 1.25 !important;
    filter: drop-shadow(0 0 2px rgba(184, 92, 56, 0.2));
}

.county.highlighted {
    fill: #f0e6cc !important;
    stroke: var(--primary) !important;
    stroke-width: 1 !important;
}

.county.active {
    fill: var(--primary) !important;
    stroke: var(--primary-dark) !important;
    stroke-width: 1.5 !important;
    filter: drop-shadow(0 0 4px rgba(184, 92, 56, 0.3));
}

.county.circuit-member {
    fill: rgba(184, 92, 56, 0.12) !important;
    stroke: rgba(184, 92, 56, 0.35) !important;
    stroke-width: 0.75 !important;
}

.county.opt-out {
    fill: #eaeaea !important;
    stroke: #c0c0c0 !important;
    stroke-width: 0.5 !important;
    cursor: default;
}

.county.opt-out:hover {
    fill: #e0e0e0 !important;
    stroke: #aaa !important;
    stroke-width: 0.5 !important;
}

/* Geolocation-detected county — uses primary theme */
.county.geo-detected {
    fill: var(--primary) !important;
    stroke: var(--primary-dark) !important;
    stroke-width: 2 !important;
    filter: drop-shadow(0 0 6px rgba(184, 92, 56, 0.45));
    animation: geo-pulse 2s ease-in-out;
}

@keyframes geo-pulse {
    0% { filter: drop-shadow(0 0 0px rgba(184, 92, 56, 0)); }
    50% { filter: drop-shadow(0 0 10px rgba(184, 92, 56, 0.5)); }
    100% { filter: drop-shadow(0 0 6px rgba(184, 92, 56, 0.45)); }
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    z-index: 10;
}

.map-control-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.map-control-btn:hover {
    background: var(--bg-light);
    transform: scale(1.08);
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}

.map-control-btn:active {
    transform: scale(0.96);
}

.map-control-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-medium);
}

/* Sidebar: Search + Circuit List */
.map-sidebar {
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    max-height: 640px;
    overflow: hidden;
}

.map-sidebar-search {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.map-sidebar-search-field {
    position: relative;
}

.map-sidebar-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-light);
    pointer-events: none;
}

.map-sidebar-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s var(--ease-out);
}

.map-sidebar-search-input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.map-sidebar-search-input::placeholder {
    color: var(--text-light);
}

/* Geolocation Button (desktop sidebar) */
.geo-locate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    margin-top: 0.625rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-subtle);
    border: 1.5px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.geo-locate-btn:hover {
    background: rgba(184, 92, 56, 0.12);
    border-color: rgba(184, 92, 56, 0.2);
    transform: translateY(-1px);
}

.geo-locate-btn:active {
    transform: translateY(0);
}

.geo-locate-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.geo-locate-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.geo-locate-btn.loading svg {
    animation: spin 1s linear infinite;
}

.geo-locate-btn.success {
    color: var(--primary-dark);
    background: var(--primary-subtle);
    border-color: rgba(184, 92, 56, 0.2);
}

.geo-locate-btn.error {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.06);
    border-color: rgba(192, 57, 43, 0.15);
}

/* Mobile geolocation button */
.fypd-mobile-geo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-subtle);
    border: 1.5px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 48px;
}

.fypd-mobile-geo-btn:active {
    transform: scale(0.98);
    background: rgba(184, 92, 56, 0.12);
}

.fypd-mobile-geo-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.fypd-mobile-geo-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.fypd-mobile-geo-btn.loading svg.geo-icon {
    animation: spin 1s linear infinite;
}

.fypd-mobile-geo-btn.success {
    color: var(--primary-dark);
    background: var(--primary-subtle);
}

.fypd-mobile-geo-btn.error {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.06);
}

.map-sidebar-directory {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-sidebar-directory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.map-sidebar-directory-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.map-sidebar-directory-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

.map-sidebar-directory-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Map Container */
#mapContainer {
    overflow: visible;
    position: relative;
}

#mapContainer svg {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

/* Map Loading State */
.map-loading,
.map-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    text-align: center;
    min-height: 400px;
    background: var(--bg-light);
    border-radius: 8px;
}

/* Removed duplicate - styles defined above */

.map-loading .spinner {
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.map-loading .spinner circle {
    stroke: var(--primary);
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Map Tooltip */
.map-tooltip {
    position: fixed;
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-family: 'Manrope', sans-serif;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: opacity 0.2s ease;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.map-tooltip.visible {
    opacity: 1;
}

.map-tooltip .tooltip-circuit {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-subtle);
    margin-top: 0.25rem;
}

.map-tooltip .tooltip-opt-out {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
    font-style: italic;
}

.map-tooltip .tooltip-disclaimer {
    display: block;
    font-size: 0.7rem;
    color: #777;
    margin-top: 0.125rem;
    max-width: 180px;
    white-space: normal;
    line-height: 1.3;
}

/* ==================== Circuit Detail Modal ==================== */
.circuit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    padding: 1rem;
}

.circuit-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.circuit-modal {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.circuit-modal-overlay.active .circuit-modal {
    transform: translateY(0) scale(1);
}

.circuit-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--bg-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.circuit-modal-close:hover {
    background: var(--border-light);
    transform: scale(1.1) rotate(90deg);
}

.circuit-modal-close svg {
    width: 16px;
    height: 16px;
    color: var(--text-medium);
}

.circuit-modal-circuit-name {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-right: 2rem;
    margin-bottom: 0.25rem;
}

.circuit-modal-county-label {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* "You are currently in..." banner inside modal */
.circuit-modal-geo-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    background: var(--primary-subtle);
    border: 1.5px solid rgba(184, 92, 56, 0.15);
    animation: geo-banner-in 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes geo-banner-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.circuit-modal-geo-banner svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary);
}

.circuit-modal-geo-banner span {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-medium);
    line-height: 1.35;
}

.circuit-modal-geo-banner strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Inline close button inside geo-banner */
.circuit-modal-geo-banner .geo-banner-close {
    margin-left: auto;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(184, 92, 56, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
}

.circuit-modal-geo-banner .geo-banner-close:hover {
    background: rgba(184, 92, 56, 0.2);
    transform: scale(1.1) rotate(90deg);
}

.circuit-modal-geo-banner .geo-banner-close svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

/* Hide main close button when geo-banner is present */
.circuit-modal:has(.circuit-modal-geo-banner) > .circuit-modal-close {
    display: none;
}

.circuit-modal-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.circuit-modal-detail-row:first-child,
.circuit-modal-detail-row:first-of-type {
    margin-top: 0.75rem;
}

.circuit-modal-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.circuit-modal-detail-icon svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.circuit-modal-detail-text {
    flex: 1;
    min-width: 0;
}

.circuit-modal-detail-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.125rem;
}

.circuit-modal-detail-value {
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.circuit-modal-detail-value a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.circuit-modal-detail-value a:hover {
    color: var(--primary);
}

.circuit-modal-counties-list {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.circuit-modal-counties-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.circuit-modal-counties-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.circuit-modal-county-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: all 0.2s ease;
}

.circuit-modal-county-tag.active-county {
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 0 1.5px rgba(184, 92, 56, 0.25);
}


.circuit-modal-actions {
    margin-top: 1.25rem;
}

.circuit-modal-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.circuit-modal-view-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.circuit-modal-view-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile-only action buttons in modal */
.circuit-modal-mobile-actions {
    display: none;
}

@media (max-width: 768px) {
    .circuit-modal {
        padding: 1.5rem;
        margin: 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 20px;
    }

    .circuit-modal-mobile-actions {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .circuit-modal-action-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
        padding: 0.75rem;
        font-family: 'Manrope', sans-serif;
        font-size: 0.8125rem;
        font-weight: 700;
        border-radius: 12px;
        border: 1.5px solid var(--primary);
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s ease;
        min-height: 48px;
    }

    .circuit-modal-action-btn:active {
        transform: scale(0.97);
    }

    .circuit-modal-action-btn svg {
        width: 16px;
        height: 16px;
    }

    .circuit-modal-action-btn--call {
        background: var(--primary);
        color: white;
    }

    .circuit-modal-action-btn--directions {
        background: var(--bg-white);
        color: var(--primary);
    }
}

/* ==================== Circuit Directory Items ==================== */

.circuit-directory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    border: 1px solid transparent;
}

.circuit-directory-item:hover {
    background: var(--primary-subtle);
    border-color: rgba(184, 92, 56, 0.12);
    transform: translateX(2px);
}

.circuit-directory-item:active {
    transform: translateX(2px) scale(0.99);
}

.circuit-directory-item.highlighted {
    background: var(--primary-subtle);
    border-color: var(--primary);
}

.circuit-directory-item-info {
    flex: 1;
    min-width: 0;
}

.circuit-directory-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.circuit-directory-item-counties {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.circuit-directory-item-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.circuit-directory-item:hover .circuit-directory-item-arrow {
    transform: translateX(2px);
    color: var(--primary);
}

.circuit-directory-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
}

.circuit-directory-empty svg {
    width: 36px;
    height: 36px;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.circuit-directory-empty p {
    font-size: 0.875rem;
}

/* FYPD Mobile View - Base (hidden on desktop) */
.fypd-mobile-view {
    display: none;
}

/* Mobile Search Hero */
.fypd-mobile-search-hero {
    text-align: center;
    padding: 1.25rem 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0.5rem;
    transition: padding 0.3s ease;
}

.fypd-mobile-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    transition: all 0.3s ease;
}

.fypd-mobile-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.fypd-mobile-search-hero h3 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.fypd-mobile-search-hero p {
    font-size: 0.8125rem;
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

/* When search is focused, collapse decorative elements to maximize space for results above keyboard */
.fypd-mobile-search-hero:focus-within {
    padding: 0.75rem 0;
}

.fypd-mobile-search-hero:focus-within .fypd-mobile-icon {
    width: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
}

.fypd-mobile-search-hero:focus-within h3 {
    font-size: 0;
    margin: 0;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.fypd-mobile-search-hero:focus-within p {
    font-size: 0;
    margin: 0;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.fypd-mobile-search-wrapper {
    position: relative;
}

.fypd-mobile-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-light);
    pointer-events: none;
}

.fypd-mobile-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 50px;
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 48px;
    transition: all 0.25s ease;
}

.fypd-mobile-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.fypd-mobile-search-input::placeholder {
    color: var(--text-light);
}

/* Alpha filter bar */
.fypd-alpha-bar {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    scrollbar-width: none;
    position: sticky;
    top: 60px;
    z-index: 99;
    background: var(--bg-white);
}

.fypd-alpha-bar::-webkit-scrollbar {
    display: none;
}

.fypd-alpha-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    background: var(--bg-white);
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fypd-alpha-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Circuit cards */
.fypd-circuits-grid {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.fypd-circuit-card {
    background: var(--bg-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.fypd-circuit-card:active {
    transform: scale(0.99);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.fypd-circuit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.875rem 0;
}

.fypd-circuit-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--primary-subtle);
    color: var(--primary);
}

.fypd-circuit-card-content {
    padding: 0.5rem 0.875rem 0.625rem;
}

.fypd-circuit-name {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.fypd-circuit-location {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-medium);
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.fypd-circuit-location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 1px;
}

.fypd-circuit-defender {
    font-size: 0.75rem;
    color: var(--text-light);
}

.fypd-circuit-card-footer {
    padding: 0 0.875rem 0.75rem;
}

.fypd-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.875rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-light);
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fypd-view-btn:hover {
    background: var(--primary-subtle);
    border-color: var(--primary-light);
}

/* Mobile Map */
.fypd-mobile-map-wrapper {
    margin: 0.25rem 0 1rem;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.fypd-mobile-map-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fypd-mobile-map-toggle:active {
    background: var(--bg-light);
}

.fypd-mobile-map-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.fypd-mobile-map-toggle.open svg {
    transform: rotate(180deg);
}

.fypd-mobile-map-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fypd-mobile-map-toggle-label svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.fypd-mobile-map-inner {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fypd-mobile-map-inner.expanded {
    max-height: 600px;
}

.fypd-mobile-map-container {
    padding: 0.5rem;
    position: relative;
}

.fypd-mobile-map-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.fypd-mobile-map-container .county {
    -webkit-tap-highlight-color: transparent;
}

/* Tip text below mobile map */
.fypd-mobile-map-tip {
    text-align: center;
    font-size: 0.6875rem;
    color: var(--text-light);
    padding: 0.375rem 0.75rem 0.625rem;
    font-style: italic;
}

/* Results count */
.fypd-results-count {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.fypd-results-count span {
    font-weight: 700;
    color: var(--primary);
}

/* No results state */
.fypd-no-results {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
}

.fypd-no-results svg {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.fypd-no-results p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.fypd-no-results .fypd-no-results-hint {
    font-size: 0.75rem;
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .map-layout {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 768px) {
    .map-layout {
        display: none;
    }

    .fypd-mobile-view {
        display: block;
    }

    .map-header {
        display: none;
    }

    .map-container {
        padding: 0;
        background: transparent;
        border-radius: 0;
    }

    /* Force visible on mobile — the fade-in observer can't trigger on
       very tall containers because 10% never fits in the viewport */
    .map-container.fade-in {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .map-section {
        padding: 2rem 1.75rem;
    }

    .fypd-mobile-view {
        padding: 0 0.5rem;
    }

    /* Condense search hero — hide decorative elements already shown in page hero */
    .fypd-mobile-icon {
        display: none;
    }

    .fypd-mobile-search-hero h3,
    .fypd-mobile-search-hero p {
        display: none;
    }

    .fypd-mobile-search-hero {
        padding: 0.75rem 0 0.25rem;
        margin-bottom: 0;
    }

    /* Tighter search input */
    .fypd-mobile-search-input {
        min-height: 44px;
        padding: 0.625rem 1rem 0.625rem 2.5rem;
        font-size: 0.9375rem;
    }

    /* Actions row: geo + map toggle side by side */
    .fypd-mobile-actions-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .fypd-mobile-geo-btn {
        min-height: 40px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        margin-top: 0;
        width: auto;
        flex: 1;
    }

    .fypd-mobile-map-wrapper {
        flex: 1;
        min-width: 0;
        margin-top: 0;
        border-radius: 50px;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    /* When map is open, wrapper spans full width */
    .fypd-mobile-map-wrapper:has(.fypd-mobile-map-inner.expanded) {
        flex: 1 1 100%;
        border-radius: 14px;
        border: 1px solid var(--border-light);
    }

    .fypd-mobile-map-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        border-radius: 50px;
        border: 1.5px solid var(--border-light);
        justify-content: center;
        gap: 0.375rem;
        background: var(--bg-white);
    }

    .fypd-mobile-map-toggle svg:last-child {
        width: 14px;
        height: 14px;
    }

    /* Smaller alpha filter buttons */
    .fypd-alpha-bar {
        padding: 0.35rem 0;
        margin-bottom: 0.5rem;
    }

    .fypd-alpha-btn {
        min-width: 30px;
        height: 30px;
        font-size: 0.6875rem;
    }

    .map-section {
        padding: 1.25rem 1rem;
    }
}


/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-out);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ==================== DARK MODE TOGGLE ==================== */
.dark-mode-toggle {
    display: none; /* Now integrated into contact widget */
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--ease-out);
    z-index: 1000;
}

.dark-mode-toggle:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.dark-mode-toggle svg {
    width: 22px;
    height: 22px;
    transition: all 0.3s var(--ease-out);
}

.dark-mode-toggle .sun-icon {
    display: block;
}

.dark-mode-toggle .moon-icon {
    display: none;
    position: absolute;
}

/* ==================== DARK MODE THEME ==================== */
[data-theme="dark"] {
    --primary: #D4775A;
    --primary-dark: #B85C38;
    --primary-light: #E8967D;
    --primary-subtle: rgba(212, 119, 90, 0.15);
    --text-dark: #f0f0f0;
    --text-medium: #b0b0b0;
    --text-light: #888888;
    --bg-light: #1a1a1a;
    --bg-white: #242424;
    --border-light: #333333;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
}

[data-theme="dark"] body {
    background: #121212;
}

[data-theme="dark"] .nav {
    background: rgba(24, 24, 24, 0.95);
}

[data-theme="dark"] .nav.scrolled {
    background: rgba(24, 24, 24, 0.98);
}

[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .submenu {
    background: #2a2a2a;
    border-color: #404040;
}

[data-theme="dark"] .dark-mode-toggle {
    background: var(--bg-white);
    border-color: var(--border-light);
}

[data-theme="dark"] .dark-mode-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .back-to-top {
    background: var(--primary);
}

[data-theme="dark"] img {
    opacity: 0.9;
}

[data-theme="dark"] .hero-bg::after {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
}


[data-theme="dark"] .search-input {
    background: #333;
    color: var(--text-dark);
    border-color: #444;
}

[data-theme="dark"] .search-results {
    background: #2a2a2a;
    border-color: #404040;
}

[data-theme="dark"] .mobile-nav {
    background: #1a1a1a;
}

[data-theme="dark"] .footer {
    background: #0a0a0a;
}

/* Animated stats styling */
.stat-number {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 1.5rem;
        left: 1.5rem;
    }
}

/* ==================== DARK MODE LOGO ==================== */
.logo-dark {
    display: none !important;
}

[data-theme="dark"] .logo-light {
    display: none !important;
}

/* Dark mode: show dark logos */
[data-theme="dark"] .logo-dark {
    display: block !important;
}

/* But keep nav logo-symbol hidden on desktop in dark mode */
[data-theme="dark"] .nav-logo .logo-symbol.logo-dark {
    display: none !important;
}

/* Mobile: show symbol dark logo instead of horizontal */
@media (max-width: 900px) {
    [data-theme="dark"] .nav-logo .logo-horizontal.logo-dark {
        display: none !important;
    }
    [data-theme="dark"] .nav-logo .logo-symbol.logo-dark {
        display: block !important;
    }
}

[data-theme="dark"] .breadcrumbs {
    background: var(--bg-white);
    border-bottom-color: var(--border-light);
}

[data-theme="dark"] .breadcrumb-item:hover {
    background: var(--bg-light);
}

/* ==================== ANNOUNCEMENT BANNER ==================== */
.announcement-banner {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: none;
}

.announcement-banner.visible {
    display: block;
}

/* Push nav down when announcement is visible */
body.has-announcement .nav {
    top: 44px;
}

body.has-announcement .mobile-nav {
    top: 104px; /* 44px banner + 60px nav */
}

body.has-announcement .scroll-progress {
    top: 44px;
}

.announcement-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.announcement-banner-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-banner-text svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.announcement-banner-link {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announcement-banner-link:hover {
    opacity: 0.9;
}

.announcement-banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.announcement-banner-close:hover {
    opacity: 1;
}

.announcement-banner-close svg {
    width: 18px;
    height: 18px;
}

/* ==================== BREADCRUMB NAVIGATION ==================== */
.breadcrumbs {
    padding: 0.875rem 1.5rem;
    padding-top: calc(70px + 0.875rem); /* Account for fixed nav with extra spacing */
    margin-top: 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    box-shadow: inset 0 -1px 0 var(--border-light);
}

body.has-announcement .breadcrumbs {
    padding-top: calc(114px + 0.875rem); /* Account for banner + nav */
}

.breadcrumbs-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.breadcrumb-item {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-item:hover {
    color: var(--primary);
    background: var(--bg-white);
}

.breadcrumb-separator {
    color: var(--text-light);
    font-size: 0.625rem;
    opacity: 0.6;
}

.breadcrumb-current {
    color: var(--text-medium);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

/* ==================== CONNECT WITH US SECTION ==================== */
.connect-section {
    padding: 2.5rem 1.5rem;
    background: var(--bg-white);
}

.connect-inner {
    max-width: 1140px;
    margin: 0 auto;
}

/* Uses existing .section-header, .label, .section-title from global styles */

/* Card Grid — 4 columns top row, newsletter full-width bottom */
.connect-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.connect-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.375rem;
    background: var(--bg-light);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--ease-out);
    border: 1px solid transparent;
}

.connect-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--border-light);
}

.connect-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0.25rem;
    transition: all 0.3s var(--ease-out);
}

.connect-card:hover .connect-card-icon {
    background: var(--primary);
}

.connect-card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: color 0.3s var(--ease-out);
}

.connect-card:hover .connect-card-icon svg {
    color: white;
}

.connect-card h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-dark);
}

.connect-card-detail {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.connect-card-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Newsletter Card — full width row within grid */
.connect-newsletter-card {
    grid-column: 1 / -1;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 14px;
    border: none;
}

.connect-newsletter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(184, 92, 56, 0.25);
    border-color: transparent;
}

.connect-newsletter-card .connect-card-icon {
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    margin-bottom: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.connect-newsletter-card .connect-card-icon svg {
    color: white;
}

.connect-newsletter-card:hover .connect-card-icon {
    background: rgba(255, 255, 255, 0.3);
}

.connect-newsletter-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.connect-newsletter-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.15rem;
}

.connect-newsletter-body .connect-card-desc {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.connect-newsletter-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 480px;
    justify-content: center;
}

.connect-newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    min-width: 0;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.connect-newsletter-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.connect-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.connect-newsletter-form button {
    padding: 0.7rem 1.5rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.connect-newsletter-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Connect Section Responsive */
@media (max-width: 900px) {
    .connect-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .connect-newsletter-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .connect-section {
        padding: 1.5rem 1.25rem;
    }

    .connect-section .section-header {
        margin-bottom: 0.75rem;
    }

    .connect-section .section-title {
        font-size: 1.25rem;
    }

    .connect-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .connect-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 0.875rem;
        border-radius: 10px;
    }

    .connect-card:hover {
        transform: none;
    }

    .connect-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .connect-card-icon svg {
        width: 16px;
        height: 16px;
    }

    .connect-card h3 {
        font-size: 0.8125rem;
    }

    .connect-card-detail,
    .connect-card-desc {
        display: none;
    }

    .connect-newsletter-card {
        grid-column: 1 / -1;
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1rem;
        gap: 0.5rem;
    }

    .connect-newsletter-card .connect-card-icon {
        width: 36px;
        height: 36px;
    }

    .connect-newsletter-body h3 {
        font-size: 0.875rem;
    }

    .connect-newsletter-body .connect-card-desc {
        display: block;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .connect-newsletter-form {
        max-width: 100%;
        flex-direction: row;
    }

    .connect-newsletter-form input {
        padding: 0.6rem 0.875rem;
        font-size: 0.75rem;
    }

    .connect-newsletter-form button {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
}

/* ==================== STICKY SECTION NAVIGATION ==================== */
.sticky-section-nav {
    position: fixed;
    top: 80px;
    left: 1.5rem;
    z-index: 100;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.3s var(--ease-out);
}

.sticky-section-nav.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sticky-section-nav-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.sticky-section-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sticky-section-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-medium);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.sticky-section-nav-link:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.sticky-section-nav-link.active {
    background: var(--primary-subtle);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

@media (max-width: 1400px) {
    .sticky-section-nav {
        display: none;
    }
}

[data-theme="dark"] .sticky-section-nav {
    background: var(--bg-white);
    border-color: var(--border-light);
}

/* ==================== PARALLAX HERO IMAGES ==================== */
.parallax-hero {
    position: relative;
    overflow: hidden;
}

.parallax-hero .hero-bg,
.parallax-hero::before {
    will-change: transform;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: -20%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: -1;
}

/* ==================== CARD HOVER MICRO-ANIMATIONS ==================== */
/* Universal card lift and glow effect */
.event-card,
.quick-link-card,
.principle-card,
.team-card,
.division-card,
.circuit-card,
.benefit-card,
.career-path-card,
.position-card,
.news-card,
.support-card {
    transition: transform 0.4s var(--ease-out-back),
                box-shadow 0.4s var(--ease-out);
}

.event-card:hover,
.quick-link-card:hover,
.principle-card:hover,
.team-card:hover,
.division-card:hover,
.circuit-card:hover,
.benefit-card:hover,
.career-path-card:hover,
.position-card:hover,
.news-card:hover,
.support-card:hover {
    transform: translateY(-8px);
}

/* Card image zoom effect */
.event-card .event-image,
.news-card .news-card-image,
.team-card .team-image {
    overflow: hidden;
}

.event-card .event-image img,
.news-card .news-card-image img,
.team-card .team-image img {
    transition: transform 0.6s var(--ease-out);
}

.event-card:hover .event-image img,
.news-card:hover .news-card-image img,
.team-card:hover .team-image img {
    transform: scale(1.08);
}

/* Icon pop effect */
.quick-link-card .quick-link-icon,
.division-card .division-icon,
.career-path-card .career-path-icon,
.support-card .support-icon {
    transition: transform 0.4s var(--ease-spring),
                background 0.3s var(--ease-out);
}

.quick-link-card:hover .quick-link-icon,
.division-card:hover .division-icon,
.career-path-card:hover .career-path-icon,
.support-card:hover .support-icon {
    transform: scale(1.1) rotate(-3deg);
}

/* Arrow slide effect for link cards */
.quick-link-card .quick-link-arrow,
.support-card .support-arrow {
    transition: transform 0.3s var(--ease-spring),
                opacity 0.3s var(--ease-out);
}

.quick-link-card:hover .quick-link-arrow,
.support-card:hover .support-arrow {
    transform: translateX(4px);
}

/* Shimmer effect on card hover */
.event-card::after,
.news-card::after,
.position-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    pointer-events: none;
    transition: left 0.6s var(--ease-out);
}

.event-card:hover::after,
.news-card:hover::after,
.position-card:hover::after {
    left: 100%;
}

/* Border glow effect */
.team-card::before,
.division-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
}

.team-card:hover::before,
.division-card:hover::before {
    opacity: 1;
}

/* Enhanced page transitions removed — using slim progress bar (line ~2034) */

/* Page content fade in animation */
.page-content {
    animation: pageContentFadeIn 0.6s var(--ease-out) forwards;
}

@keyframes pageContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered section animations on page load */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    animation: showFallback 0s 3s forwards; /* Safety net: show content if JS fails */
}

.section-animate.visible {
    animation: sectionFadeIn 0.7s var(--ease-out) forwards;
}

@keyframes showFallback {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero fade in with slight scale */
.hero-animate {
    opacity: 0;
    transform: scale(0.98);
    animation: heroFadeIn 0.8s var(--ease-out) 0.1s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== COMMAND PALETTE ==================== */
.command-palette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s var(--ease-out);
}

.command-palette-overlay.active {
    opacity: 1;
    visibility: visible;
}

.command-palette {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 90%;
    max-width: 580px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s var(--ease-out-back);
    overflow: hidden;
}

.command-palette-overlay.active .command-palette {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.command-palette-input-wrapper {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    gap: 0.75rem;
}

.command-palette-input-wrapper svg {
    width: 20px;
    height: 20px;
    color: var(--text-light);
    flex-shrink: 0;
}

.command-palette-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    color: var(--text-dark);
}

.command-palette-input::placeholder {
    color: var(--text-light);
}

.command-palette-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    background: var(--bg-light);
    border-radius: 4px;
}

.command-palette-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.command-palette-group {
    padding: 0.5rem 0;
}

.command-palette-group-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    padding: 0.5rem 0.75rem;
}

.command-palette-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s var(--ease-out);
    text-decoration: none;
    color: var(--text-dark);
}

.command-palette-item:hover,
.command-palette-item.highlighted {
    background: var(--primary-subtle);
}

.command-palette-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    opacity: 0.7;
}

.command-palette-item:hover svg,
.command-palette-item.highlighted svg {
    opacity: 1;
}

.command-palette-item-text {
    flex: 1;
}

.command-palette-item-title {
    font-weight: 500;
    font-size: 0.9375rem;
}

.command-palette-item-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.125rem;
}

.command-palette-item-shortcut {
    font-size: 0.6875rem;
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    background: var(--bg-light);
    border-radius: 4px;
}

.command-palette-shortcut {
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-medium);
    padding: 0.25rem 0.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    min-width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.command-palette-item:hover .command-palette-shortcut,
.command-palette-item.highlighted .command-palette-shortcut {
    background: var(--bg-white);
    border-color: var(--primary-light);
    color: var(--primary);
}

.command-palette-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.command-palette-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    color: var(--text-light);
}

.command-palette-footer kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.375rem;
    background: var(--bg-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.6875rem;
    margin: 0 0.125rem;
}

/* ==================== COPY TO CLIPBOARD ==================== */
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    color: var(--text-medium);
}

.copy-btn:hover {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.copy-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-dark);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-back);
}

.copy-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.copy-toast svg {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    vertical-align: -3px;
    color: #10b981;
}

/* ==================== ANIMATED LINK UNDERLINES ==================== */
.animated-underline {
    position: relative;
    text-decoration: none;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease-out);
}

.animated-underline:hover::after {
    width: 100%;
}

/* Apply to footer links */
.footer-main a,
.dropdown-item,
.mobile-nav-link {
    position: relative;
}

.footer-main a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease-out);
}

.footer-main a:hover::after {
    width: 100%;
}

/* ==================== 3D CARD TILT EFFECT ==================== */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-card-inner {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.tilt-card .tilt-shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.08) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    pointer-events: none;
    border-radius: inherit;
}

.tilt-card:hover .tilt-shine {
    opacity: 1;
}

/* ==================== QUICK ACTIONS WIDGET ==================== */
.quick-actions-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

@media (max-width: 768px) {
    .quick-actions-widget {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

.quick-actions-toggle {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(184, 92, 56, 0.4);
    transition: all 0.3s var(--ease-out);
    color: white;
}

.quick-actions-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(184, 92, 56, 0.5);
}

.quick-actions-toggle svg {
    width: 22px;
    height: 22px;
    transition: all 0.3s var(--ease-out);
}

.quick-actions-toggle .icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.quick-actions-widget.open .quick-actions-toggle .icon-grid {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.quick-actions-widget.open .quick-actions-toggle .icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.quick-actions-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.25s var(--ease-out-back);
    border: 1px solid var(--border-light);
}

.quick-actions-widget.open .quick-actions-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.quick-actions-header {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    padding: 0.5rem 1rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.5rem;
}

.quick-actions-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s var(--ease-out);
    cursor: pointer;
}

.quick-actions-item:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}

.quick-actions-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.quick-actions-item-text {
    flex: 1;
}

.quick-actions-item-label {
    font-size: 0.8125rem;
    font-weight: 600;
}

.quick-actions-item-value {
    font-size: 0.75rem;
    color: var(--text-light);
}

.quick-actions-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.5rem 0;
}

.quick-actions-item.theme-toggle {
    justify-content: space-between;
}

.theme-toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s var(--ease-out);
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}

.theme-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    transition: transform 0.3s var(--ease-out-back);
}

[data-theme="dark"] .theme-toggle-switch {
    background: var(--primary);
}

[data-theme="dark"] .theme-toggle-switch::after {
    transform: translateX(20px);
    background: white;
}

/* ==================== SITE TUTORIAL ==================== */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    padding: 1rem;
}

.tutorial-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tutorial-modal {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s var(--ease-out-back);
}

.tutorial-overlay.active .tutorial-modal {
    transform: translateY(0) scale(1);
}

.tutorial-modal.transitioning {
    opacity: 0.5;
    transform: scale(0.98);
}

.tutorial-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tutorial-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    transition: all 0.3s var(--ease-out);
}

.tutorial-progress-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.tutorial-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.tutorial-title {
    font-size: 1.375rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.tutorial-content {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tutorial-content kbd {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
}

.tutorial-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.tutorial-skip {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.tutorial-skip:hover {
    border-color: var(--text-medium);
    color: var(--text-dark);
}

.tutorial-next {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.tutorial-next:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.tutorial-next svg {
    width: 16px;
    height: 16px;
}

[data-theme="dark"] .tutorial-modal {
    background: var(--bg-white);
}

[data-theme="dark"] .quick-actions-menu {
    background: var(--bg-white);
}

/* ==================== READING TIME ESTIMATE ==================== */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.reading-time svg {
    width: 11px;
    height: 11px;
    opacity: 0.7;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Dark mode support for new features */
[data-theme="dark"] .command-palette {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
}


[data-theme="dark"] .copy-toast {
    background: var(--bg-white);
    color: var(--text-dark);
}

/* ============================================
   Article Page Styles — Editorial Redesign
   ============================================ */

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header should be visible immediately */
.article-header.reveal {
    opacity: 1;
    transform: none;
}

/* Article Header — Magazine Editorial */
.article-header {
    background: var(--bg-light);
    padding-top: 90px;
    padding-bottom: 1.5rem;
}

.article-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.article-category {
    color: var(--primary);
    padding: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: none;
    border-radius: 0;
}

.article-meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-light);
}

.article-date {
    color: var(--text-light);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.article-header h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.15;
    margin: 0 0 1.5rem;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.article-header-rule {
    width: 60px;
    height: 3px;
    background: var(--primary);
    border: none;
    margin: 0;
}

/* Featured Image */
.article-featured-image {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.article-featured-image figcaption {
    font-size: 0.6875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.375rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Inline Article Images */
.article-inline-image {
    margin: 2rem 0;
}

.article-inline-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.article-inline-image figcaption {
    font-size: 0.6875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.375rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Article Page Layout — Sidebar + Body */
.article-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

/* Article Content Container */
.article-content {
    min-width: 0;
}

/* Old article-footer (legacy cleanup) */
.article-footer {
    display: none;
}

/* Article Body — Typography Refresh */
.article-body {
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 1.75rem;
}

/* Drop Cap */
.article-body p:first-of-type::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.85;
    font-weight: 800;
    color: var(--primary);
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    font-family: 'Ubuntu', sans-serif;
}

/* Blockquotes — Pull Quote Style */
.article-body blockquote {
    border-left: 3px solid var(--primary);
    padding: 1.25rem 0 1.25rem 1.75rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--text-medium);
    position: relative;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.article-body a:hover {
    color: var(--primary-dark, #1a4731);
}

.article-body strong {
    font-weight: 700;
    color: var(--text-dark);
}

/* Section Divider */
.article-body hr {
    border: none;
    height: 1px;
    background: var(--border-light);
    margin: 2.5rem 0;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Contact Box */
.contact-box {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 3px solid var(--primary);
}

.contact-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-box p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.contact-box a {
    color: var(--primary);
    font-weight: 600;
}

/* Article Sidebar — Metadata Panel */
.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    order: -1;
}

.article-sidebar-panel {
    border-right: 1px solid var(--border-light);
    padding-right: 1.5rem;
}

.sidebar-section {
    margin-bottom: 1.75rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 0.375rem;
}

.sidebar-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.sidebar-share {
    display: flex;
    gap: 8px;
}

.sidebar-share-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-medium);
}

.sidebar-share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sidebar-share-btn svg {
    width: 16px;
    height: 16px;
}

.sidebar-related {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-related li {
    margin-bottom: 0.75rem;
}

.sidebar-related a {
    font-size: 0.8125rem;
    color: var(--text-medium);
    text-decoration: none;
    line-height: 1.5;
    display: block;
    transition: color 0.2s;
}

.sidebar-related a:hover {
    color: var(--primary);
}

/* Article Footer */
.article-page-footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-light);
    width: 100%;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 12px;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

/* Masonry Gallery */
.article-gallery {
    columns: 3;
    column-gap: 12px;
    margin: 2.5rem 0;
}

.article-gallery img {
    width: 100%;
    display: block;
    margin-bottom: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    break-inside: avoid;
}

.article-gallery img:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* Article Responsive */
@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem 3rem;
        gap: 1.5rem;
    }

    .article-sidebar {
        position: relative;
        top: 0;
        order: 2;
    }

    .article-content {
        order: 1;
    }

    .article-sidebar-panel {
        border-right: none;
        border-top: 1px solid var(--border-light);
        padding-right: 0;
        padding-top: 1.5rem;
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .sidebar-section {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding-top: 80px;
        padding-bottom: 1.5rem;
    }

    .article-header h1 {
        font-size: clamp(1.625rem, 5vw, 2.25rem);
    }

    .article-featured-image {
        padding: 0 1.25rem;
    }

    .article-featured-image img {
        border-radius: 8px;
    }

    .article-gallery {
        columns: 2;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body p:first-of-type::first-letter {
        font-size: 3rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .article-gallery {
        columns: 1;
    }
}

/* ==================== MOBILE FONT-SIZE MINIMUMS ==================== */
@media (max-width: 768px) {
    .label {
        font-size: 0.8rem;
    }
    .footer-copyright,
    .footer-staff-link {
        font-size: 0.8125rem;
    }
    .event-meta,
    .news-card-meta .news-card-date,
    .news-card-category {
        font-size: 0.8125rem;
    }
}
