/**
* Theme Name: Antra Child
* Description: This is a child theme of Antra, generated by Merlin WP.
* Author: <a href="http://themelexus.com/">Themelexus</a>
* Template: antra
* Version: 1.0.6
*/

/* Style zespół - custom */
/* Kontener siatki */
.custom-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.team-member-box h3.team-name{
	text-align:center;
}

/* Wygląd czarnego pudełka (Ramka) */
.team-member-box {
    background-color: #111111;
    /* WAŻNE: Usuwamy padding stąd, żeby link dotykał krawędzi */
    padding: 0; 
    border-radius: 4px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid #222;
    min-height: 200px;
    
    /* Flexbox potrzebny, aby link w środku się rozciągnął */
    display: flex; 
    flex-direction: column;
}

/* Efekt po najechaniu na CAŁE pudełko */
.team-member-box:hover {
    transform: translateY(-5px);
    border-color: #333;
    cursor: pointer;
}

/* Wygląd linku - to on teraz odpowiada za wielkość i odstępy */
.team-member-box a.team-link {
    text-decoration: none !important;
    
    /* Link zajmuje 100% wysokości i szerokości pudełka */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    
    /* TU PRZENIEŚLIŚMY ODSTĘPY - dzięki temu klikasz też w czarne tło */
    padding: 45px 20px; 
    box-sizing: border-box;
}

/* Imię i Nazwisko */
.team-member-box h3.team-name {
    color: #ffffff !important;
    font-size: 40px !important; /* Rozmiar ze zrzutu */
    font-family: "Cal Sans", Sans-serif; /* Czcionka ze zrzutu */
    font-weight: 600 !important;
    line-height: 1.1;
    margin: 0 0 10px 0; /* Reset marginesów */
    text-transform: none;
}

/* Stanowisko */
.team-member-box p.team-position {
    color: #ffffff;
    font-size: 16px; /* Rozmiar ze zrzutu */
    font-family: "Cal Sans", Sans-serif; /* Czcionka ze zrzutu */
    text-transform: uppercase;
    letter-spacing: 1px;
	text-align: center;
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
}

/* Responsywność */
@media (max-width: 1024px) {
    .custom-team-grid { grid-template-columns: repeat(2, 1fr); }
    .team-member-box h3.team-name { font-size: 36px !important; }
}
@media (max-width: 767px) {
    .custom-team-grid { grid-template-columns: 1fr; }
    .team-member-box h3.team-name { font-size: 30px !important; }
}
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    font-weight: 400;
}

/* --- RESPONSYWNOŚĆ (Tablet i Telefon) --- */

/* Na tabletach (poniżej 1024px) - 2 kolumny */
@media (max-width: 1024px) {
    .custom-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Na telefonach (poniżej 767px) - 1 kolumna */
@media (max-width: 767px) {
    .custom-team-grid {
        grid-template-columns: 1fr;
    }
    .team-member-box {
        padding: 30px 15px;
    }
}

/* Zmiana stylu aktywnego elementu na boczny pasek */
.service-list-sidebar .service-item.active {
    background-color: transparent !important; /* Usuwamy tło */
    background-image: none !important;
    border-left: 4px solid #bfa378; /* Złoty pasek z lewej strony */
    padding-left: 15px !important; /* Odsunięcie tekstu od paska */
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Kolor tekstu aktywnego */
.service-list-sidebar .service-item.active a {
    color: #bfa378 !important; /* Złoty kolor tekstu */
    font-weight: 700 !important; /* Pogrubienie */
    line-height: 1.3 !important;
}

/* Opcjonalnie: usuń strzałkę/ikonę jeśli tam jest i przeszkadza */
.service-list-sidebar .service-item.active::after {
    display: none; 
}

/* 1. Reset wysokości dla elementu listy */
ul.services-list-wrapper li.service-item {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* 3. Wycelowanie w AKTYWNY element (Złote pudełko) */
ul.services-list-wrapper li.service-item.current-menu-item a,
ul.services-list-wrapper li.service-item.current_page_item a,
ul.services-list-wrapper li.service-item a {
    padding: 18px 5px !important;  /* Dużo miejsca w środku */
    border-radius: 4px;             /* Lekkie zaokrąglenie */
}

.service-item i.antra-icon-dot{
	display: none;
}


@media (min-width: 1024px) {
    .main-navigation ul ul.sub-menu {
        width: 600px;
	}
}