.custom-news-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f4f4f4;
    padding: 65px 0;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    }
    .marquee-controls {
        display: flex;
        flex-direction: row;
        justify-content:space-between;
        z-index: 10;
    }
    .ssb{
        margin-bottom: 20px;
    }
    .search-container {
        margin-left: 20px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 400px;
    }
    
    #article-search {
        width: 100%;
        padding: 10px 40px 10px 15px;
        border: 2px solid #0c2961;
        border-radius: 25px;
        font-size: 16px;
        transition: all 0.3s ease;
        outline: none;
    }
    
    #article-search:focus {
        box-shadow: 0 0 5px rgba(12, 41, 97, 0.3);
    }
    
    .search-icon {
        position: fixed;
        transform: translateY(-50%);
        color: #0c2961;
    }
    
    .no-results {
        text-align: center;
        padding: 20px;
        font-size: 16px;
        color: #666;
    }
    .pagination-controls {
        padding:0 30px;
        display: flex;
        flex-wrap: wrap; /* Corrected typo */
        justify-content: space-between; /* Center align the buttons */
        z-index: 10;
    }
        #article-range {
        font-size: 14px;
        color: #7c7c7c;
        margin-right: 10px;
        align-self: center;
    }
    .scroll-speed-btn {
        padding: 10px;
        margin: 5px;
        border: none;
        background-color: #0c2961;
        box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 2px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
        color: white;
        font-size: 18px;
        cursor: pointer;
        border-radius: 5px;
        width: 40px;
        height: 40px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
    #more-news, #prev-news {
        
        padding: 20px;
        border: none;
        background-color: #0c2961;
        box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 2px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
        color: white;
        font-size: 16px;
        cursor: pointer;
        border-radius: 5px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
    .scroll-speed-btn:hover, #more-news:hover, #prev-news:hover {
        background-color: #2b4478;
    }
    .marquee-content {
        display: flex;
        gap: 30px;
        animation: marquee 60s linear infinite;
    }


    @keyframes marquee {
        0% { transform: translateX(50%); }
        50% { transform: translateX(-110%); }
        100% { transform: translateX(-365%); }
    }

    .news-article {
        width: 250px;
        padding: 15px;
        box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
        border-radius: 10px;
        background-color: #f3f7ff;
        margin-bottom:25px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        }
    .news-article img {
        width: 200px; /* Fixed width */
        height: 200px; /* Fixed height */
        object-fit: cover; /* Ensures the image covers the dimensions without stretching */
        border-radius: 5px; /* Rounded corners */
        margin-bottom: 15px; /* Space below the image */
    }
    .news-article #news-article-h6 {
        font-size: 16px;
        margin: 10px 0;
        text-align: center;
        line-height: 1.4em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .news-article p {
        font-size: 14px;
        color: #646464;
        margin: 15px 0;
        text-align: center;
    }

    .news-article #article_a {
        padding: 8px 15px;
        background-color: #0c2961;
        box-shadow: 0 0 7px rgba(0, 0, 0, 0.8);
        color: #fff;
        text-align: center;
        text-decoration: none; 
        border-radius: 5px;
        width: 100%;
        margin-top: auto;
    }

    .news-article #article_a:hover {
        background-color: #3a5385;
    }
    .saved-articles-container {
        display: none; /* Hide container by default */
        margin-left:20px;
        margin-right:20px;
        margin-top: 30px;
        padding: 20px;
        background-color: #d8d8d8;
        border: 1px solid #ccc;
        border-radius: 10px;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
    }
    .saved-articles-container #saved-article-h2{
        text-align: center;
        font-weight:300;
        font-size: 18px;
        }
    .saved-articles-container p {
        display:none;
    }


    .saved-articles-content {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        margin: 10px;
    }

    .saved-articles-content .news-article {
        width: 240px;
        
    }
    .saved-articles-content img {
        height: 100px;
    }
    
    #save-articles-btn {
        margin-top: 10px;
        padding:6px;
        font-size: 14px;
        background-color: #9daecefa; 
        border-radius: 3px;
        color:white;
        cursor: pointer;   
        }
    .saved-articles-content #save-articles-btn {
        display: none;
    }  
        
    .delete-article-btn {
    margin-top: 10px;
    padding: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 12px;
    background-color: #ff4444;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    }

    .delete-article-btn:hover {
        background-color: #cc0000;
    }
    