/* Main container for announcements list */
.dcms-notification-scroller {
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.dcms-notification-wrapper {
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* List container */
.dcms-notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 100%;
}

/* Individual list items */
.dcms-notification-item {
    margin: 0;
    padding: 0;
    position: relative;
}

/* Add right-facing arrow icon before each list item */
.dcms-notification-item::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #888;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s ease;
    z-index: 1;
}

/* Announcement links */
.dcms-notification-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: block;
    padding: 8px 12px 8px 22px;
    transition: all 0.4s ease;
}

/* Hover effect for links */
.dcms-notification-link:hover {
    background-color: #e9ecef;
    color: #1a73e8;
    padding-left: 25px;
}

/* Change icon color and position on hover */
.dcms-notification-item:hover::before {
    border-left-color: #1a73e8;
    transform: translateY(-50%) translateX(3px);
}

/* Add a fade effect at the top and bottom */
.dcms-notification-scroller::before,
.dcms-notification-scroller::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 25px;
    z-index: 1;
    pointer-events: none;
}

.dcms-notification-scroller::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0));
}

.dcms-notification-scroller::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .dcms-notification-scroller {
        height: 300px;
        padding: 12px;
    }
    
    .dcms-notification-link {
        font-size: 14px;
        padding: 8px 12px 8px 22px;
    }
}

/* Empty state message */
.dcms-notification-scroller p {
    text-align: center;
    color: #6c757d;
    padding: 25px;
    font-style: italic;
    font-weight: 500;
}
.dcms-notification-list { will-change: top; z-index: 2; }
.dcms-notification-scroller { touch-action: pan-y; }
