.news-overlay-outer-container-9d96fca3 {
    position: relative;
    width: 100%;
    height: 100%;
}

.news-overlay-wrapper-9d96fca3 {
    font-family: "Times New Roman", Times, serif;
    background-color: rgba(17, 17, 17, 0.85);
    color: #dddddd;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    width: 100%;
}

/* Match Slider Height Mode */
.elementor-widget-news_overlay_9d96fca3.news-overlay-height-match {
    height: 100%;
}

.elementor-widget-news_overlay_9d96fca3.news-overlay-height-match .elementor-widget-container {
    height: 100%;
}

.elementor-widget-news_overlay_9d96fca3.news-overlay-height-match .news-overlay-wrapper-9d96fca3 {
    height: 100%;
    overflow-y: auto;
    overflow-x: visible; /* Ensure expanded panel is not horizontally clipped */
}

/* Scrollbar styling for matched height mode */
.news-overlay-wrapper-9d96fca3::-webkit-scrollbar {
    width: 6px;
}
.news-overlay-wrapper-9d96fca3::-webkit-scrollbar-track {
    background: transparent;
}
.news-overlay-wrapper-9d96fca3::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.news-overlay-title-9d96fca3 { 
    font-size: 2.2em;
    font-weight: normal;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    line-height: 1.1;
    color: inherit;
    text-transform: uppercase;
}

.news-pagination-9d96fca3 {
    font-size: 13px;
    margin-bottom: 20px;
    color: #aaaaaa;
}

.news-pagination-9d96fca3 a {
    color: #dddddd;
    text-decoration: none;
    padding: 0 2px;
}

.news-pagination-9d96fca3 a:hover,
.news-pagination-9d96fca3 a.active {
    text-decoration: underline;
    color: #ffffff;
}

.news-pagination-9d96fca3 .sep {
    margin: 0 4px;
    color: #666666;
}

.news-item-9d96fca3 {
    margin-bottom: 15px;
}

.news-item-header-9d96fca3 {
    background-color: #333333;
    color: #ffffff;
    font-size: 12px;
    padding: 3px 6px;
    margin-bottom: 6px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-item-header-9d96fca3 a {
    color: #ffffff;
    text-decoration: none;
}
.news-item-header-9d96fca3 a:hover { 
    text-decoration: underline;
}

.news-item-main-content-9d96fca3 {
    display: block;
    width: 100%;
}

.news-item-body-9d96fca3 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.news-item-body-9d96fca3.has-thumb .news-item-desc-9d96fca3 {
    width: 65%;
}

.news-item-body-9d96fca3.no-thumb .news-item-desc-9d96fca3 {
    width: 100%;
}

.news-item-desc-9d96fca3 {
    font-size: 12px;
    line-height: 1.4;
    font-family: Arial, sans-serif;
    color: #cccccc;
}

.news-item-thumb-9d96fca3 {
    width: 30%;
    flex-shrink: 0;
}

.news-item-thumb-9d96fca3 img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
    border: 1px solid #444444;
}

/* Desktop Mobile block element is hidden by default */
.news-item-mobile-image-9d96fca3 {
    display: none;
}

/* Expanded Panel Base */
.news-expanded-panel-9d96fca3 {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    font-family: Arial, sans-serif;
    position: relative;
    
    /* Animation base state */
    transition-property: opacity, visibility, transform;
    transition-timing-function: ease-in-out;
    transform: translateX(10px); /* start slightly offset to the right (behind news) */
}

.news-expanded-inner-9d96fca3 {
    width: 100%;
    height: 100%;
    overflow-y: hidden; /* JavaScript driven arrows handle scrolling, hide default scrollbar */
    padding: 20px;
    box-sizing: border-box;
}

/* Scroll Arrows */
.news-scroll-arrow-9d96fca3 {
    position: absolute;
    right: 20px;
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    border: 1px solid transparent; 
    border-radius: 50%;
}

.news-scroll-arrow-9d96fca3.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.news-scroll-up-9d96fca3 {
    top: 5px;
}

.news-scroll-down-9d96fca3 {
    bottom: 5px;
}

