/* Hero Slider Fixes */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fix for the gavel image */
.slide:nth-child(1) {
    background-position: center 30%;
    background-size: 100% auto;
}

/* Fix for the justice statue image */
.slide:nth-child(2) {
    background-position: center;
    background-size: cover;
}

/* Fix for the cityscape image */
.slide:nth-child(3) {
    background-position: center;
    background-size: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darkened overlay for better text visibility */
}

/* Ensure content is properly positioned and visible */
.slide-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    text-align: center;
    padding: 0 var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Enhance text visibility with text shadow */
.slide-content h1,
.slide-content h2,
.slide-content p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}