/* =========================================================
   RESOURCE PAGE
========================================================= */

:root {

    --church-blue: #1648C1;
    --church-dark-blue: #09244F;
    --church-gold: #C58A25;

    --text-dark: #122B55;
    --text-gray: #5C6270;

    --white: #FFFFFF;
    --cream: #FBF8F1;
    --light-blue: #F1F6FC;

}


/* =========================================================
   GENERAL
========================================================= */

.resources-page {

    width: 100%;

    overflow: hidden;

    color: var(--text-dark);

}


.resources-container {

    width: 100%;

    max-width: 1250px;

    margin: 0 auto;

    padding-left: 20px;

    padding-right: 20px;

}


/* =========================================================
   HERO
========================================================= */

.resource-hero {

    position: relative;

    min-height: 470px;

    display: flex;

    align-items: center;

    background-image: url("../images/bg.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

}


.resource-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 15, 35, 0.86),
            rgba(5, 15, 35, 0.58),
            rgba(5, 15, 35, 0.35)
        );

}


.resource-hero-container {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 1250px;

    margin: 0 auto;

    padding: 70px 20px;

}


.resource-hero-content {

    max-width: 650px;

}


.resource-hero h1 {

    margin: 20px 0;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 52px;

    line-height: 1.1;

}


.resource-hero p {

    max-width: 540px;

    margin: 0;

    color: #ffffff;

    font-size: 18px;

    line-height: 1.7;

}


.section-label {

    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--church-gold);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 1px;

}


.label-line {

    width: 45px;

    height: 2px;

    background: var(--church-gold);

}


.label-cross {

    font-size: 24px;

}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {

    text-align: center;

    max-width: 800px;

    margin: 0 auto 45px;

}


.section-small-title {

    display: block;

    margin-bottom: 8px;

    color: var(--church-gold);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;

}


.section-heading h2 {

    margin: 0;

    color: var(--text-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 38px;

    line-height: 1.2;

}


.section-heading p {

    margin: 12px 0 0;

    color: var(--text-gray);

    font-size: 15px;

    line-height: 1.6;

}


.heading-decoration {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    margin-top: 10px;

    color: var(--church-gold);

    font-size: 20px;

}


.heading-decoration span {

    display: block;

    width: 35px;

    height: 2px;

    background: var(--church-gold);

}


/* =========================================================
   BOOK SECTION
========================================================= */

.books-section {

    padding: 70px 0;

    background: #ffffff;

}


.books-grid {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 18px;

}


.book-card {

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(20, 43, 80, 0.10);

    border-radius: 9px;

    box-shadow:
        0 5px 20px
        rgba(20, 43, 80, 0.07);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


.book-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 14px 30px
        rgba(20, 43, 80, 0.13);

}


.book-image-wrapper {

    height: 245px;

    padding: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #fafafa;

}


.book-image {

    width: 100%;

    height: 100%;

    object-fit: contain;

    transition:
        transform .35s ease;

}


.book-card:hover .book-image {

    transform: scale(1.04);

}


.book-content {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 18px;

}


.book-content h3 {

    margin: 0;

    color: var(--text-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;

    line-height: 1.35;

}


.book-content p {

    min-height: 42px;

    margin: 8px 0 18px;

    color: var(--text-gray);

    font-size: 13px;

    line-height: 1.5;

}


.resource-button {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: auto;

    padding: 11px 14px;

    background: var(--church-dark-blue);

    color: #ffffff;

    border-radius: 5px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition:
        background .2s ease,
        transform .2s ease;

}


.resource-button:hover {

    background: var(--church-blue);

    transform: translateY(-2px);

}


.resource-button span {

    font-size: 18px;

}


/* =========================================================
   BUTTONS
========================================================= */

.center-button {

    display: flex;

    justify-content: center;

    margin-top: 35px;

}


.outline-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    min-width: 180px;

    padding: 12px 22px;

    border: 1px solid var(--church-dark-blue);

    border-radius: 5px;

    color: var(--church-dark-blue);

    background: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease;

}


.outline-button:hover {

    background: var(--church-dark-blue);

    color: #ffffff;

}


/* =========================================================
   DIGITAL RESOURCES
========================================================= */

.digital-resources-section {

    padding: 75px 0;

    background: var(--light-blue);

}


.digital-resource-grid {

    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 14px;

}


.digital-resource-card {

    display: flex;

    flex-direction: column;

    background: #ffffff;

    border: 1px solid rgba(20, 43, 80, 0.08);

    border-radius: 8px;

    padding: 18px;

    box-shadow:
        0 5px 18px
        rgba(20, 43, 80, 0.06);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


.digital-resource-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 12px 25px
        rgba(20, 43, 80, 0.12);

}


.file-icon {

    height: 95px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 10px;

}


.file-icon img {

    width: 62px;

    height: 72px;

    object-fit: contain;

}


.digital-resource-content {

    display: flex;

    flex-direction: column;

    flex: 1;

}


.digital-resource-content h3 {

    min-height: 48px;

    margin: 0 0 12px;

    color: var(--text-dark);

    font-size: 14px;

    line-height: 1.4;

}


.resource-category {

    display: inline-block;

    align-self: flex-start;

    margin-bottom: 15px;

    padding: 4px 8px;

    border-radius: 4px;

    background: #f4ead8;

    color: #72531d;

    font-size: 10px;

    font-weight: 600;

}


.download-button {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: auto;

    padding: 9px;

    border: 1px solid #cbd5e1;

    border-radius: 4px;

    color: var(--text-dark);

    text-decoration: none;

    font-size: 12px;

    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease;

}


.download-button:hover {

    background: var(--church-dark-blue);

    color: #ffffff;

    border-color: var(--church-dark-blue);

}


/* =========================================================
   BENEFITS
========================================================= */

.resource-benefits {

    padding: 70px 0;

    background: var(--cream);

}


.benefits-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 35px;

}


