/* ============================================
   VILLAGE OF WESTCHESTER - MAIN STYLESHEET
   Celebrating 100 Years: 1925-2025
   ============================================ */

/* CSS Variables */
:root {
    /* NEW COLOR SCHEME - Matches Knight Logo */
    /* Primary Colors - Rich navy and gold for centennial */
    --primary: #1a3a5c;
    --primary-dark: #0f2744;
    --primary-light: #2d5a8a;
    
    /* Accent - Centennial Gold */
    --accent: #8B6914; /* Darkened from #d4a84b for WCAG AA text contrast (4.6:1 on white) */
    --gold: #8B6914; /* Accessible gold for text - WCAG AA */
    --accent-decorative: #d4a84b; /* Original gold - use only on dark backgrounds or decorative elements */
    --accent-light: #f0c75e;
    --accent-dark: #7a5c00; /* WCAG AA - darkened from #b8860b */
    
    /* Secondary - Forest Green */
    --secondary: #2d5a3d;
    --secondary-dark: #1e3d2a;
    --secondary-light: #3d7a52;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Semantic Colors */
    --success: #166534; /* WCAG AA - darkened from #059669 */
    --warning: #d97706;
    --error: #dc2626;
    --info: #0284c7;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.section--gray {
    background: var(--gray-100);
}

.section--dark {
    background: var(--primary-dark);
    color: #ffffff !important;
}

.section--dark h2,
.section--dark h3 {
    color: #ffffff !important;
}

.text-center { text-align: center; }
.text-accent { color: #8B6914; } /* Darkened for WCAG AA contrast */

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.header__top {
    background: var(--primary-dark);
    color: #ffffff !important;
    padding: var(--space-xs) 0;
    font-size: 0.875rem;
}

.header__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__contact {
    display: flex;
    gap: var(--space-lg);
}

.header__contact a {
    color: var(--gray-300);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.header__contact a:hover {
    color: var(--accent-light);
}

.header__social {
    display: flex;
    gap: var(--space-sm);
}

.header__social a {
    color: var(--gray-300);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.header__social a:hover {
    background: var(--accent-decorative);
    color: #ffffff !important;
}

.header__main {
    padding: var(--space-md) 0;
}

.header__main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo__image {
    height: 60px;
    width: auto;
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.1;
}

.logo__tagline {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: var(--space-xs);
}

.nav__item {
    position: relative;
}

.nav__link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav__link:hover,
.nav__link--active {
    background: var(--gray-100);
    color: var(--primary);
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav__item:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--gray-700);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.nav__dropdown-link:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent-decorative);
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav__cta:hover {
    background: var(--accent-dark);
    color: #ffffff !important;
}

/* Mobile Menu Toggle */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .nav__toggle {
        display: block;
    }
    
    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-2xl);
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        z-index: 1001;
    }
    
    .nav__list.active {
        right: 0;
    }
    
    .nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: var(--space-md);
        display: none;
    }
    
    .nav__item:hover .nav__dropdown {
        display: block;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center 30%;
    opacity: 1 !important;
}
.hero__background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 37, 64, 0.7) 0%,
        rgba(15, 37, 64, 0.4) 50%,
        rgba(15, 37, 64, 0.8) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 10;
    color: #ffffff !important;
    max-width: 700px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--accent-decorative);
    color: var(--primary-dark);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-2xl);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #ffffff !important;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    font-weight: 400;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Animated shapes */
.hero__shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.1);
    animation: float 6s ease-in-out infinite;
}

.hero__shape--1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: 10%;
    animation-delay: 0s;
}

.hero__shape--2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 25%;
    animation-delay: -2s;
}

.hero__shape--3 {
    width: 100px;
    height: 100px;
    bottom: -50px;
    left: 10%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--accent-decorative);
    color: var(--primary-dark);
    border-color: var(--accent-decorative);
}

.btn--primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background: transparent;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.btn--outline:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.btn--secondary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--gray-200);
}

.btn--secondary:hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.btn--sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

.btn--lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

/* ============================================
   QUICK LINKS SECTION
   ============================================ */

.quick-links {
    background: var(--white);
    padding: var(--space-2xl) 0;
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

.quick-links__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.quick-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-decorative);
}

.quick-link__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    color: #ffffff !important;
    transition: var(--transition);
}

.quick-link:hover .quick-link__icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    transform: scale(1.1);
}

.quick-link__title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9375rem;
}

/* ============================================
   NEWS SECTION
   ============================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 4px;
    background: var(--accent-decorative);
    border-radius: 2px;
}

.section-header a {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.section-header a:hover {
    color: var(--accent);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
}

@media (max-width: 1024px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
}

/* Featured News Card */
.news-card--featured {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .news-card--featured {
        grid-template-columns: 1fr;
    }
}

.news-card--featured .news-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.news-card--featured .news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-card__content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card__badge {
    display: inline-block;
    background: var(--accent-decorative);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
    width: fit-content;
}

.news-card__content time {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
    display: block;
}

.news-card__content h3 {
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.news-card__content h3 a {
    color: var(--gray-900);
}

.news-card__content h3 a:hover {
    color: var(--primary);
}

.news-card__content p {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.news-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-decorative);
    transform: translateX(4px);
}

.news-item__image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
}

.news-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item__content {
    flex: 1;
    min-width: 0;
}

.news-item__content time {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-xs);
}

.news-item__content h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    line-height: 1.4;
}

.news-item__content h4 a {
    color: var(--gray-800);
}

.news-item__content h4 a:hover {
    color: var(--primary);
}

.news-item__content p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* News Grid (for news page) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.news-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-card__image img {
    transform: scale(1.08);
}

/* ============================================
   MEETINGS SIDEBAR
   ============================================ */

.section-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.meetings-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.meeting-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.meeting-card:hover {
    box-shadow: var(--shadow-md);
}

.meeting-card__date {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff !important;
    border-radius: var(--radius);
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.meeting-card__date .month {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.meeting-card__date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.meeting-card__info {
    flex: 1;
    min-width: 0;
}

.meeting-card__info h4 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meeting-card__info p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meeting-card__info a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
}

/* Video Widget */
.video-widget {
    background: linear-gradient(135deg, #0d1f33 0%, var(--primary-dark) 100%);
    color: #ffffff !important;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.video-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(201,162,39,0.2) 0%, transparent 70%);
}

.video-widget h3 {
    color: #ffffff !important;
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    position: relative;
}

.video-widget p {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    position: relative;
}

.video-widget .btn {
    position: relative;
    background: var(--accent-decorative);
    color: var(--primary-dark);
    border-color: var(--accent-decorative);
}

.video-widget .btn:hover {
    background: var(--white);
    border-color: #ffffff !important;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats {
    background: linear-gradient(135deg, #0d1f33 0%, var(--primary-dark) 100%);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-xl);
    position: relative;
}

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

@media (max-width: 500px) {
    .stats__grid {
        grid-template-columns: 1fr;
    }
}

.stat {
    text-align: center;
    color: #ffffff !important;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat__label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   WELCOME / ABOUT SECTION
   ============================================ */

.welcome {
    padding: var(--space-3xl) 0;
}

.welcome__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

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

.welcome__content h2 {
    margin-bottom: var(--space-lg);
}

.welcome__content h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-decorative);
    margin-top: var(--space-md);
    border-radius: 2px;
}

.welcome__content p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
}

.welcome__image {
    position: relative;
}

.welcome__image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.welcome__image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--accent-decorative);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ============================================
   ALERTS
   ============================================ */

.alerts {
    background: var(--warning);
    color: #ffffff !important;
    padding: var(--space-md) 0;
}

.alert {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.alert__icon {
    flex-shrink: 0;
}

.alert__content {
    flex: 1;
}

.alert__content strong {
    display: block;
    font-weight: 700;
}

.alert__close {
    background: none;
    border: none;
    color: #ffffff !important;
    cursor: pointer;
    padding: var(--space-sm);
    opacity: 0.8;
}

.alert__close:hover {
    opacity: 1;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    background: linear-gradient(135deg, #0d1f33 0%, var(--primary-dark) 100%);
    color: #ffffff !important;
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header h1 {
    color: #ffffff !important;
    margin-bottom: var(--space-sm);
    position: relative;
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    position: relative;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
    position: relative;
}

.breadcrumb a {
    color: #ffffff !important;
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

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

@media (max-width: 600px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

.footer__brand {
    max-width: 350px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer__logo img {
    height: 50px;
}

.footer__logo-text {
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer__brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    color: var(--gray-400);
    border-radius: var(--radius);
    transition: var(--transition);
}

.footer__social a:hover {
    background: var(--accent-decorative);
    color: var(--primary-dark);
}

.footer__column h4 {
    color: #ffffff !important;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: var(--space-sm);
}

.footer__links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--accent);
    padding-left: var(--space-xs);
}

.footer__contact p {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

.footer__contact svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer__contact a {
    color: var(--gray-400);
}

.footer__contact a:hover {
    color: var(--accent);
}

.footer__bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.875rem;
}

.footer__copyright {
    color: var(--gray-500);
}

.footer__legal {
    display: flex;
    gap: var(--space-lg);
}

.footer__legal a {
    color: var(--gray-500);
}

.footer__legal a:hover {
    color: var(--accent);
}

/* ============================================
   GOVERNMENT PAGE
   ============================================ */

.officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.officials-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.official-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.official-card__photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
}

.official-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.official-card__info {
    padding: var(--space-lg);
}

.official-card__name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.official-card__title {
    color: #8B6914; /* Darkened for WCAG AA contrast */
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.official-card__bio {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.official-card__contact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.official-card__contact a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--primary);
}

.official-card__contact a:hover {
    color: var(--accent);
}

/* Compact Official Card */
.official-card--compact {
    display: flex;
    padding: var(--space-lg);
    gap: var(--space-md);
}

.official-card--compact .official-card__photo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    aspect-ratio: 1;
}

.official-card--compact .official-card__info {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.official-card--compact .official-card__name {
    font-size: 1.0625rem;
}

.official-card--compact .official-card__title {
    margin-bottom: var(--space-sm);
    font-size: 0.8125rem;
}

/* Placeholder */
.official-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
    color: var(--gray-400);
}

/* ============================================
   DEPARTMENT PAGES
   ============================================ */

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.department-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.department-card__header {
    background: linear-gradient(135deg, #0d1f33 0%, var(--primary-dark) 100%);
    padding: var(--space-lg);
}

.department-card__header h2 {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.department-card__body {
    padding: var(--space-lg);
}

.department-card__description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.department-card__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
}

.department-card__info span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-600);
}

.department-card__info svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* Department Detail */
.department-detail {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    align-items: start;
}

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

.department-main h2 {
    margin-bottom: var(--space-lg);
}

.department-main p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.staff-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.staff-card:hover {
    box-shadow: var(--shadow-md);
}

.staff-card__photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}

.staff-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    background: var(--gray-100);
}

.staff-card__info {
    flex: 1;
    min-width: 0;
}

.staff-card__name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.staff-card__title {
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.staff-card__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.staff-card__contact a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--primary);
}

/* Sidebar */
.sidebar-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-lg);
}

.sidebar-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--accent);
}

.sidebar-card p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: var(--space-sm);
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.9375rem;
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: var(--gray-100);
    color: var(--primary);
}

/* ============================================
   ARTICLE PAGE
   ============================================ */

.article {
    padding: var(--space-3xl) 0;
}

.article__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    align-items: start;
}

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

.article__header {
    margin-bottom: var(--space-xl);
}

.article__header time {
    display: block;
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

.article__header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.article__image {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.article__image img {
    width: 100%;
    height: auto;
}

.article__content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.article__content p {
    margin-bottom: var(--space-lg);
}

.article__content h2,
.article__content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.article__content ul,
.article__content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-lg);
}

.article__content li {
    margin-bottom: var(--space-sm);
}

.article__footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: var(--space-sm);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff !important;
    transition: var(--transition);
}

.share-btn--facebook {
    background: #1558b0; /* WCAG AA - darkened Facebook blue */
}

.share-btn--facebook:hover {
    background: #0d6efd;
    color: #ffffff !important;
}

.share-btn--email {
    background: var(--gray-600);
}

.share-btn--email:hover {
    background: var(--gray-700);
    color: #ffffff !important;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.pagination__link {
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary);
    color: #ffffff !important;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.pagination__link:hover {
    background: var(--primary-dark);
    color: #ffffff !important;
}

.pagination__info {
    color: var(--gray-500);
}

/* ============================================
   INFO CARDS (Meetings, etc.)
   ============================================ */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.info-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    color: var(--primary-dark);
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card li strong {
    color: var(--gray-800);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ============================================
   UTILITIES
   ============================================ */

.no-content {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--gray-500);
    font-style: italic;
}

.read-more {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.read-more:hover {
    color: var(--accent);
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav,
    .quick-links,
    .alerts {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-dark);
    color: #ffffff !important;
    border-radius: var(--radius);
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: var(--space-md);
}

/* Modern Table Styles */
.table-wrapper {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.modern-table thead th {
    color: var(--white);
    font-weight: 600;
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}

.modern-table tbody tr:hover {
    background: var(--gray-50);
}

.modern-table tbody tr:last-child {
    border-bottom: none;
}

.modern-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.table-date {
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.table-title {
    color: var(--gray-800);
    font-weight: 500;
}

.table-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.table-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.table-link--agenda {
    background: var(--accent-decorative);
    color: var(--primary-dark);
}

.table-link--agenda:hover {
    background: var(--accent-dark);
}

.table-link--minutes {
    background: var(--gray-200);
    color: var(--gray-700);
}

.table-link--minutes:hover {
    background: var(--gray-300);
}

.table-link--video {
    background: var(--primary);
    color: var(--white);
}

.table-link--video:hover {
    background: var(--primary-dark);
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-wrapper {
        border-radius: 8px;
    }
    
    .modern-table thead {
        display: none;
    }
    
    .modern-table tbody tr {
        display: block;
        padding: 1rem;
        margin-bottom: 0.5rem;
        border: 1px solid var(--gray-200);
        border-radius: 8px;
    }
    
    .modern-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .modern-table td:last-child {
        border-bottom: none;
    }
    
    .modern-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-600);
        font-size: 0.8rem;
        text-transform: uppercase;
    }
}

/* Community Page */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.community-card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-xl);
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.community-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.community-card__icon svg {
    stroke: var(--white);
}

.community-card h3 {
    color: var(--gray-900);
    font-size: 1.25rem;
    margin: 0 0 var(--space-sm) 0;
}

.community-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.partner-card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-lg);
    text-decoration: none;
    border: 2px solid var(--gray-100);
    transition: all 0.2s;
    text-align: center;
}

.partner-card:hover {
    border-color: var(--accent-decorative);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.partner-card__icon {
    width: 80px;
    height: 80px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.partner-card__icon svg {
    stroke: var(--primary);
}

.partner-card h4 {
    color: var(--gray-900);
    font-size: 1.1rem;
    margin: 0 0 var(--space-xs) 0;
}

.partner-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0 0 var(--space-sm) 0;
}

.partner-card__link {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.partner-card:hover .partner-card__link {
    color: var(--primary);
}

/* =============================================
   MODERN NAVBAR STYLES
   ============================================= */

.header-modern {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-modern.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-modern__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 2rem;
}

/* Logo */
.header-modern__logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header-modern__logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-modern__logo:hover img {
    transform: scale(1.05);
}

.header-modern__logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.header-modern__logo-text {
    display: flex;
    flex-direction: column;
}

.header-modern__logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.header-modern__logo-tagline {
    font-size: 0.7rem;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Navigation */
.nav-modern {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-modern__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-modern__link:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.nav-modern__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-decorative);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-modern__link:hover::after {
    width: calc(100% - 2rem);
}

.nav-modern__arrow {
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.nav-modern__link:hover .nav-modern__arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown */
.nav-modern__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 100;
}

.nav-modern__link:hover .nav-modern__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-modern__dropdown a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.nav-modern__dropdown a:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 1.25rem;
}

/* Featured first item in Community menu — animated gradient with pulsing glow */
.nav-modern__dropdown--community a:first-child {
    background: linear-gradient(
        110deg,
        var(--primary) 0%,
        var(--primary-dark) 25%,
        var(--accent) 50%,
        var(--primary-dark) 75%,
        var(--primary) 100%
    );
    background-size: 300% 100%;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 8px;
    margin-bottom: 0.65rem;
    padding: 0.75rem 1rem;
    position: relative;
    overflow: hidden;
    animation: events-shimmer 6s ease-in-out infinite, events-glow 2.6s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5);
}
.nav-modern__dropdown--community a:first-child::before {
    content: "✨";
    margin-right: 0.5rem;
    font-size: 0.95rem;
    display: inline-block;
    animation: events-sparkle 2s ease-in-out infinite;
}
.nav-modern__dropdown--community a:first-child::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: -0.4rem;
    height: 1px;
    background: var(--gray-200);
}
.nav-modern__dropdown--community a:first-child:hover {
    color: #fff !important;
    padding-left: 1.25rem;
    transform: translateY(-1px);
    transition: transform 0.2s ease, padding-left 0.15s ease;
}
@keyframes events-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes events-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.45); }
    50%      { box-shadow: 0 0 14px 2px rgba(201, 162, 39, 0.55); }
}
@keyframes events-sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
    50%      { transform: scale(1.25) rotate(15deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .nav-modern__dropdown--community a:first-child,
    .nav-modern__dropdown--community a:first-child::before {
        animation: none !important;
    }
}

/* Actions */
.header-modern__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-modern__icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--gray-100);
    border-radius: 10px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-modern__icon-btn:hover {
    background: var(--gray-200);
    color: var(--primary);
    transform: scale(1.05);
}

/* CTA Button */
.header-modern__cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(201, 162, 39, 0.3);
}

.header-modern__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
}

.header-modern__cta svg {
    transition: transform 0.2s ease;
}

.header-modern__cta:hover svg {
    transform: translateX(3px);
}

/* Waffle Menu */
.waffle-menu {
    position: relative;
}

.waffle-menu__dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.25s ease;
    z-index: 200;
}

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

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

.waffle-menu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.waffle-menu__item:hover {
    background: var(--gray-50);
    transform: scale(1.05);
}

.waffle-menu__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.waffle-menu__item:hover .waffle-menu__icon {
    transform: scale(1.1);
}

.waffle-menu__item span {
    font-size: 0.7rem;
    color: var(--gray-600);
    font-weight: 500;
    text-align: center;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    padding: 0;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

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

.search-overlay__inner {
    width: 90%;
    max-width: 600px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-overlay__form {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.search-overlay__input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: white;
    font-size: 1.1rem;
    color: #1e293b;
    outline: none;
    border-radius: 12px 0 0 12px;
}

.search-overlay__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-overlay__btn {
    padding: 1rem 1.5rem;
    border: none;
    background: var(--accent-decorative);
    color: var(--primary-dark);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-overlay__btn:hover {
    background: var(--accent-dark);
}

.search-overlay__close {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-overlay__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Mobile Toggle */
.header-modern__mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: none;
    background: var(--gray-100);
    border-radius: 10px;
    cursor: pointer;
}

.header-modern__mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header-modern__mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header-modern__mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.header-modern__mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .nav-modern {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: white;
        padding: 1.5rem;
        gap: 0.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        align-items: stretch;
    }
    
    .nav-modern.active {
        transform: translateX(0);
    }
    
    .nav-modern__link {
        padding: 1rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-modern__link::after {
        display: none;
    }
    
    .nav-modern__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-modern__link.expanded .nav-modern__dropdown {
        max-height: 500px;
    }
    
    .header-modern__mobile-toggle {
        display: flex;
    }
    
    .header-modern__cta {
        display: none;
    }
}

@media (max-width: 640px) {
    .header-modern__logo-text {
        display: none;
    }
    
    .waffle-menu__dropdown {
    right: 0 !important;
        width: 240px;
        right: -50px;
    }
}

/* Fix for nav items with dropdowns */
.nav-modern__item {
    position: relative;
}

.nav-modern__item:hover .nav-modern__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-modern__item .nav-modern__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-decorative);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-modern__item:hover .nav-modern__link::after {
    width: calc(100% - 2rem);
}

.nav-modern__item:hover .nav-modern__arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Enhanced Logo Styles */
.header-modern__logo {
    position: relative;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.header-modern__logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.05) 0%, rgba(201, 162, 39, 0.1) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-modern__logo:hover::before {
    opacity: 1;
}

.header-modern__logo img {
    height: 60px;
    filter: drop-shadow(0 4px 12px rgba(30, 58, 95, 0.2));
}

.header-modern__logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: -0.02em;
}

.header-modern__logo-tagline {
    font-size: 0.75rem;
    background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.header-modern__logo:hover img {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 6px 16px rgba(30, 58, 95, 0.3));
}

.header-modern__logo:hover .header-modern__logo-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Logo icon fallback enhanced */
.header-modern__logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 14px;
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
    transition: all 0.3s ease;
}

