/* ── Latest Post Card ── */
.cactus-lp-card {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    gap: 0;
}

.cactus-lp-card__img {
    flex: 0 0 40%;
    max-width: 40%;
    overflow: hidden;
}

.cactus-lp-card__img a {
    display: block;
    height: 100%;
}

.cactus-lp-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cactus-lp-card__body {
    flex: 1;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.cactus-lp-card__title {
    margin: 0;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    color: #fff !important;
}

.cactus-lp-card__title:hover a {
    color: var(--e-global-color-secondary) !important;
}

.cactus-lp-card__title a {
    text-decoration: none;
    color: inherit;
}

.cactus-lp-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #ccc !important;
}

.cactus-lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    border: 2px solid var(--e-global-color-primary);
    border-radius: 50px;
    padding: 8px 20px;
    width: fit-content;
    transition: background .2s, color .2s;
    background: var(--e-global-color-secondary);
}

.cactus-lp-btn:hover {
    background: #ccc;
    color: var(--e-global-color-primary) !important;
}

.cactus-lp-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--e-global-color-primary, #0057b8);
    border-radius: 50px;
    padding: 6px;
    line-height: 1;
}

.cactus-lp-btn__icon svg {
    fill: #fff;
    display: block;
}

@media (max-width: 767px) {
    .cactus-lp-card { flex-direction: column; }
    .cactus-lp-card__img { flex: 0 0 100%; max-width: 100%; max-height: 220px; }
    .cactus-lp-card__body { padding: 20px; }
}

/* ── YouTube link ─────────────────────────────────────────────── */
.cactus-yt-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
}
.cactus-yt-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── PDF attachment card ──────────────────────────────────────── */
.cactus-attachment-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    padding: 16px;
    background: var(--e-global-color-secondary);
    transition: opacity 0.2s;
}

.cactus-attachment-card img {
    border-radius: 16px !important;
}

.cactus-attachment-card:hover {
    opacity: 0.85;
}