
/* Shared content cards */
.content-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--tlm-border);
    border-radius: var(--tlm-card-radius);
    background: var(--tlm-surface);
    box-shadow: var(--tlm-card-shadow);
}

.content-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.content-card__link:hover,
.content-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.content-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.content-card__fallback {
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 9;
    place-items: center;
    background: var(--tlm-surface-muted);
    color: var(--tlm-muted);
}

.content-card__body {
    min-width: 0;
    padding: 1.5rem;
}

.content-card__title,
.content-card__summary {
    overflow-wrap: break-word;
    word-break: normal;
}

.content-card__title {
    line-height: 1.35;
}

.content-card__summary {
    line-height: 1.6;
}

.interactive-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interactive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.1rem rgba(9, 28, 47, 0.12);
}

/* Shared long-form reading pages */
.reading-page {
    max-width: 72rem;
}

.reading-header {
    max-width: 52rem;
    margin-inline: auto;
}

.reading-header h1 {
    line-height: 1.12;
    overflow-wrap: break-word;
}

.reading-hero-image {
    display: block;
    width: min(100%, 60rem);
    max-height: 30rem;
    margin: 2rem auto 3rem;
    border-radius: var(--tlm-card-radius);
    object-fit: cover;
}

.reading-hero-fallback {
    display: grid;
    width: min(100%, 60rem);
    min-height: 16rem;
    margin: 2rem auto 3rem;
    place-items: center;
    border-radius: var(--tlm-card-radius);
    background: var(--tlm-surface-muted);
    color: var(--tlm-muted);
}

.reading-prose {
    max-width: 70ch;
    margin-inline: auto;
    color: #293746;
    font-size: 1.2rem;
    line-height: 1.85;
}

.reading-prose p {
    margin-bottom: 1.7rem;
}

.reading-section {
    max-width: 70ch;
    margin: 0 auto 3rem;
}

.reading-scripture {
    max-width: 60ch;
    margin: 0 auto 3rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--tlm-brand-gold);
    background: #fff8e5;
    color: var(--tlm-text);
}

.reading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* =========================================================
   Shared Editorial Reading Experience
========================================================= */

.content-detail {
    background:
        linear-gradient(
            180deg,
            #f3f6f9 0%,
            #f8fafc 35%,
            #ffffff 100%
        );
    min-height: 100vh;
}

.content-detail__shell {
    max-width: 78rem;
}


/* =========================================================
   Reading Surface
========================================================= */

.content-detail__article {
    overflow: hidden;
    background: var(--tlm-surface);
}


/* =========================================================
   Header
========================================================= */

.content-detail__header {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5rem)
             clamp(1.25rem, 5vw, 5rem)
             2.5rem;

    border-bottom: 4px solid var(--tlm-brand-gold);

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 213, 106, 0.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0b2035 0%,
            #183b59 100%
        );

    color: #ffffff;
}


/* Subtle gold accent at the top of the header */

.content-detail__header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--tlm-brand-gold);
}

.content-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(9, 28, 47, 0.98), rgba(16, 36, 58, 0.86)),
        url("../images/distant-mountains.fa84038fd0a6.jpg") center / cover;
    color: #ffffff;
}

.content-hero__content {
    max-width: 48rem;
    padding-block: 2rem;
}

/* =========================================================
   Eyebrow / Section Labels
========================================================= */

.content-detail__eyebrow,
.content-detail__section-label {
    margin-bottom: 0.7rem;
    color: var(--tlm-brand-gold);
    font-size: 0.79rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* =========================================================
   Main Heading
========================================================= */

.content-detail__header h1 {
    max-width: 52rem;
    margin-bottom: 1rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}


/* =========================================================
   Introduction
========================================================= */

.content-detail__intro {
    max-width: 46rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
    line-height: 1.75;
}


/* =========================================================
   Metadata
========================================================= */

.content-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}


/* =========================================================
   Hero Image
========================================================= */

.content-detail__hero {
    width: 100%;
    max-height: 32rem;
    display: block;
    object-fit: cover;
}


/* =========================================================
   Main Reading Area
========================================================= */

.content-detail__body {
    position: relative;
    z-index: 1;
    margin-top: -1.5rem;
    border-radius: 1.25rem 1.25rem 0 0;

    padding:
        clamp(1.75rem, 4vw, 4.5rem)
        clamp(1.25rem, 5vw, 5rem);

    background: var(--tlm-surface);
}


/* =========================================================
   Reading Sections
========================================================= */

.content-detail__section {
    max-width: 120ch;
    margin: 0 auto 3.5rem;
}

.content-detail__section h2 {
    margin-bottom: 1rem;
    color: var(--tlm-brand-ink);
    line-height: 1.25;
}