.header-modern__logo:hover .header-modern__logo-icon {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

/* BIGGER, BOLDER Logo Styles */
.header-modern__logo img {
    height: 70px !important;
}

.header-modern__logo-text {
    padding-left: 0.25rem;
}

.header-modern__logo-title {
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.header-modern__logo-tagline {
    font-size: 0.8rem !important;
    margin-top: 0.2rem;
    letter-spacing: 2px;
    position: relative;
    padding-left: 0;
}

/* Gold accent bar under logo text */
.header-modern__logo-text::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    margin-top: 0.4rem;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.header-modern__logo:hover .header-modern__logo-text::after {
    width: 100%;
}

/* Glowing effect on hover */
.header-modern__logo:hover img {
    filter: drop-shadow(0 0 20px rgba(201, 162, 39, 0.5)) drop-shadow(0 4px 12px rgba(30, 58, 95, 0.3));
}

/* Subtle pulse animation on logo */
@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 4px 12px rgba(30, 58, 95, 0.2)); }
    50% { filter: drop-shadow(0 4px 20px rgba(201, 162, 39, 0.3)); }
}

.header-modern__logo img {
    animation: logoPulse 3s ease-in-out infinite;
}

.header-modern__logo:hover img {
    animation: none;
}

/* =============================================
   NEW COLOR SCHEME - Knight Logo Theme
   ============================================= */
:root {
    /* Primary - Deep Navy Blue */
    --primary: #1a3a5c;
    --primary-dark: #0f2744;
    --primary-light: #2d5a8a;
    
    /* Accent - Rich Gold/Bronze */
    --accent: #8B6914; /* Darkened for WCAG AA contrast */
    --accent-dark: #7a5c00; /* WCAG AA - darkened from #b8860b */
    
    /* Secondary - Forest Green */
    --secondary: #2d5a3d;
    --secondary-dark: #1e3d2a;
    --secondary-light: #3d7a52;
    --accent-light: #f0c75e;
    
    /* Secondary - Forest Green */
    --secondary: #2d5a3d;
    --secondary-dark: #1e3d2a;
    --secondary-light: #3d7a52;
    
    /* Updated Grays with warm tint */
    --gray-50: #faf9f7;
    --gray-100: #f3f1ed;
    --gray-200: #e8e4dc;
    --gray-300: #d4cfc3;
}

/* Header with new colors */
.header-modern {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,249,247,0.95) 100%);
    border-bottom: 3px solid var(--accent);
}

/* Navigation hover with gold accent */
.nav-modern__link:hover {
    color: var(--accent-dark);
}

.nav-modern__link::after,
.nav-modern__item .nav-modern__link::after {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

/* Dropdown with subtle green accent */
.nav-modern__dropdown {
    border-top: 3px solid var(--accent);
}

.nav-modern__dropdown a:hover {
    background: linear-gradient(90deg, rgba(45, 90, 61, 0.08), transparent);
    color: var(--secondary-dark);
    border-left: 3px solid var(--secondary);
    padding-left: calc(1.25rem - 3px);
}

/* CTA Button - Gold gradient */
.header-modern__cta {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(212, 168, 75, 0.4);
}

.header-modern__cta:hover {
    box-shadow: 0 6px 25px rgba(212, 168, 75, 0.5);
}

/* Icon buttons */
.header-modern__icon-btn:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
}

/* Waffle menu icons with new scheme */
.waffle-menu__dropdown {
    right: 0 !important;
    border-top: 3px solid var(--accent);
}

/* Hero section updates */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero__badge {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
}

/* Buttons */
.btn--primary {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: var(--primary-dark);
    border: none;
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 4px 20px rgba(212, 168, 75, 0.4);
}

.btn--outline {
    border-color: var(--accent-decorative);
    color: var(--accent);
}

.btn--outline:hover {
    background: var(--accent-decorative);
    color: var(--primary-dark);
}

/* Quick Links with green accent */
.quick-links {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.quick-links__item:hover {
    background: var(--secondary);
}

.quick-links__icon {
    color: var(--accent);
}

/* Stats section */
.stats {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
}

.stats__number {
    color: var(--accent-light);
}

/* Department cards */
.department-card__header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* Meeting table */
.modern-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.table-link--agenda {
    background: var(--accent-decorative);
    color: var(--primary-dark);
}

.table-link--video {
    background: var(--secondary);
    color: white;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Page headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

/* Logo enhanced for new theme */
.header-modern__logo-title {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.header-modern__logo-tagline {
    background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-dark) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.header-modern__logo-text::after {
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
}

/* Card accents */
.community-card:hover {
    border-color: var(--accent-decorative);
}

.community-card__icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
}

.partner-card:hover {
    border-color: var(--accent-decorative);
}

/* News cards */
.news-card--featured:hover {
    border-color: var(--accent-decorative);
}

/* Animated logo pulse with gold glow */
@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 4px 12px rgba(30, 58, 95, 0.2)); }
    50% { filter: drop-shadow(0 4px 20px rgba(212, 168, 75, 0.4)); }
}

/* Alert banner colors */
.alert--info {
    background: var(--primary-light);
    border-color: var(--primary);
}

.alert--success {
    background: var(--secondary-light);
    border-color: var(--secondary);
}

.alert--warning {
    background: var(--accent-light);
    border-color: var(--accent-decorative);
    color: var(--primary-dark);
}

/* Fix Pay Online button */
.header-modern__cta {
    white-space: nowrap;
    padding: 0.625rem 1rem;
}

.header-modern__cta span {
    white-space: nowrap;
}

/* Footer Grid Fix */
.footer {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: rgba(255,255,255,0.9);
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__brand {
    padding-right: 2rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer__logo img {
    height: 60px;
    width: auto;
}

.footer__logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer__brand > p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
}

.footer__social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.2s ease;
}

.footer__social a:hover {
    background: var(--accent-decorative);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.footer__column h4 {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 0.625rem;
}

.footer__links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.footer__links a:hover {
    color: var(--accent);
    padding-left: 0.25rem;
}

.footer__contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer__contact svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--accent);
}

.footer__contact a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__contact a:hover {
    color: var(--accent);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin: 0;
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
}

.footer__legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer__legal a:hover {
    color: var(--accent);
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer__brand {
        grid-column: span 2;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__brand {
        grid-column: span 1;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Payments Page */
.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: var(--accent-decorative);
}

.payment-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.payment-card:hover .payment-card__icon {
    transform: scale(1.1);
}

.payment-card__content {
    flex: 1;
}

.payment-card__content h3 {
    color: var(--gray-900);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.payment-card__content p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.payment-card__arrow {
    color: var(--gray-400);
    transition: all 0.2s ease;
}

.payment-card:hover .payment-card__arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.payments-info {
    max-width: 600px;
    margin: 0 auto;
}

.payments-info__card {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.payments-info__card h3 {
    color: var(--primary);
    margin: 0 0 1rem;
}

.payments-info__card p {
    color: var(--gray-600);
    margin: 0.5rem 0;
}

.payments-info__card a {
    color: var(--accent-dark);
    font-weight: 500;
}

.payments-info__card a:hover {
    color: var(--primary);
}

/* Payments Page Redesign */
.payments-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.payments-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.payment-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-200);
    transition: all 0.3s ease;
}

.payment-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: transparent;
}

.payment-tile:hover::before {
    background: var(--accent-decorative);
}

.payment-tile__icon-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.payment-tile:hover .payment-tile__icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.payment-tile h3 {
    color: var(--gray-900);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.payment-tile p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.payment-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(212, 168, 75, 0.1);
    transition: all 0.2s ease;
}

.payment-tile:hover .payment-tile__cta {
    background: var(--accent-decorative);
    color: var(--primary-dark);
}

.payment-tile:hover .payment-tile__cta svg {
    transform: translateX(3px);
}

.payment-tile__cta svg {
    transition: transform 0.2s ease;
}

/* Help section */
.payments-help {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.payments-help__icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.payments-help__content h4 {
    color: var(--gray-900);
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.payments-help__content p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
}

.payments-help__content a {
    color: var(--accent-dark);
    font-weight: 500;
}

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

@media (max-width: 600px) {
    .payments-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .payment-tile {
        padding: 2rem 1.5rem;
    }
    
    .payments-help {
        flex-direction: column;
        text-align: center;
    }
}

/* Vehicle Stickers Page */
.stickers-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
}

.stickers-hero h2 {
    font-size: 2rem;
    margin: 0 0 1rem;
    color: var(--accent-light);
}

.stickers-hero > .stickers-hero__content > p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.stickers-hero__alert {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.stickers-hero .btn--lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.stickers-hero__alt {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Pricing Table */
.stickers-pricing {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
}

.stickers-pricing h3 {
    text-align: center;
    color: var(--primary-dark);
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
}

.stickers-table-wrap {
    overflow-x: auto;
}

.stickers-table {
    width: 100%;
    border-collapse: collapse;
}

.stickers-table thead {
    background: var(--primary);
    color: white;
}

.stickers-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stickers-table th:first-child {
    border-radius: 10px 0 0 0;
}

.stickers-table th:last-child {
    border-radius: 0 10px 0 0;
}

.stickers-table th:not(:first-child) {
    text-align: center;
    width: 140px;
}

.stickers-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
    color: var(--gray-700);
}

.stickers-table td:not(:first-child) {
    text-align: center;
}

.stickers-table tbody tr:hover {
    background: var(--gray-50);
}

.stickers-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}

.stickers-table tbody tr:last-child td:last-child {
    border-radius: 0 0 10px 0;
}

.price {
    display: inline-block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.price--late {
    color: #dc2626;
}

.price--free {
    color: #166534; /* WCAG AA */
}

/* Info Cards */
.stickers-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stickers-info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.stickers-info-card:hover {
    border-color: var(--accent-decorative);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stickers-info-card__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.stickers-info-card h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.stickers-info-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.stickers-info-card a {
    color: var(--accent-dark);
    font-weight: 500;
}

@media (max-width: 900px) {
    .stickers-info-grid {
        grid-template-columns: 1fr;
    }
    
    .stickers-hero {
        padding: 2rem 1.5rem;
    }
    
    .stickers-hero h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .stickers-table th,
    .stickers-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .stickers-table th:not(:first-child),
    .stickers-table td:not(:first-child) {
        width: 80px;
    }
}

/* Calendar Page */
.calendar-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
}

.calendar-header__info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-header__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.calendar-header__info h2 {
    margin: 0 0 0.25rem;
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.calendar-header__info p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.calendar-header__actions {
    display: flex;
    gap: 0.75rem;
}

/* Calendar Embed Wrapper */
.calendar-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    min-height: 700px;
    overflow: hidden;
}

.calendar-embed {
    min-height: 600px;
}

/* Loading State */
.calendar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.calendar-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--accent-decorative);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Override CalendarWiz styles */
.calendar-embed iframe {
    border: none !important;
    width: 100% !important;
}

/* Legend */
.calendar-legend {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
}

.calendar-legend h4 {
    margin: 0 0 1rem;
    color: var(--primary-dark);
    font-size: 1rem;
}

.calendar-legend__items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.calendar-legend__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.calendar-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

/* CTA */
.calendar-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    color: white;
}

.calendar-cta__content h3 {
    margin: 0 0 0.5rem;
    color: var(--accent-light);
}

.calendar-cta__content p {
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        text-align: center;
    }
    
    .calendar-header__info {
        flex-direction: column;
    }
    
    .calendar-legend__items {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .calendar-cta {
        flex-direction: column;
        text-align: center;
    }
}

/* Employment Page */
.employment-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.employment-intro {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    color: white;
}

.employment-intro__icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.employment-intro__content h2 {
    margin: 0 0 0.5rem;
    color: var(--accent-light);
}

.employment-intro__content p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

/* Jobs List */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.job-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.job-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-decorative);
}

