/* ABP Course Promos — Front-end */

.abp-cp-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.abp-cp-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1d2327;
}

.abp-cp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Card */
.abp-cp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.abp-cp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Thumbnail */
.abp-cp-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.abp-cp-thumb-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #f0f6fc 0%, #e2ecf5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.abp-cp-thumb-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #2271b1;
    opacity: 0.4;
}

/* Card body */
.abp-cp-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.abp-cp-cat {
    display: inline-block;
    background: #f0f6fc;
    color: #2271b1;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.abp-cp-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #1d2327;
}

.abp-cp-card-excerpt {
    font-size: 13px;
    color: #646970;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
}

.abp-cp-card-cta {
    font-size: 13px;
    font-weight: 600;
    color: #2271b1;
}

.abp-cp-card:hover .abp-cp-card-cta {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .abp-cp-grid {
        grid-template-columns: 1fr;
    }
}
