/**
 * Awards & Medals Recipients Widget Styles
 * Mirrors qualifying-competitors layout with wc-amr- prefix.
 */

.elementor-widget-wc-awards-medals-recipients {
    --wc-amr-arrow-size: 34px;
    --wc-amr-arrow-left: -24px;
    --wc-amr-arrow-right: -24px;
    --wc-amr-dot-size: 17px;
    --wc-amr-dot-spacing: 6px;
    --wc-amr-dot-outside-offset: 16px;
    --wc-amr-dot-inside-offset: 0px;
}

/* Section Title */
.elementor-widget-wc-awards-medals-recipients .wc-amr-section-title {
    text-align: center;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 30px;
    color: #281E69 !important;
    text-transform: uppercase;
    font-family: inherit !important;
}

.elementor-widget-wc-awards-medals-recipients .wc-amr-section-title a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Filter Tabs */
.elementor-widget-wc-awards-medals-recipients .wc-amr-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.elementor-widget-wc-awards-medals-recipients .wc-amr-filter-btn {
    background: #009FE3 !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    cursor: pointer;
    min-width: 160px;
    height: 39px !important;
    border-radius: 22px !important;
    transition: all 0.3s ease;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 20px !important;
    margin: 5px !important;
    line-height: 17px !important;
}

.elementor-widget-wc-awards-medals-recipients .wc-amr-filter-btn.active,
.elementor-widget-wc-awards-medals-recipients .wc-amr-filter-btn:hover {
    background-color: #1D0A9B !important;
    color: #FFFFFF !important;
}

/* Slider Container */
.elementor-widget-wc-awards-medals-recipients .wc-amr-slider-container {
    padding: 0 40px;
}

.elementor-widget-wc-awards-medals-recipients .swiper-container {
    padding: 16px 10px 24px 10px !important;
    overflow: hidden !important;
}