.job-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.job-card__header h3 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.job-card__dept {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.job-card__meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.job-card__type {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.job-card__salary {
    background: var(--accent-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.job-card__desc {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.job-card__reqs {
    background: var(--gray-50);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.job-card__reqs h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.job-card__reqs p, .job-card__reqs ul {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.job-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.job-card__deadline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* No Jobs State */
.no-jobs {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 20px;
    border: 2px dashed var(--gray-300);
    margin-bottom: 3rem;
}

.no-jobs__icon {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.no-jobs h3 {
    color: var(--primary-dark);
    margin: 0 0 0.5rem;
}

.no-jobs p {
    color: var(--gray-600);
    margin: 0 0 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Benefits Section */
.employment-benefits {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.employment-benefits h3 {
    text-align: center;
    color: var(--primary-dark);
    margin: 0 0 1.5rem;
}

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

.benefit-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.benefit-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.benefit-card h4 {
    color: var(--primary-dark);
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.benefit-card p {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .employment-intro {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .job-card__header {
        flex-direction: column;
    }
    
    .job-card__footer {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Alerts Page */
.alerts-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.alerts-intro {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    color: white;
}

.alerts-intro__icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alerts-intro__content h2 {
    margin: 0 0 0.5rem;
    color: #fecaca;
}

.alerts-intro__content p {
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
}

.alerts-widget-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
    min-height: 400px;
}

.alerts-widget {
    min-height: 350px;
}

.alerts-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.alerts-info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.alerts-info-card:hover {
    border-color: var(--accent-decorative);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.alerts-info-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.alerts-info-card h4 {
    color: var(--primary-dark);
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.alerts-info-card p {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.alerts-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--primary);
    border-radius: 16px;
    color: white;
}

.alerts-cta__content h3 {
    margin: 0 0 0.5rem;
    color: var(--accent-light);
}

.alerts-cta__content p {
    margin: 0;
    opacity: 0.9;
}

.alerts-cta__links {
    display: flex;
    gap: 0.75rem;
}

.alerts-cta .btn--outline {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.alerts-cta .btn--outline:hover {
    background: white;
    color: var(--primary-dark);
}

@media (max-width: 900px) {
    .alerts-info-grid {
        grid-template-columns: 1fr;
    }
    
    .alerts-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .alerts-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .alerts-cta__links {
        flex-direction: column;
        width: 100%;
    }
}

/* Alerts Page - Modern Layout */
.alerts-hero {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

.alerts-hero h2 {
    color: #fecaca;
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
}

.alerts-hero p {
    margin: 0 auto;
    max-width: 700px;
    opacity: 0.95;
    line-height: 1.6;
}

.alerts-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}

.alerts-widget-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
}

.alerts-widget-card h3 {
    margin: 0 0 1rem;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.alerts-widget-embed {
    background: var(--gray-50);
    border-radius: 12px;
    min-height: 500px;
    overflow: hidden;
}

.alerts-widget-embed iframe {
    display: block;
}

/* Sidebar Cards */
.alerts-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-type-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.alert-type-card:hover {
    border-color: var(--accent-decorative);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateX(-4px);
}

.alert-type-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-type-card__content h4 {
    margin: 0 0 0.25rem;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.alert-type-card__content p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.8rem;
}

/* Resources Box */
.alerts-resources {
    background: var(--white);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    margin-top: 0.5rem;
}

.alerts-resources h4 {
    margin: 0 0 1rem;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.resource-link:last-child {
    margin-bottom: 0;
}

.resource-link:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.resource-link--emergency {
    background: #fef2f2;
    color: #991b1b; /* WCAG AA */
    font-weight: 600;
}

.resource-link--emergency:hover {
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 900px) {
    .alerts-grid {
        grid-template-columns: 1fr;
    }
    
    .alerts-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .alerts-resources {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .alerts-sidebar {
        grid-template-columns: 1fr;
    }
    
    .alerts-resources {
        grid-column: span 1;
    }
    
    .alerts-hero {
        padding: 1.5rem;
    }
    
    .alerts-hero h2 {
        font-size: 1.4rem;
    }
}

/* Department Card Header Fix */
.department-card__header h2,
.department-card__header h3,
.department-card .department-card__header h2,
.department-card .department-card__header h3 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* Welcome Media Section */
.welcome__media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome__media img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.welcome__video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.welcome__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Hide empty media container */
.welcome__media:empty {
    display: none;
}

/* ==========================================
   3D HERO EFFECTS
   ========================================== */

/* Animated gradient orbs */
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: heroOrbFloat 20s ease-in-out infinite;
    pointer-events: none;
}

.hero__orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(42, 74, 108, 0.6) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.4) 0%, transparent 70%);
    bottom: 20%;
    right: 20%;
    animation-delay: -5s;
    opacity: 0.3;
}

@keyframes heroOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* 3D Geometric elements */
.hero__geo {
    position: absolute;
    opacity: 0.15;
    animation: heroGeoRotate 30s linear infinite;
    pointer-events: none;
}

.hero__geo--1 {
    width: 200px;
    height: 200px;
    border: 2px solid var(--gold, #d4a84b);
    top: 15%;
    right: 15%;
    transform: rotateX(45deg) rotateY(45deg);
}

.hero__geo--2 {
    width: 100px;
    height: 100px;
    border: 2px solid #fff;
    bottom: 25%;
    right: 25%;
    transform: rotateX(-30deg) rotateY(60deg);
    animation-delay: -15s;
    animation-direction: reverse;
}

.hero__geo--3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.4), transparent);
    top: 30%;
    right: 30%;
    transform: rotateX(60deg) rotateY(-30deg);
    animation-delay: -7s;
}

@keyframes heroGeoRotate {
    0% { transform: rotateX(45deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(45deg) rotateY(360deg) rotateZ(360deg); }
}

/* Particles */
.hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero__particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold, #d4a84b);
    border-radius: 50%;
    opacity: 0.4;
    animation: heroParticleFloat 15s linear infinite;
}

@keyframes heroParticleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Watermark */
.hero__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%) rotateX(10deg) rotateY(-5deg);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(2rem, 6vw, 4.5rem);
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(212, 168, 75, 0.15), rgba(255,255,255,0.08));
    -webkit-background-clip: text;
    background-clip: text;
    z-index: 5;
    pointer-events: none;
    animation: heroWatermarkShift 8s ease-in-out infinite;
}

@keyframes heroWatermarkShift {
    0%, 100% { transform: translate(-30%, -50%) rotateX(10deg) rotateY(-5deg); }
    50% { transform: translate(-32%, -48%) rotateX(8deg) rotateY(-3deg); }
}

/* Enhanced badge with float */
.hero__badge {
    animation: heroBadgeFloat 4s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(212, 168, 75, 0.4);
}

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

/* Enhanced title */
.hero__title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 60px rgba(212, 168, 75, 0.15);
    animation: heroTitleReveal 1s ease-out forwards;
}

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

/* Parallax layer base */
.parallax-layer {
    transition: transform 0.1s ease-out;
}

/* 3D Quick Link Cards */
.quick-link--3d {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.quick-link--3d:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 30px rgba(212, 168, 75, 0.1);
}

.quick-link--3d .quick-link__icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(20px);
}

.quick-link--3d:hover .quick-link__icon {
    transform: translateZ(40px) scale(1.1);
}

/* Hide watermark on mobile */
@media (max-width: 768px) {
    .hero__watermark {
        display: none;
    }
    .hero__geo {
        display: none;
    }
}

/* Z-INDEX FIXES FOR 3D EFFECTS */
.hero__background { z-index: 1; }
.hero::before { z-index: 2; }
.hero__orb { z-index: 3; }
.hero__geo { z-index: 3; }
.hero__particles { z-index: 4; }
.hero__watermark { z-index: 5; }
.hero__content { z-index: 10; position: relative; }
.hero .container { position: relative; z-index: 10; }

/* 3D HERO CONTENT POP */
.hero {
    perspective: 1000px;
}

.hero__content {
    transform: translateZ(60px);
    transform-style: preserve-3d;
    background: rgba(10, 22, 40, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(212, 168, 75, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 600px;
}

.hero__title {
    transform: translateZ(30px);
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(212, 168, 75, 0.2);
}

.hero__badge {
    transform: translateZ(40px);
    box-shadow: 
        0 10px 30px rgba(212, 168, 75, 0.5),
        0 5px 0 rgba(180, 140, 50, 1);
}

.hero__subtitle {
    transform: translateZ(20px);
}

.hero__actions {
    transform: translateZ(50px);
}

.hero__actions .btn--primary {
    box-shadow: 
        0 8px 30px rgba(212, 168, 75, 0.4),
        0 4px 0 0 #b8923d;
}

.hero__actions .btn--primary:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(212, 168, 75, 0.5),
        0 6px 0 0 #b8923d;
}

.hero__actions .btn--outline {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-width: 2px;
}

.hero__actions .btn--outline:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

/* 3D QUICK LINKS BAR */
.quick-links {
    perspective: 1000px;
    background: linear-gradient(135deg, #722F37 0%, #5a252c 50%, #4a1f24 100%);
    padding: 2.5rem 0;
    margin-top: -30px;
    position: relative;
    z-index: 20;
    box-shadow: 
        0 -10px 40px rgba(0, 0, 0, 0.3),
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.quick-links__grid {
    transform: translateZ(40px);
    transform-style: preserve-3d;
}

.quick-link--3d {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 16px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 5px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateZ(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link--3d:hover {
    transform: translateY(-12px) translateZ(40px) !important;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 8px 0 rgba(0, 0, 0, 0.15),
        0 0 30px rgba(212, 168, 75, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.quick-link--3d .quick-link__icon {
    box-shadow: 
        0 8px 20px rgba(26, 58, 92, 0.4),
        0 3px 0 rgba(15, 40, 65, 1);
}

.quick-link--3d:hover .quick-link__icon {
    transform: scale(1.1) translateZ(30px);
    box-shadow: 
        0 12px 25px rgba(26, 58, 92, 0.5),
        0 4px 0 rgba(15, 40, 65, 1);
}

/* ==========================================
   DRAMATIC GLASSMORPHISM + LAYERED DEPTH
   ========================================== */

/* Hero layered background panels */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.2), rgba(212, 168, 75, 0.05));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: rotate(15deg) translateZ(20px);
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero__content {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 3.5rem !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 120px rgba(212, 168, 75, 0.15) !important;
    transform: translateZ(80px) !important;
    position: relative;
    overflow: visible;
}

/* Floating accent shapes behind content */
.hero__content::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.4), rgba(212, 168, 75, 0.1));
    border-radius: 24px;
    transform: rotate(-15deg);
    z-index: -1;
    filter: blur(2px);
    border: 1px solid rgba(212, 168, 75, 0.3);
}

.hero__content::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    transform: rotate(20deg);
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced badge - floating pill */
.hero__badge {
    background: linear-gradient(135deg, #d4a84b, #f0c866) !important;
    box-shadow: 
        0 15px 40px rgba(212, 168, 75, 0.5),
        0 5px 0 #b8923d,
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transform: translateZ(60px) !important;
    animation: badgeFloat 3s ease-in-out infinite !important;
}

/* Title with stronger depth */
.hero__title {
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(212, 168, 75, 0.3) !important;
    transform: translateZ(40px) !important;
}

/* Buttons with heavy 3D */
.hero__actions .btn--primary {
    background: linear-gradient(135deg, #d4a84b, #e8c577) !important;
    box-shadow: 
        0 15px 40px rgba(212, 168, 75, 0.5),
        0 6px 0 #a07a35,
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
    transform: translateZ(50px);
    border: none !important;
}

.hero__actions .btn--primary:hover {
    transform: translateY(-6px) translateZ(60px) !important;
    box-shadow: 
        0 25px 60px rgba(212, 168, 75, 0.6),
        0 8px 0 #a07a35,
        inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
}

.hero__actions .btn--outline {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 6px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateZ(50px);
}

.hero__actions .btn--outline:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-6px) translateZ(60px) !important;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 8px 0 rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================
   QUICK LINKS - FLOATING GLASS CARDS
   ========================================== */

.quick-links {
    background: linear-gradient(135deg, #6B2D35 0%, #4a1f24 100%) !important;
    padding: 4rem 0 !important;
    margin-top: -50px !important;
    position: relative;
    z-index: 30;
    box-shadow: 
        0 -20px 60px rgba(0, 0, 0, 0.4),
        0 30px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    overflow: visible;
}

/* Glass overlay on maroon */
.quick-links::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Decorative floating shapes */
.quick-links::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(212, 168, 75, 0.15);
    border-radius: 30px;
    transform: rotate(-10deg);
    filter: blur(40px);
    pointer-events: none;
}

.quick-links__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem !important;
    position: relative;
    z-index: 5;
}

.quick-link--3d {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px !important;
    padding: 2rem 1.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 8px 0 rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(0) translateZ(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

/* Glass shine effect */
.quick-link--3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.quick-link--3d:hover::before {
    left: 100%;
}

.quick-link--3d:hover {
    transform: translateY(-20px) scale(1.05) !important;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 12px 0 rgba(0, 0, 0, 0.1),
        0 0 40px rgba(212, 168, 75, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 1) !important;
}

.quick-link--3d .quick-link__icon {
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #1a3a5c, #2a5a8c) !important;
    border-radius: 18px !important;
    box-shadow: 
        0 12px 30px rgba(26, 58, 92, 0.5),
        0 4px 0 #0f2540,
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.quick-link--3d:hover .quick-link__icon {
    transform: translateY(-8px) scale(1.1) rotate(-5deg) !important;
    box-shadow: 
        0 20px 40px rgba(26, 58, 92, 0.6),
        0 6px 0 #0f2540,
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.quick-link--3d .quick-link__title {
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    color: #1a3a5c !important;
    margin-top: 1rem !important;
}

/* Responsive fix */
@media (max-width: 900px) {
    .quick-links__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero::after {
        display: none;
    }
}

@media (max-width: 500px) {
    .quick-links__grid {
        grid-template-columns: 1fr;
    }
}

/* QUICK LINKS - SHIFT DOWN & SMALLER */
.quick-links {
    margin-top: 0 !important;
    padding: 2.5rem 0 !important;
}

.quick-links__grid {
    gap: 1.5rem !important;
}

.quick-link--3d {
    padding: 1.5rem 1rem !important;
    border-radius: 16px !important;
}

.quick-link--3d .quick-link__icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
}

.quick-link--3d .quick-link__title {
    font-size: 1rem !important;
    margin-top: 0.75rem !important;
}

/* QUICK LINKS - BACK TO BLUE */
.quick-links {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2540 50%, #0a1a30 100%) !important;
}

.quick-links::after {
    background: rgba(212, 168, 75, 0.1) !important;
}

/* QUICK LINKS - SOFT GOLD GLASS */
.quick-links {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.7) 0%, rgba(180, 140, 70, 0.6) 50%, rgba(160, 120, 50, 0.7) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
}

.quick-links::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 60%) !important;
}

.quick-links::after {
    background: rgba(255, 255, 255, 0.15) !important;
    filter: blur(50px) !important;
}

/* QUICK LINKS - ROUNDED FLOATING BAR */
.quick-links {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2540 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    margin: -40px auto 0 !important;
    max-width: 1100px !important;
    border-radius: 24px !important;
    padding: 2rem !important;
    position: relative;
    z-index: 30;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.quick-links::before {
    border-radius: 24px !important;
}

.quick-links::after {
    display: none !important;
}

/* FORM STYLES */
.form h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    color: var(--primary);
}
.form h3:first-of-type { margin-top: 0; }
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.sidebar-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.sidebar-card ul {
    margin: 0;
    padding-left: 1.25rem;
}
.sidebar-card li {
    margin-bottom: 0.5rem;
}
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   DEPARTMENT PAGE - GLASS HEADER & POLISH
   ========================================== */

.dept-header {
    position: relative;
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--primary-dark, #0a1628) 0%, var(--primary, #1a3a5c) 50%, var(--primary-light, #2a4a6c) 100%);
    overflow: hidden;
}

.dept-header__bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.dept-header__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.dept-header__orb--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.5) 0%, transparent 70%);
    top: -100px;
    right: 10%;
}

.dept-header__orb--2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(42, 74, 108, 0.6) 0%, transparent 70%);
    bottom: -50px;
    left: 5%;
}

.dept-header__content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.dept-header__content .breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.dept-header__content .breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.dept-header__content .breadcrumb a:hover {
    color: #fff;
}

.dept-header__content .breadcrumb span {
    color: var(--gold, #d4a84b);
}

.dept-header__content h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.dept-header__content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Layout */
.dept-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
}

.dept-main {
    min-width: 0;
}

/* Featured Staff Card */
.dept-staff-featured {
    margin-bottom: 2rem;
}

.staff-card-featured {
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.staff-card-featured__photo {
    flex-shrink: 0;
}

.staff-card-featured__photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.staff-card-featured__placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.staff-card-featured__info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: var(--primary-dark, #0a1628);
}

.staff-card-featured__title {
    display: inline-block;
    color: var(--gold, #d4a84b);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.staff-card-featured__bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.staff-card-featured__contact {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.staff-card-featured__contact .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Content Card */
.dept-content-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.dept-content h3 {
    color: var(--primary, #1a3a5c);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.dept-content h3:first-child {
    margin-top: 0;
}

.dept-content ul {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

.dept-content ul li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.dept-content ul li:last-child {
    border-bottom: none;
}

.dept-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gold, #d4a84b);
    border-radius: 50%;
}

.dept-content ul li a {
    color: var(--primary, #1a3a5c);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.dept-content ul li a:hover {
    color: var(--gold, #d4a84b);
}

.dept-content p {
    line-height: 1.7;
    color: #444;
}

/* Sidebar */
.dept-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card--contact {
    background: linear-gradient(135deg, var(--primary, #1a3a5c), var(--primary-dark, #0a1628));
    color: #fff;
}

.sidebar-card--contact h3 {
    color: #fff;
}

.sidebar-card--contact a {
    color: var(--gold, #d4a84b);
}

.sidebar-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar-card__header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.sidebar-card__item {
    margin-bottom: 1rem;
}

.sidebar-card__item:last-child {
    margin-bottom: 0;
}

.sidebar-card__label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    border-bottom: 1px solid #e9ecef;
}

.sidebar-links li:last-child {
    border-bottom: none;
}

.sidebar-links li a {
    display: block;
    padding: 0.75rem 0;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-links li a:hover {
    color: var(--primary, #1a3a5c);
    padding-left: 0.5rem;
}

.sidebar-links li.active a {
    color: var(--gold, #d4a84b);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .dept-layout {
        grid-template-columns: 1fr;
    }
    
    .staff-card-featured {
        flex-direction: column;
        text-align: center;
    }
    
    .staff-card-featured__contact {
        justify-content: center;
    }
    
    .dept-header__content h1 {
        font-size: 2rem;
    }
}

/* ALERT STYLES */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.alert--info {
    background: #e8f4fd;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.alert--success {
    background: #ecfdf5;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.alert--warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.alert--error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* DEPARTMENT HEADER - ROUNDED GLASS BOX */
.dept-header {
    background: transparent !important;
    padding: 2rem 0 0 !important;
    overflow: visible !important;
}

.dept-header__bg {
    display: none !important;
}

.dept-header__orb {
    display: none !important;
}

.dept-header__content {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2540 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    max-width: 100% !important;
    border-radius: 24px !important;
    padding: 2.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.dept-header .container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Page header (used on other pages) - same style */
.page-header {
    background: transparent !important;
    padding: 2rem 0 0 !important;
}

.page-header .container {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2540 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
}

.page-header .breadcrumb {
    margin-bottom: 1rem;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.page-header .breadcrumb a:hover {
    color: #fff;
}

.page-header .breadcrumb span {
    color: var(--gold, #d4a84b);
}

/* WIDER HEADER BOX */
.dept-header .container {
    max-width: 1400px !important;
}

.dept-header__content {
    max-width: 100% !important;
}

.page-header .container {
    max-width: 1400px !important;
}

/* FORMS PAGE STYLES */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.forms-department-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.forms-department-card__header {
    background: linear-gradient(135deg, var(--primary, #1a3a5c), var(--primary-dark, #0f2540));
    color: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forms-department-card__header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.forms-count {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.forms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.forms-list li {
    border-bottom: 1px solid #f0f0f0;
}

.forms-list li:last-child {
    border-bottom: none;
}

.form-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.form-item:hover {
    background: #f8f9fa;
}

.form-item__icon {
    width: 44px;
    height: 44px;
    background: #fee2e2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    flex-shrink: 0;
}

.form-item__info {
    flex: 1;
}

.form-item__name {
    display: block;
    font-weight: 600;
    color: var(--primary, #1a3a5c);
}

.form-item__desc {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.form-item__download {
    color: #22c55e;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state svg {
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

/* Big Forms Button for Department Pages */
.dept-forms-button {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
    transition: all 0.3s;
}

.dept-forms-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
}

.dept-forms-button__icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dept-forms-button__text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.3rem;
}

.dept-forms-button__text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

@media (max-width: 500px) {
    .forms-grid {
        grid-template-columns: 1fr;
    }
}

/* Forms button should be outside content card */
.dept-content .dept-forms-button {
    margin: 0 0 1.5rem 0;
}

.dept-content-card {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.dept-content h3:first-of-type {
    margin-top: 0;
}

/* FORMS PAGE - READABLE HEADERS */
.forms-department-card__header {
    background: linear-gradient(135deg, var(--primary, #1a3a5c), var(--primary-dark, #0f2540)) !important;
    color: #fff !important;
}

.forms-department-card__header h2 {
    color: #fff !important;
    font-size: 1.25rem !important;
}

.forms-count {
    background: rgba(255,255,255,0.25) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* FIX DARK DEPT BUTTON TEXT */
.dept-forms-button h3,
.dept-forms-button p {
    color: #fff !important;
}

.dept-forms-button__text h3 {
    color: #fff !important;
}

.dept-forms-button__text p {
    color: rgba(255,255,255,0.9) !important;
}

/* FORM SUBMIT PAGE */
.form-submit-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.pdf-viewer-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.pdf-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.pdf-viewer-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.pdf-viewer-frame {
    height: 600px;
    background: #333;
}

.pdf-viewer-frame iframe {
    width: 100%;
    height: 100%;
}

.pdf-viewer-note {
    padding: 1rem 1.5rem;
    background: #fffbeb;
    border-top: 1px solid #fef3c7;
    font-size: 0.9rem;
    margin: 0;
}

.upload-form-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload__label {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s;
    background: #f9fafb;
}

.file-upload:hover .file-upload__label {
    border-color: var(--primary);
    background: #f0f7ff;
}

.file-upload__label svg {
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.file-upload__label span {
    display: block;
    font-weight: 600;
    color: #374151;
}

.file-upload__label small {
    display: block;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.file-upload__preview {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #ecfdf5;
    border-radius: 8px;
    color: #166534;
    font-size: 0.9rem;
}

/* Form list with actions */
.form-item-row {
    display: flex;
    align-items: center;
}

.form-item-row .form-item {
    flex: 1;
}

.form-item__actions {
    display: flex;
    gap: 0.5rem;
    padding-right: 1rem;
}

.form-item__actions .btn--sm {
    padding: 0.5rem;
}

@media (max-width: 900px) {
    .form-submit-layout {
        grid-template-columns: 1fr;
    }
    
    .pdf-viewer-frame {
        height: 400px;
    }
}

/* SUCCESS BUTTON */
.btn--success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
}

.btn--success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
}

.form-item__actions {
    display: flex;
    gap: 0.5rem;
    padding-right: 1rem;
    align-items: center;
}

.form-item__actions .btn--sm {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.form-item-row {
    display: flex;
    align-items: center;
}

.form-item-row .form-item {
    flex: 1;
}

/* ONLINE FORMS */
.form-page-layout {
    max-width: 700px;
    margin: 0 auto;
}

.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.online-form .form-group {
    margin-bottom: 1.5rem;
}

.online-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e3a5f;
}

.online-form input[type="text"],
.online-form input[type="email"],
.online-form input[type="tel"],
.online-form input[type="date"],
.online-form input[type="file"],
.online-form select,
.online-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.online-form input:focus,
.online-form select:focus,
.online-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.confirmation-card {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.confirmation-icon {
    margin-bottom: 1.5rem;
}

.confirmation-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.confirmation-details p {
    margin: 0.5rem 0;
}

.confirmation-actions {
    margin-top: 2rem;
}

/* FORMS LEGEND */
.forms-legend {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.legend-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.legend-icon--pdf {
    background: #fee2e2;
    color: #dc2626;
}

.legend-icon--online {
    background: #dcfce7;
    color: #16a34a;
}

/* FORM ITEMS */
.form-item--online {
    border-left: 3px solid #22c55e;
}

.form-item--pdf {
    border-left: 3px solid #ef4444;
}

.form-item__icon--online {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
    color: #16a34a !important;
}

.form-item__icon--pdf {
    background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
    color: #dc2626 !important;
}

.form-item__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #166534; /* WCAG AA */
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.form-item__arrow {
    color: #22c55e;
    transition: transform 0.2s;
}

.form-item--online:hover .form-item__arrow {
    transform: translateX(4px);
}

.form-item__download {
    color: #dc2626;
}

/* FORMS FILTER */
.forms-filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: #e8f4fd;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.forms-filter-bar .filter-label {
    margin-left: auto;
    color: #666;
}

.forms-dept-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.forms-dept-filter .filter-label {
    font-weight: 500;
    color: #666;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #475569;
    transition: all 0.2s;
    text-decoration: none;
}

.filter-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* SIDEBAR FORMS BUTTON */
.sidebar-forms-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.sidebar-forms-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    color: #fff;
}

.sidebar-forms-btn__icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-forms-btn__text {
    flex: 1;
}

.sidebar-forms-btn__text strong {
    display: block;
    font-size: 1rem;
}

.sidebar-forms-btn__text span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ACTIVE FILTER BUTTON */
.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

/* ========================================
   EMERGENCY ALERT MODAL
   ======================================== */

.alert-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.alert-modal.active {
    display: flex;
}

.alert-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.alert-modal__content {
    background: rgba(255, 255, 255, 0.98);
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.alert-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.alert-modal__close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.alert-modal__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.alert-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1e293b;
}

.alert-modal__message {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    text-align: center;
    margin-bottom: 1rem;
}

.alert-modal__time {
    font-size: 0.875rem;
    color: #64748b; /* WCAG AA */
    text-align: center;
}

/* Alert Types */
.alert-modal--danger .alert-modal__icon {
    background: #fef2f2;
    color: #dc2626;
}

.alert-modal--danger .alert-modal__content {
    background: rgba(255, 255, 255, 0.98);
    border-top: 4px solid #dc2626;
}

.alert-modal--warning .alert-modal__icon {
    background: #fffbeb;
    color: #f59e0b;
}

.alert-modal--warning .alert-modal__content {
    background: rgba(255, 255, 255, 0.98);
    border-top: 4px solid #f59e0b;
}

.alert-modal--info .alert-modal__icon {
    background: #eff6ff;
    color: #3b82f6;
}

.alert-modal--info .alert-modal__content {
    background: rgba(255, 255, 255, 0.98);
    border-top: 4px solid #3b82f6;
}

.alert-modal--default .alert-modal__icon {
    background: #f1f5f9;
    color: #64748b;
}

.alert-modal--default .alert-modal__content {
    background: rgba(255, 255, 255, 0.98);
    border-top: 4px solid #64748b;
}

/* ========================================
   ALERT BAR (Top Banner)
   ======================================== */

/* ========================================
   ALERT BAR (Top Banner) - Rounded Pill Style
   ======================================== */

.alert-bar {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%);
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 100;
    overflow: hidden;
}

.alert-bar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.alert-item {
    flex: 0 1 auto;
    max-width: 600px;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.alert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.alert-item__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.alert-item__text {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.alert-item__more {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
    font-weight: 600;
}

.alert-item:hover .alert-item__more {
    background: rgba(255,255,255,0.25);
    color: white;
    transform: scale(1.05);
}

/* Alert Type Colors */
.alert-item--danger,
.alert-item--red {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9) 0%, rgba(185, 28, 28, 0.95) 100%);
}

.alert-item--danger:hover,
.alert-item--red:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 1) 100%);
}

.alert-item--warning,
.alert-item--yellow {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.9) 0%, rgba(180, 83, 9, 0.95) 100%);
}

.alert-item--warning:hover,
.alert-item--yellow:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 1) 100%);
}

.alert-item--info,
.alert-item--blue {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.95) 100%);
}

.alert-item--info:hover,
.alert-item--blue:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 1) 100%);
}

.alert-item--default {
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.9) 0%, rgba(51, 65, 85, 0.95) 100%);
}

.alert-item--default:hover {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.95) 0%, rgba(71, 85, 105, 1) 100%);
}

.alert-item--boil_order {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.95) 0%, rgba(6, 182, 212, 0.9) 100%);
}

.alert-item--boil_order:hover {
    background: linear-gradient(135deg, rgba(14, 165, 198, 0.95) 0%, rgba(34, 211, 238, 0.95) 100%);
}

/* Alert Modal */
.alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.alert-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.alert-modal__content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.alert-modal__header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-modal__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.alert-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.5rem;
    line-height: 1;
}

.alert-modal__close:hover {
    color: #1e293b;
}

.alert-modal__body {
    padding: 1.5rem;
    color: #475569;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .alert-bar__inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .alert-item {
        max-width: 100%;
        border-radius: 12px;
    }
}
/* ========================================
   ALERT MODAL EXTRA INFO
   ======================================== */

.alert-modal__extra {
    margin-top: 1.5rem;
    text-align: left;
}

.alert-extra-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
    border-left: 4px solid #3b82f6;
}

.alert-extra-section--danger {
    background: #fef2f2;
    border-left-color: #dc2626;
}

.alert-extra-section--warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.alert-extra-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.alert-extra-section h4:not(:first-child) {
    margin-top: 1.25rem;
}

.alert-extra-section ul {
    margin: 0;
    padding-left: 1.25rem;
}

.alert-extra-section li {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.alert-extra-section li:last-child {
    margin-bottom: 0;
}

.alert-extra-section strong {
    color: #1e293b;
}

/* Fix dark text in page headers - ensure visibility */
.page-header h1,
.page-header h2,
.page-header h3,
.page-header p,
.page-header .breadcrumb,
.page-header .breadcrumb a,
.page-header .breadcrumb span,
.page-header * {
    color: #ffffff !important;
}
.page-header .breadcrumb a {
    opacity: 0.8;
}
.page-header .breadcrumb a:hover {
    opacity: 1;
}
.page-header .breadcrumb span {
    color: #fbbf24 !important;
}

/* Form hero text fix */
.form-hero h1 { color: #ffffff !important; }
.form-hero p { color: #e2e8f0 !important; }

/* ==========================================
   HOME BUTTON & HOW DO I MENU - NEW NAVBAR
   ========================================== */

/* Home Icon Button */
.header-modern__home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.header-modern__home-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

.header-modern__home-btn svg {
    stroke: white;
}

/* How Do I? Link Styling */
.nav-modern__link--howdoi {
    color: var(--accent-dark) !important;
    font-weight: 600 !important;
}

.nav-modern__link--howdoi:hover {
    color: var(--primary) !important;
}

/* How Do I? Dropdown - Wider */
.nav-modern__dropdown--howdoi {
    min-width: 240px;
    right: 0;
    left: auto;
}


/* ==========================================
   HOME BUTTON & HOW DO I MENU - NEW NAVBAR
   ========================================== */

/* Home Icon Button - Larger */
.header-modern__home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 1rem;
}

.header-modern__home-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

.header-modern__home-btn svg {
    stroke: white;
    width: 26px;
    height: 26px;
}

/* Bigger navbar with more spacing */
.header-modern__inner {
    padding: 1rem 0 !important;
    gap: 2.5rem !important;
}

/* Nav links - more spacing and larger */
.nav-modern {
    gap: 0.5rem !important;
}

.nav-modern__link {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem !important;
}

/* How Do I? Link Styling - Gold accent */
.nav-modern__link--howdoi {
    color: var(--accent-dark) !important;
    font-weight: 600 !important;
}

.nav-modern__link--howdoi:hover {
    color: var(--primary) !important;
}

/* How Do I? Dropdown - Wider and right-aligned */
.nav-modern__dropdown--howdoi {
    min-width: 260px;
    right: 0;
    left: auto;
}

.nav-modern__dropdown--howdoi a {
    padding: 0.75rem 1.25rem !important;
}


/* ==========================================
   HERO SPLIT LAYOUT - CREST LEFT, CARD RIGHT
   ========================================== */

.hero--split {
    min-height: 750px;
    padding: 4rem 0 2rem 0;
}

.hero__split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 550px;
}

/* Left: Large Crest */
.hero__crest {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__crest img {
    max-width: 380px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
    animation: crestFloat 6s ease-in-out infinite;
}

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

/* Right: Content Card */
.hero__card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

/* Badge - Dark blue with gold text */
.hero__badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-dark);
    color: var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero__badge-new svg {
    stroke: var(--accent);
    fill: none;
}

/* Title Group */
.hero__title-group {
    margin-bottom: 1.5rem;
}

.hero__welcome {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.hero__title-large {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 6px;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Divider with star */
.hero__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.hero__divider svg {
    color: var(--accent);
    flex-shrink: 0;
}

.hero__divider span {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* Subtitle */
.hero__subtitle-new {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Buttons */
.hero__actions-new {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn--primary-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--accent-decorative);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 168, 75, 0.4);
}

.btn--primary-new:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 168, 75, 0.5);
}

.btn--outline-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn--outline-new:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-3px);
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.hero__scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.hero__scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-decorative);
    border-radius: 4px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
}

/* Responsive */
@media (max-width: 900px) {
    .hero__split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero__crest img {
        max-width: 250px;
    }
    
    .hero__card {
        padding: 2rem;
    }
    
    .hero__title-large {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .hero__divider {
        justify-content: center;
    }
    
    .hero__actions-new {
        justify-content: center;
    }
}


/* Remove decorative box from hero */
.hero--split::after {
    display: none !important;
}

.hero::after {
    display: none !important;
}


/* Remove crest animation, add glow instead */
.hero__crest img {
    animation: none !important;
    filter: drop-shadow(0 0 60px rgba(212, 168, 75, 0.5)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) !important;
}


/* ==========================================
   SCROLL EFFECTS
   ========================================== */

/* Hero parallax base */
.hero__background {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 58, 92, 0.5);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/* Navbar shrink on scroll */
.header-modern.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header-modern.scrolled .header-modern__inner {
    padding: 0.5rem 0 !important;
}

.header-modern.scrolled .header-modern__home-btn {
    width: 44px;
    height: 44px;
}


/* Shift hero content to the left */
.hero__split-layout {
    justify-content: flex-start !important;
    padding-right: 10% !important;
}

.hero__crest {
    justify-content: flex-start !important;
    padding-left: 2rem;
}


/* Adjust hero shift - more moderate */
.hero__split-layout {
    justify-content: center !important;
    padding-right: 5% !important;
    padding-left: 0 !important;
}

.hero__crest {
    justify-content: center !important;
    padding-left: 0 !important;
    margin-left: -3rem;
}

.hero__card {
    margin-left: -2rem;
}


/* ==========================================
   PREMIUM HOVER EFFECTS
   ========================================== */

/* Navbar Dropdown - Premium Effects */
.nav-modern__dropdown {
    background: rgba(15, 30, 50, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(212, 168, 75, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(212, 168, 75, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    padding: 12px 0 !important;
    transform-origin: top center !important;
}

.nav-modern__item:hover .nav-modern__dropdown {
    animation: dropdownSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-modern__dropdown a {
    padding: 12px 24px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.25s ease !important;
    position: relative;
    overflow: hidden;
}

.nav-modern__dropdown a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #d4a84b, #f5d485);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.nav-modern__dropdown a:hover {
    background: rgba(212, 168, 75, 0.15) !important;
    color: #f5d485 !important;
    padding-left: 30px !important;
}

.nav-modern__dropdown a:hover::before {
    transform: scaleY(1);
}

/* Navbar Link Hover - Gold Underline */
.nav-modern__link {
    position: relative;
    overflow: hidden;
}

.nav-modern__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a84b, transparent);
    transition: width 0.3s ease;
}

.nav-modern__link:hover::after {
    width: 80%;
}

.nav-modern__link:hover {
    color: var(--accent-dark) !important;
}

/* Quick Links - Enhanced Hover */
.quick-link--3d {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.quick-link--3d:hover {
    transform: translateY(-15px) scale(1.03) !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(212, 168, 75, 0.15) !important;
}

.quick-link--3d:hover .quick-link__icon {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1.1); }
    50% { transform: translateY(-8px) scale(1.15); }
}

/* Hero Buttons - Shine Effect */
.btn--primary-new {
    position: relative;
    overflow: hidden;
}

.btn--primary-new::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: none;
}

.btn--primary-new:hover::after {
    animation: buttonShine 0.6s ease forwards;
}

@keyframes buttonShine {
    to {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Home Button Glow on Hover */
.header-modern__home-btn:hover {
    box-shadow: 0 0 25px rgba(26, 58, 92, 0.5), 0 4px 15px rgba(26, 58, 92, 0.3) !important;
}

/* How Do I Link - Special Styling */
.nav-modern__link--howdoi:hover {
    color: var(--accent) !important;
}


/* Fix jittery hover effects - smoother transitions */
.quick-link--3d {
    transition: all 0.3s ease !important;
}

.quick-link--3d:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.quick-link--3d:hover .quick-link__icon {
    animation: none !important;
    transform: scale(1.05) !important;
}

/* Remove bounce animation */
@keyframes iconBounce {
    0%, 100% { transform: scale(1.05); }
}

/* Smoother dropdown */
.nav-modern__dropdown a:hover {
    padding-left: 28px !important;
}


/* Smooth edges on crest */
.hero__crest img {
    border-radius: 20px;
}


/* Remove white outline from crest */
.hero__crest img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 60px rgba(212, 168, 75, 0.5)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) !important;
}


/* Remove all borders/outlines from hero elements */
.hero__crest,
.hero__crest img,
.hero__card {
    border: none !important;
    outline: none !important;
}

.hero__card {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* If the white is from the PNG image background */
.hero__crest img {
    background: transparent !important;
    mix-blend-mode: normal;
}


/* Hide white edge baked into PNG */
.hero__crest {
    overflow: hidden;
    border-radius: 20px;
}

.hero__crest img {
    transform: scale(1.02) !important;
    border-radius: 20px !important;
}


/* Blend white edge with dark shadow outline */
.hero__crest img {
    filter: 
        drop-shadow(0 0 1px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 2px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 60px rgba(212, 168, 75, 0.5)) 
        drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) !important;
}


/* ==========================================
   NAVBAR DROPDOWNS - BIGGER, BLUE BACKGROUND
   ========================================== */

.nav-modern__dropdown {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2540 100%) !important;
    min-width: 280px !important;
    padding: 16px 0 !important;
    border: 1px solid rgba(212, 168, 75, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5) !important;
}

