/* =========================================
   Container
   ========================================= */

.be-species-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 0 2.5rem;
}

/* Placeholder text in editor */
.be-species-grid--placeholder {
    padding: 12px 14px;
    border-radius: 6px;
    background: #f5f7fa;
    border: 1px dashed #c3ccd5;
    font-size: 13px;
}

/* =========================================
   Card base
   ========================================= */

.be-species-card {
    position: relative;
    display: block;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}

.be-species-card::after {
    content: "";
    display: block;
    clear: both;
}

.be-species-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.09);
}

/* =========================================
   Image
   ========================================= */

.be-species-card__image-link {
    float: left;
    display: block;
    width: 324px;
    max-width: 324px;
    margin: 0 20px 12px 0;
}

.be-species-card__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* =========================================
   Content
   ========================================= */

.be-species-card__title {
    margin: 0 0 0.4rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.be-species-card__title a {
    text-decoration: none;
}

.be-species-card__title a:hover {
    text-decoration: underline;
}

.be-species-card__meta {
    margin: 0 0 0.5rem;
    font-size: 0.96rem;
}

.be-species-card__excerpt {
    margin: 0 0 0.9rem;
    line-height: 1.55;
    font-size: 0.98rem;
}

/* =========================================
   READ MORE BUTTON – LOCKED SIZE (NO SHRINK)
   ========================================= */

/* 1) Lock ALL sizing/geometry for normal + hover + focus */
.be-species-grid .be-species-card__read-more,
.be-species-grid .be-species-card__read-more:hover,
.be-species-grid .be-species-card__read-more:focus,
.be-species-grid .be-species-card__read-more:focus-visible,
.be-species-grid .be-species-card__read-more:active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* 🔒 Size never changes */
    height: 38px !important;
    padding: 0 1.05rem !important;
    box-sizing: border-box !important;

    /* 🔒 Text never changes */
    font-size: 0.80rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;

    /* 🔒 No transforms from theme */
    transform: none !important;

    border-radius: 999px !important;
    border: 2px solid #000 !important;
    text-decoration: none !important;
    outline: none !important;

    /* keep shadow stable (no jump) */
    box-shadow: 3px 3px 0 #000 !important;

    transition: background-color 0.18s ease, color 0.18s ease !important;
    position: relative !important;
}

/* 2) Base look */
.be-species-grid .be-species-card__read-more {
    background: #f4cf58 !important;
    color: #000 !important;
}

/* 3) Hover/focus – color only */
.be-species-grid .be-species-card__read-more:hover,
.be-species-grid .be-species-card__read-more:focus,
.be-species-grid .be-species-card__read-more:focus-visible {
    background: #0b5d0b !important;
    color: #fff !important;
}

/* 4) Active press – tiny depth only (still no shrink) */
.be-species-grid .be-species-card__read-more:active {
    transform: translate(1px, 1px) !important;
    box-shadow: 3px 3px 0 #000 !important;
}

/* =========================================
   Responsive tweaks
   ========================================= */

@media (max-width: 960px) {
    .be-species-card__image-link {
        width: 260px;
        max-width: 260px;
        margin: 0 18px 10px 0;
    }
}

@media (max-width: 640px) {
    .be-species-card {
        padding: 16px 14px;
    }

    .be-species-card__image-link {
        width: 42%;
        max-width: 170px;
        margin: 0 16px 10px 0;
    }

    .be-species-card__title {
        font-size: 1.1rem;
        margin-top: 2px;
    }
}

@media (max-width: 420px) {
    .be-species-card__image-link {
        width: 38%;
        max-width: 150px;
        margin-right: 12px;
    }
}
