/* ========================================
   Central Square Fire Company #1 Inc
   Modern Responsive Stylesheet
   ======================================== */

/* ========== ROOT VARIABLES ========== */
:root {
    --primary-red: #c41e3a;
    --dark-red: #8b1a2d;
    --light-red: #dc143c;
    --dark-bg: #1a1a1a;
    --gray-bg: #2c2c2c;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

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

/* ========== NAVIGATION ========== */
.navbar {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--gray-bg) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    padding: 0.5rem 0;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 5px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary-red);
    color: var(--white);
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-red) 100%);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(196, 30, 58, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-content h1 {
    animation: fadeInUp 1s ease;
}

.hero-content .lead {
    animation: fadeInUp 1.2s ease;
    font-size: 1.4rem;
}

.hero-buttons {
    animation: fadeInUp 1.4s ease;
}

.hero-buttons .btn {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
}

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

/* ========== ALERT BANNER ========== */
.alert-banner {
    border-bottom: 3px solid var(--primary-red);
    font-weight: 500;
}

.alert-banner i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* ========== QUICK INFO CARDS ========== */
.quick-info {
    background: var(--light-gray);
}

.info-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    color: var(--white);
}

.icon-wrapper i {
    font-size: 2rem;
}

.info-card h4 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

/* ========== JOIN SECTION ========== */
.join-section img {
    border: 5px solid var(--white);
}

.benefits-list {
    margin-top: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefit-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* ========== SECTION HEADERS ========== */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* ========== EVENTS SECTION ========== */
.event-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    height: 100%;
}

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

.event-date {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 100px;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-details {
    padding: 1.5rem;
    flex: 1;
}

.event-details h5 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.event-details i {
    color: var(--primary-red);
    margin-right: 0.5rem;
}

/* ========== RESOURCES SECTION ========== */
.resources-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--gray-bg) 100%);
}

.resource-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.resource-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.resource-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.resource-card h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.resource-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

/* ========== GALLERY PREVIEW ========== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.9), rgba(26, 26, 26, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h5 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ========== BUTTONS ========== */
.btn-danger {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border: none;
    transition: var(--transition);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-danger {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

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

.btn-outline-light {
    border: 2px solid var(--white);
}

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

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--gray-bg) 100%);
    border-top: 3px solid var(--primary-red);
}