.nav-modern__dropdown a {
    font-size: 1rem !important;
    padding: 14px 28px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-modern__dropdown a:hover {
    background: rgba(212, 168, 75, 0.2) !important;
    color: #f5d485 !important;
}

/* How Do I dropdown even wider */
.nav-modern__dropdown--howdoi {
    min-width: 300px !important;
}


/* ==========================================
   TOP BAR LAYOUT - FACEBOOK BY EMAIL, WEATHER RIGHT
   ========================================== */

.header__top-bar .header__info {
    flex: 1;
}

.header__facebook {
    margin-left: 1rem;
    color: white;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.header__facebook:hover {
    opacity: 1;
}

.header__weather {
    margin-left: auto !important;
}

/* Remove old social container */
.header__social {
    display: none !important;
}


/* ==========================================
   DROPDOWN ICONS - BIGGER & STYLISH BUTTONS
   ========================================== */

.nav-modern__dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-modern__dropdown a::before {
    content: '';
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.2) 0%, rgba(212, 168, 75, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 168, 75, 0.3);
}

.nav-modern__dropdown a:hover::before {
    background: linear-gradient(135deg, #d4a84b 0%, #b8923f 100%);
    transform: scale(1.1) rotate(-5deg);
    border-color: #8B6914;
}

/* Government dropdown icons */
.nav-modern__item:nth-child(1) .nav-modern__dropdown a:nth-child(1)::before { content: '🏛️'; }
.nav-modern__item:nth-child(1) .nav-modern__dropdown a:nth-child(2)::before { content: '👥'; }
.nav-modern__item:nth-child(1) .nav-modern__dropdown a:nth-child(3)::before { content: '📋'; }
.nav-modern__item:nth-child(1) .nav-modern__dropdown a:nth-child(4)::before { content: '📜'; }
.nav-modern__item:nth-child(1) .nav-modern__dropdown a:nth-child(5)::before { content: '🔍'; }

/* Departments dropdown icons */
.nav-modern__item:nth-child(2) .nav-modern__dropdown a:nth-child(1)::before { content: '🚔'; }
.nav-modern__item:nth-child(2) .nav-modern__dropdown a:nth-child(2)::before { content: '🚒'; }
.nav-modern__item:nth-child(2) .nav-modern__dropdown a:nth-child(3)::before { content: '🔧'; }
.nav-modern__item:nth-child(2) .nav-modern__dropdown a:nth-child(4)::before { content: '💰'; }
.nav-modern__item:nth-child(2) .nav-modern__dropdown a:nth-child(5)::before { content: '🏗️'; }
.nav-modern__item:nth-child(2) .nav-modern__dropdown a:nth-child(6)::before { content: '⚙️'; }

/* Community dropdown icons */
.nav-modern__item:nth-child(3) .nav-modern__dropdown a:nth-child(1)::before { content: '📰'; }
.nav-modern__item:nth-child(3) .nav-modern__dropdown a:nth-child(2)::before { content: '📅'; }
.nav-modern__item:nth-child(3) .nav-modern__dropdown a:nth-child(3)::before { content: '🏠'; }
.nav-modern__item:nth-child(3) .nav-modern__dropdown a:nth-child(4)::before { content: '🎉'; }
.nav-modern__item:nth-child(3) .nav-modern__dropdown a:nth-child(5)::before { content: '🤝'; }

/* How Do I dropdown icons */
.nav-modern__dropdown--howdoi a:nth-child(1)::before { content: '💳'; }
.nav-modern__dropdown--howdoi a:nth-child(2)::before { content: '⚠️'; }
.nav-modern__dropdown--howdoi a:nth-child(3)::before { content: '📝'; }
.nav-modern__dropdown--howdoi a:nth-child(4)::before { content: '🔨'; }
.nav-modern__dropdown--howdoi a:nth-child(5)::before { content: '📆'; }
.nav-modern__dropdown--howdoi a:nth-child(6)::before { content: '🚨'; }
.nav-modern__dropdown--howdoi a:nth-child(7)::before { content: '📂'; }
.nav-modern__dropdown--howdoi a:nth-child(8)::before { content: '📄'; }
.nav-modern__dropdown--howdoi a:nth-child(9)::before { content: '💧'; }
.nav-modern__dropdown--howdoi a:nth-child(10)::before { content: '💼'; }


/* Override previous - proper icon buttons */
.nav-modern__dropdown a::before {
    display: none !important;
}

/* Style the dropdown items as buttons with icons */
.nav-modern__dropdown a {
    position: relative;
    padding-left: 60px !important;
}

.nav-modern__dropdown a::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.15) 0%, rgba(212, 168, 75, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(212, 168, 75, 0.2);
    transition: all 0.3s ease;
}

.nav-modern__dropdown a:hover::after {
    background: linear-gradient(135deg, #d4a84b 0%, #b8923f 100%);
    transform: translateY(-50%) scale(1.1);
    border-color: #8B6914;
    box-shadow: 0 4px 15px rgba(212, 168, 75, 0.3);
}


/* ==========================================
   REMOVE DROPDOWN BUTTON STYLING
   ========================================== */
.nav-modern__dropdown a::before,
.nav-modern__dropdown a::after {
    display: none !important;
    content: none !important;
}

.nav-modern__dropdown a {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* ==========================================
   ANNOUNCEMENT BAR - BIGGER STYLISH ICONS
   ========================================== */

.announcement-bar__icon,
.service-bar__icon,
.info-bar__icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
}

.announcement-bar__icon svg,
.service-bar__icon svg,
.info-bar__icon svg {
    width: 26px !important;
    height: 26px !important;
    stroke: white !important;
}

/* Secretary of State specific styling */
.sos-banner__icon,
[class*="banner"] .announcement-bar__icon,
[class*="secretary"] .icon,
.feature-bar__icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}


/* ==========================================
   NAVBAR LINKS - BIGGER & MORE STYLISH
   ========================================== */

.nav-modern__link {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    padding: 0.875rem 1.5rem !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.nav-modern__link span {
    position: relative;
    z-index: 1;
}

/* Add stylish background on hover */
.nav-modern__link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.1) 0%, rgba(26, 58, 92, 0.05) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 0;
}

.nav-modern__link:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.nav-modern__link:hover {
    color: var(--primary) !important;
}

/* How Do I - Special gold styling */
.nav-modern__link--howdoi {
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.15) 0%, rgba(212, 168, 75, 0.05) 100%) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(212, 168, 75, 0.3) !important;
}

.nav-modern__link--howdoi:hover {
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.25) 0%, rgba(212, 168, 75, 0.1) 100%) !important;
    border-color: rgba(212, 168, 75, 0.5) !important;
}

/* More spacing between nav items */
.nav-modern {
    gap: 0.5rem !important;
}


/* How Do I - Keep on one line */
.nav-modern__link--howdoi span {
    white-space: nowrap !important;
}

/* Reduce padding on nav links to make room */
.nav-modern__link {
    padding: 0.75rem 1.1rem !important;
}

/* Slightly smaller font to fit better */
.nav-modern {
    gap: 0.25rem !important;
}


/* ==========================================
   LARGER TEXT FOR BETTER READABILITY
   ========================================== */

/* Base font size increase */
body {
    font-size: 17px !important;
    line-height: 1.7 !important;
}

