/* Reset stylów dla widżetu */
.contact__widget * {
    text-decoration: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Stabilny kontener główny */
.contact__widget {
    height: auto !important;
    padding: 20px 10px;
    border-radius: 16px;
    background-color: var(--ns-area-background-light);
    font-family: sans-serif;
    overflow: hidden;
}

.contact__widget h3 {
    text-align: center;
    font-size: 25px;
    margin: 10px 0 20px;
}

/* Kontener trzymający slajdy */
.swiper__admin {
    width: 100%;
    position: relative;
    min-height: 200px; /* Gwarancja przestrzeni na telefonach */
}

/* Układ wrapper */
.swiper__admin .admin__wrapper {
    width: 100%;
    position: relative;
}

/* Domyślnie chowamy wszystkie slajdy (brak mrugania i rozjeżdżania DOM) */
.swiper__admin .admin__wrapper .admin__slide {
    display: none !important; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    text-align: center;
    animation: fadeEffect 0.4s ease-in-out; /* Płynne pojawianie się slajdu */
}

/* Pokazujemy tylko slajd z klasą active */
.swiper__admin .admin__wrapper .admin__slide.active {
    display: flex !important;
}

/* Efekt płynnego przenikania */
@keyframes fadeEffect {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Elementy wewnątrz slajdu slidera */
.swiper__admin .admin__wrapper .admin__slide .slide__avatar {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
}

.swiper__admin .admin__wrapper .admin__slide .slide__nickname {
    font-size: 22px;
    font-weight: bold;
}

.swiper__admin .admin__wrapper .admin__slide .slide__group {
    font-size: 15px;
    margin-bottom: 5px;
}

.swiper__admin .admin__wrapper .admin__slide .slide__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.swiper__admin .admin__wrapper .admin__slide .slide__contact a {
    width: 38px !important;
    height: 38px !important;
    font-size: 20px !important;
}

/* Sekcja stałej listy adminów poniżej slidera */
.admins__container {
    margin-top: 25px;
}

.admins__container .admin {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    margin-top: 8px;
    border-radius: 32px;
    background-color: rgba(227, 47, 46, 0.2);
}

.admins__container .admin .admin__avatar {
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
}

.admins__container .admin .admin__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.admins__container .admin .admin__nickname {
    flex-grow: 1;
}

.admins__container .admin .admin__contact,
.swiper__admin .admin__wrapper .admin__slide .slide__contact {
    display: flex;
    gap: 8px;
}

/* Przyciski społecznościowe (ikony) i ich płynne przejście */
.admins__container .admin .admin__contact .icon__container a,
.swiper__admin .admin__wrapper .admin__slide .slide__contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #1317df;
    color: #fff;
    font-size: 16px;
    transition: background-color 0.4s ease; 
}

.admins__container .admin .admin__contact .icon__container a:hover,
.swiper__admin .admin__wrapper .admin__slide .slide__contact a:hover {
    background-color: #444;
}

/* STRUKTURA I WYGLĄD KROPEK PAGINACJI (POŁĄCZONE I OCZYSZCZONE) */
.contact__widget .swiper-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    position: relative !important;
    bottom: 0 !important;
    height: auto !important;
}

.contact__widget .swiper-pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    display: inline-block !important;
    background: #fff !important;
    opacity: 0.3 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease !important;
}

/* Styl dla aktywnej kropki kontrolowanej przez nowy skrypt JS */
.contact__widget .swiper-pagination .swiper-pagination-bullet.active {
    opacity: 1 !important;
    background: #1d8dcd !important;
    transform: scale(1.25);
}