/**
 * CPI Program Plugin - Frontend Styles
 */

/* ========== Showcase Cards (Listing Page) ========== */
.c5-showcase {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s ease-out;
    min-height: 380px;
    transform-style: preserve-3d;
    display: block;
    text-decoration: none;
}

.c5-showcase:hover .c5-bg {
    transform: scale(1.06);
}

.c5-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    background-size: cover;
    background-position: center;
}

.c5-bg--fallback {
    background: linear-gradient(135deg, #0891b2 0%, #164e63 100%);
}

.c5-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.65) 100%);
}

.c5-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

/* Scroll Reveal */
.c5-sr {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.c5-sr.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Detail Page ========== */
.program-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.program-detail__content {
    line-height: 1.8;
    color: #334155;
}

.program-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.program-detail__image {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
}

.program-detail__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========== Article Body ========== */
.article-body p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* ========== Pagination ========== */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}