/* Paragraph text */
p {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

/* Navigation links */
.nav-modern__link {
    font-size: 1.1rem !important;
}

/* Dropdown menu items */
.nav-modern__dropdown a {
    font-size: 1.05rem !important;
}

/* Hero text */
.hero__subtitle-new {
    font-size: 1.25rem !important;
}

/* Quick links text */
.quick-link__title,
.quick-link--3d span {
    font-size: 1.1rem !important;
}

/* Section headings */
h2 {
    font-size: 1.75rem !important;
}

h3 {
    font-size: 1.4rem !important;
}

/* Card content */
.card p,
.card-body p {
    font-size: 1.05rem !important;
}

/* Footer text */
footer p,
footer a,
footer li {
    font-size: 1rem !important;
}

/* Buttons */
.btn, button {
    font-size: 1rem !important;
}


/* Fix crest glow - circular instead of square */
.hero__crest img {
    border-radius: 50% !important;
    filter: drop-shadow(0 0 40px rgba(212, 168, 75, 0.4)) drop-shadow(0 0 80px rgba(212, 168, 75, 0.2)) !important;
}

.hero__crest {
    border-radius: 50% !important;
    overflow: visible !important;
}


/* ==========================================
   COMPREHENSIVE MOBILE OVERHAUL
   ========================================== */

/* Mobile Menu - Full Screen Slide */
@media (max-width: 992px) {
    
    /* Show hamburger */
    .header-modern__mobile-toggle {
        display: flex !important;
        background: var(--primary) !important;
        z-index: 1001;
    }
    
    .header-modern__mobile-toggle span {
        background: white !important;
    }
    
    /* Hide desktop nav */
    .nav-modern {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        pointer-events: none;
        background: linear-gradient(180deg, #1a3a5c 0%, #0f2540 100%) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 80px 0 30px !important;
        transition: left 0.3s ease !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        box-shadow: 5px 0 30px rgba(0,0,0,0.3) !important;
    }
    
    .nav-modern.mobile-open {
        left: 0 !important;
    }
    
    /* Mobile nav items */
    .nav-modern__item {
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .nav-modern__link {
        color: white !important;
        padding: 1.25rem 1.5rem !important;
        font-size: 1.1rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .nav-modern__link:hover {
        background: rgba(212, 168, 75, 0.2) !important;
    }
    
    .nav-modern__link::before,
    .nav-modern__link::after {
        display: none !important;
    }
    
    /* Mobile dropdowns - accordion style */
    .nav-modern__dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none !important;
        background: rgba(0,0,0,0.2) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        border: none !important;
        min-width: auto !important;
        animation: none !important;
    }
    
    .nav-modern__item.dropdown-open .nav-modern__dropdown {
        display: block !important;
    }
    
    .nav-modern__dropdown a {
        color: rgba(255,255,255,0.85) !important;
        padding: 1rem 2rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        font-size: 1rem !important;
    }
    
    .nav-modern__dropdown a:hover {
        background: rgba(212, 168, 75, 0.15) !important;
        color: #8B6914 !important;
        padding-left: 2.5rem !important;
    }
    
    /* How Do I styling on mobile */
    .nav-modern__link--howdoi {
        background: rgba(212, 168, 75, 0.15) !important;
        border-radius: 0 !important;
        border: none !important;
    }
    
    /* Mobile overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Header adjustments */
    .header-modern__inner {
        padding: 0.75rem 0 !important;
    }
    
    .header-modern__actions {
        gap: 0.5rem !important;
    }
    
    /* Hide some items on mobile */
    .header-modern__cta,
    .waffle-menu {
        display: none !important;
    }
    
    /* Top bar - stacked on mobile */
    .header__top-bar .header__info {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
    
    .header__top-bar .container > div {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .header__weather {
        margin-left: 0 !important;
    }
    
    /* Hero section mobile */
    .hero--split {
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .hero__split-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
        padding: 0 !important;
    }
    
    .hero__crest {
        justify-content: center !important;
        margin-left: 0 !important;
    }
    
    .hero__crest img {
        max-width: 200px !important;
    }
    
    .hero__card {
        margin-left: 0 !important;
        padding: 2rem 1.5rem !important;
    }
    
    .hero__title-large {
        font-size: 2.5rem !important;
        letter-spacing: 3px !important;
    }
    
    .hero__welcome {
        font-size: 0.9rem !important;
    }
    
    .hero__actions-new {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .hero__actions-new .btn--primary-new,
    .hero__actions-new .btn--outline-new {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Quick links grid mobile */
    .quick-links__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .quick-link--3d {
        padding: 1.25rem 1rem !important;
    }
    
    .quick-link__icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .quick-link__icon svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* SOS Banner mobile */
    .sos-banner-container > div > a {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }
    
    /* Footer mobile */
    .footer__grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    /* Scroll indicator hide on mobile */
    .hero__scroll-indicator {
        display: none !important;
    }
    
    /* Back to top - adjust position */
    .back-to-top {
        bottom: 100px !important;
        right: 20px !important;
    }
}

/* Smaller phones */
@media (max-width: 480px) {
    
    .hero__title-large {
        font-size: 2rem !important;
        letter-spacing: 2px !important;
    }
    
    .hero__badge-new {
        font-size: 0.7rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .quick-links__grid {
        grid-template-columns: 1fr !important;
    }
    
    .header__top-bar {
        font-size: 0.85rem !important;
    }
    
    .tp-quick-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tp-holiday-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Chester Widget - Mobile Optimized */
@media (max-width: 992px) {
    .chester-widget {
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .chester-toggle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .chester-chat {
        width: calc(100vw - 30px) !important;
        max-width: 350px !important;
        height: 450px !important;
        bottom: 80px !important;
        right: 0 !important;
    }
    
    .chester-messages {
        height: 320px !important;
    }
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.mobile-menu-close svg {
    stroke: white;
    width: 24px;
    height: 24px;
}

@media (max-width: 992px) {
    .mobile-menu-close {
        display: flex;
    }
}

/* Mobile Quick Actions Bar */
.mobile-quick-actions {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2540 100%);
    padding: 0.75rem 1rem;
    z-index: 998;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(212, 168, 75, 0.3);
}

.mobile-quick-actions__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.mobile-quick-actions__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: white;
    font-size: 0.7rem;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.mobile-quick-actions__item:hover,
.mobile-quick-actions__item:active {
    background: rgba(212, 168, 75, 0.2);
}

.mobile-quick-actions__item svg {
    width: 24px;
    height: 24px;
    stroke: #d4a84b;
}

.mobile-quick-actions__item span {
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 992px) {
    .mobile-quick-actions {
        display: block;
    }
    
    /* Add padding to body for fixed bottom bar */
    body {
        padding-bottom: 85px;
    }
    
    /* Adjust Chester position for bottom bar */
    .chester-widget {
        bottom: 95px !important;
    }
    
    .back-to-top {
        bottom: 100px !important;
    }
}


/* ==========================================
   MOBILE FIX - OVERRIDE ALL CONFLICTING STYLES
   ========================================== */

@media (max-width: 1024px) {
    /* Force nav to be hidden by default */
    .nav-modern {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        pointer-events: none;
        background: linear-gradient(180deg, #1a3a5c 0%, #0f2540 100%) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 80px 0 30px !important;
        transition: left 0.3s ease !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        box-shadow: 5px 0 30px rgba(0,0,0,0.3) !important;
        transform: none !important;
    }
    
    /* Show nav when mobile-open OR active class is added */
    .nav-modern.mobile-open,
    .nav-modern.active {
        left: 0 !important;
        transform: none !important;
    }
    
    /* Make sure hamburger is visible */
    .header-modern__mobile-toggle {
        display: flex !important;
        background: var(--primary) !important;
        z-index: 1001 !important;
    }
    
    .header-modern__mobile-toggle span {
        background: white !important;
    }
    
    /* Hamburger animation when active */
    .header-modern__mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .header-modern__mobile-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .header-modern__mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px) !important;
    }
}


/* ==========================================
   MOBILE TOP BAR & BOTTOM ELEMENTS FIX
   ========================================== */

@media (max-width: 992px) {
    
    /* Top bar - hide text labels, show icons only */
    .header__top-bar {
        padding: 0.5rem 0 !important;
    }
    
    .header__top-bar .container > div {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .header__info {
        flex-direction: row !important;
        gap: 0.75rem !important;
        flex-wrap: nowrap !important;
    }
    
    .header__info a {
        display: flex !important;
        align-items: center !important;
        gap: 0.25rem !important;
        white-space: nowrap !important;
        font-size: 0.8rem !important;
    }
    
    /* Hide long text, show abbreviated */
    .header__info a span,
    .header__info a:not([href^="tel"]):not([href^="mailto"]) {
        font-size: 0.75rem !important;
    }
    
    /* Phone - just show number short */
    .header__info a[href^="tel"] {
        font-size: 0.75rem !important;
    }
    
    /* Email - hide on very small screens */
    .header__info a[href^="mailto"] span {
        display: none !important;
    }
    
    /* Keep just icons visible for email */
    .header__info a[href^="mailto"] svg {
        display: block !important;
    }
    
    /* Weather widget compact */
    .header__weather {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .weather-desc {
        display: none !important;
    }
    
    /* Chester - move up above bottom bar */
    .chester-widget,
    #chester-widget,
    [class*="chester"] {
        bottom: 100px !important;
    }
    
    .chester-toggle {
        bottom: 100px !important;
    }
    
    .chester-chat {
        bottom: 170px !important;
    }
    
    /* Accessibility widget - move up */
    #accessibility-widget,
    .accessibility-toggle,
    [class*="accessibility"],
    .userway-widget,
    #userwayAccessibilityIcon {
        bottom: 100px !important;
    }
    
    /* Make sure bottom bar is visible and on top */
    .mobile-quick-actions {
        z-index: 9999 !important;
        position: fixed !important;
        bottom: 0 !important;
    }
    
    /* Body padding for bottom bar */
    body {
        padding-bottom: 75px !important;
    }
    
    /* Back to top also move up */
    .back-to-top {
        bottom: 90px !important;
        right: 15px !important;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    
    /* Top bar - icons only */
    .header__info a[href^="tel"]::after {
        content: none !important;
    }
    
    .header__info {
        gap: 0.5rem !important;
    }
    
    /* Very compact top bar */
    .header__top-bar .header__info a {
        padding: 0.25rem !important;
    }
    
    /* Hide email text completely, show icon */
    .header__info a[href^="mailto"] {
        font-size: 0 !important;
    }
    
    .header__info a[href^="mailto"] svg {
        font-size: initial !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Phone number shorter */
    .header__info a[href^="tel"] {
        font-size: 0.7rem !important;
    }
}


/* ==========================================
   MOBILE FIX - CHESTER & TOP BAR OVERRIDE
   ========================================== */

@media (max-width: 992px) {
    
    /* Chester Widget - Move above bottom bar */
    #chesterWidget {
        bottom: 95px !important;
        right: 15px !important;
    }
    
    #chesterToggle {
        padding: 6px 18px 6px 6px !important;
        gap: 10px !important;
    }
    
    #chesterToggle img {
        width: 70px !important;
        height: 70px !important;
        margin: -18px !important;
        margin-right: 0 !important;
    }
    
    #chesterToggle span {
        font-size: 14px !important;
    }
    
    #chesterWindow {
        bottom: 100px !important;
        width: calc(100vw - 30px) !important;
        max-width: 380px !important;
        height: 500px !important;
        right: 0 !important;
    }
    
    /* Top Bar Fix - uses .header__top not .header__top-bar */
    .header__top {
        padding: 0.4rem 0 !important;
    }
    
    .header__top-inner {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }
    
    .header__contact {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }
    
    .header__contact a {
        display: flex !important;
        align-items: center !important;
        gap: 0.25rem !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        padding: 0.25rem 0.4rem !important;
        background: rgba(255,255,255,0.1) !important;
        border-radius: 6px !important;
    }
    
    .header__contact a svg {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
    }
    
    /* Hide email text on mobile, show icon only */
    .header__contact a[href^="mailto"] {
        font-size: 0 !important;
        padding: 0.4rem !important;
    }
    
    .header__contact a[href^="mailto"] svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Facebook icon */
    .header__facebook {
        padding: 0.4rem !important;
    }
    
    .header__facebook svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Weather compact */
    .header__weather {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
        background: rgba(255,255,255,0.1) !important;
        border-radius: 6px !important;
    }
    
    .weather-desc {
        display: none !important;
    }
    
    /* Back to top */
    #backToTop,
    .back-to-top {
        bottom: 95px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    /* Accessibility widget if exists */
    [class*="userway"],
    [id*="userway"],
    [class*="accessibility"] {
        bottom: 95px !important;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    
    /* Hide phone text, show icon only */
    .header__contact a[href^="tel"] {
        font-size: 0 !important;
        padding: 0.4rem !important;
    }
    
    .header__contact a[href^="tel"] svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Chester even smaller */
    #chesterToggle {
        padding: 5px 14px 5px 5px !important;
    }
    
    #chesterToggle img {
        width: 55px !important;
        height: 55px !important;
        margin: -14px !important;
        margin-right: 0 !important;
    }
    
    #chesterToggle span {
        font-size: 12px !important;
    }
}


/* ==========================================
   GRANICUS EMBED - STYLED WRAPPER
   ========================================== */

.granicus-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 3rem;
}

.granicus-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2540 100%);
    color: white;
}

.granicus-header__icon {
    width: 56px;
    height: 56px;
    background: rgba(212, 168, 75, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(212, 168, 75, 0.3);
}

.granicus-header__icon svg {
    width: 28px;
    height: 28px;
    stroke: #d4a84b;
}

.granicus-header__text h2 {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
}

.granicus-header__text p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

.granicus-content {
    position: relative;
    background: #f8fafc;
    padding: 0;
}

.granicus-content iframe {
    width: 100%;
    height: 650px;
    display: block;
    border: none;
}

.granicus-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.granicus-footer__info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.granicus-footer__info svg {
    stroke: #94a3b8;
}

.granicus-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2540 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.granicus-footer__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

.granicus-footer__link svg {
    stroke: #d4a84b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .granicus-wrapper {
        border-radius: 16px;
        margin: 0 -1rem 2rem;
    }
    
    .granicus-header {
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }
    
    .granicus-header__icon {
        width: 48px;
        height: 48px;
    }
    
    .granicus-header__icon svg {
        width: 24px;
        height: 24px;
    }
    
    .granicus-header__text h2 {
        font-size: 1.15rem;
    }
    
    .granicus-header__text p {
        font-size: 0.85rem;
    }
    
    .granicus-content iframe {
        height: 400px;
    }
    
    .granicus-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
        text-align: center;
    }
    
    .granicus-footer__link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .granicus-content iframe {
        height: 300px;
    }
    
    .granicus-header {
        flex-direction: column;
        text-align: center;
    }
}


/* ==========================================
   TRUST BADGES - HOMEPAGE
   ========================================== */

.trust-badges {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.trust-badges__grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: white;
    border-radius: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.trust-badge__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-badge__icon svg {
    width: 26px;
    height: 26px;
}

.trust-badge__content {
    display: flex;
    flex-direction: column;
}

.trust-badge__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 500;
}

.trust-badge__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a5c;
}

/* Innovation badge - Gold theme */
.trust-badge--innovation .trust-badge__icon {
    background: linear-gradient(135deg, rgba(212, 168, 75, 0.15) 0%, rgba(212, 168, 75, 0.05) 100%);
    border: 2px solid rgba(212, 168, 75, 0.3);
}

.trust-badge--innovation .trust-badge__icon svg {
    stroke: #d4a84b;
}

.trust-badge--innovation:hover {
    border-color: rgba(212, 168, 75, 0.4);
}

/* Security badge - Green theme */
.trust-badge--security .trust-badge__icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.trust-badge--security .trust-badge__icon svg {
    stroke: #10b981;
}

.trust-badge--security:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
    .trust-badges {
        padding: 1.5rem 0;
    }
    
    .trust-badges__grid {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .trust-badge {
        padding: 0.875rem 1.5rem;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    .trust-badge__icon {
        width: 44px;
        height: 44px;
    }
    
    .trust-badge__icon svg {
        width: 22px;
        height: 22px;
    }
    
    .trust-badge__title {
        font-size: 1rem;
    }
}


/* ==========================================
   FOOTER TRUST BADGES - SMALL
   ========================================== */

.footer__badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.25rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-badge:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-badge svg {
    width: 16px;
    height: 16px;
    stroke: #d4a84b;
    flex-shrink: 0;
}

.footer-badge span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-badge strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .footer__badges {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .footer-badge {
        padding: 0.4rem 0.875rem;
    }
    
    .footer-badge span {
        font-size: 0.7rem;
    }
    
    .footer-badge svg {
        width: 14px;
        height: 14px;
    }
}


/* ==========================================
   HERO - UNIFIED CREST + CONTENT DESIGN
   ========================================== */

.hero__unified {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 100%;
    padding: 12rem 0 2rem 0;
}

.hero__unified-card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 24px;
    border: none;
    box-shadow: none;
    overflow: hidden;
    max-width: 750px;
    width: 100%;
    transform: translateY(-10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero__unified-card:hover {
    transform: translateY(-15px);
    box-shadow: 
        0 40px 120px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(212, 168, 75, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero__unified-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
}

.hero__unified-crest {
    flex-shrink: 0;
}

.hero__unified-crest img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 10px 50px rgba(0, 0, 0, 0.5));
    border-radius: 0;
    background: transparent;
    padding: 0;
    border: none;
    transition: transform 0.3s ease;
}
.hero__unified-card:hover .hero__unified-crest img {
    transform: scale(1.05);
}

.hero__unified-content {
    flex: 1;
    text-align: left;
}

.hero__unified-content .hero__badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 168, 75, 0.15);
    border: 1px solid rgba(212, 168, 75, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #8B6914;
    margin-bottom: 1.25rem;
}

.hero__unified-content .hero__badge-new svg {
    stroke: #d4a84b;
}

.hero__unified-content .hero__welcome {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.hero__unified-content .hero__title-large {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #8B6914;
    letter-spacing: 5px;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(212, 168, 75, 0.3);
}

.hero__unified-content .hero__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.hero__unified-content .hero__divider svg {
    color: #8B6914;
    filter: drop-shadow(0 0 8px rgba(212, 168, 75, 0.5));
}

.hero__unified-content .hero__divider::before,
.hero__unified-content .hero__divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.5), transparent);
}

