/**
 * Landing page refinements — Diocese home
 * Loaded only on the home view for clearer hierarchy and spacing.
 */

.landing-hero {
    background: linear-gradient(180deg, rgba(23, 168, 235, 0.06) 0%, #fff 45%);
    padding-bottom: 2.5rem;
}

.landing-hero-title {
    font-family: "Jost", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--dark, #1c4152);
    border-left: 4px solid var(--primary, #17A8EB);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.landing-hero .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(28, 65, 82, 0.08);
    overflow: hidden;
}

.landing-hero .card-body {
    line-height: 1.75;
    font-size: 0.95rem;
}

.landing-hero .card-body p {
    text-align: left;
    font-size: 0.95rem;
}

.landing-hero .bishop-photo {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Carousel */
.landing-carousel-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(28, 65, 82, 0.12);
}

.landing-carousel-wrap .carousel-inner {
    max-height: none;
}

.landing-carousel-wrap .carousel-item img {
    height: min(420px, 55vh);
    object-fit: cover;
    width: 100%;
}

.landing-carousel-wrap .carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(28, 65, 82, 0.85));
}

.landing-carousel-wrap .carousel-caption h6 {
    position: static !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Publications sidebar */
.landing-pubs.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(28, 65, 82, 0.08);
}

.landing-pubs .card-title {
    font-family: "Jost", sans-serif;
    font-weight: 700;
    color: var(--dark, #1c4152);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary, #17A8EB);
    display: inline-block;
}

.landing-pubs .nav-tabs {
    border-bottom: 1px solid rgba(28, 65, 82, 0.12);
}

.landing-pubs .nav-tabs .nav-link {
    border: none;
    color: #5a6d78;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
}

.landing-pubs .nav-tabs .nav-link.active {
    color: var(--primary, #17A8EB);
    border-bottom: 3px solid var(--primary, #17A8EB);
    background: transparent;
}

.landing-pubs .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-left: 0;
    padding-right: 0;
}

.landing-pubs .list-group-item a {
    color: var(--dark, #1c4152);
    font-weight: 500;
    text-decoration: none;
}

.landing-pubs .list-group-item a:hover {
    color: var(--primary, #17A8EB);
}

.landing-pubs .published-date {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Vision / Mission — full viewport, photo + uniform overlay, no card boxes */
.landing-facts--fullscreen {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    margin: 0 !important;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Break out of Bootstrap .container-fluid horizontal padding → true edge-to-edge */
.landing-facts--edge {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.landing-facts__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translate3d(0, 0, 0) scale(1.12);
}

.landing-facts__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(8, 22, 32, 0.78) 0%,
        rgba(12, 38, 52, 0.72) 45%,
        rgba(6, 18, 28, 0.82) 100%
    );
}

.landing-facts__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.landing-facts__text-block {
    max-width: 38rem;
}

.landing-facts__icon {
    color: rgba(255, 255, 255, 0.92);
    opacity: 0.95;
}

.landing-facts__heading {
    font-family: "Jost", sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.landing-facts__body {
    font-size: clamp(0.95rem, 1.35vw, 1.05rem);
    line-height: 1.85;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.landing-facts__body p {
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.96);
}

.landing-facts__body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .landing-facts--fullscreen {
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* ACMN cover + map row (home) */
.landing-acmn-map__cover-img {
    min-height: 280px;
}

.landing-acmn-map__cover-img img {
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.landing-acmn-map__cover-link:hover .landing-acmn-map__cover-img img {
    transform: scale(1.04);
}

.landing-acmn-map__cover-overlay {
    background: linear-gradient(transparent, rgba(12, 38, 52, 0.92));
}

.landing-acmn-map__cover-link:focus-visible {
    outline: 3px solid var(--primary, #17a8eb);
    outline-offset: 2px;
}

/* ACMN detail page intro text */
.landing-acmn-detail {
    font-size: 1rem;
    line-height: 1.8;
    color: #334148;
}

.landing-acmn-detail p:last-child {
    margin-bottom: 0;
}

/* Section headings */
.landing-section-head {
    font-family: "Jost", sans-serif;
    font-weight: 700;
    color: var(--dark, #1c4152);
    position: relative;
    padding-bottom: 0.75rem;
}

.landing-section-head::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    background: var(--secondary, #4EA35C);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* Allow flex children to shrink (Bootstrap has no min-h-0 utility) */
.landing-units .min-h-0 {
    min-height: 0;
}

/* Production units — vertical rectangle cards: cover image on top, content below */
.landing-units__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .landing-units__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

.landing-unit-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(28, 65, 82, 0.08);
    border: 1px solid rgba(28, 65, 82, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    min-height: 0;
}

.landing-unit-card:hover {
    box-shadow: 0 16px 42px rgba(28, 65, 82, 0.12);
    transform: translateY(-2px);
}

.landing-unit-card__media {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(145deg, #dfe9ef 0%, #c5d5e0 100%);
}

.landing-unit-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.landing-unit-card__panel {
    background: #fafcfd;
    padding: 1.25rem 1.35rem;
}

.landing-unit-card__panel-inner {
    min-height: 0;
}

.landing-unit-card__footer {
    flex-shrink: 0;
}

.landing-unit-card__title {
    font-family: "Jost", sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--dark, #1c4152);
    margin: 0 0 0.65rem;
    line-height: 1.35;
}

.landing-unit-card__text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #4a5d68;
}

.landing-unit-card__text p {
    margin-bottom: 0.65rem;
    text-align: left;
}

.landing-unit-card__text p:last-child {
    margin-bottom: 0;
}

.landing-unit-card__contact a {
    color: var(--primary, #17a8eb);
    text-decoration: none;
}

.landing-unit-card__contact a:hover {
    text-decoration: underline;
}

.landing-unit-card__btn {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

/* Workshop block */
.landing-workshop {
    background: linear-gradient(135deg, #dfeaf5 0%, #c9dbe9 100%);
    border-radius: 12px;
    padding: 1.25rem 1rem 1.5rem;
    color: var(--dark, #1c4152);
}

.landing-workshop h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    padding: 0.75rem 1rem 1rem !important;
    margin: 0;
}

.landing-workshop .col-lg-3 {
    padding: 0.35rem;
}

.landing-workshop .portfolio-inner {
    overflow: hidden;
    border-radius: 10px;
}

.landing-workshop .portfolio-inner img {
    border-radius: 0;
    width: 100%;
    object-fit: cover;
}

/* Map */
.landing-map iframe {
    width: 100%;
    max-width: 100%;
    min-height: 320px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(28, 65, 82, 0.1);
}

/* Welcome / history prose */
.landing-prose {
    line-height: 1.8;
    font-size: 1rem;
    color: #334148;
    background: linear-gradient(180deg, #fff 0%, #f8fafb 100%);
}

.landing-history-section {
    scroll-margin-top: 1rem;
}

.landing-prose h2.display-6 {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 700;
    color: var(--dark, #1c4152);
}

.landing-history-body {
    max-width: 52rem;
}

/* Long intro reads better in two columns next to the map (desktop) */
@media (min-width: 992px) {
    .landing-history-body {
        column-count: 2;
        column-gap: 1.75rem;
        column-fill: balance;
    }
}

.landing-history-body p {
    margin-bottom: 1rem;
    text-align: left;
    font-size: 0.98rem;
    line-height: 1.75;
}

.landing-history-body p:last-child {
    margin-bottom: 0;
}

/* Map: cap height so the block feels balanced; show full graphic without cropping */
.landing-history-map__img {
    width: 100%;
    max-width: min(100%, 640px);
    max-height: min(52vh, 480px);
    height: auto;
    object-fit: contain;
    object-position: top center;
}

@media (max-width: 991.98px) {
    .landing-history-body {
        column-count: 1;
        max-width: none;
    }

    .landing-history-map__img {
        max-height: min(56vh, 420px);
        margin-left: auto;
        margin-right: auto;
    }
}

