/* Main widget container styling */
.my-custom-widget {
    position: relative;
    padding: 40px 20px;
    background-color: #f8f8f8;
    /* This color can be dynamically overridden via inline style */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    /* Replace with your preferred font */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Title styling */
.my-custom-widget h1 {
    font-size: 2.5em;
    margin-bottom: 2.5em;
    color: #333;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
}

/* Container for the five items */
.my-custom-widget-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Each individual item styling */
.my-custom-widget-item {
    flex: 1 1 18%;
    /* Five items in a row with room for spacing */
    max-width: 18%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
}

/* Remove link underlines and inherit default text color */
.my-custom-widget-item a {
    text-decoration: none;
    color: inherit;
}

/* Style for the image to appear as a circular avatar */
.my-custom-widget-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #ddd;
}

/* Text styling within each item */
.my-custom-widget-item p {
    font-size: 0.95em;
    margin: 0;
    color: #555;
}

/* Hover effect on items */
.my-custom-widget-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive behavior for mobile devices */
@media (max-width: 768px) {
    .my-custom-widget-items {
        justify-content: center; /* Center items in each row */
    }
    .my-custom-widget-item {
        flex: 1 1 calc(33% - 20px);
        max-width: calc(33% - 20px);
    }
}