.elementor-16580 .elementor-element.elementor-element-1e042e1{--display:flex;--margin-top:50px;--margin-bottom:50px;--margin-left:0px;--margin-right:0px;}.elementor-16580 .elementor-element.elementor-element-e086ad4{text-align:center;}.elementor-16580 .elementor-element.elementor-element-e086ad4 .elementor-heading-title{font-size:40px;font-weight:900;}@media(max-width:767px){.elementor-16580 .elementor-element.elementor-element-e086ad4 .elementor-heading-title{font-size:30px;}}/* Bendras popupo turinys – siauresnis ir patogesnis skaitymui */
.sportininko-modal-content {
    max-width: 760px;
    margin: 40px auto;
    padding: 32px 36px;
    line-height: 1.6;
}

/* Pagrindinė sportininko antraštė */
.sportininko-modal-tekstas h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
}

/* „Sporto šaka: …“ eilutė viršuje */
.sportininko-modal-tekstas > p:first-of-type {
    margin-bottom: 18px;
    font-size: 15px;
}

/* Vidinės antraštės (Sporto šaka, Sportinė patirtis ir t.t.) */
.sportininko-modal-content-text h3,
.sportininko-modal-content-text h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 18px 0 6px;
}

/* Paprastas tekstas – tvarkingi tarpai */
.sportininko-modal-content-text p {
    margin: 0 0 10px;
    font-size: 15px;
}

/* Kad tekstas būtų kairėje, net jei tema kažkur centravo */
.sportininko-modal-content,
.sportininko-modal-tekstas,
.sportininko-modal-content-text {
    text-align: left;
}

/* Mažesniuose ekranuose – truputį mažesni šriftai ir paddingai */
@media (max-width: 768px) {
    .sportininko-modal-content {
        margin: 20px;
        padding: 22px 18px;
    }
    .sportininko-modal-tekstas h2 {
        font-size: 22px;
    }
    .sportininko-modal-content-text h3,
    .sportininko-modal-content-text h4 {
        font-size: 16px;
    }
    .sportininko-modal-content-text p {
        font-size: 14px;
    }
}
/* =========================================
   FILTRAS
   ========================================= */

.sporto-sakos-filtras {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sporto-sakos-filtras label {
    font-weight: 600;
    font-size: 14px;
}

#sporto_saka_filter {
    max-width: 600px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
}

#sporto_saka_filter:focus {
    border-color: #222;
}

/* =========================================
   GRIDAS – 4 KORTELES EILUTĖJE
   ========================================= */

.sportininku-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .sportininku-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .sportininku-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sportininku-grid {
        grid-template-columns: 1fr;
    }
}

/* kai per AJAX kraunasi */
.sportininku-grid.is-loading {
    opacity: .5;
    pointer-events: none;
}

/* =========================================
   KORTELĖ
   ========================================= */

.sportininko-kortele {
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* foto kortelėje – vienodas dydis */
.sportininko-foto img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 12px;
}

.sportininko-vardas {
    margin: 5px 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.sportininko-info p {
    margin: 3px 0;
    font-size: 14px;
}

/* mygtukas "Daugiau" */
.sportininko-daugiau-link.btn-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.sportininko-daugiau-link.btn-link:hover {
    text-decoration: underline;
}

/* =========================================
   SOCIAL ICONS KORTELĖJE
   ========================================= */

.sportininko-socials {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.social-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    color: #333;
    transition: 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    background: #e2e2e2;
}

/* spalvos paimamos iš SVG fill, bet galima keisti foną */
.social-icon.instagram svg {
    display: block;
}

.social-icon.facebook svg {
    display: block;
}

/* =========================================
   MODALAS (POPUP)
   ========================================= */

.sportininko-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.sportininko-modal.is-active {
    display: block;
}

.sportininko-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

/* modalo dėžė */
.sportininko-modal-content {
    position: relative;
    max-width: 760px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    z-index: 1;
    line-height: 1.6;
    text-align: left;

    max-height: 90vh;               /* kad netilpdamas galėtų scrollintis */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sportininko-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

/* vidus – tik tekstas, be foto */
.sportininko-modal-inner {
    display: block;
}

.sportininko-modal-tekstas h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
}

.sportininko-modal-tekstas > p:first-of-type {
    margin: 0 0 14px;
    font-size: 15px;
}

.sportininko-modal-content-text h3,
.sportininko-modal-content-text h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 18px 0 6px;
}

.sportininko-modal-content-text p {
    margin: 0 0 10px;
    font-size: 15px;
}

/* kai modal atidarytas – scroll tik modale */
body.sportininko-modal-open {
    overflow: hidden;
}

/* responsive modal telefone */
@media (max-width: 768px) {
    .sportininko-modal-content {
        margin: 20px;
        padding: 22px 18px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .sportininko-modal-tekstas h2 {
        font-size: 22px;
    }

    .sportininko-modal-content-text h3,
    .sportininko-modal-content-text h4 {
        font-size: 16px;
    }

    .sportininko-modal-content-text p {
        font-size: 14px;
    }
}