/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: This is Astra Child Theme designed specifically for Heroworksheets.com/
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/
/* =============================================
   Related Pages Widget — Refined Styling
   ============================================= */

/* Entire widget block border */
.widget_related_pages_widget {
    border: 3px solid #e6e6e6;
    border-radius: 8px;
    padding: 18px 16px 10px;
    margin-bottom: 24px;
    background: #fff;
}

/* Widget title — centered, default font */
.widget_related_pages_widget .widget-title {
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #222;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6e6e6;
}

/* List reset */
.rpw-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rpw-item {
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
}

.rpw-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Row layout */
.rpw-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 2px;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    transition: color 0.2s ease;
}

.rpw-link:hover {
    color: var(--ast-global-color-1, #006adc);
    text-decoration: none;
}

.rpw-link:hover .rpw-thumb img {
    transform: scale(1.05);
}

/* Thumbnail — square, larger */
.rpw-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f1f1;
    border: 1px solid #e6e6e6;
}

.rpw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Fallback initial letter */
.rpw-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
}

.rpw-no-thumb span {
    font-size: 1.6em;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
}

/* Title text */
.rpw-info {
    flex: 1;
    min-width: 0;
}

.rpw-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.88em;
    font-weight: 600;
    line-height: 1.45;
    color: #333;
    font-family: inherit;
}

.rpw-link:hover .rpw-title {
    color: var(--ast-global-color-1, #006adc);
}