/* ==========================================================================
   7. HERO SLIDESHOW SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 1700px;
    height: 790px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #111827;
}

/* Slider frame dimensions mapping */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Controls crossfade duration speed */
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps image sharp without distorting proportions */
}

/* FIXED: Left-aligned opaque overlay panel mechanics */
.hero-overlay-box {
    position: absolute;
    top: 65%;
    left: 15%; /* Adjust to shift box closer or further from left screen edge */
    transform: translateY(-50%);
    width: 480px;
    max-width: 85%;
    background-color: rgba(249, 250, 251, 0.92); /* Opaque grey/white background color */
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 10; /* Raises block on top of image layers */
}

/* Specific styling hooks overrides inside the Hero Box */
.hero-overlay-box h1 {
    font-family: 'EB Garamond', serif;
    font-size: 42px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
}

.hero-overlay-box p {
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 25px;
}

/* Call to Action Accent Link Button styling */
.hero-cta-btn {
    display: inline-block;
    background-color: #813F9B; /* Matches navbar purple brand accent */
    color: #ffffff;
    text-decoration: none;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.hero-cta-btn:hover {
    background-color: #531C8A; /* Deeper purple on pointer hover feedback state */
}

/* Quick tablet/mobile scaling adjustments */
@media (max-width: 992px) {
    .hero-section {
        height: 500px; /* Contracts layout frame tracking on smaller devices */
    }
    .hero-overlay-box {
        left: 5%;
        padding: 30px;
        width: 400px;
    }
    .hero-overlay-box h1 { font-size: 32px; }
}