.linkbox-preview {
    display: flex;
    background: #1f2024;
    color: #fff;
    padding: 16px;
    border-radius: 5px;
    border: 1px solid #333;
    margin: 20px 0;
    align-items: flex-start;
    flex-wrap: wrap; /* allows stacking on mobile */
}

.linkbox-horizontal .linkbox-image {
    width: 300px;
    height: auto;
    border-radius: 5px;
    margin-right: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.linkbox-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.linkbox-text strong {
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

.linkbox-text p {
    color: #ccc;
    margin-bottom: 12px;
}

.linkbox-button-wrapper {
    display: flex;
    justify-content: flex-end;
}

/* Responsive: stack image above text on small screens */
@media (max-width: 600px) {
    .linkbox-preview {
        flex-direction: column;
        align-items: stretch;
    }

    .linkbox-horizontal .linkbox-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .linkbox-button-wrapper {
        justify-content: flex-start;
    }
}

.entry .linkbox-preview .linkbox-text .linkbox-button {
    color: #fff !important;       /* keep text white */
    background-color: #598B1B;    /* green background */
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    transition: color 0.3s ease, background-color 0.3s ease; /* smooth hover */
}

/* Hover: darken text slightly */
.entry .linkbox-preview .linkbox-text .linkbox-button:hover {
    color: #e0e0e0 !important;      /* slightly darker white/gray */
    background-color: #45a049;      /* optional: darker green background */
}