/* Add a subtle visual marker beside section headings */

.content-detail__section h2::before {
    content: "";
    display: inline-block;
    width: 0.35rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    border-radius: 999px;
    background: var(--tlm-brand-gold);
    vertical-align: -0.1rem;
}


/* =========================================================
   Main Reading Typography
========================================================= */

.content-detail__prose {
    color: #293746;
    font-size: 1.08rem;
    line-height: 1.9;
}

.content-detail__prose p {
    margin-bottom: 1.45rem;
}

.content-detail__prose p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   Study Objective / Conclusion
========================================================= */

.content-detail__objective,
.content-detail__conclusion {
    position: relative;
    max-width: 120ch;
    padding: 1.75rem 1.75rem 1.75rem 2rem;

    border: 1px solid rgba(201, 158, 53, 0.25);
    border-left: 5px solid var(--tlm-brand-gold);
    border-radius: 0.5rem;

    background:
        linear-gradient(
            135deg,
            #fff8e5 0%,
            #fffdf7 100%
        );

    box-shadow:
        0 0.5rem 1.5rem rgba(9, 28, 47, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Scripture Focus */
.content-detail__scripture {
    position: relative;
    max-width: 62ch;
    margin: 1.75rem 0 0;
    padding: 1.25rem 1.5rem 1.25rem 1.75rem;
    border: 1px solid rgba(201, 158, 53, 0.25);
    border-left: 5px solid var(--tlm-brand-gold);
    border-radius: 0.5rem;
    background:
        linear-gradient(
            135deg,
            rgba(255, 248, 229, 0.98),
            rgba(255, 253, 247, 0.98)
        );
    color: var(--tlm-brand-ink);
    font-size: 1.08rem;
    line-height: 1.7;
    box-shadow: 0 0.5rem 1.25rem rgba(9, 28, 47, 0.05);
}

/* =========================================================
   Taxonomy
========================================================= */

.content-detail__taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    max-width: 100ch;
    margin: 0 auto 2.5rem;
}

.content-detail__taxonomy-label {
    flex-basis: 100%;

    margin-bottom: 0.15rem;

    color: var(--tlm-muted);
    font-size: 0.89rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   Tags
========================================================= */

.content-detail__tag {
    border: 1px solid rgba(9, 28, 47, 0.15);
    border-radius: 999px;

    color: var(--tlm-brand-ink);
    background: #f4f6f8;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.content-detail__tag:hover,
.content-detail__tag:focus-visible {
    border-color: var(--tlm-brand-gold);
    color: var(--tlm-brand-ink);
    background: #fff8e5;
    transform: translateY(-1px);
}


/* =========================================================
   Related Content
========================================================= */

.content-detail__related {
    max-width: 70ch;
    margin: 0 auto;

    padding-top: 3rem;

    border-top: 1px solid var(--tlm-border);
}

.content-detail__related-card {
    height: 100%;
    overflow: hidden;

    border: 1px solid var(--tlm-border);
    border-radius: 0.65rem;

    background: #ffffff;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.content-detail__related-card:hover {
    transform: translateY(-4px);

    border-color: rgba(201, 158, 53, 0.35);

    box-shadow:
        0 0.75rem 1.75rem rgba(9, 28, 47, 0.12);
}

.content-detail__related-image {
    width: 100%;
    aspect-ratio: 16 / 9;

    display: block;

    object-fit: cover;
}


/* =========================================================
   Navigation / Actions
========================================================= */

.content-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;

    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;

    padding-top: 2rem;

    border-top: 1px solid var(--tlm-border);
}


/* =========================================================
   Reading Progress Bar
========================================================= */

.content-detail__progress {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    height: 4px;

    background: rgba(9, 28, 47, 0.08);
}

.content-detail__progress-bar {
    width: 0;
    height: 100%;

    background: var(--tlm-brand-gold);

    transition: width 0.1s linear;
}


/* Small Scripture label */

.content-detail__scripture-label {
    display: block;

    margin-bottom: 0.45rem;

    color: #a68544;

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* Actual Scripture reference */

.content-detail__scripture-reference {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
}


/* Supporting instruction */

.content-detail__scripture-note {
    display: block;

    margin-top: 0.65rem;

    color: #66717d;

    font-size: 0.85rem;
    line-height: 1.6;
}


/* =========================================================
   Key Points
========================================================= */

.content-detail__key-points {
    padding: 1.75rem;

    border: 1px solid var(--tlm-border);
    border-radius: 0.75rem;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #ffffff
        );

    box-shadow:
        0 0.5rem 1.5rem rgba(9, 28, 47, 0.04);
}

.content-detail__key-points .content-detail__section-label {
    margin-bottom: 0.35rem;
}

.content-detail__key-points .content-detail__prose {
    margin-top: 1.25rem;
}


/* Each paragraph becomes an individual point */

.content-detail__key-points .content-detail__prose p {
    position: relative;

    margin-bottom: 1rem;

    padding: 1rem 1.25rem 1rem 1.5rem;

    border-left: 3px solid var(--tlm-brand-gold);
    border-radius: 0.35rem;

    background: #ffffff;

    box-shadow:
        0 0.25rem 0.75rem rgba(9, 28, 47, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.content-detail__key-points .content-detail__prose p:last-child {
    margin-bottom: 0;
}


/* Small interaction when hovering a point */

.content-detail__key-points .content-detail__prose p:hover {
    transform: translateX(4px);

    border-color: var(--tlm-brand-gold);

    box-shadow:
        0 0.5rem 1rem rgba(9, 28, 47, 0.08);
}


.content-detail__objective:hover,
.content-detail__conclusion:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0.75rem 1.5rem rgba(9, 28, 47, 0.07);
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 575.98px) {

    .content-detail__header h1 {
        font-size: 2.35rem;
    }

    .content-detail__intro {
        font-size: 1rem;
    }

    .content-detail__prose {
        font-size: 1.03rem;
        line-height: 1.8;
    }

    .content-detail__objective,
    .content-detail__conclusion {
        padding: 1.35rem 1.25rem 1.35rem 1.5rem;
    }

    .content-detail__scripture {
        padding: 1.1rem 1.15rem 1.1rem 1.35rem;
    }

    .content-detail__body {
        margin-top: -0.75rem;
        border-radius: 0.9rem 0.9rem 0 0;
    }

    .content-detail__actions .btn {
        width: 100%;
    }
}



/* =======================================================================================================================
      Sermons Cards
=======================================================================================================================*/

.sermon-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--tlm-brand-gold);
    border-radius: 0.75rem;
    background: #fff;

    box-shadow: 0 0.25rem 0.8rem rgba(0, 0, 0, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-top-color 0.25s ease;
}

.sermon-card:hover {
    transform: translateY(-4px);
    border-top-color: var(--tlm-brand-ink);
    box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.12);
}



/* -----------------------------------------
   Media area
   ----------------------------------------- */

.sermon-card-media {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #10243a;
}

.sermon-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sermon-card:hover .sermon-card-image {
    transform: scale(1.03);
}

.sermon-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10243a;
    color: #ffffff;
}

