/* Image Stability - Object Fit Cover */
.ag-slide-bg {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    /* Force full image stretch to show ALL content (text/people) without cropping */
    background-size: 100% 100% !important;
    background-position: center bottom !important;
    /* Anchored to bottom to ensure people are visible */
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    /* Disable parallax which can cause weird cropping */
    transform: none !important;
    /* Disable manual transforms */
    z-index: -1;
}

/* Disable the custom-redesign.css zoom animation that crops content */
.main-slider .owl-item.active .slide-image,
.main-slider .owl-item .slide-image {
    transform: none !important;
    transition: none !important;
}

/* Remove Blue Overlay for Natural Clarity */
.slide-overlay {
    background: none !important;
    display: none !important;
}

/* AGGRESSIVE TEXTURE REMOVAL */
/* Remove any patterns, grids, or dots added by theme via pseudo-elements */
.ag-hero-section::before,
.ag-hero-section::after,
.ag-slider-layer::before,
.ag-slider-layer::after,
.ag-slide-item::before,
.ag-slide-item::after,
.slide-image::before,
.slide-image::after {
    content: none !important;
    background: none !important;
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* 3. Anti-Gravity Overlay Layer - The "Float" */
.ag-overlay-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    /* Vertical Center */
    justify-content: center;
    /* Horizontal Center */
    pointer-events: none;
    /* Let clicks pass through to arrows if needed, but usually we want buttons clickable. *Wait*, if buttons are inside, we need pointer-events: auto on children */
}

.ag-overlay-layer .container {
    pointer-events: auto;
    /* Re-enable clicks for content */
    position: relative;
    z-index: 3;
    width: 100%;
}

/* 4. Reset & Stabilization */
/* Force reset existing absolute positioning from custom-redesign.css */
/* Force reset existing absolute positioning from custom-redesign.css */
.slide-caption.ag-caption-reset {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.slide-caption-inner.ag-content-box {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    /* STRICT CONSTRAINT: Prevent text from blowing up on wide screens */
    max-width: 900px !important;
    padding: 0 15px;
}

/* 5. Fluid Typography - Toned Down */
.ag-fluid-title {
    /* Reduced max size further from 52px to 42px per request */
    font-size: clamp(24px, 4vw, 42px) !important;
    line-height: 1.2;
    padding-bottom: 25vh !important;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Any legacy nowrap/ellipsis rules must be killed to allow full text display */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: left !important;
    /* Match subtitle alignment */
}

/* Specific Adjustment for Slide 2 - Push Down instead of Up */
.ag-overlay-slide2 {
    padding-bottom: 0 !important;
    padding-top: 25vh !important;
}

.ag-fluid-subtitle {
    font-size: clamp(14px, 1.5vw, 18px) !important;
    /* Smaller, more elegant */
    margin-bottom: 20px !important;
    display: block !important;
    /* Changed from inline-block to block to allow text-align to work independently */
    text-align: left !important;
    /* Force Left Alignment */
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    /* Add the line under date like reference */
    padding-bottom: 10px;
    width: fit-content;
    /* Ensure border only spans the text width, not the whole block */
    margin-left: 0;
    /* Align to the very start */
    margin-right: auto;
}

/* 6. Media Queries */

/* Mobile - Ensure content doesn't touch edges */
@media (max-width: 768px) {
    .ag-overlay-layer .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* FORCE FULL HEIGHT FOR SLIDER STRUCTURE */
/* The main-slider has explicit 80vh height inline/upstream, so we don't force it to 100% of parent here. */
/* We only force the CHILDREN to fill the slider */
.owl-carousel,
.owl-stage-outer,
.owl-stage,
.owl-item,
.ag-slide-item {
    height: 100% !important;
}

.main-slider {
    position: relative !important;
    display: block !important;
    /* Allow inline height (80vh) to work */
}

/* Reset image settings for mobile or responsive if needed, but keeping global rule for now */