/* Card */
.elementor-widget-wc-awards-medals-recipients .wc-amr-card {
    position: relative;
    background: #FFFFFF;
    box-shadow: 2px 2px 7.1px rgba(0, 0, 0, 0.25) !important;
    border-radius: 30px !important;
    overflow: hidden;
    width: 100%;
    max-width: 254px;
    height: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Card Image */
.elementor-widget-wc-awards-medals-recipients .wc-amr-card-image {
    width: 100% !important;
    height: 300px !important;
    background-size: cover;
    background-position: center top;
    border-radius: 30px !important;
    margin: 0 !important;
    flex-shrink: 0;
}

/* Fallback when no image is set — show logo centred on a light grey bg */
.elementor-widget-wc-awards-medals-recipients .wc-amr-card-image--empty {
    background-color: #f2f2f2 !important;
    background-size: 60% auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Card Content — Figma: 10px 20px padding, 10px gap, justify-center */
.elementor-widget-wc-awards-medals-recipients .wc-amr-card-content {
    padding: 10px 20px !important;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

/* Country row — Figma: row, 6px gap, items-center */
.elementor-widget-wc-awards-medals-recipients .wc-amr-country {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    padding: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 14px !important;
    text-transform: uppercase !important;
    color: #000000 !important;
    letter-spacing: 0;
}

/* Flag — Figma: 23×15, 2px radius */
.elementor-widget-wc-awards-medals-recipients .wc-amr-flag-image {
    width: 23px !important;
    height: 15px !important;
    border-radius: 2px !important;
    object-fit: cover;
    flex-shrink: 0;
}

/* Country Name */
.elementor-widget-wc-awards-medals-recipients .wc-amr-country-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

/* Person Name — Figma: Gill Sans 700 18/21 uppercase */
.elementor-widget-wc-awards-medals-recipients .wc-amr-name {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    line-height: 21px !important;
    text-transform: uppercase !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Award Label — Figma: Gill Sans 400 14/16 uppercase */
.elementor-widget-wc-awards-medals-recipients .wc-amr-award-label {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 16px !important;
    text-transform: uppercase !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Swiper Outer Wrapper */
.elementor-widget-wc-awards-medals-recipients .wc-amr-swiper-wrapper-outer {
    position: relative;
    width: 100%;
}

/* Slider Footer — bullets centred, arrows right */
.elementor-widget-wc-awards-medals-recipients .wc-amr-slider-footer {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100%;
    margin-top: 20px;
    padding: 0 10px;
    min-height: 38px;
}

.elementor-widget-wc-awards-medals-recipients .wc-amr-nav {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    flex-shrink: 0;
}

/* Outlined circle nav buttons */
.elementor-widget-wc-awards-medals-recipients .swiper-button-next,
.elementor-widget-wc-awards-medals-recipients .swiper-button-prev {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    transform: none !important;
    width: 38px !important;
    height: 38px !important;
    border: 1.5px solid #281E69 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #281E69 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 2 !important;
}

.elementor-widget-wc-awards-medals-recipients .swiper-button-next:hover,
.elementor-widget-wc-awards-medals-recipients .swiper-button-prev:hover {
    background: #281E69 !important;
    color: #FFFFFF !important;
}

.elementor-widget-wc-awards-medals-recipients .swiper-button-next:after,
.elementor-widget-wc-awards-medals-recipients .swiper-button-prev:after {
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.elementor-widget-wc-awards-medals-recipients .swiper-button-prev:after {
    content: '\2190' !important; /* ← */
}

.elementor-widget-wc-awards-medals-recipients .swiper-button-next:after {
    content: '\2192' !important; /* → */
}

.elementor-widget-wc-awards-medals-recipients .swiper-button-disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

/* Pagination — absolutely centred on the footer row */
.elementor-widget-wc-awards-medals-recipients .swiper-pagination {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    bottom: auto !important;
    margin: 0 !important;
    width: auto !important;
    text-align: center;
    line-height: 1;
}

.elementor-widget-wc-awards-medals-recipients .swiper-pagination-bullet {
    width: var(--wc-amr-dot-size) !important;
    height: var(--wc-amr-dot-size) !important;
    background: #D9D9D9 !important;
    opacity: 1 !important;
    margin: 0 var(--wc-amr-dot-spacing) !important;
}

.elementor-widget-wc-awards-medals-recipients .swiper-pagination-bullet-active {
    background: #009FE3 !important;
}

/* CTA Button */
.elementor-widget-wc-awards-medals-recipients .wc-amr-button-wrapper {
    margin-top: 16px;
    margin-bottom: 0;
    text-align: center;
}

.elementor-widget-wc-awards-medals-recipients .wc-amr-main-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #00AEEF;
    border-radius: 25px;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

/* No results */
.elementor-widget-wc-awards-medals-recipients .wc-amr-no-results {
    text-align: center;
    color: #666;
    padding: 20px 0;
}

/* Mobile */
@media (max-width: 767px) {
    .elementor-widget-wc-awards-medals-recipients .wc-amr-slider-footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 6px;
    }

    .elementor-widget-wc-awards-medals-recipients .wc-amr-slider-container {
        padding: 0 16px;
    }

    /* Bullets left, arrows stay right */
    .elementor-widget-wc-awards-medals-recipients .swiper-pagination {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        text-align: left !important;
        margin-right: auto !important;
    }

    /* Dynamic bullets need a fixed clipping width so non-main bullets stay hidden */
    .elementor-widget-wc-awards-medals-recipients .swiper-pagination-bullets-dynamic {
        overflow: hidden !important;
        width: calc((var(--wc-amr-dot-size) + var(--wc-amr-dot-spacing) * 2) * 5) !important;
    }

    .elementor-widget-wc-awards-medals-recipients .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
        transform: scale(0.33);
        position: relative;
    }

    .elementor-widget-wc-awards-medals-recipients .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
        transform: scale(1);
    }

    .elementor-widget-wc-awards-medals-recipients .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev,
    .elementor-widget-wc-awards-medals-recipients .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
        transform: scale(0.66);
    }

    .elementor-widget-wc-awards-medals-recipients .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev,
    .elementor-widget-wc-awards-medals-recipients .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
        transform: scale(0.33);
    }
}