.sermon-card-fallback span {
    font-size: 4rem;
}


/* -----------------------------------------
   Media overlay
   ----------------------------------------- */

.sermon-card-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1rem;
    background: linear-gradient(
        transparent,
        rgba(7, 24, 40, 0.9)
    );
    color: #ffffff;
}

.sermon-card-overlay .badge {
    margin-bottom: 0.5rem;
}


/* -----------------------------------------
   Card body
   ----------------------------------------- */

.sermon-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.0rem;
}

.no-decoration {
    text-decoration: none;
    color: inherit;
}

.sermon-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.sermon-card-speaker {
    margin-bottom: 0.35rem;
}

.sermon-card-scripture {
    margin-bottom: 1rem;
    font-style: italic;
}


/* -----------------------------------------
   Media indicators
   ----------------------------------------- */

.sermon-media-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    margin-bottom: 1rem;
}

.sermon-media-badge {
    padding: 0.35rem 0.6rem;
    border-radius: 0.3rem;
    background: #eef1f4;
    color: #495057;
    font-size: 0.78rem;
    font-weight: 600;
}

/* =========================================================
   Sermon Reading Experience
========================================================= */

.sermon-reading {
    max-width: 78rem;
    margin: 0 auto;
}

/* Heading above the written sermon */
.sermon-reading-header {
    max-width: 150ch;
    margin: 0 auto 2.5rem;
}

.sermon-reading-title {
    margin: 0.35rem 0 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #172b4d;
}

/* Main sermon text */
.sermon-body {
    max-width: 95ch;
    margin: 0 auto;
    color: #293746;
    font-size: 1.35rem;
    line-height: 1.9;
}

/* Paragraph spacing */
.sermon-body p {
    margin-bottom: 1.7rem;
}

/* Avoid unnecessary space after the final paragraph */
.sermon-body p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   Scripture references written inside the sermon
--------------------------------------------------------- */

.sermon-body strong {
    font-weight: 700;
}


/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 768px) {

    .sermon-reading-header {
        margin-bottom: 2rem;
    }

    .sermon-reading-title {
        font-size: 1.65rem;
    }

    .sermon-body {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .sermon-body p {
        margin-bottom: 1.4rem;
    }
}
