/* Related Posts Cards - Main Container */
.rpc-related-posts {
    margin: 40px 0;
    padding: 20px 0;
    clear: both;
}

/* Card Grid Layout */
.rpc-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Individual Card Styles */
.rpc-card {
    width: 100%;
    max-width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #5296D5;
    color: white;
}

.rpc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rpc-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image Styles */
.rpc-card-image {
    height: 180px;
    overflow: hidden;
}

.rpc-card-image img,
.rpc-relatedimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rpc-card:hover .rpc-card-image img {
    transform: scale(1.05);
}

/* Text Content Styles */
.rpc-title {
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
    color: inherit;
}

.rpc-card-title {
    margin: 15px;
    font-size: 1.1em;
    line-height: 1.4;
    text-align: center;
}

/* Row/Column Layout */
.rpc-row {
    display: flex;
    background-color: #5296D5;
    color: white;
    min-height: 120px;
}

.rpc-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rpc-leftside {
    flex: 0 0 30%;
    max-width: 30%;
    padding: 0;
}

.rpc-rightside {
    flex: 0 0 70%;
    max-width: 70%;
    padding: 1em;
}

/* Typography */
.rpc-underlined-title {
    text-decoration: underline;
    margin-bottom: 10px;
    color: white;
    font-size: 16px;
    font-family: "DM Sans", sans-serif;
}

.rpc-description {
    color: white;
    line-height: 21px;
    margin: 0;
    font-size: 16px;
    font-family: "DM Sans", sans-serif;
}

/* Placeholder Styles */
.rpc-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 150px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Link Styles */
a.rpc-link { 
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .rpc-cards-container {
        flex-direction: column;
        align-items: center;
    }
    
    .rpc-card {
        max-width: 100%;
    }
}

@media (max-width: 430px) {
    .rpc-row {
        flex-direction: column;
    }
    
    .rpc-leftside,
    .rpc-rightside {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .rpc-leftside {
        min-height: 150px;
    }
    
    .rpc-rightside {
        padding: 15px;
    }
}