:root {
    --primary-color: #1a4480;
    --secondary-color: #005ea2;
    --accent-color: #d83933;
    --light-gray: #f0f0f0;
    --dark-gray: #1b1b1b;
    --link-color: #005ea2;
    --transition-speed: 0.3s;
}

/* Base Styles */
body {
    font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: #fff;
}

/* Enhanced Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

/* Navbar brand styling */
.navbar-brand {
    padding: 0.5rem 0;
}

.navbar-brand img {
    max-height: 45px;
    width: auto;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
    font-size: 1.1rem;
}

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

.nav-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.search-form .input-group {
    background-color: var(--light-gray);
    border-radius: 50px;
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    background: none;
    padding-left: 1.5rem;
}

.search-form .btn {
    border: none;
    padding: 0.5rem 1.25rem;
}

/* Enhanced Hero Section */
/* Hero Section */
.hero-section {
    background-color: var(--light-gray);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero-section .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.hero-actions .btn {
    padding: 0.875rem 1.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    border-radius: 0.25rem;
    font-size: 1.1rem;
}

.hero-actions .btn-icon {
    width: 20px;
    height: 20px;
}

.hero-actions .btn-primary {
    background-color: var(--accent-color);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-actions .btn-primary:hover {
    background-color: #b31b1b;
    transform: translateY(-2px);
}

.hero-actions .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.hero-actions .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    .hero-actions {
        flex-direction: column;
        padding: 0 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: auto;
    }
    .navbar-brand img {
        max-height: 40px;
    }
}

/* Enhanced Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 6px rgba(0,51,102,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,51,102,0.15);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}


/* Service Cards */
.section-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

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

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.service-link:hover {
    color: var(--secondary-color);
}

/* Enhanced Topic Cards */
.topic-card {
    background: white;
    border: 1px solid #dfe1e2;
    border-radius: 0.25rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.topic-icon {
    width: 48px;
    height: 48px;
    background-color: #f0f0f0;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

.topic-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.topic-card p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.topic-link {
    color: var(--link-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-top: auto;
}

.topic-link:hover {
    color: #1a4480;
    text-decoration: underline;
}

.topic-link svg {
    width: 18px;
    height: 18px;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Emergency Services */
.emergency-services {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 1.5rem;
}

.emergency-header {
    text-align: center;
    margin-bottom: 3rem;
}

.emergency-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: transform 0.2s;
}

.emergency-card:hover {
    transform: translateY(-5px);
}

.emergency-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.emergency-icon svg {
    width: 32px;
    height: 32px;
    color: var(--danger-color);
}

.emergency-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.emergency-card .btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced Footer */
.footer {
    background-color: var(--light-gray);
    padding: 4rem 0;
    margin-top: 4rem;
}

.footer-heading {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-nav {
        margin: 1rem 0;
    }

    .search-form {
        margin-top: 1rem;
        width: 100%;
    }

    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }

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

@media (max-width: 768px) {
    .emergency-services {
        padding: 2rem 1rem;
    }

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

    .hero-section {
        padding: 4rem 1rem;
        margin: -1rem -1rem 2rem -1rem;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

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

    .hero-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .topic-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .topic-card h3 {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .topic-icon {
        width: 48px;
        height: 48px;
    }

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

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: var(--primary-color);
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Search */
.search-form {
    max-width: 600px;
    margin: 0 auto;
}


/* Footer */
footer {
    background-color: var(--light-gray);
    padding: 3rem 0;
    margin-top: 4rem;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Error Page Styling */
.error-page {
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.2;
}

.error-page .error-actions {
    margin-top: 2rem;
}

.error-page .error-actions .btn {
    margin: 0.5rem;
}

.error-page ul {
    max-width: 300px;
    margin: 2rem auto;
}

.error-page ul a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 0;
    display: inline-block;
}

.error-page ul a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Services Page Styling */
.services-directory {
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    padding: 2rem 0;
}

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

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

.search-box .form-control {
    border-left: none;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-filters .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-filters .btn svg {
    width: 16px;
    height: 16px;
}

.service-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.1);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.service-links {
    margin: 1.5rem 0;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.service-link:hover {
    color: var(--secondary-color);
}

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

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.processing-time {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Breadcrumb styling */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-radius: 0.25rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .category-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .category-filters::-webkit-scrollbar {
        height: 4px;
    }

    .category-filters::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 2px;
    }
}

/* Service Pages Styling */
.service-page {
    padding: 2rem 0;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-icon-large svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.quick-action-card .card {
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-action-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.quick-action-card ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.quick-action-card svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Timeline styling */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--light-gray);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-content ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* FAQ Accordion styling */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
}

.accordion-button {
    background-color: white;
    color: var(--dark-gray);
    font-weight: 500;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.1);
}

.accordion-body {
    padding: 1.25rem;
    background-color: var(--light-gray);
}

/* Need Help section */
.need-help {
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
}

.need-help .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.need-help svg {
    width: 18px;
    height: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 1rem;
    }

    .timeline-item {
        padding-left: 3rem;
    }

    .timeline-item::before {
        left: calc(1rem - 6px);
    }

    .quick-action-card {
        margin-bottom: 1rem;
    }
}

.quick-link-card {
    text-decoration: none;
    color: var(--dark-gray);
    display: block;
}

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

.quick-link-card .card {
    border: 1px solid #dfe1e2;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    padding: 1rem;
}

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

.quick-link-icon {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
}

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.1);
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
}

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

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

.avatar-circle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.rating {
    display: flex;
    gap: 4px;
}

.rating svg {
    width: 16px;
    height: 16px;
    fill: #ffc107;
    stroke: #ffc107;
}

.rating svg.filled {
    fill: #ffc107;
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 1rem;
    }

    .testimonial-card .card-body {
        padding: 1.25rem;
    }
}