.footer h5 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.3rem;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-links .social-link:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-links i {
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.contact-info li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    color: var(--primary-red);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    font-size: 1.2rem;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer a {
    color: var(--white);
}

.footer a:hover {
    color: var(--primary-red);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet */
@media (max-width: 992px) {
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background: rgba(26, 26, 26, 0.95);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 4rem 0;
        margin-top: 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .info-card {
        margin-bottom: 1rem;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .event-date .day {
        font-size: 2rem;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .icon-wrapper i {
        font-size: 1.5rem;
    }
}
/* ========================================
   Additional styles for About page
   ======================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-red) 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    margin-top: 70px;
    text-align: center;
}

.page-header h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* About Intro */
.about-intro {
    background: var(--white);
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 10px;
    z-index: -1;
}

/* Stats */
.about-stats {
    margin-top: 2rem;
}

.stat-box {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Mission Section */
.mission-section {
    background: var(--light-gray);
}

.mission-section .lead {
    font-size: 1.3rem;
    color: var(--text-dark);
}

/* Services Section */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    color: var(--white);
}

.service-icon i {
    font-size: 2rem;
}

.service-card h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Coverage Section */
.coverage-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--gray-bg) 100%);
}

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

.coverage-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.coverage-list i {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.map-placeholder {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Join CTA */
.join-cta {
    background: var(--white);
}

.cta-box {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(26, 26, 26, 0.05));
    padding: 4rem 2rem;
    border-radius: 15px;
    border: 2px solid var(--primary-red);
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    margin: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .about-image-wrapper::before {
        top: -10px;
        right: -10px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 5rem 0 2.5rem;
        margin-top: 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .about-image-wrapper::before {
        display: none;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .cta-box {
        padding: 2rem 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .map-placeholder iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .stat-box {
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
}
/* ========================================
   Apparatus Page Styles
   ======================================== */

/* Apparatus Intro */
.apparatus-intro {
    border-bottom: 2px solid var(--primary-red);
}

/* Filter Section */
.filter-section {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-section .btn {
    transition: var(--transition);
}

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

/* Apparatus Card */
.apparatus-card {
    position: relative;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.apparatus-card.retired-apparatus {
    opacity: 0.8;
}

.apparatus-card.retired-apparatus:hover {
    opacity: 1;
}

/* Apparatus Badge */
.apparatus-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    text-transform: uppercase;
}

/* Apparatus Image */
.apparatus-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--gray-bg);
}

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

.apparatus-card:hover .apparatus-image img {
    transform: scale(1.1);
}

.apparatus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.9), rgba(26, 26, 26, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.apparatus-card:hover .apparatus-overlay {
    opacity: 1;
}

/* Apparatus Info */
.apparatus-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.apparatus-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.apparatus-info h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.apparatus-type {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.apparatus-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.apparatus-specs li {
    padding: 0.4rem 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.apparatus-specs i {
    color: var(--primary-red);
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* Fleet Stats */
.fleet-stats {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.stat-card {
    background: var(--white);
    padding: 2rem 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.stat-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Modal Customization */
.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red)) !important;
}

.modal-body img {
    border: 3px solid var(--light-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .apparatus-image {
        height: 200px;
    }
    
    .filter-section .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .apparatus-number {
        font-size: 1.2rem;
    }
    
    .apparatus-info h4 {
        font-size: 1.1rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .stat-card i {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .apparatus-image {
        height: 180px;
    }
    
    .apparatus-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .filter-section .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
/* ========================================
   CPSC Recalls Page Styles
   ======================================== */

/* Alert Banner */
.alert-banner {
    border-bottom: 3px solid var(--warning);
}

/* Recalls Intro */
.recalls-intro {
    border-bottom: 2px solid var(--primary-red);
}

/* Search & Filter Section */
.search-filter-section {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-filter-section .input-group-text {
    border-right: none;
}

.search-filter-section .form-control {
    border-left: none;
    border-color: var(--primary-red);
}

.search-filter-section .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-red);
}

/* Recall Category */
.recall-category {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.category-header i {
    font-size: 2rem;
}

.category-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

/* Recall Item */
.recall-item {
    position: relative;
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid transparent;
}

.recall-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.recall-item.priority-high {
    border-left-color: var(--danger);
    background: linear-gradient(to right, rgba(220, 53, 69, 0.05), var(--white));
}

.recall-item.priority-medium {
    border-left-color: var(--warning);
    background: linear-gradient(to right, rgba(255, 193, 7, 0.05), var(--white));
}

.recall-item.priority-low {
    border-left-color: var(--info);
    background: linear-gradient(to right, rgba(13, 202, 240, 0.05), var(--white));
}

/* Recall Badge */
.recall-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.recall-badge.badge-high {
    background: var(--danger);
    color: var(--white);
}

.recall-badge.badge-medium {
    background: var(--warning);
    color: var(--dark);
}

.recall-badge.badge-low {
    background: var(--info);
    color: var(--white);
}

/* Recall Title */
.recall-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-right: 150px;
}

.recall-title i {
    margin-right: 0.5rem;
}

/* Recall Meta */
.recall-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.recall-meta .badge {
    padding: 0.5rem 1rem;
}

/* Recall Description */
.recall-description {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.recall-description strong {
    color: var(--dark);
}

/* Recall Remedy */
.recall-remedy {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 5px;
    border-left: 3px solid var(--success);
    margin-top: 1rem;
}

.recall-remedy i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Resources Section */
.resource-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

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

.resource-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.resource-card h4 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

/* Safety Tips Box */
.safety-tips-box {
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.safety-tips-box h3 {
    color: var(--white);
}

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

.safety-tips-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.safety-tips-list li:last-child {
    border-bottom: none;
}

.safety-tips-list i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Recalls Stats */
.recalls-stats .stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 2px solid;
    transition: var(--transition);
}

.recalls-stats .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.recalls-stats .stat-card i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .recall-title {
        font-size: 1.1rem;
        padding-right: 0;
        margin-bottom: 1.5rem;
    }

    .recall-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }

    .recall-item .col-lg-9,
    .recall-item .col-lg-3 {
        width: 100%;
    }

    .recall-item .btn {
        margin-top: 1rem;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
    }

    .category-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .search-filter-section .col-lg-8,
    .search-filter-section .col-lg-4 {
        width: 100%;
    }

    .recall-meta {
        flex-direction: column;
    }

    .recalls-stats .stat-card {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .page-header,
    .alert-banner,
    .search-filter-section,
    .resources-section,
    .safety-tips-section,
    .footer,
    .recall-item .btn {
        display: none !important;
    }

    .recall-item {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
        margin-bottom: 1rem;
    }

    .recall-title {
        color: #000;
    }
}

/* Animation for Priority Badges */
@keyframes pulse-high {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
}

.recall-item.priority-high .recall-badge {
    animation: pulse-high 2s infinite;
}
/* ========================================
   Calendar Page Styles
   ======================================== */

/* Quick View Section */
.event-quick-card {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-red);
}

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

.event-quick-card.recurring-event {
    background: linear-gradient(to right, rgba(196, 30, 58, 0.05), var(--white));
}

.event-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.event-details h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.event-schedule {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-description {
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

/* Calendar Controls */
.calendar-controls {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#currentMonth {
    color: var(--dark);
}

/* Calendar */
#calendar {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* FullCalendar Custom Styling */
.fc {
    font-family: 'Inter', sans-serif;
}

.fc-toolbar-title {
    color: var(--dark) !important;
    font-weight: 700 !important;
}

.fc-button {
    background: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
}

.fc-button:hover {
    background: #8B0000 !important;
    border-color: #8B0000 !important;
}

.fc-button-active {
    background: #8B0000 !important;
}

.fc-daygrid-day-number {
    color: var(--dark);
    font-weight: 600;
}

.fc-event {
    border: none !important;
    padding: 0.25rem !important;
}

.fc-event-title {
    font-weight: 600;
}

/* Event Cards */
.event-card {
    position: relative;
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
}

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

.event-card.featured-event {
    border: 2px solid var(--primary-red);
}

.event-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    text-align: center;
    min-width: 70px;
}

.event-date-badge .month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-content {
    padding-right: 80px;
}

.event-title {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.event-time,
.event-location {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-time i,
.event-location i {
    color: var(--primary-red);
    margin-right: 0.5rem;
}

.event-desc {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.event-attendees {
    color: var(--gray-dark);
    font-size: 0.85rem;
}

.event-attendees i {
    color: var(--primary-red);
}

/* Event Legend */
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-label {
    font-weight: 600;
    color: var(--dark);
}

/* Subscribe Box */
.subscribe-box {
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.subscribe-box h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.subscribe-box .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* Event Modal */
.event-modal-date {
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.event-modal-date .month {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.event-modal-date .day {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.event-modal-date .year {
    font-size: 1.25rem;
    font-weight: 600;
}

.event-modal-info p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.event-modal-info strong {
    color: var(--dark);
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .event-quick-card {
        flex-direction: column;
        text-align: center;
    }

    .event-icon {
        margin: 0 auto;
    }

    .event-content {
        padding-right: 0;
    }

    .event-date-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }

    #calendar {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .calendar-controls .btn-group {
        width: 100%;
        margin-bottom: 1rem;
    }

    .calendar-controls .btn-group .btn {
        flex: 1;
    }

    #currentMonth {
        display: block;
        margin-top: 1rem;
        margin-left: 0 !important;
    }

    .event-card {
        margin-bottom: 1rem;
    }

    .subscribe-box {
        padding: 2rem 1rem;
    }

    .event-modal-date {
        margin-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .page-header,
    .calendar-controls,
    .subscribe-section,
    .footer {
        display: none !important;
    }

    .event-card {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    #calendar {
        box-shadow: none;
    }
}

/* Animation for Event Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card {
    animation: fadeInUp 0.5s ease-out;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }
.event-card:nth-child(6) { animation-delay: 0.6s; }
/* ========================================
   Call History Page Styles
   ======================================== */

/* Statistics Cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.stat-icon.fire {
    background: linear-gradient(135deg, #ff6b6b, #c41e3a);
}

.stat-icon.medical {
    background: linear-gradient(135deg, #4ecdc4, #1a85ad);
}

.stat-icon.service {
    background: linear-gradient(135deg, #95e1d3, #38ada9);
}

.stat-icon.total {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin: 0.5rem 0;
    font-weight: 600;
}

.stat-period {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Response Time Cards */
.response-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.response-time {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.response-label {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.response-comparison {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* Call Type Cards */
.call-type-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.call-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.call-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 1.5rem;
}

.medical-bg {
    background: linear-gradient(135deg, #4ecdc4, #1a85ad);
}

.fire-bg {
    background: linear-gradient(135deg, #ff6b6b, #c41e3a);
}

.service-bg {
    background: linear-gradient(135deg, #95e1d3, #38ada9);
}

.alarm-bg {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
}

.call-type-card h4 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.percentage-bar {
    background: var(--light-gray);
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.percentage-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    color: var(--white);
    font-weight: 700;
    transition: width 1.5s ease;
}

.medical-fill {
    background: linear-gradient(90deg, #4ecdc4, #1a85ad);
}

.fire-fill {
    background: linear-gradient(90deg, #ff6b6b, #c41e3a);
}

.service-fill {
    background: linear-gradient(90deg, #95e1d3, #38ada9);
}

.alarm-fill {
    background: linear-gradient(90deg, #feca57, #ff9ff3);
}

.call-count {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.call-subtypes li {
    padding: 0.5rem 0;
    color: var(--gray-dark);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--light-gray);
}

.call-subtypes li:last-child {
    border-bottom: none;
}

/* Filters Section */
.filters-section {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters-section .form-label {
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Calls Table */
.table-responsive {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

#callsTable {
    margin: 0 !important;
}

#callsTable thead th {
    background: var(--primary-red);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

#callsTable tbody tr {
    transition: var(--transition);
}

#callsTable tbody tr:hover {
    background: rgba(196, 30, 58, 0.05);
}

#callsTable tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: var(--gray-dark);
}

/* DataTables Custom Styling */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    padding: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 5px;
    border: 1px solid var(--light-gray);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-red) !important;
    color: var(--white) !important;
    border-color: var(--primary-red) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-red) !important;
    color: var(--white) !important;
    border-color: var(--primary-red) !important;
}

/* Monthly Chart */
.monthly-chart-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Call Details Modal */
.modal-body table {
    margin-bottom: 0;
}

.modal-body table th {
    color: var(--gray-dark);
    font-weight: 600;
}

.modal-body table td {
    color: var(--dark);
}

.units-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Subscribe Section */
.subscribe-section {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.95), rgba(139, 0, 0, 0.95)),
                url('../images/fire-texture.jpg') center/cover;
}

/* Responsive Design */
@media (max-width: 992px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        margin: 0 auto;
    }

    .response-time {
        font-size: 2.5rem;
    }

    .call-type-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .response-time {
        font-size: 2rem;
    }

    .percentage-bar {
        height: 30px;
    }

    .monthly-chart-container {
        padding: 1rem;
    }

    #callsTable {
        font-size: 0.85rem;
    }

    #callsTable thead th,
    #callsTable tbody td {
        padding: 0.75rem 0.5rem;
    }

    .table-responsive {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .page-header,
    .filters-section,
    .subscribe-section,
    .footer,
    .btn {
        display: none !important;
    }

    .stat-card,
    .response-card,
    .call-type-card,
    .table-responsive {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    #callsTable thead th {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.8s ease-out;
}
/* ========================================
   Call Volume Page Styles
   ======================================== */

/* Year Selector */
.year-selector {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.year-selector h3 {
    color: var(--dark);
}

#yearSelect {
    border: 2px solid var(--primary-red);
    font-weight: 600;
    color: var(--dark);
}

#yearSelect:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(196, 30, 58, 0.25);
}

/* Summary Cards */
.summary-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-red);
}

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

.summary-card.trend-up {
    border-left-color: #28a745;
}

.summary-card.trend-down {
    border-left-color: #ffc107;
}

.summary-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.trend-up .summary-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.trend-down .summary-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.summary-content {
    flex: 1;
}

.summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1;
}

.summary-label {
    font-size: 1rem;
    color: var(--gray-dark);
    margin: 0.5rem 0 0;
    font-weight: 600;
}

.year-badge,
.month-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Chart Container */
.chart-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid var(--light-gray);
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-header h2 {
    color: var(--dark);
    margin: 0;
}

.chart-body {
    padding: 2rem;
}

.chart-controls .btn {
    font-weight: 600;
}

/* Monthly Data Table */
.table-wrapper {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 2rem;
}

.call-volume-table {
    margin: 0 !important;
}

.call-volume-table thead th {
    background: var(--primary-red);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.call-volume-table tbody tr {
    transition: var(--transition);
}

.call-volume-table tbody tr:hover {
    background: rgba(196, 30, 58, 0.05);
}

.call-volume-table tbody td,
.call-volume-table tfoot th {
    padding: 1rem;
    vertical-align: middle;
    font-weight: 600;
    color: var(--gray-dark);
}

.call-volume-table tfoot {
    background: var(--light-gray);
    font-size: 1.1rem;
}

.call-volume-table tfoot th {
    color: var(--dark);
}

/* Progress Bar */
.progress-bar-wrapper {
    position: relative;
    width: 100%;
}

.progress {
    height: 30px;
    background: var(--light-gray);
    border-radius: 15px;
    overflow: visible;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-red), #8B0000);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    transition: width 1s ease;
}

/* Comparison Chart */
.comparison-chart-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Historical Accordion */
.accordion-item {
    border: none;
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    background: var(--white);
    color: var(--dark);
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    border: none;
    box-shadow: none;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 2rem;
    background: #f8f9fa;
}

/* Month Boxes */
.month-box {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--light-gray);
    transition: var(--transition);
    font-weight: 600;
}

.month-box:hover {
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.month-box.highlight {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(196, 30, 58, 0.05));
    border-color: var(--primary-red);
}

.month-box.disabled {
    background: #e9ecef;
    color: var(--gray);
    border-color: #dee2e6;
}

.month-box strong {
    font-size: 1.5rem;
    color: var(--primary-red);
}

/* Older Years Grid */
.older-years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.year-summary-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--light-gray);
    transition: var(--transition);
}

.year-summary-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.year-summary-card h5 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.year-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin: 0.5rem 0;
}

/* Insights Section */
.insight-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

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

.insight-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.insight-card h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.insight-card p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .summary-card {
        flex-direction: column;
        text-align: center;
    }

    .summary-icon {
        margin: 0 auto;
    }

    .chart-header {
        flex-direction: column;
        text-align: center;
    }

    .chart-controls {
        width: 100%;
    }

    .chart-controls .btn-group {
        width: 100%;
    }

    .older-years-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .summary-number {
        font-size: 2rem;
    }

    .chart-body,
    .comparison-chart-container {
        padding: 1rem;
    }

    .table-wrapper {
        padding: 1rem;
    }

    .call-volume-table {
        font-size: 0.9rem;
    }

    .month-box {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .month-box strong {
        font-size: 1.25rem;
    }

    .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .accordion-body {
        padding: 1rem;
    }

    .insight-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .page-header,
    .year-selector,
    .chart-controls,
    .footer {
        display: none !important;
    }

    .chart-container,
    .table-wrapper,
    .comparison-chart-container {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .accordion-item {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

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

.summary-card,
.insight-card {
    animation: fadeInUp 0.6s ease-out;
}

.summary-card:nth-child(1) { animation-delay: 0.1s; }
.summary-card:nth-child(2) { animation-delay: 0.2s; }
.summary-card:nth-child(3) { animation-delay: 0.3s; }
.summary-card:nth-child(4) { animation-delay: 0.4s; }
/* ========================================
   Contact Page Styles
   ======================================== */

/* Emergency Alert */
.emergency-alert {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: 2px solid #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

.emergency-alert h4,
.emergency-alert p {
    color: var(--white);
}

.emergency-alert i {
    color: #ffc107;
    animation: pulse 2s infinite;
}

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

/* Contact Info Cards */
.contact-info-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--primary-red);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.contact-card-icon.emergency {
    background: linear-gradient(135deg, #dc3545, #c82333);
    animation: emergencyPulse 2s infinite;
}

@keyframes emergencyPulse {
    0%, 100% { box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3); }
    50% { box-shadow: 0 5px 25px rgba(220, 53, 69, 0.6); }
}

.contact-info-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.emergency-number {
    font-size: 3rem;
    font-weight: 700;
    color: #dc3545;
    margin: 1rem 0;
    line-height: 1;
}

.phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
    margin: 1rem 0;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
    color: var(--dark);
    font-weight: 700;
}

.contact-form-wrapper .form-label {
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.contact-form-wrapper .form-label i {
    color: var(--primary-red);
    margin-right: 0.25rem;
}

.contact-form-wrapper .form-control,
.contact-form-wrapper .form-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-form-wrapper .form-control:focus,
.contact-form-wrapper .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(196, 30, 58, 0.15);
}

.contact-form-wrapper textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* CAPTCHA */
.captcha-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--light-gray);
}

.captcha-question {
    margin-top: 1rem;
}

.captcha-question p {
    font-size: 1.1rem;
    color: var(--dark);
}

.captcha-input {
    max-width: 150px;
}

/* Contact Info Sidebar */
.contact-info-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-info-wrapper h2 {
    color: var(--dark);
    font-weight: 700;
}

.info-block {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--light-gray);
}

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

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.info-content p {
    color: var(--gray-dark);
    line-height: 1.8;
    margin: 0;
}

/* Social Links in Contact */
.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.social-btn i {
    font-size: 1.25rem;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.facebook:hover {
    background: #145dbf;
    transform: translateX(5px);
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.twitter:hover {
    background: #0d8bd9;
    transform: translateX(5px);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.instagram:hover {
    opacity: 0.9;
    transform: translateX(5px);
}

/* Quick Links List */
.quick-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-list li {
    margin-bottom: 0.75rem;
}

.quick-links-list a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-links-list a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.quick-links-list a i {
    color: var(--primary-red);
}

/* Map Section */
.map-section {
    margin-top: 3rem;
}

.map-header {
    background: var(--primary-red);
    color: var(--white);
    padding: 2rem 0;
}

.map-header h2 {
    color: var(--white);
    margin: 0;
    font-weight: 700;
}

.map-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

.map-footer {
    background: #f8f9fa;
    padding: 1.5rem 0;
    border-top: 2px solid var(--light-gray);
}

.map-footer p {
    color: var(--gray-dark);
    margin: 0;
}

/* FAQs */
.faq-section .accordion-item {
    border: none;
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-section .accordion-button {
    background: var(--white);
    color: var(--dark);
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    border: none;
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) i {
    color: var(--white);
}

.faq-section .accordion-button:focus {
    border: none;
    box-shadow: none;
}

.faq-section .accordion-button i {
    color: var(--primary-red);
}

.faq-section .accordion-button::after {
    filter: brightness(0);
}

.faq-section .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.faq-section .accordion-body {
    padding: 1.5rem;
    background: #f8f9fa;
    color: var(--gray-dark);
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 2rem;
    }

    .emergency-number {
        font-size: 2.5rem;
    }

    .phone-number {
        font-size: 1.5rem;
    }

    .contact-info-card {
        padding: 2rem 1.5rem;
    }

    .social-links-contact {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .social-btn {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1.5rem;
    }

    .contact-card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .emergency-number {
        font-size: 2rem;
    }

    .phone-number {
        font-size: 1.3rem;
    }

    .info-block {
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        margin: 0 auto;
    }

    .map-wrapper iframe {
        height: 300px;
    }

    .social-links-contact {
        flex-direction: column;
    }

    .social-btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .page-header,
    .emergency-alert-section,
    .map-section,
    .faq-section,
    .footer,
    .social-links-contact {
        display: none !important;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .info-block {
        page-break-inside: avoid;
    }
}

/* Animations */
.contact-info-card,
.info-block {
    animation: fadeInUp 0.6s ease-out;
}

.contact-info-card:nth-child(1) { animation-delay: 0.1s; }
.contact-info-card:nth-child(2) { animation-delay: 0.2s; }
.contact-info-card:nth-child(3) { animation-delay: 0.3s; }
/* ========================================
   Links Page Styles
   ======================================== */

/* Search & Filter Section */
.search-filter-section .input-group-text {
    border-right: none;
    background: var(--white);
}

.search-filter-section .form-control {
    border-left: none;
    border: 2px solid var(--light-gray);
    border-left: none;
}

.search-filter-section .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: none;
}

.search-filter-section .input-group-text {
    border: 2px solid var(--light-gray);
    border-right: none;
}

.search-filter-section .form-control:focus + .input-group-text {
    border-color: var(--primary-red);
}

.search-filter-section .form-select {
    border: 2px solid var(--light-gray);
}

.search-filter-section .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: none;
}

/* Quick Category Buttons */
.category-quick-btn {
    width: 100%;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    color: var(--gray-dark);
    font-weight: 600;
}

.category-quick-btn i {
    font-size: 1.5rem;
    color: var(--primary-red);
}

.category-quick-btn:hover {
    border-color: var(--primary-red);
    background: rgba(196, 30, 58, 0.05);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-quick-btn.active {
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    border-color: var(--primary-red);
    color: var(--white);
}

.category-quick-btn.active i {
    color: var(--white);
}

/* Link Card */
.link-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-red);
    display: flex;
    flex-direction: column;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-width: 6px;
}

.link-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.link-icon.fire-departments {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.link-icon.magazines {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.link-icon.training {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.link-icon.health-safety {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.link-icon.emergency-services {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.link-info {
    flex: 1;
}

.link-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.5rem;
}

.link-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-gray);
    color: var(--gray-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.link-description {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.link-footer {
    display: flex;
    gap: 0.75rem;
}

.link-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.link-btn-primary {
    background: var(--primary-red);
    color: var(--white);
}

.link-btn-primary:hover {
    background: #8B0000;
    color: var(--white);
    transform: translateY(-2px);
}

.link-btn-secondary {
    background: var(--light-gray);
    color: var(--gray-dark);
}

.link-btn-secondary:hover {
    background: var(--gray);
    color: var(--white);
}

/* Add Link CTA */
.cta-box {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    color: var(--dark);
    font-weight: 700;
}

.cta-box .lead {
    color: var(--gray-dark);
}

/* Info Cards */
.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

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

.info-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), #8B0000);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.info-card h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.info-card p {
    color: var(--gray-dark);
    line-height: 1.6;
    margin: 0;
}

/* No Results */
#noResults i {
    opacity: 0.3;
}

#noResults h3 {
    color: var(--dark);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 992px) {
    .category-quick-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .category-quick-btn i {
        font-size: 1.25rem;
    }

    .link-card {
        padding: 1.5rem;
    }

    .link-title {
        font-size: 1.1rem;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .category-quick-btn span {
        font-size: 0.85rem;
    }

    .link-card-header {
        flex-direction: column;
        text-align: center;
    }

    .link-icon {
        margin: 0 auto;
    }

    .link-footer {
        flex-direction: column;
    }

    .info-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .page-header,
    .search-filter-section,
    .quick-category-section,
    .add-link-cta,
    .info-section,
    .footer {
        display: none !important;
    }

    .link-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .link-footer {
        display: none;
    }
}

/* Animation */
.link-card {
    animation: fadeInUp 0.6s ease-out;
}

.link-card:nth-child(1) { animation-delay: 0.05s; }
.link-card:nth-child(2) { animation-delay: 0.1s; }
.link-card:nth-child(3) { animation-delay: 0.15s; }
.link-card:nth-child(4) { animation-delay: 0.2s; }
.link-card:nth-child(5) { animation-delay: 0.25s; }
.link-card:nth-child(6) { animation-delay: 0.3s; }
