/* Container Box */
.trending-slider-container {
    width: 270px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Header & Horizontal Buttons */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.box-title {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 300;
    font-size: 25px;
}

.slider-controls {
    display: flex;
    flex-direction: row; /* Horizontal buttons */
    gap: 8px;
}

/* Button Styling (Silver Border) */
.ctrl-btn {
    background-color: transparent;
    border: 1px solid rgb(94, 91, 91);
    color: rgb(37, 36, 36);
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button Hover (White Border & White Arrow) */
.ctrl-btn:hover {
    border-color: white;
    color: white;
}

/* Viewport & Sliding Area */
.trending-viewport {
    width: 100%;
    height: 320px; 
    overflow: hidden; /* Keeps text inside the box */
    position: relative;
}

.trending-wrapper {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease-in-out;
}

.trending-slide {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    height: 106px; /* Fixed height for logic */
    box-sizing: border-box;
}

.trend-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.trend-text-content {
    display: flex;
    flex-direction: column;
}

.trend-link {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 14px;
}

.trend-desc {
    font-size: 12px;
    color: #777;
    margin: 4px 0 0 0;
}