/* Homepage — Running Programs cards (isolated from horse-gallery theme) */

.home-programs-section .elct-programs-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.home-programs-section .elct-programs-row > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
}

.home-programs-section .elct-program-card {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    color: inherit;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
}

.home-programs-section .elct-program-card:hover,
.home-programs-section .elct-program-card:focus {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    color: inherit;
    text-decoration: none;
    transform: translateY(-4px);
}

.home-programs-section .elct-program-card__image {
    flex-shrink: 0;
    height: 190px;
    overflow: hidden;
    position: relative;
}

.home-programs-section .elct-program-card__image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    width: 100%;
}

.home-programs-section .elct-program-card:hover .elct-program-card__image img {
    transform: scale(1.05);
}

.home-programs-section .elct-program-card__badge {
    background: rgba(14, 41, 80, 0.88);
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    left: 12px;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    position: absolute;
    text-transform: uppercase;
    top: 12px;
    z-index: 2;
}

.home-programs-section .elct-program-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 230px;
    min-height: 230px;
    padding: 18px 18px 20px;
}

.home-programs-section .elct-program-card__title {
    color: #0e2950;
    display: -webkit-box;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.4;
    margin: 0 0 10px;
    max-height: calc(1.4em * 2);
    min-height: calc(1.4em * 2);
    overflow: hidden;
}

.home-programs-section .elct-program-card__excerpt {
    color: #5a6b7d;
    display: -webkit-box;
    flex: 1 1 auto;
    flex-shrink: 0;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-height: 1.55;
    margin: 0 0 16px;
    max-height: calc(1.55em * 4);
    min-height: calc(1.55em * 4);
    overflow: hidden;
}

.home-programs-section .elct-program-card__cta {
    align-items: center;
    color: #0f497f;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    margin-top: auto;
    min-height: 20px;
}

.home-programs-section .elct-program-card__cta .fa {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.home-programs-section .elct-program-card:hover .elct-program-card__cta .fa {
    transform: translateX(3px);
}

.home-programs-section .elct-programs-empty {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0;
    padding: 20px 0;
    text-align: center;
}

@media (max-width: 767px) {
    .home-programs-section .elct-program-card {
        min-height: 400px;
    }

    .home-programs-section .elct-program-card__image {
        height: 200px;
    }

    .home-programs-section .elct-program-card__content {
        height: 200px;
        min-height: 200px;
    }
}
