:root {
    --primary-color: #0064A0;
    --accent-color: #0064A0;
}

body {
    background: #f5f7f9 url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230064a0' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.main-logo {
    width: 50vmin;
    max-width: 400px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo-section {
    transition: transform 0.3s ease;
    margin-bottom: 1.25rem !important;
}

.logo-section:hover {
    transform: scale(1.02);
}

/* Main tagline styling for better line breaks */
.lead.fs-3 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Ensure better word breaks on mobile */
@media (max-width: 768px) {
    .lead.fs-3 {
        font-size: 1.5rem !important;
        line-height: 1.5;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .lead.fs-3 {
        font-size: 1.25rem !important;
        line-height: 1.6;
    }
}

.expertise-card {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    transition: transform 0.2s ease;
}

.expertise-card .card-body {
    min-height: 100px;
    color: #495057;
}

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

.service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-top: 3px solid transparent !important;
}

.service-card .card-body {
    padding: 1.75rem;
}

.service-card .card-title {
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: left;
}

.service-card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666 !important;
}

.service-card:hover .card-text {
    color: #444 !important;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    border-top-color: var(--primary-color) !important;
}

.link-arrow {
    opacity: 0.5;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    display: inline-block;
}

.service-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer icon hover effects */
footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

footer .bi {
    font-size: 1.2rem;
}

@media (max-width: 576px) {
    footer .social-links {
        transform: scale(0.9);
    }
    footer .text-muted {
        font-size: 0.8rem;
    }
}

/* Add styles for card titles */
body .text-primary {
    color: var(--primary-color) !important;
}

/* Subtle accent for links */
.service-card a:hover {
    color: var(--primary-color) !important;
}

/* Add these styles for the email link */
.card-text a {
    color: inherit !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

/* .card-text a:hover {
    opacity: 0.7;
} */

/* Optional alternative hover effect */
/* Instead of opacity, you could use a very subtle underline: */
.card-text a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* Add this style */
.accent-bar {
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), rgba(0,100,160,0.6));
}

.header-area .container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 8px 8px;
    border-bottom: 1px solid rgba(0,100,160,0.15);
}

.header-area a {
    transition: opacity 0.2s ease;
}

.header-area a:hover {
    opacity: 0.7;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #005286;
    border-color: #005286;
}

.container {
    background: linear-gradient(to bottom, #fff, #ecf0f1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.03);
    max-width: 900px;
}

/* Add visible focus indicators without changing normal appearance */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure cards are keyboard-focusable but maintain visual style */
.service-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Add these styles to your existing base.css */
.nav-link {
    padding: 0.25rem 1rem;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--bs-primary);
    transition: all 0.3s ease;
}

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

/* Add these to your existing styles */
.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.category-toggle i {
    transition: transform 0.2s ease;
}

.sticky-top {
    position: sticky;
    top: 49px;
    z-index: 1020;
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.98));
    backdrop-filter: blur(8px);
    padding: 0.75rem;
    margin: -1px 0 1rem 0;
    border-bottom: 1px solid rgba(0, 100, 160, 0.1);
}

.sticky-top::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: inherit;
    z-index: -1;
}

#quick-nav select {
    max-width: 200px;
    margin-left: auto;
    display: block;
    border-color: var(--bs-border-color);
    background-color: white;
    font-size: 0.875rem;
}

#resources-container .card {
    transition: transform 0.2s ease;
}

#resources-container .card:hover {
    transform: translateY(-2px);
}

#resources-container .card-body {
    padding: 0.75rem 1rem;
}

@media (max-width: 768px) {
    .sticky-top {
        top: 45px;
        margin: -1px -1rem 1rem -1rem;
        border-radius: 0;
    }
    
    .sticky-top::before {
        display: none;
    }
    
    #quick-nav select {
        max-width: none;
        width: 100%;
    }
    
    #resources-container .small {
        font-size: 0.875rem;
    }
}

/* Mobile header adjustments */
.header-area {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid rgba(0,100,160,0.1);
}

.header-area .container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 0 0 8px 8px;
}

.header-area .bi-lambda {
    font-size: 1.2rem;
    position: relative;
    top: 1px;
}

/* Refined mobile styles */
@media (max-width: 768px) {
    .header-area .container {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .sticky-top {
        top: 45px;
    }

    .header-area .bi-lambda {
        font-size: 1.1rem;
    }
    
    #quick-nav select {
        max-width: none;
        width: 100%;
        font-size: 0.875rem;
    }
}

/* Ensure consistent nav-link styling */
.nav-link {
    padding: 0.25rem 1rem;
    position: relative;
    transition: color 0.2s ease;
}

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

/* Mobile menu refinements */
.offcanvas {
    max-width: 250px;
}

.offcanvas .nav-link {
    border-radius: 4px;
    margin: 0.25rem 0;
    padding: 0.5rem 1rem;
}

.offcanvas .nav-link:hover {
    background-color: rgba(0, 100, 160, 0.05);
}

/* Make mobile touch targets more generous */
.btn-link.text-muted {
    padding: 0.5rem !important;
    margin: -0.5rem 0;
}

.header-area a {
    transition: opacity 0.2s ease;
}

.header-area a:hover {
    opacity: 0.85;
}

/* Adjust container padding to account for sticky header */
.container.py-4 {
    padding-top: 1.5rem !important;
}


