/*
Theme Name:     Twenty Twenty-Four Child
Theme URI:      https://example.com/
Description:    A child theme for Twenty Twenty-Four
Author:         Your Name
Author URI:     https://example.com/
Template:       twentytwentyfour
Version:        1.0
Text Domain:    twentytwentyfour-child
*/

/* Import parent theme styles */
@import url('../twentytwentyfour/style.css');
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-item {
    display: block;
    position: relative;
    background-size: cover;
    background-position: center;
    height: 200px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.related-item:hover {
    transform: scale(1.03);
}

.related-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    text-align: center;
}

.related-item h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.related-item .governorate-name {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
}
