/* =====================================================
   IZZYJAMZ SERMONS & MESSAGES ARCHIVE
   ===================================================== */

.ijsa-content-area {
    width: 100%;
    max-width: 100%;
}

.ijsa-archive {
    width: 100%;
    color: #172b45;
}

/* HERO */

.ijsa-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 24px 72px;
    background: linear-gradient(125deg, #071c35 0%, #103b68 58%, #087fbd 100%);
    color: #ffffff;
    text-align: center;
}

.ijsa-hero::before,
.ijsa-hero::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    pointer-events: none;
}

.ijsa-hero::before {
    width: 340px;
    height: 340px;
    top: -210px;
    left: -100px;
}

.ijsa-hero::after {
    width: 420px;
    height: 420px;
    right: -170px;
    bottom: -300px;
}

.ijsa-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
}

.ijsa-eyebrow {
    margin: 0 0 15px;
    color: #63e0dc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.ijsa-hero h1 {
    margin: 0 0 17px;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
}

.ijsa-hero-description {
    max-width: 690px;
    margin: 0 auto;
    color: rgba(255,255,255,.84);
    font-size: 16px;
    line-height: 1.8;
}

.ijsa-hero-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 25px;
    margin-top: 25px;
}

.ijsa-hero-accent span {
    display: block;
    width: 4px;
    border-radius: 5px;
    background: #63e0dc;
}

.ijsa-hero-accent span:nth-child(1),
.ijsa-hero-accent span:nth-child(5) {
    height: 9px;
}

.ijsa-hero-accent span:nth-child(2),
.ijsa-hero-accent span:nth-child(4) {
    height: 17px;
}

.ijsa-hero-accent span:nth-child(3) {
    height: 25px;
}

/* CONTENT */

.ijsa-content-wrap {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 45px 0 60px;
}

.ijsa-category-description {
    margin: 0 0 30px;
    padding: 18px 22px;
    border-left: 4px solid #0c9fc1;
    border-radius: 0 10px 10px 0;
    background: #f2f8fc;
    color: #43566b;
    line-height: 1.75;
}

.ijsa-category-description p:last-child {
    margin-bottom: 0;
}

/* TOOLBAR */

.ijsa-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}

.ijsa-toolbar-copy h2 {
    margin: 0 0 6px;
    color: #102b49;
    font-size: 25px;
    font-weight: 800;
}

.ijsa-toolbar-copy p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.ijsa-filter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.ijsa-filter-form input,
.ijsa-filter-form select {
    min-height: 44px;
    margin: 0;
    border: 1px solid #dce5ed;
    border-radius: 7px;
    background: #ffffff;
    color: #243b53;
    font-size: 14px;
}

.ijsa-filter-form input {
    width: 230px;
    padding: 0 13px;
}

.ijsa-filter-form select {
    min-width: 125px;
    padding: 0 10px;
}

.ijsa-filter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 21px;
    border: 0;
    border-radius: 7px;
    background: #087fbd;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.ijsa-filter-submit:hover {
    background: #075f91;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.ijsa-reset-link {
    color: #087fbd;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ijsa-reset-link:hover {
    text-decoration: underline;
}

/* RESULTS COUNT */

.ijsa-results-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    color: #718096;
    font-size: 13px;
}

.ijsa-results-line > span {
    padding: 5px 10px;
    border-radius: 20px;
    background: #edf7fb;
    color: #087fbd;
}

/* SERMON CARDS */

.ijsa-sermon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.ijsa-sermon-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8edf2;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(17, 42, 70, .055);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ijsa-sermon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(17, 42, 70, .12);
}

.ijsa-artwork-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #0b2948, #087fbd);
}

.ijsa-artwork {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.ijsa-sermon-card:hover .ijsa-artwork {
    transform: scale(1.045);
}

.ijsa-artwork-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ijsa-artwork-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 22, 42, .12);
    transition: background .2s ease;
}

