/* ================================
   HOME PAGE STYLES
   Loaded after styles.css
   ================================ */

/* --- Content column width --- */
.content-section.home-content {
    max-width: 774px;
}

/* --- Welcome text --- */
.content-section p.home-welcome {
    text-align: justify;
    font-size: 17.5px;
    line-height: 1.50;
    color: #545454;
    margin-bottom: 0;
    padding: 0;
}

/* --- Section Divider (wider than content column) --- */
.home-divider {
    border: none;
    border-top: 1px solid rgba(58, 100, 147, 0.6);
    margin: 20px -80px 0;
}

/* --- Block header (below divider, IM Fell, centered) --- */
.home-subheader {
    text-align: center;
    margin: 10px auto 2px;
    font-family: 'IM Fell DW Pica', serif;
    font-size: 20px;
    color: #3A6493;
}

/* --- Subtle underline beneath block header --- */
.home-subheader-rule {
    border: none;
    border-top: 1px solid rgba(58, 100, 147, 0.15);
    margin: 3px 0 22px;
}

/* ================================
   TWO-COLUMN FEATURE BLOCKS
   Image left, text right
   ================================ */
.home-feature-row {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
}

.home-feature-image {
    flex-shrink: 0;
}

.home-feature-image img {
    display: block;
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.home-feature-text {
    flex: 1;
    min-width: 0;
}

/* Compound selector to beat .content-section p */
.content-section .home-feature-text p {
    font-size: 17.5px;
    line-height: 1.45;
    color: #545454;
    text-align: justify;
    margin-bottom: 10px;
}

.content-section .home-feature-text p:last-of-type {
    margin-bottom: 0;
}

/* Song/album title emphasis within body text */
.song-title {
    font-weight: 600;
    font-style: italic;
}

/* ================================
   SINGLE-COLUMN FEATURE BLOCKS
   Centered image above text
   ================================ */
.home-feature-column {
    text-align: center;
}

.home-feature-column-image {
    display: block;
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
    height: auto;
}

.content-section .home-feature-column-text p {
    font-size: 17.5px;
    line-height: 1.45;
    color: #545454;
    text-align: justify;
    margin-top: 18px;
    margin-bottom: 10px;
    padding: 0 30px;
}

.content-section .home-feature-column-text p:last-of-type {
    margin-bottom: 0;
}

/* Non-square feature images (e.g., songbook at 260x330) */
.home-feature-image-tall img {
    width: 260px;
    height: auto;
    object-fit: contain;
}

/* ================================
   ACTION ROW (buttons below feature blocks)
   ================================ */
.home-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    margin-bottom: 12px;
}

.home-action-label {
    font-family: 'Rosario', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: rgb(58, 100, 147);
    text-transform: none;
    letter-spacing: 0.02em;
    position: relative;
    top: 1px;
}

.home-action-row .button {
    margin: 0;
    color: rgb(58, 100, 147);
    border-color: rgba(58, 100, 147, 0.6);
    width: 130px;
    height: 34px;
    font-size: 17px;
}

/* ================================
   VIDEO BLOCK
   Centered YouTube embeds with captions
   ================================ */
.home-video-group {
    text-align: center;
}

.home-video-entry {
    margin-bottom: 30px;
}

.home-video-entry:last-child {
    margin-bottom: 0;
}

.home-video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.home-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.content-section p.home-caption {
    font-size: 14.5px;
    font-style: italic;
    color: #888;
    text-align: center;
    margin: 8px auto 0;
    max-width: 500px;
}

/* ================================
   CLOSING TEXT
   ================================ */
.content-section p.home-closing {
    text-align: center;
    font-style: italic;
    font-size: 14.5px;
    color: #888;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 0;
}

.home-closing a {
    color: #888;
    text-decoration: underline;
}

.home-closing a:hover {
    opacity: 0.7;
}

/* ================================
   MOBILE OVERRIDES
   ================================ */
@media (max-width: 768px) {

    /* --- Welcome text --- */
    .content-section p.home-welcome {
        font-size: 17px;
        text-align: justify;
        color: #3A6493;
        padding: 0 7px;
    }

    /* --- Dividers --- */
    .home-divider {
        width: 99%;
        margin-left: auto;
        margin-right: auto;
    }

    /* --- Block headers --- */
    .home-subheader {
        font-family: 'Rosario', sans-serif;
        font-size: 18px;
        font-weight: 700;
    }

    /* --- Header underlines --- */
    .home-subheader-rule {
        width: 92%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 3px;
        margin-bottom: 18px;
    }

    /* --- Two-column blocks stack --- */
    .home-feature-row {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .home-feature-image img {
        width: 280px;
        height: 280px;
    }

    .home-feature-image-tall img {
        width: 230px;
        height: auto;
    }

    .home-feature-text {
        padding: 0 7px;
    }

    .content-section .home-feature-text p {
        text-align: justify;
        font-size: 17px;
    }

    /* --- Single-column blocks --- */
    .home-feature-column-image {
        max-width: 320px;
    }

    .content-section .home-feature-column-text p {
        font-size: 17px;
        padding: 0 7px;
    }

    /* --- Video block --- */
    .home-video-container {
        max-width: 100%;
    }

    .content-section p.home-caption {
        font-size: 13.5px;
        padding: 0 7px;
    }

    /* --- Closing text --- */
    .content-section p.home-closing {
        max-width: 100%;
        padding: 10px 20px;
    }
}
