.relative-news-carousel {
    direction: ltr;
    padding: 0 10px;
}

/* Make each Owl item stretch to tallest */
.owl-carousel .owl-stage {
    display: flex;
    padding-bottom: 10px;
    box-sizing: border-box;
}
.owl-carousel .owl-item {
    display: flex;
    height: auto !important;
}

/* Make the whole card clickable */
.relative-news-link {
    display: block;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
}

/* Card container */
.relative-news-item {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    border: 1px solid #bbb;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.relative-news-link:hover .relative-news-item {
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.2);
    border-color: #999;
}

/* Image container */
.relative-news-thumbnail {
    margin: 0;
    padding: 0;
    line-height: 0;
    flex-shrink: 0;
}

.relative-news-thumbnail img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
}

/* Content area */
.relative-news-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

/* Title */
.relative-news-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 6px 0;
    color: #007bff; /* blue title */
    text-align: right;
    direction: rtl;
}
.relative-news-title a {
    color: #007bff;
    text-decoration: none;
}
.relative-news-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Description */
.relative-news-description {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 6px;
    color: #555;
    text-align: right;
    direction: rtl;
    flex-grow: 1;
}

/* Footer (date + category) */
.relative-news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Date */
.relative-news-date {
    font-size: 11px;
    color: #888;
    text-align: left;
    direction: rtl;
}
.relative-news-date::before {
    content: "\f073";
    font-family: FontAwesome;
    margin-left: 5px;
}

/* Category badge */
.relative-news-category {
    font-size: 10px;
    padding: 1px 5px;              
    background-color: #6c757d;    
    color: #fff;                   
    border-radius: 3px;            
    display: inline-block;
    direction: rtl;
    line-height: 1.2;
}