.ijsa-artwork-overlay span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding-left: 4px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 50%;
    background: rgba(8, 127, 189, .9);
    color: #ffffff;
    font-size: 19px;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.ijsa-sermon-card:hover .ijsa-artwork-overlay {
    background: rgba(4, 22, 42, .3);
}

.ijsa-card-details {
    padding: 20px;
}

.ijsa-sermon-title {
    margin: 0 0 11px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.ijsa-sermon-title a {
    color: #102b49;
    text-decoration: none;
}

.ijsa-sermon-title a:hover {
    color: #087fbd;
}

.ijsa-sermon-excerpt {
    display: -webkit-box;
    overflow: hidden;
    min-height: 66px;
    margin: 0 0 18px;
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ijsa-watch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 7px;
    background: #eaf7fc;
    color: #087fbd !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease;
}

.ijsa-watch-button:hover {
    background: #087fbd;
    color: #ffffff !important;
}

/* PAGINATION */

.ijsa-pagination {
    margin-top: 40px;
    text-align: center;
}

.ijsa-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ijsa-pagination li {
    margin: 0;
}

.ijsa-pagination a,
.ijsa-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e8ef;
    border-radius: 7px;
    color: #28435d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ijsa-pagination .current {
    border-color: #087fbd;
    background: #087fbd;
    color: #ffffff;
}

.ijsa-pagination a:hover {
    border-color: #087fbd;
    color: #087fbd;
}

/* EMPTY STATE */

.ijsa-empty-state {
    padding: 65px 20px;
    border: 1px dashed #cbd8e3;
    border-radius: 13px;
    background: #f8fbfd;
    text-align: center;
}

.ijsa-empty-state > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    padding-left: 4px;
    border-radius: 50%;
    background: #e3f4fa;
    color: #087fbd;
    font-size: 22px;
}

.ijsa-empty-state h2 {
    margin: 0 0 10px;
    color: #102b49;
    font-size: 23px;
}

.ijsa-empty-state p {
    margin: 0 0 20px;
    color: #718096;
    font-size: 14px;
}

/* PROMO SECTION */

.ijsa-promo {
    margin-top: 55px;
    padding: 38px 30px;
    border-radius: 13px;
    background: linear-gradient(120deg, #071c35, #10517c);
    color: #ffffff;
    text-align: center;
}

.ijsa-promo h2 {
    max-width: 780px;
    margin: 0 auto 22px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.6;
}

.ijsa-promo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 23px;
    border-radius: 7px;
    background: #63e0dc;
    color: #082b43 !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.ijsa-promo-button:hover {
    background: #ffffff;
    color: #082b43 !important;
    transform: translateY(-2px);
}

/* TABLET */

@media (max-width: 900px) {
    .ijsa-sermon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .ijsa-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .ijsa-filter-form {
        width: 100%;
    }

    .ijsa-filter-form input {
        flex: 1;
        min-width: 180px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .ijsa-hero {
        padding: 55px 20px;
    }

    .ijsa-hero-description {
        font-size: 14px;
    }

    .ijsa-content-wrap {
        width: calc(100% - 28px);
        padding: 32px 0 45px;
    }

    .ijsa-toolbar-copy h2 {
        font-size: 22px;
    }

    .ijsa-filter-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ijsa-filter-form label:first-child {
        grid-column: 1 / -1;
    }

    .ijsa-filter-form input,
    .ijsa-filter-form select {
        width: 100%;
        min-width: 0;
    }

    .ijsa-filter-submit {
        width: 100%;
    }

    .ijsa-sermon-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ijsa-artwork-link {
        aspect-ratio: 16 / 9;
    }

    .ijsa-card-details {
        padding: 17px;
    }

    .ijsa-promo {
        margin-top: 38px;
        padding: 30px 20px;
    }

    .ijsa-promo h2 {
        font-size: 18px;
    }
}