header .apollo11-header, footer .apollo11-footer{
    background: #76220B;
}

.grid-container .item-grid-element .item-footer .button-col a, form#filter-form button{
    border: 2px solid #76220B;
    transition: all 0.5s;
}

.grid-container .item-grid-element .item-footer .button-col a:hover, form#filter-form button:hover{
    border: 2px solid #333;
    background: #333;
    color: white
}


.see-more-container .see-more-properties, form#filter-form button.wp-block-apolloweb-htmx-button, .property-single form#porperty-cf7 input[type=submit]{
    background: #76220B;
    border: 2px solid #76220B;
    transition: all 0.5s;
}

.see-more-container .see-more-properties:hover, form#filter-form button.wp-block-apolloweb-htmx-button:hover, .property-single form#porperty-cf7 input[type=submit]:hover{
    background: #333;
    color: white;
    border: 2px solid #333;
}

/* Kontener zespołu ustawiony na siatkę */
.team-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr)); /* Automatyczne kolumny */
    gap: 20px;
    justify-items: center;
    margin: 20px;
}

/* Stylizacje dla kart członków zespołu */
.card-team {
    background-color: #f5f5f5;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 300px;
}

/* Stylizacje zdjęcia */
.card-team img {
    width: 100%;
    height: auto;
    border-radius: 2%;
    margin-bottom: 15px;
    /* max-width: 150px; */
}

/* Stylizacje tekstów */
.card-team h3 {
    font-size: 1.2em;
    margin: 10px 0 5px;
    font-weight: 600;
    
}


.card-team p {
    margin: 5px 0;
    color: #333;
}

.card-team p i{
    padding-right: 8px;;
}

.card-team p a:hover, p.phone a:hover, p.email a:hover{
    color: #76220B;
}

.card-team p.email {
    margin-top: 10px;
}

.card-team p.phone {
    margin-bottom: 10px;
}

.card-team .email, .card-team .phone {
    color: #555;
}

/* Stylizacje przycisku */
.details-button, .prev {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1em;
    color: #333;
    background-color: #f5f5f5;
    border: 2px solid #333;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.details-button:hover, .prev:hover {
    background-color: #76220B;
    border-color: #76220B;
    color: #fff;
}

@media (max-width: 1024px) {
    .team-container {
        display: grid;
        grid-template-columns: repeat(1, minmax(100%, 1fr)); 
        grid-template-columns: 100%;

    }
}

/* Styl ogólny dla sekcji zespołu */
.team-member {
    display: flex; /* Ustawienie na flex, aby elementy były obok siebie */
    margin: 20px 0; /* Odstęp między pracownikami */
    border: 1px solid #ddd; /* Cienka ramka */
    padding: 20px;
    background-color: #f9f9f9; /* Tło sekcji */
    border-radius: 8px; /* Zaokrąglone rogi */
    margin: 20px 0px;
}

.team-member__content{
    display: flex;
}


/* Styl dla zdjęcia pracownika */
.team-image {
    flex: 1; /* Pozwól na to, aby obraz zajmował 1 część dostępnej przestrzeni */
    padding-right: 40px; /* Odstęp po prawej stronie */
}

.team-image img {
    width: auto; /* Dopasowanie obrazu do dostępnej szerokości */
    height: 400px;
    border-radius: 8px; /* Zaokrąglenie rogów zdjęcia */
}

/* Styl dla informacji o pracowniku */
.team-info {
    flex: 2; /* Pozwól na to, aby tekst zajmował 2 części dostępnej przestrzeni */
}

/* Styl nagłówka */
.team-info h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

/* Styl dla kontaktu */
.team-info p {
    margin: 5px 0; /* Odstępy między wierszami */
    font-size: 16px;
    color: #555;
}

/* Dodanie stylów ikon */
.team-info i {
    margin-right: 10px; /* Odstęp między ikoną a tekstem */
}


/* Stylowanie w przypadku węższych ekranów */
@media (max-width: 768px) {
    .team-member {
        flex-direction: column; /* Zmieniamy layout na pionowy przy mniejszych ekranach */
        align-items: flex-start; /* Wyrównanie do środka */
    }

    .team-image {
        padding-right: 0;
        margin-top: 20px;
        order: 2;
    }

    .team-member__content{
        flex-direction: column;

    }
    
    .team-info {
        order: 1; /* Pozwól na to, aby tekst zajmował 2 części dostępnej przestrzeni */
    }
}


.apollo11-main-slider img {
    max-height: 550px !important;
}