:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --text-color: #333;
}

/* Base Overrides */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    z-index: 10000;
    transition: top 0.3s;
}

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

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid #ffbf47; /* High visibility focus ring */
    outline-offset: 2px;
}

/* High Contrast Footer Links */
.main-footer a:hover, .main-footer a:focus {
    text-decoration: underline !important;
    color: #fff !important;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

/* Card Hover Effects */
.quick-link-card {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    border-color: var(--primary-color);
}

.quick-link-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Ensure images in team/content are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Team Member Images */
.team-member img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
}

/* Hero Section */
.hero-section {
    height: 75vh;
    min-height: 500px;
    max-height: 800px;
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333; /* Fallback */
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 6s ease; /* Slight zoom effect on static? or can animate via JS */
}

/* Optional: Slight zoom animation for carousel items if active */
.carousel-item.active .hero-bg-image {
    animation: zoomEffect 6s ease-out forwards;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Modern gradient overlay */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 500px;
    padding: 2.5rem;
    /* Removed animation: fadeInUp 1s ease-out; to prevent jump */
    position: absolute;
    top: 50%;
    right: 8%;
    left: auto;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    /* Ensure opacity is 1 from start */
    opacity: 1;
}

@media (max-width: 991px) {
    .hero-content {
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 600px;
    }
}

/* Ensure text remains readable on the new background */
.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay specifically for the text box */
    border-radius: 15px;
    z-index: -1;
}

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

.hero-title {
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    opacity: 0.9;
}

/* Carousel Indicators */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.7);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.2);
}