.hero__unified-content .hero__subtitle-new {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero__unified-content .hero__actions-new {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hide old split layout elements */
.hero__split-layout {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero__unified-card {
        border-radius: 20px;
        margin: 0 1rem;
    }
    
    .hero__unified-inner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    
    .hero__unified-crest img {
        width: 220px;
        height: 220px;
        padding: 0;
    }
    
    .hero__unified-content {
        text-align: center;
    }
    
    .hero__unified-content .hero__title-large {
        font-size: 2.25rem;
        letter-spacing: 3px;
    }
    
    .hero__unified-content .hero__welcome {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    
    .hero__unified-content .hero__badge-new {
        font-size: 0.65rem;
        padding: 0.4rem 0.75rem;
    }
    
    .hero__unified-content .hero__actions-new {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__unified-content .hero__actions-new .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero__unified-content .hero__divider {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero__unified-crest img {
        width: 110px;
        height: 110px;
    }
    
    .hero__unified-content .hero__title-large {
        font-size: 1.85rem;
        letter-spacing: 2px;
    }
}


/* ==========================================
   HERO UNIFIED - BIGGER & WIDER
   ========================================== */

.hero__unified-card {
    max-width: 1100px !important;
    width: 95% !important;
}

.hero__unified-inner {
    padding: 3.5rem 4rem !important;
    gap: 4rem !important;
}

.hero__unified-crest img {
    width: 260px !important;
    height: 260px !important;
}

.hero__unified-content .hero__title-large {
    font-size: 4.5rem !important;
    letter-spacing: 8px !important;
}

.hero__unified-content .hero__welcome {
    font-size: 1.15rem !important;
    letter-spacing: 4px !important;
}

.hero__unified-content .hero__badge-new {
    font-size: 0.85rem !important;
    padding: 0.6rem 1.25rem !important;
}

.hero__unified-content .hero__subtitle-new {
    font-size: 1.25rem !important;
}

.hero__unified-content .hero__actions-new .btn {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
}

/* Mobile adjustments */
@media (max-width: 900px) {
    .hero__unified-inner {
        padding: 2.5rem 2rem !important;
        gap: 2rem !important;
    }
    
    .hero__unified-crest img {
        width: 180px !important;
        height: 180px !important;
    }
    
    .hero__unified-content .hero__title-large {
        font-size: 3rem !important;
        letter-spacing: 4px !important;
    }
}

@media (max-width: 600px) {
    .hero__unified-crest img {
        width: 130px !important;
        height: 130px !important;
    }
    
    .hero__unified-content .hero__title-large {
        font-size: 2.25rem !important;
        letter-spacing: 3px !important;
    }
    
    .hero__unified-content .hero__welcome {
        font-size: 0.9rem !important;
    }
}


/* ==========================================
   HERO UNIFIED - EVEN BIGGER & WIDER
   ========================================== */

.hero__unified-card {
    max-width: 1300px !important;
    width: 98% !important;
}

.hero__unified-inner {
    padding: 4rem 5rem !important;
    gap: 5rem !important;
}

.hero__unified-crest img {
    width: 300px !important;
    height: 300px !important;
}

.hero__unified-content .hero__title-large {
    font-size: 5.5rem !important;
    letter-spacing: 10px !important;
    white-space: nowrap !important;
}

.hero__unified-content .hero__welcome {
    font-size: 1.3rem !important;
    letter-spacing: 6px !important;
}

.hero__unified-content .hero__badge-new {
    font-size: 0.9rem !important;
    padding: 0.75rem 1.5rem !important;
}

.hero__unified-content .hero__subtitle-new {
    font-size: 1.35rem !important;
    margin-bottom: 2rem !important;
}

.hero__unified-content .hero__actions-new {
    gap: 1.5rem !important;
}

.hero__unified-content .hero__actions-new .btn {
    padding: 1.1rem 2.5rem !important;
    font-size: 1.05rem !important;
}

/* Ensure hero section has enough height */
.hero--split {
    min-height: 85vh !important;
}

/* Mobile adjustments */
@media (max-width: 1100px) {
    .hero__unified-content .hero__title-large {
        font-size: 4rem !important;
        letter-spacing: 6px !important;
        white-space: normal !important;
    }
    
    .hero__unified-inner {
        padding: 3rem !important;
        gap: 3rem !important;
    }
    
    .hero__unified-crest img {
        width: 220px !important;
        height: 220px !important;
    }
}

@media (max-width: 900px) {
    .hero__unified-inner {
        flex-direction: column !important;
        padding: 2.5rem 2rem !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .hero__unified-content {
        text-align: center !important;
    }
    
    .hero__unified-crest img {
        width: 180px !important;
        height: 180px !important;
    }
    
    .hero__unified-content .hero__title-large {
        font-size: 3rem !important;
        letter-spacing: 4px !important;
    }
    
    .hero__unified-content .hero__welcome {
        font-size: 1rem !important;
        letter-spacing: 3px !important;
    }
    
    .hero__unified-content .hero__actions-new {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .hero__unified-content .hero__actions-new .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 600px) {
    .hero__unified-crest img {
        width: 140px !important;
        height: 140px !important;
    }
    
    .hero__unified-content .hero__title-large {
        font-size: 2.25rem !important;
        letter-spacing: 3px !important;
    }
    
    .hero__unified-content .hero__badge-new {
        font-size: 0.7rem !important;
        padding: 0.5rem 1rem !important;
    }
}


/* ==========================================
   HERO UNIFIED - WIDER BUT SHORTER
   ========================================== */

.hero__unified-card {
    max-width: 1400px !important;
    width: 98% !important;
}

.hero__unified-inner {
    padding: 2.5rem 4rem !important;
    gap: 4rem !important;
}

.hero__unified-crest img {
    width: 220px !important;
    height: 220px !important;
}

.hero__unified-content .hero__title-large {
    font-size: 4rem !important;
    letter-spacing: 8px !important;
    white-space: nowrap !important;
}

.hero__unified-content .hero__welcome {
    font-size: 1.1rem !important;
    letter-spacing: 5px !important;
    margin-bottom: 0.25rem !important;
}

.hero__unified-content .hero__badge-new {
    font-size: 0.8rem !important;
    padding: 0.5rem 1.25rem !important;
    margin-bottom: 1rem !important;
}

.hero__unified-content .hero__subtitle-new {
    font-size: 1.15rem !important;
    margin-bottom: 1.5rem !important;
}

.hero__unified-content .hero__divider {
    margin: 0.75rem 0 !important;
}

.hero__unified-content .hero__actions-new {
    gap: 1.25rem !important;
}

.hero__unified-content .hero__actions-new .btn {
    padding: 0.9rem 2rem !important;
    font-size: 0.95rem !important;
}

.hero__unified-content .hero__title-group {
    margin-bottom: 0.5rem !important;
}

/* Mobile adjustments */
@media (max-width: 1200px) {
    .hero__unified-content .hero__title-large {
        font-size: 3.25rem !important;
        letter-spacing: 5px !important;
    }
}

@media (max-width: 1000px) {
    .hero__unified-content .hero__title-large {
        font-size: 2.75rem !important;
        letter-spacing: 4px !important;
        white-space: normal !important;
    }
    
    .hero__unified-inner {
        gap: 2.5rem !important;
    }
    
    .hero__unified-crest img {
        width: 180px !important;
        height: 180px !important;
    }
}


/* ==========================================
   HERO UNIFIED - WIDER BUT SHORTER
   ========================================== */

.hero__unified-card {
    max-width: 1400px !important;
    width: 98% !important;
}

.hero__unified-inner {
    padding: 2.5rem 4rem !important;
    gap: 4rem !important;
}

.hero__unified-crest img {
    width: 220px !important;
    height: 220px !important;
}

.hero__unified-content .hero__title-large {
    font-size: 4rem !important;
    letter-spacing: 8px !important;
    white-space: nowrap !important;
}

.hero__unified-content .hero__welcome {
    font-size: 1.1rem !important;
    letter-spacing: 5px !important;
    margin-bottom: 0.25rem !important;
}

.hero__unified-content .hero__badge-new {
    font-size: 0.8rem !important;
    padding: 0.5rem 1.25rem !important;
    margin-bottom: 1rem !important;
}

.hero__unified-content .hero__subtitle-new {
    font-size: 1.15rem !important;
    margin-bottom: 1.5rem !important;
}

.hero__unified-content .hero__divider {
    margin: 0.75rem 0 !important;
}

.hero__unified-content .hero__actions-new {
    gap: 1.25rem !important;
}

.hero__unified-content .hero__actions-new .btn {
    padding: 0.9rem 2rem !important;
    font-size: 0.95rem !important;
}

.hero__unified-content .hero__title-group {
    margin-bottom: 0.5rem !important;
}

/* Mobile adjustments */
@media (max-width: 1200px) {
    .hero__unified-content .hero__title-large {
        font-size: 3.25rem !important;
        letter-spacing: 5px !important;
    }
}

@media (max-width: 1000px) {
    .hero__unified-content .hero__title-large {
        font-size: 2.75rem !important;
        letter-spacing: 4px !important;
        white-space: normal !important;
    }
    
    .hero__unified-inner {
        gap: 2.5rem !important;
    }
    
    .hero__unified-crest img {
        width: 180px !important;
        height: 180px !important;
    }
}


/* ==========================================
   HERO - MUCH SHORTER
   ========================================== */










}

.hero__unified-card {
    margin: 0 auto !important;
}

.hero__unified-inner {
    padding: 1.75rem 3rem !important;
    gap: 2.5rem !important;
}

.hero__unified-crest img {
    width: 150px !important;
    height: 150px !important;
}

.hero__unified-content .hero__title-large {
    font-size: 3rem !important;
    letter-spacing: 6px !important;
}

.hero__unified-content .hero__welcome {
    font-size: 0.95rem !important;
    letter-spacing: 4px !important;
}

.hero__unified-content .hero__badge-new {
    font-size: 0.7rem !important;
    padding: 0.4rem 1rem !important;
    margin-bottom: 0.5rem !important;
}

.hero__unified-content .hero__subtitle-new {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
}

.hero__unified-content .hero__actions-new .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.85rem !important;
}

.hero__unified-content .hero__divider {
    margin: 0.4rem 0 !important;
}

.hero__unified-content .hero__divider svg {
    width: 16px !important;
    height: 16px !important;
}

/* Remove orbs and extra elements */
.hero__orb {
    display: none !important;
}

/* Background adjustments */
.hero__background {
    min-height: auto !important;
}

/* Mobile */
@media (max-width: 900px) {
    .hero--split {
        padding: 1rem 0 1.5rem !important;
    }
    
    .hero__unified-inner {
        padding: 1.25rem 1.5rem !important;
        gap: 1.25rem !important;
    }
    
    .hero__unified-crest img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .hero__unified-content .hero__title-large {
        font-size: 2rem !important;
    }
}


/* ==========================================
   HERO - BALANCED SIZE
   ========================================== */





}

.hero__unified-inner {
    padding: 2.25rem 3.5rem !important;
    gap: 3rem !important;
}

.hero__unified-crest img {
    width: 180px !important;
    height: 180px !important;
}

.hero__unified-content .hero__title-large {
    font-size: 3.5rem !important;
    letter-spacing: 7px !important;
}

.hero__unified-content .hero__welcome {
    font-size: 1.05rem !important;
    letter-spacing: 4px !important;
}

.hero__unified-content .hero__badge-new {
    font-size: 0.75rem !important;
    padding: 0.5rem 1.1rem !important;
    margin-bottom: 0.75rem !important;
}

.hero__unified-content .hero__subtitle-new {
    font-size: 1.1rem !important;
    margin-bottom: 1.25rem !important;
}

.hero__unified-content .hero__actions-new .btn {
    padding: 0.85rem 1.75rem !important;
    font-size: 0.9rem !important;
}

.hero__unified-content .hero__divider {
    margin: 0.5rem 0 !important;
}

.hero__unified-content .hero__divider svg {
    width: 18px !important;
    height: 18px !important;
}

/* Mobile */
@media (max-width: 900px) {
    .hero--split {
        padding: 1.25rem 0 1.75rem !important;
    }
    
    .hero__unified-inner {
        padding: 1.5rem 1.75rem !important;
        gap: 1.5rem !important;
    }
    
    .hero__unified-crest img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .hero__unified-content .hero__title-large {
        font-size: 2.25rem !important;
    }
}


/* ==========================================
   HERO - CENTERED TEXT + GLASS EFFECT
   ========================================== */

.hero__unified-card {
    background: linear-gradient(135deg, 
        rgba(15, 37, 64, 0.7) 0%, 
        rgba(26, 58, 92, 0.6) 50%,
        rgba(15, 37, 64, 0.7) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(212, 168, 75, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Glass shine effect */
.hero__unified-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: glassShine 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glassShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Glass edge highlight */
.hero__unified-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    pointer-events: none;
}

/* Center the content vertically */
.hero__unified-inner {
    align-items: center !important;
}

/* Center text content */
.hero__unified-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

/* Adjust badge positioning */
.hero__unified-content .hero__badge-new {
    align-self: flex-start !important;
}

/* Make divider full width of content */
.hero__unified-content .hero__divider {
    width: 100% !important;
    justify-content: flex-start !important;
}

.hero__unified-content .hero__divider::before {
    display: none !important;
}

.hero__unified-content .hero__divider::after {
    flex: 0 0 200px !important;
}

/* Glass reflection on crest */
.hero__unified-crest {
    position: relative !important;
}

.hero__unified-crest::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 50%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

/* Mobile - center everything */
@media (max-width: 900px) {
    .hero__unified-content {
        align-items: center !important;
        text-align: center !important;
    }
    
    .hero__unified-content .hero__badge-new {
        align-self: center !important;
    }
    
    .hero__unified-content .hero__divider {
        justify-content: center !important;
    }
    
    .hero__unified-content .hero__divider::after {
        flex: 1 !important;
    }
}


/* ==========================================
   HERO - CENTER TEXT MORE
   ========================================== */

.hero__unified-content {
    align-items: center !important;
    text-align: center !important;
}

.hero__unified-content .hero__badge-new {
    align-self: center !important;
}

.hero__unified-content .hero__title-group {
    text-align: center !important;
    width: 100% !important;
}

.hero__unified-content .hero__divider {
    justify-content: center !important;
}

.hero__unified-content .hero__divider::after {
    flex: 1 !important;
    max-width: 120px !important;
}

.hero__unified-content .hero__divider::before {
    display: block !important;
    flex: 1 !important;
    max-width: 120px !important;
}

.hero__unified-content .hero__subtitle-new {
    text-align: center !important;
}

.hero__unified-content .hero__actions-new {
    justify-content: center !important;
    width: 100% !important;
}


/* ==========================================
   HERO - CREST BIGGER & TO THE RIGHT
   ========================================== */

.hero__unified-crest {
    margin-right: -2rem !important;
    margin-left: 2rem !important;
}

.hero__unified-crest img {
    width: 220px !important;
    height: 220px !important;
}

/* Adjust inner padding to accommodate */
.hero__unified-inner {
    padding: 2.25rem 4rem 2.25rem 3rem !important;
}

/* Mobile - reset positioning */
@media (max-width: 900px) {
    .hero__unified-crest {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    
    .hero__unified-crest img {
        width: 140px !important;
        height: 140px !important;
    }
    
    .hero__unified-inner {
        padding: 1.5rem !important;
    }
}


/* ==========================================
   HERO - CREST EVEN BIGGER
   ========================================== */

.hero__unified-crest img {
    width: 280px !important;
    height: 280px !important;
}

/* Mobile */
@media (max-width: 900px) {
    .hero__unified-crest img {
        width: 160px !important;
        height: 160px !important;
    }
}


/* ==========================================
   HERO - MORE TRANSPARENT GLASS
   ========================================== */

.hero__unified-card {
    background: linear-gradient(135deg, 
        rgba(15, 37, 64, 0.5) 0%, 
        rgba(26, 58, 92, 0.4) 50%,
        rgba(15, 37, 64, 0.5) 100%) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
}


/* ==========================================
   DEPARTMENT ACTION BUTTONS - FIX TEXT COLOR
   ========================================== */

.dept-action-btn--featured .dept-action-btn__text h3 {
    color: #047857 !important;
}

.dept-action-btn--featured .dept-action-btn__text p {
    color: #065f46 !important;
    opacity: 1 !important;
}

/* Blue variant */
.dept-action-btn--featured.dept-action-btn--blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2) !important;
}

.dept-action-btn--featured.dept-action-btn--blue .dept-action-btn__text h3 {
    color: #1e40af !important;
}

.dept-action-btn--featured.dept-action-btn--blue .dept-action-btn__text p {
    color: #1e3a8a !important;
    opacity: 1 !important;
}

/* Red variant */
.dept-action-btn--featured.dept-action-btn--red {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    border: 2px solid #ef4444 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2) !important;
}

.dept-action-btn--featured.dept-action-btn--red .dept-action-btn__text h3 {
    color: #b91c1c !important;
}

.dept-action-btn--featured.dept-action-btn--red .dept-action-btn__text p {
    color: #991b1b !important;
    opacity: 1 !important;
}


.hero__unified-card {
    background: linear-gradient(135deg, rgba(15, 37, 64, 0.8) 0%, rgba(26, 58, 92, 0.75) 100%) !important;
}


.hero__unified-card {
    background: linear-gradient(135deg, rgba(15, 37, 64, 0.5) 0%, rgba(26, 58, 92, 0.45) 100%) !important;
}
.hero__unified-inner {
    padding: 4rem 3rem !important;
}




/* Subtle gradient shimmer effect */
.hero__unified-card::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 50% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent) !important;
    animation: shimmer 8s ease-in-out infinite !important;
    pointer-events: none;
    border-radius: 30px !important;
}


/* Enhanced title with text shadow */
.hero__title-large {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 60px rgba(212, 168, 75, 0.3) !important;
}

/* Badge enhancement */
.hero__badge-new {
    box-shadow: 0 4px 20px rgba(212, 168, 75, 0.3) !important;
}

/* Crest glow */
.hero__unified-crest img {
    filter: drop-shadow(0 0 25px rgba(212, 168, 75, 0.4)) !important;
}


/* ========== SERVICES PAGE ========== */

/* Quick Actions Bar */
.services-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.quick-action--primary { border-color: #10b981; }
.quick-action--primary:hover { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.quick-action--primary:hover .quick-action__icon { background: rgba(255,255,255,0.2); color: #fff; }

.quick-action--secondary { border-color: #3b82f6; }
.quick-action--secondary:hover { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.quick-action--secondary:hover .quick-action__icon { background: rgba(255,255,255,0.2); color: #fff; }

.quick-action--accent { border-color: #8b5cf6; }
.quick-action--accent:hover { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: #fff; }
.quick-action--accent:hover .quick-action__icon { background: rgba(255,255,255,0.2); color: #fff; }

.quick-action__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quick-action--primary .quick-action__icon { background: #d1fae5; color: #059669; }
.quick-action--secondary .quick-action__icon { background: #dbeafe; color: #1d4ed8; }
.quick-action--accent .quick-action__icon { background: #ede9fe; color: #7c3aed; }

.quick-action__text h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.quick-action__text p {
    margin: 0;
    font-size: 0.9rem;
    color: #595959; /* WCAG AA - replaced opacity */
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

.service-card__header {
    background: #1e3a5f !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: #fff;
}

.service-card__header svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.service-card__header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff !important;
}

.service-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card__list li {
    border-bottom: 1px solid #f3f4f6;
}

.service-card__list li:last-child {
    border-bottom: none;
}

.service-card__list a {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.service-card__list a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #d1d5db;
    border-radius: 50%;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
}

.service-card__list a:hover {
    background: #f9fafb;
    color: #1e3a5f;
    padding-left: 1.75rem;
}

.service-card__list a:hover::before {
    background: #1e3a5f;
    transform: scale(1.3);
}

/* External link indicator */
.service-card__list a[target="_blank"]::after {
    content: '↗';
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-action {
        padding: 1.25rem;
    }
    
    .quick-action__icon {
        width: 50px;
        height: 50px;
    }
}

/* ========== END SERVICES PAGE ========== */

/* ============================================================================
   Page Content Styling (for Chester-created pages)
   ============================================================================ */
.page-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: #2563eb;
    text-decoration: underline;
}

.page-content a:hover {
    color: #1e3a5f;
}

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

.page-content blockquote {
    border-left: 4px solid #c9a227;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #64748b;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.page-content th,
.page-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.page-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e3a5f;
}

.page-content tr:hover {
    background: #f8fafc;
}

.page-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

.page-content .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #1e3a5f;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: background 0.2s;
}

.page-content .btn:hover {
    background: #0f2744;
    color: white;
}

.page-content .btn--secondary {
    background: #f1f5f9;
    color: #1e3a5f;
}

.page-content .btn--secondary:hover {
    background: #e2e8f0;
}

/* Page Layout */
.page-layout-default,
.page-layout-full {
    max-width: 900px;
    margin: 0 auto;
}

.page-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-main {
    min-width: 0;
}

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

/* ============================================================================
   Content Section Styling (for Chester-created content)
   ============================================================================ */
.content-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #c9a227;
    display: inline-block;
}

.content-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #374151;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #374151;
}

.content-section a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.content-section a:hover {
    color: #1e3a5f;
}

/* Alert boxes in content */
.content-section .alert,
.page-content .alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #22c55e;
    color: #166534;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.alert p {
    margin: 0;
}

/* Page header improvements */
.page-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0.5rem 0 0;
}

.page-header .breadcrumb {
    font-size: 0.9rem;
    opacity: 0.85;
}

.page-header .breadcrumb a {
    color: white;
    text-decoration: none;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================================================
   Page Style Themes (Chester can apply these based on user preference)
   ============================================================================ */

/* Professional/Formal Theme */
.page-style-professional .content-section h2 {
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    border-bottom: 2px solid #1e3a5f;
    color: #0f172a;
}

.page-style-professional .content-section {
    border-bottom: 1px solid #cbd5e1;
}

.page-style-professional .content-section p {
    font-size: 1rem;
    color: #1e293b;
}

.page-style-professional .alert {
    border-radius: 4px;
    border-left-width: 5px;
}

/* Casual/Friendly Theme */
.page-style-casual .content-section h2 {
    font-size: 1.5rem;
    color: #0369a1;
    border-bottom: none;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: block;
}

.page-style-casual .content-section {
    border-bottom: none;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.page-style-casual .content-section p {
    font-size: 1.05rem;
    color: #334155;
}

.page-style-casual .alert {
    border-radius: 16px;
    border-left: none;
    border: 2px solid;
}

.page-style-casual .alert-info {
    border-color: #3b82f6;
}

/* Modern/Clean Theme */
.page-style-modern .content-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e3a5f;
    border-bottom: none;
    position: relative;
    padding-left: 1rem;
}

.page-style-modern .content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #c9a227 0%, #eab308 100%);
    border-radius: 2px;
}

.page-style-modern .content-section {
    border-bottom: none;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.page-style-modern .content-section p {
    font-size: 1.0625rem;
    line-height: 1.9;
}

.page-style-modern .alert {
    border-radius: 12px;
    border-left: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Classic/Traditional Theme */
.page-style-classic .content-section h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: double 3px #1e3a5f;
    padding-bottom: 0.5rem;
}

.page-style-classic .content-section {
    border-bottom: 1px dashed #94a3b8;
}

.page-style-classic .content-section p {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #1e293b;
}

.page-style-classic ul,
.page-style-classic ol {
    list-style-position: outside;
}

.page-style-classic .alert {
    border: 1px solid;
    border-radius: 0;
}

/* Minimal/Simple Theme */
.page-style-minimal .content-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.page-style-minimal .content-section {
    border-bottom: none;
    margin-bottom: 2.5rem;
}

.page-style-minimal .content-section p {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

.page-style-minimal .alert {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid;
    border-radius: 0;
}

/* Bold/Impactful Theme */
.page-style-bold .content-section h2 {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-bottom: none;
    display: block;
    margin-bottom: 1.5rem;
}

.page-style-bold .content-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e40af;
}

.page-style-bold .content-section {
    border-bottom: none;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid #e2e8f0;
}

.page-style-bold .content-section p {
    font-size: 1.1rem;
    font-weight: 500;
}

.page-style-bold .alert {
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Government/Official Theme */
.page-style-official .page-content {
    border: 2px solid #1e3a5f;
    padding: 2rem;
    border-radius: 4px;
    background: white;
}

.page-style-official .content-section h2 {
    font-family: 'Georgia', serif;
    color: #0f172a;
    border-bottom: 2px solid #c9a227;
    font-size: 1.4rem;
}

.page-style-official .content-section p {
    font-size: 1rem;
    color: #1e293b;
    text-align: justify;
}

.page-style-official .alert {
    background: #fefce8;
    border: 2px solid #ca8a04;
    border-radius: 0;
    color: #713f12;
}

/* ===========================================
   DEPARTMENT PATCH - Overlapping Header Style
   =========================================== */
.dept-header .container {
    position: relative;
}

.dept-patch {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    z-index: 10;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
    pointer-events: auto;
}

.dept-patch:hover {
    transform: translateY(-50%) scale(1.08) rotate(2deg);
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.dept-patch img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Adjust content padding when patch is present */
.dept-header__content.has-patch {
    padding-left: 100px !important;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .dept-patch {
        width: 90px;
        height: 90px;
        left: -10px;
    }
    
    .dept-header__content.has-patch {
        padding-left: 90px !important;
    }
}

@media (max-width: 768px) {
    .dept-patch {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100px;
        height: 100px;
        margin: 0 auto 1rem;
        display: block;
    }
    
    .dept-patch:hover {
        transform: scale(1.05) rotate(2deg);
    }
    
    .dept-header__content.has-patch {
        padding-left: 2.5rem !important;
        text-align: center;
    }
}

/* PATCH SIZE FIX - Override previous */
.dept-patch {
    width: 130px !important;
    height: 130px !important;
    left: -35px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.dept-patch:hover {
    transform: translateY(-50%) scale(1.08) rotate(2deg) !important;
}

.dept-header__content.has-patch {
    padding-left: 110px !important;
}

@media (max-width: 992px) {
    .dept-patch {
        width: 110px !important;
        height: 110px !important;
        left: -25px !important;
    }
    
    .dept-header__content.has-patch {
        padding-left: 95px !important;
    }
}

@media (max-width: 768px) {
    .dept-patch {
        width: 90px !important;
        height: 90px !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 auto 1rem !important;
    }
    
    .dept-header__content.has-patch {
        padding-left: 2.5rem !important;
    }
}

/* WIDER HEADER & BIGGER PATCH */
.dept-header__content {
    max-width: 1200px !important;
    padding: 2.5rem 3rem !important;
}

.dept-header .container {
    max-width: 1250px !important;
}

.dept-patch {
    width: 170px !important;
    height: 170px !important;
    left: -45px !important;
}

.dept-header__content.has-patch {
    padding-left: 140px !important;
    min-height: 140px !important;
}

@media (max-width: 992px) {
    .dept-patch {
        width: 140px !important;
        height: 140px !important;
        left: -30px !important;
    }
    
    .dept-header__content.has-patch {
        padding-left: 120px !important;
    }
}

@media (max-width: 768px) {
    .dept-patch {
        width: 110px !important;
        height: 110px !important;
    }
}

/* BIGGER PATCH INSIDE HEADER */
.dept-header__content {
    min-height: 180px !important;
    padding: 2rem 3rem 2rem 200px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.dept-patch {
    width: 200px !important;
    height: 200px !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.dept-patch:hover {
    transform: translateY(-50%) scale(1.05) !important;
}

.dept-header__content.has-patch {
    padding-left: 220px !important;
}

@media (max-width: 992px) {
    .dept-patch {
        width: 160px !important;
        height: 160px !important;
        left: 5px !important;
    }
    
    .dept-header__content.has-patch {
        padding-left: 175px !important;
    }
}

@media (max-width: 768px) {
    .dept-patch {
        width: 120px !important;
        height: 120px !important;
        position: relative !important;
        left: auto !important;
        margin: 0 auto 1rem !important;
    }
    
    .dept-header__content.has-patch {
        padding-left: 2rem !important;
    }
}

/* POLICE PATCH SIZE BUMP */
.dept-patch img[alt*="Police"] {
    transform: scale(1.1);
}

/* ===========================================
   THANK AN OFFICER - Premium CTA Button
   =========================================== */
.thank-officer-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 
        0 10px 40px rgba(212, 175, 55, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.thank-officer-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, #d4af37, #f4d03f, #d4af37, #aa8c2c);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.thank-officer-btn:hover::before {
    opacity: 1;
}

.thank-officer-btn__glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.thank-officer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 50px rgba(212, 175, 55, 0.25),
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.thank-officer-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 
        0 5px 20px rgba(212, 175, 55, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
    0%, 100% { box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 5px 30px rgba(212, 175, 55, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.5); }
}

.thank-officer-btn__icon svg {
    color: #1a1a2e;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.thank-officer-btn__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.thank-officer-btn__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
}

.thank-officer-btn__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.thank-officer-btn__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.thank-officer-btn__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: #d4af37;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.thank-officer-btn:hover .thank-officer-btn__arrow {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .thank-officer-btn {
        flex-wrap: wrap;
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .thank-officer-btn__icon {
        width: 60px;
        height: 60px;
    }
    
    .thank-officer-btn__title {
        font-size: 1.25rem;
    }
    
    .thank-officer-btn__arrow {
        display: none;
    }
}

/* ===========================================
   ENHANCED POPUP FORM STYLING
   =========================================== */

/* Popup container improvements */
.popup-modal__container {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(26, 58, 92, 0.1) !important;
    max-width: 1100px !important;
}

/* Header styling */
.popup-modal__container > div > h2 {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1a3a5c !important;
    padding: 1.5rem 2rem 1rem !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%) !important;
    color: white !important;
    border-radius: 16px 16px 0 0 !important;
    margin: -1rem -1rem 1.5rem -1rem !important;
    padding: 1.75rem 2rem !important;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
}

.popup-modal__container > div > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    border-radius: 2px;
}

/* Form container */
.popup-modal__content {
    padding: 0 1.5rem 1.5rem !important;
}

.popup-modal__content form {
    margin-top: 0 !important;
}

/* Section headers in form */
.popup-modal__content h3 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1a3a5c !important;
    margin: 1.75rem 0 1rem !important;
    padding: 0.75rem 1rem !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-left: 4px solid #d4af37 !important;
    border-radius: 0 8px 8px 0 !important;
    border-bottom: none !important;
}

/* Form labels */
.popup-modal__content label {
    font-weight: 600 !important;
    color: #334155 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.popup-modal__content label span[style*="color:#dc2626"] {
    color: #dc2626 !important;
    font-weight: 700 !important;
}

/* Form inputs */
.popup-modal__content input[type="text"],
.popup-modal__content input[type="email"],
.popup-modal__content input[type="tel"],
.popup-modal__content input[type="date"],
.popup-modal__content textarea,
.popup-modal__content select {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.popup-modal__content input:focus,
.popup-modal__content textarea:focus,
.popup-modal__content select:focus {
    outline: none !important;
    border-color: #1a3a5c !important;
    box-shadow: 0 0 0 4px rgba(26, 58, 92, 0.1) !important;
}

.popup-modal__content textarea {
    min-height: 140px !important;
    resize: vertical !important;
}

/* Submit button */
.popup-modal__content button[type="submit"] {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%) !important;
    background-size: 200% 200% !important;
    color: #1a1a2e !important;
    border: none !important;
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.popup-modal__content button[type="submit"]:hover {
    background-position: 100% 50% !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
}

.popup-modal__content button[type="submit"]:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* reCAPTCHA notice */
.popup-modal__content p[style*="font-size:0.75rem"] {
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    margin-top: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.popup-modal__content p[style*="font-size:0.75rem"]::before {
    content: '🔒';
    font-size: 0.9rem;
}

/* Success message */
.popup-modal__content div[id*="success"] {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border: 2px solid #10b981 !important;
    border-radius: 12px !important;
    padding: 2.5rem !important;
    text-align: center !important;
}

.popup-modal__content div[id*="success"] h3 {
    color: #059669 !important;
    font-size: 1.5rem !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.popup-modal__content div[id*="success"]::before {
    content: '✓';
    display: block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Close button enhancement */
.popup-modal__close {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 1.5rem !important;
    color: #64748b !important;
    cursor: pointer !important;
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.popup-modal__close:hover {
    background: #fff !important;
    color: #1a3a5c !important;
    transform: rotate(90deg) !important;
}

/* Form group spacing */
.popup-modal__content div[style*="margin-bottom:1.25rem"] {
    margin-bottom: 1.25rem !important;
}

/* FIX: Hide empty section dividers in popup forms */
.popup-modal__content h3:empty,
.popup-modal__content h3[style*="border-bottom"]:empty {
    display: none !important;
}

/* Style for section dividers that have no text */
.popup-modal__content h3[style*="border-bottom"] {
    background: none !important;
    border-left: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0.5rem 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Thank Button - Green Variant (Public Works) */
.thank-officer-btn--green::before {
    background: linear-gradient(135deg, #16a34a, #22c55e, #16a34a, #15803d) !important;
}

.thank-officer-btn--green .thank-officer-btn__icon {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #16a34a 100%) !important;
    box-shadow: 0 5px 20px rgba(22, 163, 74, 0.4) !important;
}

.thank-officer-btn--green .thank-officer-btn__label {
    color: #22c55e !important;
}

.thank-officer-btn--green .thank-officer-btn__arrow {
    border-color: rgba(34, 197, 94, 0.3) !important;
    color: #22c55e !important;
}

.thank-officer-btn--green:hover {
    box-shadow: 0 15px 50px rgba(22, 163, 74, 0.25), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.thank-officer-btn--green:hover .thank-officer-btn__arrow {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: #22c55e !important;
}

/* Thank Button - Red/Orange Variant (Fire) */
.thank-officer-btn--fire::before {
    background: linear-gradient(135deg, #dc2626, #f97316, #dc2626, #ea580c) !important;
}

.thank-officer-btn--fire .thank-officer-btn__icon {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 50%, #dc2626 100%) !important;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.4) !important;
}

.thank-officer-btn--fire .thank-officer-btn__label {
    color: #f97316 !important;
}

.thank-officer-btn--fire .thank-officer-btn__arrow {
    border-color: rgba(249, 115, 22, 0.3) !important;
    color: #f97316 !important;
}

.thank-officer-btn--fire:hover {
    box-shadow: 0 15px 50px rgba(220, 38, 38, 0.25), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.thank-officer-btn--fire:hover .thank-officer-btn__arrow {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: #f97316 !important;
}
}

.thank-officer-btn--fire:hover .thank-officer-btn__arrow {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: #f97316 !important;
}

/* Public Works patch slightly smaller */
.dept-patch img[alt*="Public Works"] {
    transform: scale(0.85);
}

/* Thank Button - Blue Variant (Police) */
.thank-officer-btn--blue::before {
    background: linear-gradient(135deg, #1a3a5c, #2563eb, #1a3a5c, #1e40af) !important;
}

.thank-officer-btn--blue .thank-officer-btn__icon {
    background: linear-gradient(135deg, #1a3a5c 0%, #2563eb 50%, #1a3a5c 100%) !important;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4) !important;
}

.thank-officer-btn--blue .thank-officer-btn__label {
    color: #3b82f6 !important;
}

.thank-officer-btn--blue .thank-officer-btn__arrow {
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #3b82f6 !important;
}

.thank-officer-btn--blue:hover {
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.25), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.thank-officer-btn--blue:hover .thank-officer-btn__arrow {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: #3b82f6 !important;
}

/* Thank Button - Orange Variant (Public Works) */
.thank-officer-btn--orange::before {
    background: linear-gradient(135deg, #ea580c, #f97316, #ea580c, #c2410c) !important;
}

.thank-officer-btn--orange .thank-officer-btn__glow {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 60%) !important;
}

.thank-officer-btn--orange:hover {
    box-shadow: 
        0 15px 50px rgba(249, 115, 22, 0.25),
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.thank-officer-btn--orange .thank-officer-btn__icon {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #ea580c 100%) !important;
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
}

@keyframes iconShineOrange {
    0%, 100% { box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 5px 30px rgba(249, 115, 22, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.5); }
}

.thank-officer-btn--orange .thank-officer-btn__icon {
    animation: iconShineOrange 3s ease-in-out infinite !important;
}

.thank-officer-btn--orange .thank-officer-btn__label {
    color: #f97316 !important;
}

.thank-officer-btn--orange .thank-officer-btn__arrow {
    background: rgba(249, 115, 22, 0.1) !important;
    border-color: rgba(249, 115, 22, 0.3) !important;
    color: #f97316 !important;
}

.thank-officer-btn--orange:hover .thank-officer-btn__arrow {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: #f97316 !important;
}

/* Map button override for tree inventory and similar pages */
.map-btn,
.content-section .map-btn,
.page-content .map-btn {
    color: white !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #166534 0%, #15803d 100%) !important;
}
.map-btn:hover,
.content-section .map-btn:hover,
.page-content .map-btn:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Chamber of commerce and other CTA buttons - white text */
.cta-btn,
.content-section .cta-btn,
.page-content .cta-btn,
.chamber-btn,
.content-section .chamber-btn,
.page-content .chamber-btn,
.btn-primary,
.content-section .btn-primary,
.page-content .btn-primary {
    color: white !important;
    text-decoration: none !important;
}
.cta-btn:hover,
.content-section .cta-btn:hover,
.page-content .cta-btn:hover,
.chamber-btn:hover,
.content-section .chamber-btn:hover,
.page-content .chamber-btn:hover,
.btn-primary:hover,
.content-section .btn-primary:hover,
.page-content .btn-primary:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Food pantry and action buttons - white text */
.action-btn,
.content-section .action-btn,
.page-content .action-btn,
.footer-btn-SKIP,
.content-section .footer-btn-SKIP,
.page-content .footer-btn-SKIP {
    color: white !important;
    text-decoration: none !important;
}
.action-btn:hover,
.content-section .action-btn:hover,
.page-content .action-btn:hover,
.footer-btn-SKIP:hover,
.content-section .footer-btn-SKIP:hover,
.page-content .footer-btn-SKIP:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Footer button - green text on white background */
.footer-btn,
.content-section .footer-btn,
.page-content .footer-btn {
    color: #166534 !important; /* WCAG AA */
    text-decoration: none !important;
}
.footer-btn:hover,
.content-section .footer-btn:hover,
.page-content .footer-btn:hover {
    color: #14532d !important; /* WCAG AA */
    text-decoration: none !important;
}

/* Hide duplicate h2 headers inside popup content that have inline styles */
.popup-modal__content .popup-modal__body > div:first-child h2[style],
.popup-modal__content .popup-modal__text > div:first-child h2[style],
.popup-modal__body > div:first-child > h2[style*="color: #1a3a5c"],
.popup-modal__body > div:first-child > h2[style*="color:#1a3a5c"] {
    display: none !important;
}

/* Also hide the department/subtitle line right after */
.popup-modal__content .popup-modal__body > div:first-child > p[style*="color: #666"],
.popup-modal__content .popup-modal__body > div:first-child > p[style*="color:#666"] {
    display: none !important;
}


/* Hide the duplicate header section inside popup content */
/* This targets the centered div with icon/h2/subtitle at start of popup content */
.popup-modal__text > div[style*="text-align: center"]:first-child {
    display: none !important;
}

/* ============================================
   SECTION DIVIDERS - Modern Wave & Gradient
   ============================================ */

/* Gradient Fade Divider */
.section-divider-gradient {
    height: 80px;
    background: linear-gradient(180deg, 
        rgba(248,250,252,0) 0%,
        rgba(30,58,95,0.04) 50%,
        rgba(248,250,252,0) 100%
    );
    position: relative;
}
.section-divider-gradient::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

/* Decorative Diamond Divider */
.section-divider-diamond {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
}
.section-divider-diamond::before,
.section-divider-diamond::after {
    content: '';
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30,58,95,0.2), transparent);
}
.section-divider-diamond span {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(201,162,39,0.3);
}

/* Wave Divider */
.section-divider-wave {
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23f8fafc'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}
.section-divider-wave--flip {
    transform: rotate(180deg);
}

/* ============================================
   UNIFORM MEETING CARDS & VIDEO WIDGET
   ============================================ */
.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.meeting-card {
    min-height: 76px !important;
    max-height: 76px !important;
    overflow: hidden;
    align-items: center;
}
.meeting-card__date {
    width: 50px !important;
    height: 50px !important;
    padding: 0.35rem !important;
    flex-shrink: 0 !important;
}
.meeting-card__date .month {
    font-size: 0.6rem !important;
}
.meeting-card__date .day {
    font-size: 1.1rem !important;
}
.meeting-card__info {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
.meeting-card__info h4 {
    font-size: 0.85rem !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.meeting-card__info p {
    font-size: 0.75rem !important;
    margin-bottom: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Video Widget - Match meeting card style */
.video-widget {
    min-height: 76px !important;
    max-height: 76px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    gap: 1rem;
}
.video-widget::before {
    content: '📺' !important;
    font-size: 1.5rem;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 8px;
    position: static !important;
}
.video-widget__content {
    flex: 1;
    min-width: 0;
}
.video-widget h3 {
    font-size: 0.85rem !important;
    margin-bottom: 2px !important;
}
.video-widget p {
    font-size: 0.7rem !important;
    margin-bottom: 0 !important;
    display: block !important;
}
.video-widget .btn {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.7rem !important;
    flex-shrink: 0;
}

/* ============================================
   ALIGNED EVENT CARDS - Match News Grid Height
   ============================================ */
.section-sidebar {
    display: flex;
    flex-direction: column;
}
.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.meeting-card {
    min-height: 90px !important;
    max-height: 90px !important;
    padding: 1rem !important;
    overflow: hidden !important;
    align-items: center !important;
}
.meeting-card__date {
    width: 58px !important;
    height: 58px !important;
    padding: 0.5rem !important;
}
.meeting-card__date .month {
    font-size: 0.7rem !important;
}
.meeting-card__date .day {
    font-size: 1.35rem !important;
}
.meeting-card__info {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
.meeting-card__info h4 {
    font-size: 0.9rem !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3;
}
.meeting-card__info p {
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Video Widget - Match larger card style */
.video-widget {
    min-height: 90px !important;
    max-height: 90px !important;
    padding: 1rem !important;
    margin-top: auto;
}
.video-widget::before {
    width: 58px !important;
    height: 58px !important;
    font-size: 1.75rem !important;
}
.video-widget h3 {
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
}
.video-widget p {
    font-size: 0.8rem !important;
}
.video-widget .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
}

/* Align events sidebar with news grid */
.section-sidebar {
    margin-top: -10px;
}
.section-sidebar .section-header {
    margin-bottom: 1rem;
}

/* ============================================
   LIVE MEETING INDICATOR
   ============================================ */
.live-badge {
    color: #ef4444;
    font-weight: 700;
    animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.video-widget--live {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%) !important;
    border: 2px solid #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}
.video-widget--live::before {
    content: '📡' !important;
    background: rgba(239, 68, 68, 0.3) !important;
}
.video-widget--live .btn--live {
    background: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
    animation: live-glow 2s ease-in-out infinite;
}
@keyframes live-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.8); }
}
.video-widget--live .btn--live:hover {
    background: white !important;
    color: #ef4444 !important;
}

/* ============================================
   DEPARTMENT BACKGROUND WATERMARKS
   ============================================ */
body.dept-police::before,
body.dept-fire::before,
body.dept-public-works::before {
    content: '';
    position: fixed;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vmin;
    height: 95vmin;
    opacity: 0.09;
    pointer-events: none;
    z-index: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center 30%;
}
body.dept-police::before {
    background-image: url('/static/images/patches/police-patch.png');
}
body.dept-fire::before {
    background-image: url('/static/images/patches/fire-patch.png');
}
body.dept-public-works::before {
    background-image: url('/static/images/patches/public-works-patch.png');
}

/* Ensure content stays above watermark */
body.dept-police main,
body.dept-police section,
body.dept-fire main,
body.dept-fire section,
body.dept-public-works main,
body.dept-public-works section {
    position: relative;
    z-index: 1;
}

/* Footer Facebook Button */
.footer__social {
    margin-top: 1rem;
}
.footer__facebook-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: #1558b0; /* WCAG AA - darkened Facebook blue */
    color: white !important;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}
.footer__facebook-btn:hover {
    background: #1558b0; /* WCAG AA - darkened Facebook blue */
    box-shadow: 0 6px 25px rgba(24, 119, 242, 0.6);
    transform: translateY(-3px);
    color: white !important;
}
.footer__facebook-btn svg {
    fill: white;
    flex-shrink: 0;
}

/* ============================================================
   HERO POSITIONING - Desktop
   ============================================================ */

@media (min-width: 769px) {
    .hero--split {
        min-height: 600px;
        max-height: 600px;
        height: 600px;
        overflow: visible;
    }
    
    .hero--split .container {
        position: absolute;
        bottom: -80px;
        left: 0;
        right: 0;
    }
    
    .hero__unified {
        padding: 0;
    }
    
    .hero__unified-card {
        margin-top: 0;
    }
    
    .quick-links {
        margin-top: 100px;
    }
}

/* ============================================================
   MOBILE STYLES
   ============================================================ */

@media (max-width: 768px) {
    
    /* === HERO === */
    .hero--split {
        min-height: 250px !important;
        max-height: 280px !important;
        height: auto !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    .hero--split .container {
        position: relative !important;
        bottom: auto !important;
    }
    
    .hero__unified {
        padding: 0.5rem !important;
        min-height: auto !important;
        align-items: center !important;
    }
    
    .hero__unified-card {
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        margin-top: 0 !important;
    }
    
    .hero__unified-inner {
        padding: 0.75rem !important;
        gap: 0.25rem !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero__unified-crest img {
        width: 70px !important;
        height: 70px !important;
        animation: none !important;
    }
    
    .hero__welcome {
        font-size: 0.75rem !important;
        color: #8B6914 !important;
    }
    
    .hero__title-large {
        font-size: 1.4rem !important;
        color: #8B6914 !important;
    }
    
    .hero__actions-new,
    .hero__subtitle-new,
    .hero__divider {
        display: none !important;
    }
    
    .quick-links {
        margin-top: 0 !important;
    }
    
    /* Disable parallax */
    .parallax-layer {
        transform: none !important;
    }
    
    /* === QUICK LINKS === */
    .quick-links__grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .quick-link, .quick-link--3d {
        padding: 1rem !important;
        background: white !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    }
    
    .quick-link__icon {
        width: 45px !important;
        height: 45px !important;
        pointer-events: none;
        background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 100%) !important;
        border-radius: 12px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .quick-link__icon svg {
        width: 22px !important;
        height: 22px !important;
        stroke: white !important;
    }
    
    .quick-link__title {
        font-size: 0.75rem !important;
    }
    
    /* === BOTTOM NAV === */
    .mobile-quick-actions__grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-around !important;
    }
    
    .mobile-quick-actions__item {
        flex: 1 !important;
        padding: 0.5rem 0.25rem !important;
    }
    
    .mobile-quick-actions__item svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .mobile-quick-actions__item span {
        font-size: 0.6rem !important;
    }
}


/* ============================================================
   DESKTOP HERO FIX
   ============================================================ */

@media (min-width: 769px) {
    .hero--split {
        min-height: 600px !important;
        max-height: 600px !important;
        height: 600px !important;
        overflow: visible !important;
    }
    
    .hero--split .container {
        position: absolute !important;
        bottom: -80px !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .hero__unified {
        padding: 0 !important;
    }
    
    .hero__unified-card {
        margin-top: 0 !important;
        pointer-events: none;
        background: linear-gradient(135deg, rgba(15, 37, 64, 0.1) 0%, rgba(26, 58, 92, 0.05) 100%) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-radius: 24px !important;
    }
    
    .quick-links {
        margin-top: 100px !important;
    }
}


/* ============================================================
   MOBILE HERO - Fix text cutoff, more visible image, white text
   ============================================================ */

@media (max-width: 768px) {
    
    /* Make hero taller to show more image */
    .hero--split {
        min-height: 300px !important;
        max-height: 350px !important;
    }
    
    /* Add padding so text doesn't hit edges */
    .hero__unified-inner {
        padding: 1rem 1.5rem !important;
    }
    
    /* White text */
    .hero__welcome {
        color: white !important;
        font-size: 0.8rem !important;
    }
    
    .hero__title-large {
        color: white !important;
        font-size: 1.25rem !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
    }
}


/* ============================================================
   MOBILE HERO - Smaller text to prevent cutoff
   ============================================================ */

@media (max-width: 768px) {
    
    .hero__welcome {
        font-size: 0.65rem !important;
        letter-spacing: 2px !important;
    }
    
    .hero__title-large {
        font-size: 1.1rem !important;
        letter-spacing: 1px !important;
    }
}


/* ============================================================
   MOBILE HERO - Force text to fit
   ============================================================ */

@media (max-width: 768px) {
    
    .hero__title-large {
        font-size: 1rem !important;
        letter-spacing: 0px !important;
        word-spacing: -2px !important;
        padding: 0 10px !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero__welcome {
        font-size: 0.6rem !important;
        letter-spacing: 1px !important;
    }
    
    .hero__unified-content {
        width: 100% !important;
        padding: 0 5px !important;
        overflow: hidden !important;
    }
}


/* ============================================================
   MOBILE HERO - Scale text with viewport
   ============================================================ */

@media (max-width: 768px) {
    
    .hero__title-large {
        font-size: 5.5vw !important;
        letter-spacing: 0 !important;
    }
}


/* ============================================================
   CREST STYLING - Darkening/glow effect
   ============================================================ */

.hero__unified-crest img,
.hero__crest img {
    filter: 
        saturate(0.7)
        hue-rotate(-15deg)
        brightness(0.9)
        drop-shadow(0 0 40px rgba(26, 58, 92, 0.05)) !important;
}


/* ============================================================
   MOBILE HERO - Scale down entire text container
   ============================================================ */

@media (max-width: 768px) {
    
    .hero__unified-content {
        transform: scale(0.85) !important;
    }
    
    .hero__title-large {
        font-size: 1.5rem !important;
        white-space: nowrap !important;
    }
}


/* ============================================================
   MOBILE HERO - Fix title with specific selector
   ============================================================ */

@media (max-width: 768px) {
    
    .hero__unified-content .hero__title-large {
        font-size: 1.3rem !important;
        letter-spacing: 2px !important;
    }
    
    .hero__unified-content .hero__welcome {
        font-size: 0.65rem !important;
        letter-spacing: 2px !important;
    }
}


/* ============================================================
   MOBILE HERO - Shrink and round corners
   ============================================================ */

@media (max-width: 768px) {
    
    /* Shrink hero */
    .hero--split {
        min-height: 250px !important;
        max-height: 280px !important;
        margin: 0 10px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }
    
    /* Round the background too */
    .hero__background {
        border-radius: 20px !important;
    }
}


/* ============================================================
   MOBILE HERO - Polish and clean up
   ============================================================ */

@media (max-width: 768px) {
    
    /* Full width, no margins, cleaner look */
    .hero--split {
        margin: 0 !important;
        border-radius: 0 !important;
        min-height: 280px !important;
        max-height: 300px !important;
    }
    
    .hero__background {
        border-radius: 0 !important;
    }
    
    /* Add gradient overlay for better text readability */
    .hero__background::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        pointer-events: none;
        background: linear-gradient(
            to bottom,
            rgba(26, 58, 92, 0.3) 0%,
            rgba(26, 58, 92, 0.5) 50%,
            rgba(26, 58, 92, 0.7) 100%
        ) !important;
    }
    
    /* Center content better */
    .hero__unified-inner {
        justify-content: center !important;
        padding: 1.5rem !important;
    }
    
    /* Make crest slightly smaller */
    .hero__unified-crest img {
        width: 65px !important;
        height: 65px !important;
    }
    
    /* Adjust text spacing */
    .hero__unified-content .hero__welcome {
        margin-bottom: 0.25rem !important;
    }
    
    .hero__unified-content .hero__title-large {
        color: white !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    }
}


/* ============================================================
   MOBILE HERO - Bigger text and crest
   ============================================================ */

@media (max-width: 768px) {
    
    /* Bigger crest */
    .hero__unified-crest img {
        width: 90px !important;
        height: 90px !important;
    }
    
    /* Bigger text */
    .hero__unified-content .hero__welcome {
        font-size: 0.85rem !important;
        letter-spacing: 3px !important;
    }
    
    .hero__unified-content .hero__title-large {
        font-size: 1.75rem !important;
        letter-spacing: 3px !important;
    }
}


/* ============================================================
   MOBILE - Chester fullscreen and compact header
   ============================================================ */

@media (max-width: 992px) {
    
    /* ----- CHESTER WINDOW - TRUE FULL SCREEN ----- */
    #chesterWindow {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        z-index: 99999 !important;
    }
    
    /* ----- CHESTER HEADER - SLIM BAR ----- */
    #chesterHeader {
        padding: 12px 16px !important;
        gap: 10px !important;
    }
    
    /* Avatar - much smaller */
    .chester-header-avatar,
    #chesterHeader img {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    
    /* Header info text */
    #chesterHeader .chester-header-info h3,
    #chesterHeader h3 {
        font-size: 16px !important;
        margin: 0 !important;
    }
    
    #chesterHeader .chester-header-info p,
    #chesterHeader .chester-header-info span,
    #chesterHeader p {
        font-size: 11px !important;
        margin: 0 !important;
        opacity: 0.9 !important;
    }
    
    /* Hide "Online & ready to help" on mobile */
    #chesterHeader .chester-header-info p:last-child,
    #chesterHeader .online-status {
        display: none !important;
    }
    
    /* Font controls - smaller */
    #chesterHeader .chester-font-controls,
    #chesterHeader .font-controls {
        gap: 4px !important;
    }
    
    #chesterHeader .chester-font-controls button,
    #chesterHeader button:not(.chester-close) {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        padding: 0 !important;
    }
    
    /* Close button */
    .chester-close,
    #chesterHeader button.chester-close {
        width: 32px !important;
        height: 32px !important;
        font-size: 20px !important;
    }
    
    /* ----- MESSAGES AREA - MORE SPACE ----- */
    #chesterMessages {
        flex: 1 !important;
        padding: 16px !important;
        padding-bottom: 80px !important;
    }
    
    /* ----- INPUT AREA - FIXED AT BOTTOM ----- */
    #chesterInput,
    #chesterWindow > div:last-child {
        padding: 12px 16px !important;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        border-top: 1px solid #e5e7eb !important;
        background: #fff !important;
    }
    
    #chesterInput input,
    #chesterInput textarea {
        font-size: 16px !important;
        padding: 12px 16px !important;
    }
}
/* HERO CARD - TRANSPARENT WITH EFFECTS */
.hero__unified-card {
    background: rgba(15, 37, 64, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(212, 168, 75, 0.25) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
}
.hero__unified-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 168, 75, 0.1) !important;
}
.hero__unified-card:hover .hero__unified-crest img {
    transform: scale(1.08) !important;
}
.hero__unified-crest img {
    transition: transform 0.3s ease !important;
}
.hero__unified-card::before,
.hero__unified-card::after {
    display: none !important;
}
.hero__unified-inner {
    position: relative !important;
    z-index: 10 !important;
}
.hero__actions-new {
    position: relative !important;
    z-index: 20 !important;
}
.btn--primary-new, .btn--outline-new {
    position: relative !important;
    z-index: 20 !important;
    cursor: pointer !important;
}

/* FIX HERO UNIFIED CLICK-THROUGH */
.hero__unified {
    pointer-events: none;
}
.hero__unified-card,
.hero__unified-card * {
    pointer-events: auto !important;
}

/* HERO CARD SHINE EFFECT */
.hero__unified-card::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    animation: glassShine 8s ease-in-out infinite !important;
    pointer-events: none;
    z-index: 1 !important;
}
@keyframes glassShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* ============================================================
   MOBILE NAV DROPDOWN FIX - January 2026
   ============================================================ */
@media (max-width: 1024px) {
    /* Mobile dropdown toggle */
    .nav-modern__item .nav-modern__dropdown {
        display: none;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        background: #f1f5f9 !important;
        border-radius: 8px !important;
        margin-top: 0.5rem !important;
        padding: 0.5rem !important;
    }
    
    .nav-modern__item.dropdown-open .nav-modern__dropdown {
        display: block !important;
    }
    
    .nav-modern__item.dropdown-open .nav-modern__arrow {
        transform: rotate(180deg);
    }
    
    /* Blue info bar fix - don't overlap content */
    .header__top,
    .header__top-bar {
        position: relative !important;
        z-index: 100 !important;
    }
    
    /* Main header sticky but below modals */
    .header-modern {
        position: sticky !important;
        top: 0 !important;
        z-index: 900 !important;
    }
    
    /* Mobile nav overlay */
    .nav-modern.mobile-open {
        z-index: 9999 !important;
    }
    
    #mobileOverlay.active {
        z-index: 9998 !important;
    }
}

/* ============================================================
   MOBILE NAV POINTER-EVENTS FIX - January 2026
   ============================================================ */
@media (max-width: 1024px) {
    .nav-modern.mobile-open {
        pointer-events: auto !important;
        left: 0 !important;
        z-index: 10000 !important;
    }
    
    .nav-modern.mobile-open * {
        pointer-events: auto !important;
    }
    
    .nav-modern__dropdown {
        pointer-events: auto !important;
    }
    
    .nav-modern__dropdown a {
        pointer-events: auto !important;
    }
    
    /* Mobile overlay should be behind nav but above content */
    #mobileOverlay.active {
        z-index: 9999 !important;
        pointer-events: auto !important;
    }
}

/* ============================================================
   CRITICAL MOBILE NAV FIX - January 2026
   ============================================================ */
@media (max-width: 1024px) {
    /* Force nav to be clickable when open */
    .nav-modern.mobile-open,
    .nav-modern.active {
        pointer-events: auto !important;
        left: 0 !important;
        z-index: 99999 !important;
    }
    
    .nav-modern.mobile-open .nav-modern__item,
    .nav-modern.mobile-open .nav-modern__link,
    .nav-modern.mobile-open .nav-modern__dropdown,
    .nav-modern.mobile-open .nav-modern__dropdown a,
    .nav-modern.active .nav-modern__item,
    .nav-modern.active .nav-modern__link,
    .nav-modern.active .nav-modern__dropdown,
    .nav-modern.active .nav-modern__dropdown a {
        pointer-events: auto !important;
    }
    
    /* Info bar should not be sticky or have high z-index on mobile */
    .header,
    .header__top,
    .header__top-bar {
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Main header - lower z-index than nav */
    .header-modern {
        z-index: 100 !important;
    }
    
    /* Overlay behind nav */
    #mobileOverlay.active {
        z-index: 99998 !important;
        pointer-events: auto !important;
    }
}

/* ============================================================
   MOBILE DROPDOWN CONTENT FIX - January 2026
   ============================================================ */
@media (max-width: 1024px) {
    /* Make dropdown content visible and styled properly */
    .nav-modern__item.dropdown-open .nav-modern__dropdown {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(0,0,0,0.3) !important;
        padding: 0.5rem 0 !important;
        margin: 0 !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    .nav-modern__item.dropdown-open .nav-modern__dropdown a {
        display: block !important;
        color: white !important;
        padding: 0.875rem 1.5rem 0.875rem 2rem !important;
        font-size: 1rem !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        background: transparent !important;
    }
    
    .nav-modern__item.dropdown-open .nav-modern__dropdown a:hover,
    .nav-modern__item.dropdown-open .nav-modern__dropdown a:active {
        background: rgba(212, 168, 75, 0.2) !important;
        color: #8B6914 !important;
    }
    
    /* Hide Chester on mobile when nav is open */
    .nav-modern.mobile-open ~ #chesterWidget,
    .nav-modern.active ~ #chesterWidget,
    body:has(.nav-modern.mobile-open) #chesterWidget,
    body:has(.nav-modern.active) #chesterWidget {
        display: none !important;
    }
    
    /* Also hide the public Chester widget */
    .nav-modern.mobile-open ~ .chester-widget,
    .nav-modern.active ~ .chester-widget {
        z-index: 1 !important;
    }
}

/* ============================================================
   MOBILE FLYOUT SUBMENU FIX - January 2026
   ============================================================ */
@media (max-width: 1024px) {
    /* Flyout submenus on mobile */
    .nav-modern__flyout {
        display: none !important;
        position: static !important;
        background: rgba(0,0,0,0.4) !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    
    .nav-modern__submenu-item.flyout-open .nav-modern__flyout,
    .nav-modern__submenu-item:focus-within .nav-modern__flyout {
        display: block !important;
    }
    
    .nav-modern__submenu-trigger {
        color: white !important;
        background: transparent !important;
        padding: 0.875rem 1.5rem 0.875rem 2rem !important;
    }
    
    .nav-modern__submenu-trigger:hover,
    .nav-modern__submenu-trigger:active {
        background: rgba(212, 168, 75, 0.2) !important;
        color: #8B6914 !important;
    }
    
    .nav-modern__flyout a {
        display: block !important;
        color: rgba(255,255,255,0.9) !important;
        background: transparent !important;
        padding: 0.75rem 1.5rem 0.75rem 3rem !important;
        font-size: 0.95rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    
    .nav-modern__flyout a:hover,
    .nav-modern__flyout a:active {
        background: rgba(212, 168, 75, 0.15) !important;
        color: #8B6914 !important;
    }
}

/* ============================================================
   HEADER Z-INDEX FIX - January 2026
   Info bar should NEVER overlap modals or important content
   ============================================================ */

/* Base fix for all screen sizes */
.header,
.header__top,
.header__top-bar,
.header__top-inner {
    position: relative !important;
    z-index: 50 !important;
}

.header-modern {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

/* Alert modals should be above everything */
.alert-modal {
    z-index: 999999 !important;
}

.alert-modal__backdrop {
    z-index: 999998 !important;
}

.alert-modal__content {
    z-index: 999999 !important;
}

/* Mobile specific */
@media (max-width: 1024px) {
    .header,
    .header__top,
    .header__top-bar {
        position: relative !important;
        z-index: 10 !important;
    }
    
    .header-modern {
        position: sticky !important;
        top: 0 !important;
        z-index: 50 !important;
    }
    
    /* Nav should be higher when open */
    .nav-modern.mobile-open,
    .nav-modern.active {
        z-index: 99999 !important;
    }
    
    #mobileOverlay.active {
        z-index: 99998 !important;
    }
}

/* ============================================================
   iOS MODAL SCROLL FIX - January 2026
   ============================================================ */
body.modal-open {
    position: fixed !important;
    width: 100% !important;
    overflow: hidden !important;
}

.alert-modal.active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.alert-modal__backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999998 !important;
}

.alert-modal__content {
    position: relative !important;
    z-index: 999999 !important;
    margin: 20px auto !important;
}

/* ============================================================
   FORCE HEADER Z-INDEX FIX - January 2026
   ============================================================ */
.header,
.header *,
.header__top,
.header__top *,
.header__top-bar,
.header__top-bar *,
.header__top-inner,
.header__contact,
.header__weather {
    z-index: 10 !important;
}

/* Chester must be above header */
#chesterWidget,
.chester-widget,
#chesterWindow,
#chesterToggle {
    z-index: 9999 !important;
}

#chesterWindow.open {
    z-index: 99999 !important;
}

/* ============================================================
   MOBILE DEPARTMENT STYLES - iOS App Match
   January 2026
   ============================================================ */
@media (max-width: 768px) {
    /* Department page background */
    .dept-police .section,
    .dept-fire .section,
    .dept-public-works .section {
        background: #f2f2f7 !important;
    }
    
    /* Compact header on mobile */
    .dept-header {
        padding: 1rem 0 1.5rem !important;
        min-height: auto !important;
    }
    
    .dept-header__content {
        text-align: center;
    }
    
    .dept-header__content h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .dept-header__content p {
        font-size: 0.9rem !important;
        opacity: 0.9;
    }
    
    /* Patch centered and smaller */
    .dept-patch {
        margin: 0 auto 0.75rem !important;
        width: 80px !important;
        height: 80px !important;
    }
    
    .dept-patch img {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Hide breadcrumb on mobile */
    .dept-header .breadcrumb {
        display: none !important;
    }
    
    /* Full width layout */
    .dept-layout {
        display: block !important;
        padding: 0 !important;
    }
    
    .dept-main {
        padding: 0 !important;
    }
    
    .dept-sidebar {
        display: none !important;
    }
    
    /* Section container */
    .dept-main > .dept-content-card,
    .dept-main > .dept-action-buttons,
    .dept-main > .thank-officer-btn,
    .dept-main > .dept-news-section,
    .dept-staff-section {
        margin: 0 16px 16px !important;
    }
    
    /* iOS-style Section Headers */
    .dept-section-header {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #6b7280 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
        padding: 0 16px !important;
        margin: 20px 0 12px !important;
    }
    
    /* iOS-style Link Row Cards */
    .dept-action-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        background: white !important;
        border-radius: 14px !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    }
    
    .dept-action-btn {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 14px !important;
        background: white !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        border-radius: 0 !important;
        text-decoration: none !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    
    .dept-action-btn:last-child {
        border-bottom: none !important;
    }
    
    .dept-action-btn:hover {
        transform: none !important;
        box-shadow: none !important;
        background: #f9fafb !important;
    }
    
    .dept-action-btn__icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .dept-action-btn__icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .dept-action-btn__text {
        flex: 1 !important;
        text-align: left !important;
    }
    
    .dept-action-btn__text h3 {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: #1f2937 !important;
        margin: 0 0 2px !important;
    }
    
    .dept-action-btn__text p {
        font-size: 0.8rem !important;
        color: #6b7280 !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }
    
    /* Add chevron arrow to action buttons */
    .dept-action-btn::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid #c7c7cc;
        border-bottom: 2px solid #c7c7cc;
        transform: rotate(-45deg);
        margin-left: auto;
    }
    
    /* Thank Officer/Firefighter Button - iOS style */
    .thank-officer-btn {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 14px !important;
        background: white !important;
        border-radius: 14px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
        text-decoration: none !important;
        border: none !important;
    }
    
    .thank-officer-btn__glow {
        display: none !important;
    }
    
    .thank-officer-btn__icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .thank-officer-btn__icon svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .thank-officer-btn__content {
        flex: 1 !important;
        text-align: left !important;
    }
    
    .thank-officer-btn__label {
        display: none !important;
    }
    
    .thank-officer-btn__title {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: #1f2937 !important;
        display: block !important;
        margin-bottom: 2px !important;
    }
    
    .thank-officer-btn__desc {
        font-size: 0.8rem !important;
        color: #6b7280 !important;
        display: block !important;
    }
    
    .thank-officer-btn__arrow {
        display: none !important;
    }
    
    .thank-officer-btn::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid #c7c7cc;
        border-bottom: 2px solid #c7c7cc;
        transform: rotate(-45deg);
    }
    
    /* Staff Section - iOS style */
    .dept-staff-section {
        background: white !important;
        border-radius: 14px !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    }
    
    .dept-staff-section h3 {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #6b7280 !important;
        text-transform: uppercase !important;
        padding: 16px 14px 12px !important;
        margin: 0 !important;
        background: transparent !important;
    }
    
    .staff-card,
    .staff-member {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 14px !important;
        background: white !important;
        border-bottom: 1px solid #f0f0f0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }
    
    .staff-card:last-child,
    .staff-member:last-child {
        border-bottom: none !important;
    }
    
    .staff-card__photo,
    .staff-member__photo,
    .staff-card img,
    .staff-member img {
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }
    
    .staff-card__info,
    .staff-member__info {
        flex: 1 !important;
    }
    
    .staff-card__name,
    .staff-member__name,
    .staff-card h4,
    .staff-member h4 {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: #1f2937 !important;
        margin: 0 0 2px !important;
    }
    
    .staff-card__title,
    .staff-member__title,
    .staff-card p,
    .staff-member p {
        font-size: 0.8rem !important;
        color: #6b7280 !important;
        margin: 0 !important;
    }
    
    .staff-card__actions,
    .staff-member__actions {
        display: flex !important;
        gap: 12px !important;
    }
    
    .staff-card__actions a,
    .staff-member__actions a {
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f3f4f6 !important;
        border-radius: 50% !important;
    }
    
    .staff-card__actions a svg,
    .staff-member__actions a svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Contact Info Card - iOS style */
    .dept-contact-card,
    .dept-info-card {
        background: white !important;
        border-radius: 14px !important;
        padding: 14px !important;
        margin: 0 16px 16px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    }
    
    .dept-contact-card h4,
    .dept-info-card h4 {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #6b7280 !important;
        margin: 0 0 12px !important;
    }
    
    /* Phone Button - iOS style */
    .dept-phone-btn,
    .phone-button {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px !important;
        background: #1e3a5f !important;
        color: white !important;
        border-radius: 14px !important;
        text-decoration: none !important;
        font-weight: 600 !important;
    }
    
    .dept-phone-btn:hover,
    .phone-button:hover {
        background: #2d4a6f !important;
    }
    
    /* Emergency Button - Red */
    .dept-emergency-btn,
    .emergency-button {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px !important;
        background: #dc2626 !important;
        color: white !important;
        border-radius: 14px !important;
        text-decoration: none !important;
        font-weight: 700 !important;
    }
    
    /* Sidebar Links on Mobile - iOS grouped style */
    .sidebar-links,
    .sidebar-links--icons {
        background: white !important;
        border-radius: 14px !important;
        padding: 0 !important;
        margin: 0 16px 16px !important;
        overflow: hidden !important;
        list-style: none !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    }
    
    .sidebar-links li,
    .sidebar-links--icons li {
        border-bottom: 1px solid #f0f0f0 !important;
        margin: 0 !important;
    }
    
    .sidebar-links li:last-child,
    .sidebar-links--icons li:last-child {
        border-bottom: none !important;
    }
    
    .sidebar-links a,
    .sidebar-links--icons a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 14px !important;
        color: #1f2937 !important;
        text-decoration: none !important;
        font-size: 0.95rem !important;
    }
    
    .sidebar-links a::after,
    .sidebar-links--icons a::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid #c7c7cc;
        border-bottom: 2px solid #c7c7cc;
        transform: rotate(-45deg);
        margin-left: auto;
    }
    
    /* News section on mobile */
    .dept-news-section {
        background: white !important;
        border-radius: 14px !important;
        padding: 14px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    }
    
    .dept-news-section h3 {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #6b7280 !important;
        text-transform: uppercase !important;
        margin: 0 0 12px !important;
    }
}

/* ============================================================
   MOBILE DEPARTMENT PATCH FIX - January 2026
   ============================================================ */
@media (max-width: 768px) {
    /* Make patch bigger and shift down */
    .dept-patch {
        margin: 1.5rem auto 1rem !important;
        width: 110px !important;
        height: 110px !important;
    }
    
    .dept-patch img {
        width: 110px !important;
        height: 110px !important;
    }
    
    /* Reduce header padding to compensate */
    .dept-header {
        padding-top: 0.5rem !important;
    }
}

/* ============================================================
   MOBILE DEPARTMENT PATCH FIX v2 - January 2026
   ============================================================ */
@media (max-width: 768px) {
    /* Move patch down more */
    .dept-patch {
        margin-top: 3rem !important;
    }
    
    /* Also adjust the header content with patch */
    .dept-header__content.has-patch {
        padding-top: 0 !important;
    }
}



/* ============================================================
   ALERT SIZE - Slimmed Down
   ============================================================ */

/* Base alert items - more compact */
.alert-item {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    max-width: 600px !important;
}

.alert-item__text {
    font-size: 0.85rem !important;
}

.alert-item__icon {
    width: 18px !important;
    height: 18px !important;
}
}


/* ============================================================
   ALERT TEXT - Character/Line Limit
   ============================================================ */

.alert-item__text {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 600px !important;
    line-height: 1.4 !important;
}

/* Keep alert container compact */
.alert-item {
    max-width: 800px !important;
    padding: 0.6rem 1.25rem !important;
}


/* ============================================================
   ALERT TEXT - Truncate to 2 lines
   ============================================================ */
.alert-bar .alert-item .alert-item__text {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 550px !important;
}


/* WCAG AA: Links in text blocks must be distinguishable without color alone */
.page-content a:not([class]),
.popup-content a:not([class]),
.section-body a:not([class]),
article a:not([class]),
.info-page a:not([class]),
.content-area a:not([class]),
.dept-content a:not([class]),
p a:not([class]):not([style]),
li a:not([class]):not([style]) {
    text-decoration: underline;
}

/* ============================================================
   WCAG AA Accessibility Overrides - March 2026
   ============================================================ */
/* Ensure success/green text is always accessible on light backgrounds */
[style*="color: #059669"], [style*="color:#059669"] { color: #166534!important; }
[style*="color: #22c55e"], [style*="color:#22c55e"] { color: #166534!important; }
[style*="color: #8390a2"], [style*="color:#8390a2"] { color: #595959!important; }
[style*="color: #9ca3af"], [style*="color:#9ca3af"] { color: #6b7280!important; }
[style*="color: #94a3b8"], [style*="color:#94a3b8"] { color: #64748b!important; }
[style*="color: #c9a227"], [style*="color:#c9a227"] { color: #7a5c00!important; }
[style*="color: #d4a84b"], [style*="color:#d4a84b"] { color: #8B6914!important; }
