.cap-authors-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

.cap-author-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    column-gap: 20px;
    row-gap: 4px;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    align-items: start;
    height: 100%;
}

/* Avatar */
.cap-author-avatar {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.cap-author-avatar img,
.cap-author-img {
    width: 100px;
    height: 100px !important;
    object-fit: cover;
    border-radius: 7px 0 7px 0 !important;
}

/* Name */
.cap-author-name {
    grid-column: 2;
    grid-row: 1;
    margin: 15px 0 0 0;
    font-size: 22px;
    line-height: 1.2;
}

.cap-author-name a {
    color: #e60000;
    text-decoration: none;
    font-weight: 700;
}

.cap-author-name a:hover {
    color: #2db300;
}

/* Designation */
.cap-author-designation {
    grid-column: 2;
    grid-row: 2;
    margin: -35px 0 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

/* Bio */
.cap-author-bio {
    grid-column: 1 / span 2;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: #222;
}

/* Button */
.cap-view-profile {
    grid-column: 1 / span 2;
    margin-top: -12px;
    padding: 10px 18px;
    border: 2px solid #e60000;
    color: #e60000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    display: inline-block;
    width: fit-content; /* Important: no full stretch */
    transition: 0.3s ease;
}

.cap-view-profile:hover {
    background: #2db300;
    border-color: #2db300;
    color: #fff;
}

/* =========================
   TABLET (2 Columns)
========================= */
@media (max-width: 1024px) {

    .cap-authors-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

}

/* ===============================
   MOBILE RESPONSIVE FIX
================================= */

@media (max-width: 768px) {

    /* 1️⃣ Stack cards in single column */
    .cap-authors-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* 2️⃣ Adjust card internal layout */
    .cap-author-card {
        grid-template-columns: 80px 1fr;
        column-gap: 16px;
        padding: 18px;
    }

    /* 3️⃣ Slightly smaller image */
    .cap-author-avatar img,
    .cap-author-img {
        width: 80px;
        height: 80px;
    }

    /* 4️⃣ Adjust name size */
    .cap-author-name {
        font-size: 18px;
    }

    /* 5️⃣ Designation spacing */
    .cap-author-designation {
        font-size: 14px;
        margin-top: -35px;
    }

    /* 6️⃣ Bio text readable */
    .cap-author-bio {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 7️⃣ Button full width for touch usability */
    .cap-view-profile {
        width: 100%;
        text-align: center;
    }

}


