/* General Styles for JO Related Articles Module */
.jo-related-articles {
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

.jo-related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

/* Article Item Styles */
.article-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Thumbnail Image Styles */
.jo-related-thumbnail {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px; /* Optional: Adds rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
    object-fit: cover; /* Ensures proper scaling */
}

.jo-related-thumbnail:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

/* Article Title Styles */
.article-title {
    margin: 0; /* Remove default margin */
    font-size: 1.2rem;
    color: #0073aa; /* Joomla blue */
    font-weight: bold;
    margin-bottom: 5px; /* Add space between title and text */
}

.article-title a {
    text-decoration: none;
    color: inherit; /* Inherit the parent color */
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #005177; /* Darker blue on hover */
}

/* Intro Text Styles */
.article-text {
    margin: 0; /* Remove default margin */
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5; /* Improve readability */
}

/* Responsive Design */
@media (max-width: 768px) {
    .jo-related-articles .row {
        flex-direction: column;
    }

    .jo-related-thumbnail {
        margin-bottom: 10px;
    }
}