/* Styles for [top_list] shortcode */

.top-list { margin: 1rem 0; }

/* ── Featured rows (1–3) ── */
.top-list__row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #e5e8ed; }
.top-list__row--featured { border: none; padding: 14px 0; }

.top-list__left { display: flex; gap: 12px; min-width: 0; width: 100%; }

.top-list__image-wrapper { width: 106px; display: flex; flex-direction: column; align-items: center; gap: 6px; }

.top-list__medal { width: 28px; height: 28px; display: block; position: absolute; top: -14px; }

.top-list__logo {
    display: flex;
    height: 60px;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 106px;
    max-width: 106px;
    border: 2px solid #e5e8ed;
    border-radius: 4px;
    padding: 8px;
    background: #fff;
}

.top-list__image-wrapper.rank-1 .top-list__logo { border-color: #D39900; border-radius: 0; }
.top-list__image-wrapper.rank-2 .top-list__logo { border-color: #7A7F80; border-radius: 0; }
.top-list__image-wrapper.rank-3 .top-list__logo { border-color: #8B4D08; border-radius: 0; }

.top-list__logo img { max-width: 100%; height: auto; display: block; }

/* ── Text + button wrapper ── */
.top-list__text-btn-wrapper { display: flex; justify-content: space-between; min-width: 0; flex-wrap: wrap; width: 100%; }
.top-list__text { width: 54%; }

.top-list__title { font-weight: 700; color: #1A73E8; text-decoration: underline !important; font-size: 16px; }
.top-list__description { color: #444; margin-top: 4px; font-size: 16px; }

/* ── CTA button ── */
.top-list__right { width: 45%; padding-top: 10px; justify-content: center; align-items: baseline; display: flex; }

.top-list__btn {
    margin: 0 auto;
    display: inline-block;
    max-width: 220px;
    width: 100%;
    padding: 6px 16px;
    font-size: 14px;
    background-color: #006e9c;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
    margin-left: auto;
    text-align: center;
    flex-shrink: 0;
}
.top-list__btn .arrow { margin-left: 2px; }
.top-list__btn:hover { background-color: #005481; text-decoration: none; }

/* ── Rest of list (4+) ── */
.top-list__rest { margin: 10px 0 0 26px; padding: 0; }
.top-list__rest-item { margin: 12px 0; }
.top-list__rest-item a { color: #1a66ad; text-decoration: underline; }
.top-list__rest-item .desc { color: #2e3a59; }

/* ── Responsive ── */
@media (min-width: 1000px) {
    .top-list__btn { min-width: 227px; }
}

@media (max-width: 600px) {
    .top-list__row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .top-list__right { width: 100%; }
    .top-list__btn { width: 100%; max-width: 100%; min-width: unset; }
    .top-list__text-btn-wrapper { flex-direction: column; }
    .top-list__text { width: 100%; }
}
