/**
 * Diocese hero slider — visual styling for slides + pagination.
 * Layout machinery comes from Swiper's bundled CSS.
 */

.diocese-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a1a1a;
}

.diocese-hero-slider .swiper-wrapper,
.diocese-hero-slider .swiper-slide {
    height: auto;
}

.diocese-slide {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1440 / 622;     /* matches the static mirror */
    min-height: 480px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    text-decoration: none;
}

/* Default contrast: light text over dark gradient overlay (matches mirror) */
.diocese-slide-light {
    color: #fff;
}
.diocese-slide-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.20) 50%, rgba(0,0,0,0.50) 100%);
    pointer-events: none;
    z-index: 1;
}
.diocese-slide-light a, .diocese-slide-light h1, .diocese-slide-light h2, .diocese-slide-light h3 { color: #fff; }
.diocese-slide-light a:hover { color: #ffe9b3; }

/* Dark contrast (for bright images) */
.diocese-slide-dark {
    color: #1a1a1a;
}
.diocese-slide-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.20) 50%, rgba(255,255,255,0.50) 100%);
    pointer-events: none;
    z-index: 1;
}
.diocese-slide-dark a, .diocese-slide-dark h1, .diocese-slide-dark h2, .diocese-slide-dark h3 { color: #1a1a1a; }
.diocese-slide-dark a:hover { color: #6a0000; }

/* Slide overlay — text positioned mid-slide, well below the header band. */
.diocese-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12rem 2rem 4rem;     /* top padding clears the absolute header */
    z-index: 2;
    text-align: center;
}
.diocese-slide-overlay-inner {
    width: 100%;
    max-width: 1100px;
    text-align: center;
}
.diocese-slide-overlay-inner h1,
.diocese-slide-overlay-inner h2,
.diocese-slide-overlay-inner h3 {
    margin: 0 0 0.4rem;
    line-height: 1.15;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.diocese-slide-overlay-inner h1 { font-size: 3.2rem; }
.diocese-slide-overlay-inner h2 { font-size: 2.6rem; }
.diocese-slide-overlay-inner h3 { font-size: 1.6rem; }
.diocese-slide-overlay-inner p {
    margin: 0;
    line-height: 1.4;
    font-size: 1.05rem;
}
.diocese-slide-overlay-inner a {
    text-decoration: none;
}
.diocese-slide-overlay-inner a:hover {
    text-decoration: underline;
}

/* Pagination dots — diocese-styled */
.diocese-hero-slider .swiper-pagination {
    bottom: 0.75rem;
}
.diocese-hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.55);
    opacity: 1;
    border: 2px solid rgba(255,255,255,0.9);
    margin: 0 6px !important;
    transition: background 0.2s, transform 0.2s;
}
.diocese-hero-slider .swiper-pagination-bullet-active {
    background: #b80c09; /* diocese red, same family as the header bar */
    transform: scale(1.15);
}

/* Touch-friendly link */
.diocese-slide-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
}

/* Mobile tightening */
@media (max-width: 767px) {
    .diocese-slide {
        aspect-ratio: 4 / 3;
    }
    .diocese-slide-overlay {
        padding: 1rem 1rem 2.5rem;
    }
    .diocese-slide-overlay-inner h2 {
        font-size: 1.2rem;
    }
}

/* Print link button on interior pages — replaces the old iCreate sprite icon */
.diocese-print-link {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border: 1px solid #b80c09;
    border-radius: 3px;
    color: #b80c09;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    background: transparent;
    transition: background 0.15s, color 0.15s;
}
.diocese-print-link:hover,
.diocese-print-link:focus {
    background: #b80c09;
    color: #fff;
    text-decoration: none;
}
@media print {
    .diocese-print-link { display: none; }
}

/* Bottom banner: keep h3 link white over the dark gradient/feather image */
#bottomBanner #bottomBannerText h3 a,
#bottomBanner #bottomBannerText h2 a,
#bottomBanner #bottomBannerText p a {
    color: #fff;
    text-decoration: none;
}
#bottomBanner #bottomBannerText h3 a:hover,
#bottomBanner #bottomBannerText h2 a:hover {
    color: #ffe9b3;
    text-decoration: underline;
}
