/* =========================================
   TLM Home Page
   ========================================= */

/* -----------------------------------------
   Hero
   ----------------------------------------- */
.home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0.2rem;
    min-height: 390px;
    isolation: isolate;
    background-color: #10243a;
    background-image:
        linear-gradient(90deg, rgba(7, 24, 40, 0.92) 0%, rgba(7, 24, 40, 0.7) 48%, rgba(7, 24, 40, 0.18) 100%),
        url("../images/sunrise-distant-mountains.78a3ac30697a.jpg");
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

/*=============== Hero Site image right side =============*/
.home-hero-side-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
}

/* The image */
.home-hero-side-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Fade the image into the hero background */
.home-hero-side-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            to right,
            #0b2035 0%,
            rgba(11, 32, 53, 0.85) 8%,
            rgba(11, 32, 53, 0.35) 25%,
            rgba(11, 32, 53, 0) 50%
        );
}

.home-hero-side-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;

    background:
        linear-gradient(
            to bottom,
            rgba(11, 32, 53, 0.35),
            transparent 25%,
            transparent 75%,
            rgba(11, 32, 53, 0.35)
        );
}

/* Home hero Continue========++++++++========= */
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(7, 24, 40, 0.1), rgba(7, 24, 40, 0.42));
}

.home-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 390px;
    max-width: 760px;
}

.home-hero-layout {
    min-height: 190px;
}

.home-hero-visual {
    position: relative;
    height: 70%;
    min-height: 260px;
}

.home-hero-visual-overlay {
    position: absolute;
    right: 6rem;
    bottom: 1.5rem;
    left: 0.5rem;
    padding: 3.25rem;
    border-radius: 0.5rem;
    background: rgba(7, 24, 40, 0);
    backdrop-filter: blur(4px);

}

.home-hero-visual-overlay p {
    margin: 0;
    color: #eceaea;
    font-size: 1.1rem;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.5;
}

.home-hero-visual-overlay span {
    display: block;
    margin-top: 0.5rem;
    color: #f0ad00;
    font-size: 1.5rem;
    font-weight: 700;
}

.home-hero-label {
    display: inline-block;
    width: fit-content;
    padding: 0.4rem 0.75rem;
    border-radius: 0.3rem;
    background: #f0ad00;
    color: #172536;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.home-hero-content h1 {
    max-width: 700px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.home-hero-content .lead {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.home-hero-scripture {
    color: #f0ad00;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* -----------------------------------------
   Section headings
   ----------------------------------------- */

.home-section-title {
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}


/* -----------------------------------------
   Content cards
   ----------------------------------------- */

.home-content-card,
.home-ministry-card {
    border: 1px solid var(--tlm-border);
    border-top: 4px solid var(--tlm-brand-gold);
    border-radius: 0.6rem;
    background: var(--tlm-surface);
    box-shadow: var(--tlm-card-shadow);
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.home-content-card:hover,
.home-ministry-card:hover {
    transform: translateY(-2px);
    border-top-color: var(--tlm-brand-ink);
    box-shadow: 0 0.5rem 1.1rem rgba(9, 28, 47, 0.12);
}

.home-content-card .card-body,
.home-ministry-card .card-body {
    display: flex;
    flex-direction: column;
}

.home-content-card h3,
.home-ministry-card h3,
.home-section h2 {
    color: var(--tlm-brand-ink);
}

.home-content-card .btn,
.home-ministry-card .btn {
    font-weight: 600;
}


/* -----------------------------------------
   Featured content images
   ----------------------------------------- */

.home-featured-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}


/* -----------------------------------------
   Ministry images
   ----------------------------------------- */

.home-ministry-image {
    width: 100%;
    height: 190px;
    display: block;
    background: var(--tlm-surface-muted);
}

.home-ministry-banner {
    object-fit: cover;
}

.home-ministry-logo {
    width: min(100%, 730px);
    height: 220px;
    margin: 0 auto;
    object-fit: contain;
    background: var(--tlm-main-logo);
}


/* -----------------------------------------
   Image fallback
   ----------------------------------------- */

.home-image-fallback {
    width: 100%;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef1f4;
    color: #6c757d;
}


/* -----------------------------------------
   Badges
   ----------------------------------------- */

.home-content-badge {
    align-self: flex-start;
    margin-bottom: 0.75rem;
}


/* -----------------------------------------
   Empty states
   ----------------------------------------- */

.home-empty-state {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #ffffff;
    border: 1px dashed rgba(0, 0, 0, 0.14);
    border-radius: 0.6rem;
}


/* -----------------------------------------
   Connect section
   ----------------------------------------- */

.home-connect {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: #10243a;
    background-image: url("../images/sunrise-distant-mountains.78a3ac30697a.jpg");
    background-position: center;
    background-size: cover;
    color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 0.2rem 0.65rem rgba(0, 0, 0, 0.045);
}

.home-connect::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(7, 24, 40, 0.78);
}

.home-connect .card-body {
    position: relative;
}

.home-connect .text-secondary {
    color: rgba(255, 255, 255, 0.82) !important;
}


/* -----------------------------------------
   Responsive adjustments
   ----------------------------------------- */

@media (max-width: 991.98px) {

    .home-hero,
    .home-hero-content,
    .home-hero-layout {
        min-height: auto;
    }

    .home-hero-content {
        padding: 1.75rem 1.5rem !important;
    }

    .home-hero-visual {
        height: auto;
        min-height: 0;
        padding: 0 1rem 1rem;
    }

    .home-hero-visual-overlay {
        position: relative;
        inset: auto;
        right: auto;
        left: auto;
        max-width: 18rem;
        margin: 0 0 0 auto;
        padding: 1.25rem 1.5rem;
    }
}


@media (max-width: 767.98px) {

    .home-hero-content {
        padding: 1.5rem !important;
    }

    .home-hero-content h1 {
        font-size: clamp(2.4rem, 10vw, 3.6rem);
        line-height: 1.08;
    }

    .home-hero-visual-overlay {
        max-width: 100%;
        margin-top: 0.75rem;
    }

    .home-featured-image,
    .home-image-fallback {
        height: 190px;
    }

    .home-ministry-image {
        height: 180px;
    }

}
