/* ============================================================
   RSS WIDGET – FULLY SCOPED, NO GLOBAL STYLES, NO !important
   ============================================================ */

#rss-feed-widget {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    width: 100%;
    height: 100px;
    background-color: #F6F8FF;
    border: none;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
#rss-feed-widget * {
    box-sizing: border-box;
}
#rss-feed-widget .rss-widget-title {
    background-color: #4682b4;
    color: #fff;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#rss-feed-widget .rss-content-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    background-color: #F6F8FF;
}
#rss-feed-widget .rss-content {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background-color: #F6F8FF;
}
#rss-feed-widget .rss-content::-webkit-scrollbar {
    width: 0;
    background: transparent;
}
#rss-feed-widget .rss-content {
    scrollbar-width: none;
}
#rss-feed-widget .rss-item {
    height: 100%;
    scroll-snap-align: start;
    padding: 4px 32px 4px 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}
#rss-feed-widget .rss-item-title {
    color: #4682b4;
    font-weight: bold;
    margin-bottom: 1px;
    font-size: 13px;
    line-height: 1.3;
}
#rss-feed-widget .rss-item-title a {
    color: inherit;
    text-decoration: none;
}
#rss-feed-widget .rss-item-title a:hover {
    text-decoration: underline;
}
#rss-feed-widget .rss-item-description {
    color: #665675;
    font-size: 12px;
    line-height: 1.4;
    margin: 1px 0;
    text-align: justify;
}
#rss-feed-widget .rss-item-date {
    color: #888;
    font-size: 11px;
    display: block;
    margin-top: 1px;
}
#rss-feed-widget .nav-btn {
    position: absolute;
    right: 4px;
    background: rgba(70,130,180,0.85);
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
#rss-feed-widget .nav-btn:hover {
    opacity: 1;
}
#rss-feed-widget .nav-btn.prev {
    top: 6px;
}
#rss-feed-widget .nav-btn.next {
    bottom: 6px;
}
#rss-feed-widget .nav-btn.hidden {
    display: none;
}