.trending-panel {
    display: flex;
    flex-direction: column;
    min-height: 390px;
    border: 1px solid #e7eef3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(24, 59, 86, 0.1);
    overflow: hidden;
}

.trending-tabs {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 10px 0;
    border-bottom: 1px solid #edf2f5;
    background: #f8fbfd;
}

.trending-tabs .nav-link {
    display: flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px 10px 0 0;
    color: #6b7f8d;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.trending-tabs .nav-link.active {
    border-color: #0179e9 !important;
    background: #0179e9 !important;
    color: #fff !important;
}

.trending-content {
    flex: 1;
    min-height: 0;
}

.trending-content .tab-pane {
    height: 100%;
    max-height: 300px;
    overflow-y: auto;
    padding: 14px 16px;
}

.trending-content .tab-pane::-webkit-scrollbar {
    width: 5px;
}

.trending-content .tab-pane::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
}

.trending-content .tab-pane::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background-color: rgba(1, 121, 233, 0.35);
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    border-bottom: 1px solid #eef3f6;
    color: #31536a;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.trending-item:last-child {
    border-bottom: 0;
}

.trending-rank {
    display: flex;
    flex: 0 0 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eaf4ff;
    color: #0179e9;
    font-size: 11px;
    font-weight: 700;
}

.trending-title {
    flex: 1;
    font-size: 12px;
    line-height: 1.45;
}

.trending-arrow {
    color: #b7c8d4;
    font-size: 12px;
}

.trending-item:hover {
    padding-left: 10px;
    color: #0179e9;
    text-decoration: none;
}

.trending-item:hover .trending-rank {
    background: #0179e9;
    color: #fff;
}

.trending-item:hover .trending-arrow {
    color: #0179e9;
}

@media (max-width: 991px) {
    .headline-section {
        padding: 40px 0;
    }

    .headline-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .headline-carousel {
        margin-bottom: 22px;
    }

    .headline-slide {
        min-height: 0;
        flex-direction: column;
    }

    .headline-image {
        flex: 0 0 auto;
        min-height: 220px;
    }

    .headline-content {
        padding: 24px 24px 52px;
    }

    .trending-panel {
        min-height: 0;
    }

    .trending-content .tab-pane {
        max-height: 320px;
    }
}

@media (max-width: 575px) {
    .headline-heading h2 {
        font-size: 24px;
    }

    .headline-content h3 {
        font-size: 18px;
    }

    .headline-content {
        padding: 20px 18px 52px;
    }
}