.benefit-item {

    display: flex;

    align-items: flex-start;

    gap: 15px;

}


.benefit-icon {

    flex-shrink: 0;

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--church-dark-blue);

    color: #ffffff;

    font-size: 25px;

}


.benefit-icon.gold {

    background: var(--church-gold);

}


.benefit-item h3 {

    margin: 0 0 7px;

    color: var(--text-dark);

    font-size: 16px;

}


.benefit-item p {

    margin: 0;

    color: var(--text-gray);

    font-size: 13px;

    line-height: 1.6;

}


/* =========================================================
   CTA
========================================================= */

.resource-cta {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 50px;

    padding: 22px 28px;

    border-radius: 18px;

    background: var(--church-dark-blue);

    color: #ffffff;

}


.cta-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 55px;

    height: 55px;

    border-right: 1px solid
        rgba(255,255,255,.2);

    padding-right: 18px;

    font-size: 27px;

}


.cta-content {

    flex: 1;

}


.cta-content h3 {

    margin: 0 0 5px;

    font-size: 17px;

}


.cta-content p {

    margin: 0;

    color: rgba(255,255,255,.85);

    font-size: 13px;

}


.cta-button {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 12px 22px;

    background: var(--church-gold);

    color: #ffffff;

    border-radius: 5px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;

}


.cta-button:hover {

    background: #a97018;

    transform: translateY(-2px);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .books-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }


    .digital-resource-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }


    .benefits-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 800px) {

    .resource-hero {

        min-height: 330px;

    }


    .resource-hero h1 {

        font-size: 42px;

    }


    .books-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .digital-resource-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .resources-container {

        padding-left: 15px;

        padding-right: 15px;

    }


    .resource-hero {

        min-height: 330px;

        background-position: center;

    }


    .resource-hero-overlay {

        background:
            rgba(5, 25, 55, .88);

    }


    .resource-hero-container {

        padding: 55px 20px;

    }


    .resource-hero h1 {

        font-size: 34px;

        line-height: 1.15;

    }


    .resource-hero p {

        font-size: 15px;

    }


    .section-heading {

        margin-bottom: 32px;

    }


    .section-heading h2 {

        font-size: 29px;

    }


    .books-section,
    .digital-resources-section,
    .resource-benefits {

        padding: 55px 0;

    }


    .books-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .book-image-wrapper {

        height: 270px;

    }


    .digital-resource-grid {

        grid-template-columns: 1fr;

        gap: 16px;

    }




    .benefits-grid {

        grid-template-columns: 1fr;

        gap: 25px;

    }


    .resource-cta {

        flex-direction: column;

        align-items: flex-start;

        padding: 25px;

    }


    .cta-icon {

        border-right: 0;

        border-bottom: 1px solid
            rgba(255,255,255,.2);

        width: 100%;

        height: auto;

        padding: 0 0 15px;

    }


    .cta-button {

        width: 100%;

        justify-content: center;

    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .resource-hero h1 {

        font-size: 29px;

    }


    .section-heading h2 {

        font-size: 25px;

    }


    .book-image-wrapper {

        height: 240px;

    }

}


/* =========================================================
   DATABASE RESOURCE SHOW MORE
========================================================= */

/*
 * Resources after the first five are hidden initially.
 */

.resource-hidden-item {
    display: none;
}


/*
 * Empty database message.
 */

.resource-empty-message {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-gray);
}


/*
 * Resource caption inside title.
 */

.resource-caption {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-gray);
}


/*
 * Make the Show More button behave
 * like the existing outline button.
 */

#showMoreBooks,
#showMoreResources {
    font-family: inherit;
    cursor: pointer;
}


/*
 * Small visual feedback when downloading.
 */

.download-button.download-started {
    background: var(--church-dark-blue);
    color: #ffffff;
    border-color: var(--church-dark-blue);
}


/*
 * Mobile adjustment.
 */

@media (max-width: 600px) {

    #showMoreBooks,
    #showMoreResources {
        width: 100%;
    }

}