/* =========================================================
 * Rajputana Diary - Author Box
 * File: author.css
 * ========================================================= */

.author-box-pro {
    width: 100%;
    margin: 24px 0 22px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(11, 60, 116, 0.06);
    box-sizing: border-box;
}

.author-heading-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

.author-heading-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8eef6;
}

.author-heading {
    margin: 0 0 4px;
    padding: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.author-avatar {
    flex: 0 0 70px;
    width: 70px;
    border-radius: 12px;
    overflow: hidden;
}

.author-avatar img {
    display: block;
    width: 70px;
    height: 70px;
    min-width: 70px;
    max-width: 70px;
    object-fit: cover;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e1eaf4;
    background: #f4f8ff;
}


.author-name {
    margin: 0;
    color: #7f1d1d;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.author-role {
    color: #5f6f82;
    font-size: 14px;
    font-weight: 500;
}

.author-bio {
    margin: 0;
    color: #4b5968;
    font-size: 14px;
    line-height: 1.7;
}

.author-readmore {
    display: inline-block;
    margin-left: 5px;
    color: #0d6efd;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.author-readmore:hover {
    color: #0b3c74;
    text-decoration: underline;
}

/* Optional badge system - currently unused */
.author-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
}

.author-badge.verified {
    color: #198754;
    background: #e8f7ee;
}

.author-badge.expert {
    color: #0b3c74;
    background: #f4f8ff;
}

.author-badge.editor {
    color: #7a5a00;
    background: #fff8df;
}

/* =========================================================
 * MOBILE AUTHOR BOX - FINAL DESIGN
 * ========================================================= */

@media (max-width: 768px) {

    .author-box-pro {
        width: 100% !important;
        margin: 18px 0 20px !important;
        padding: 16px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }


    /* -----------------------------------------
     * Photo + Heading + Name
     * ----------------------------------------- */

    .author-box-pro .author-heading-row {
        display: grid !important;
        grid-template-columns: 64px 1fr !important;
        column-gap: 12px !important;
        align-items: center !important;

        padding: 0 !important;
        margin: 0 0 14px !important;
        border: none !important;
    }


    /* Photo */

    .author-box-pro .author-avatar {
        width: 64px !important;
        min-width: 64px !important;
    }

    .author-box-pro .author-avatar img {
        display: block !important;

        width: 64px !important;
        height: 64px !important;

        min-width: 64px !important;
        max-width: 64px !important;

        object-fit: cover !important;
        border-radius: 10px !important;
    }


    /* Heading + Name */

    .author-box-pro .author-heading-content {
    min-width: 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #e8eef6 !important;
}

    .author-box-pro .author-heading {
        margin: 0 0 3px !important;
        padding: 0 !important;

        color: #111827 !important;

        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
    }

    .author-box-pro .author-name {
        margin: 0 !important;
        padding: 0 !important;

        color: #7f1d1d !important;

        font-size: 17px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
    }


    /* -----------------------------------------
     * Bio - Full Width
     * ----------------------------------------- */

    .author-box-pro .author-bio-wrap {
        display: block !important;
        width: 100% !important;
    }

    .author-box-pro .author-bio {
        display: block !important;

        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;

        color: #333333 !important;

        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.7 !important;

        box-sizing: border-box !important;
    }


    /* Read More */

    .author-box-pro .author-readmore {
        display: inline-block !important;

        margin-left: 4px !important;

        color: #0d6efd !important;

        font-size: 13.5px !important;
        font-weight: 600 !important;

        text-decoration: none !important;
        white-space: nowrap !important;
    }

    .author-box-pro .author-readmore:hover {
        text-decoration: underline !important;
    }
}


/* =========================================================
 * VERY SMALL MOBILE
 * ========================================================= */

@media (max-width: 380px) {

    .author-box-pro {
        padding: 14px !important;
    }

    .author-box-pro .author-heading-row {
        grid-template-columns: 58px 1fr !important;
        column-gap: 10px !important;
    }

    .author-box-pro .author-avatar,
    .author-box-pro .author-avatar img {
        width: 58px !important;
        min-width: 58px !important;
    }

    .author-box-pro .author-avatar img {
        height: 58px !important;
        max-width: 58px !important;
    }

    .author-box-pro .author-heading {
        font-size: 17px !important;
    }

    .author-box-pro .author-name {
        font-size: 16px !important;
    }

    .author-box-pro .author-bio {
        font-size: 13.5px !important;
        line-height: 1.7 !important;
    }
}