/* Mobile specific handling (up to 767px) */
@media screen and (max-width: 767px) {
    /* Add safety margin at top of mobile news panel to prevent overlapping website header/logo */
    .news-overlay-wrapper-9d96fca3 {
        margin-top: 70px !important;
        min-height: calc(100vh - 70px) !important;
    }

    .news-overlay-outer-container-9d96fca3, 
    .news-overlay-wrapper-9d96fca3, 
    .news-content-container-9d96fca3,
    .news-page-9d96fca3,
    .news-item-9d96fca3,
    .news-item-main-content-9d96fca3 {
        display: block !important;
        height: auto !important;
        min-height: 1px !important;
        overflow: visible !important;
    }

    /* Hide desktop-configured thumbnail on mobile */
    .news-item-thumb-9d96fca3 {
        display: none !important;
    }

    .news-item-body-9d96fca3 {
        display: block !important;
        height: auto !important;
    }
    
    .news-item-body-9d96fca3.has-thumb .news-item-desc-9d96fca3,
    .news-item-body-9d96fca3.no-thumb .news-item-desc-9d96fca3 {
        width: 100% !important;
        display: block !important;
        margin-bottom: 10px !important;
        height: auto !important;
    }
    
    /* Show structural mobile block image container always */
    .news-item-mobile-image-9d96fca3 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        margin: 12px 0 !important;
        height: auto !important;
        min-height: 120px !important;
        overflow: visible !important;
    }
    
    .news-item-mobile-image-9d96fca3 img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        border: none !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        transform: none !important;
    }
    
    /* Allow collapsed items to trigger panel toggle */
    .news-item-9d96fca3[data-has-expanded="true"] {
        cursor: pointer;
    }
    
    /* Mobile Accordion style for expanded panel */
    .news-item-9d96fca3 .news-expanded-panel-9d96fca3 {
        display: block !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: 0 !important;
        overflow: hidden !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: max-height 0.3s ease-out !important;
        background-color: transparent !important;
    }
    
    .news-item-9d96fca3.is-expanded-mobile .news-expanded-panel-9d96fca3 {
        max-height: 1000px !important; /* Larger max height to accommodate rich text */
    }
    
    .news-expanded-inner-9d96fca3 {
        padding: 10px 0 0 0 !important;
        overflow-y: visible !important;
    }
    
    /* Hide redundant duplicate title in mobile panel */
    .news-expanded-panel-9d96fca3 .news-item-header-9d96fca3 {
        display: none !important;
    }
    
    .news-expanded-desc-9d96fca3 {
        font-family: Arial, sans-serif;
        font-size: 12px;
        line-height: 1.4;
        color: #cccccc;
    }
    
    /* Hide scroll arrows on mobile as page handles scroll flow */
    .news-scroll-arrow-9d96fca3 {
        display: none !important;
    }
}

/* Desktop absolute positioning behavior */
@media screen and (min-width: 1025px) {
    .elementor-widget-news_overlay_9d96fca3 {
        position: absolute !important;
        right: 0;
        top: 0;
        width: 25%;
        max-width: 320px;
        min-width: 250px;
        z-index: 10;
    }
    
    .elementor-widget-news_overlay_9d96fca3:not(.news-overlay-height-match) {
        height: auto;
    }
    
    .news-expanded-panel-9d96fca3 {
        position: absolute;
        right: 100%; /* Push exactly to the left of the overlay */
        top: 0;
        color: #333333;
        box-sizing: border-box;
        z-index: 9999;
        width: 300px;
    }
    
    .news-item-9d96fca3 {
        position: static; 
    }
    
    .news-overlay-outer-container-9d96fca3 {
        position: relative;
    }
    
    /* Replaced simple CSS hover with JS-applied class for bridging */
    .news-expanded-panel-9d96fca3.is-active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0); /* slide to normal position */
    }
    
    .news-expanded-panel-9d96fca3 .news-item-header-9d96fca3 {
        background-color: rgba(200, 200, 200, 0.85); 
        color: #222222;
        margin-bottom: 10px;
    }

    .news-expanded-desc-9d96fca3 {
        font-size: 12px;
        line-height: 1.5;
        color: #333333;
    }
    
    .news-expanded-desc-9d96fca3 p {
        margin: 0 0 10px 0;
    }
    
    .news-expanded-desc-9d96fca3 p:last-child {
        margin-bottom: 0;
    }
}