body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(8px); /* Adjust the blur radius as needed */
    z-index: -1;
}

.unity-shortcut {
    display: flex;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 5px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 7px 10px 2px 0;
    cursor: pointer; /* Makes the cursor a pointer when hovering over the div */
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s; /* Smooth transition for background, shadow, and transform */
}

.unity-shortcut img {
    width: 50px; /* Adjust the size of the image */
    height: 50px; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between image and text */
    border-radius: 7px; /* Rounded corners for the image */
}

.unity-shortcut p.unity-shortcut-name {
    font-size: 1.2rem; /* Increase font size */
    margin: 0;
}

.unity-shortcut .link-icon {
    margin-left: auto; /* Push the icon to the far right */
    margin-right: 10px; /* Space between icon and text */
    color: #20524F; /* Icon color */
}

.unity-shortcut:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
    transform: scale(1.05); /* Slightly scale up the div on hover */
}

.unitydorm-shortcuts-header {
    align-items: center;
    margin: 1rem 0;
    padding: 5px;
    background: #20524F;
    border-radius: 10px;
    color: #e0e0e5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .unitydorm-shortcuts-header {
        font-size: 1.2rem; /* Increase font size for header on mobile devices */
    }
    .row {
        width: 90%; /* Set width to 80% on mobile devices */
        margin: 0 auto; /* Center the row */
    }
}

.unitydorm-news-carousel {
    position: relative;
    overflow: hidden;
}

.news-items-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.news-item-container {
    flex: 0 0 100%;
    padding: 8px;
    background: linear-gradient(to top, #f4f4f9 0%, #f4f4f9 60%, rgba(244, 244, 249, 0) 75%, rgba(244, 244, 249, 0) 100%);
    border-radius: 10px;
    position: absolute;
}

@media (min-width: 768px) {
    .news-item-container {
        flex: 0 0 24.2%;
        margin: 0 5px;
    }
}

.news-item-container:hover {
    background: linear-gradient(to top, #e0e0e5 0%, #f4f4f9 60%, rgba(244, 244, 249, 0) 75%, rgba(244, 244, 249, 0) 100%);
    transform: translateY(-8px);
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out; /* Smoother and slower transition */
    cursor: pointer; /* Makes the cursor a pointer when hovering over the container */
}

.carousel-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: black;
    padding: 1rem;
    cursor: pointer;
    z-index: 1;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 3px solid #20524F;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* More focused shadow effect */
}

.news-title {
    background: #20524F;
    color: #e0e0e5;
    border-radius: 10px 10px 0 0;
    border: 1px solid #20524F;
    font-size: 1.2rem;
    padding: 0.5rem;
    margin: 0;
    overflow: hidden; /* Ensure content does not overflow */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7); /* More focused shadow effect */
}

.news-description {
    padding: 1rem;
    height: 128px; /* Fixed height */
    overflow: hidden; /* Ensure content does not overflow */
    border-radius: 0 0 10px 10px;
    border: 1px solid #20524F;
    background: #f4f4f9;
    color: #20524F;
}

.news-date {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
    overflow: hidden; /* Ensure content does not overflow */
    font-style: italic; /* Make the text italic */
    border-radius: 5px; /* Add rounded corners */
    padding: 0.2rem 0.5rem; /* Add some padding */
}

.news-item-container {
    position: relative; /* Ensure the parent container is positioned relatively */
}

.news-category {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.9rem;
    margin: 0;
    overflow: hidden;
    font-style: italic;
    border-radius: 5px;
    padding: 0.2rem 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
