.related-news-section {
    margin-top: 40px;
    /* New rules to force containment */
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.related-news-section h3 {
    text-align: center;
    margin-bottom: 20px;
}

.news-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 20px;
    min-height: 90px;
}

.news-carousel-highlight-wrapper {
    width: 100%;
    height: 100%;
}

.news-carousel-item {
    display: none; /* Initially hidden, JS will manage visibility */
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease-in-out;
}

.news-carousel-item.active {
    display: flex;
}

.news-carousel-image-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.news-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-carousel-content {
    flex-grow: 1;
    white-space: normal;
}

.news-carousel-title {
    font-size: 1rem;
    margin: 0;
    color: #333;
}

.news-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.news-carousel-counter {
    text-align: center;
    margin-top: 10px;
}
