/* Grid layout */
.main-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    max-width: 1200px;
    margin: 50px auto;
    /* padding: 0 20px; */
    margin-bottom: 200px;
}

.main-buttons .button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px !important;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: 2px solid var(--global--secondary-color) !important;
    /* czerwony*/
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
    padding-top: 90px !important;
    padding-bottom: 90px !important;
    width: 100%;
    color: white !important;
    /* Przyciski dostosowują się do szerokości kontenera */
    overflow: hidden;
    /* Zapewnia, że tło nie wychodzi poza przycisk */

}

.main-buttons .button:active {
    background: rgba(255, 0, 0, 0) !important;
}

.main-buttons .button:nth-child(1) {
    background: url('/wp-content/uploads/2024/12/2.webp') no-repeat center center;
    background-size: cover;
    font-size: 60px;
}

.main-buttons .button:nth-child(2) {
    background: url('/wp-content/uploads/2024/12/10.webp') no-repeat center center;
    background-size: cover;
    font-size: 45px;

}

.main-buttons .button:nth-child(3) {
    background: url('/wp-content/uploads/2024/12/11.webp') no-repeat center center;
    background-size: cover;
    font-size: 55px;
}

.main-buttons .button:nth-child(4) {
    background: url('/wp-content/uploads/2024/12/17.webp') no-repeat center center;
    background-size: cover;
    font-size: 60px;
}

.main-buttons .button:hover {
    background-color: #005177;
    transform: scale(1.05);
    border: 5px solid white !important;
    color: white !important;
    filter: brightness(1.2) !important;
}


/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    .main-buttons {
        grid-template-columns: 1fr;
        /* Jedna kolumna na mniejszych ekranach */
    }

    .main-buttons .button {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
        font-size: 25px;
        /* Mniejsza czcionka dla mobilnych */
    }
}

@media (max-width: 480px) {
    .main-buttons {
        padding: 0 10px;
        /* Mniejsze marginesy dla najmniejszych ekranów */
    }

    .main-buttons .button {
        font-size: 25px !important;
        /* Jeszcze mniejsza czcionka */
    }

}

/* ====================================TEAM================================================== */

/* About Us Section */
.team-content {
    display: flex;
    justify-content: center;
    /* Wyśrodkowanie całej sekcji na stronie */
    align-items: center;
    flex-direction: column;
    /* Układ pionowy dla sekcji */
    gap: 30px;
    /* Odstęp między sekcjami */
}

.team-item {
    display: flex;
    justify-content: center;
    /* Wyśrodkowanie poziome kolumn */
    align-items: center;
    /* Wyśrodkowanie pionowe kolumn */
    gap: 30px;
    /* Odstęp między zdjęciem a tekstem */
    flex-wrap: wrap;
    /* Układ responsywny */
    max-width: 800px;
    /* Szerokość ograniczona */
}

.team-item figure {
    flex: 0 0 250px;
    /* Stała szerokość zdjęcia */
    height: 250px;
    border-radius: 15%;
    /* Zaokrąglone narożniki */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.team-item figure img {
    height: 100%;
    object-fit: cover;
    border-radius: 15%;
}

.team-info {
    flex: 1;
    /* Tekst zajmuje pozostałą przestrzeń */
    display: flex;
    flex-direction: column;
    /* Układ pionowy dla tekstu */
    justify-content: center;
    /* Wyśrodkowanie pionowe tekstu */
    align-items: center;
    /* Wyśrodkowanie horyzontalne tekstu */
    text-align: center;
    /* Wyśrodkowanie tekstu */
    width: 250px;
}

.team h2 {
    text-transform: uppercase;
    /* font-family: 'Jaro', sans-serif; */
    margin-bottom: 80px;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8), 0 0 4px rgba(255, 255, 255, 0.6), 0 0 4px rgba(255, 255, 255, 0.4);
}

.team-info h3 {
    font-size: 1.8rem;
    color: var(global--text-color);
    margin-bottom: 10px;
    font-weight: bold;
    /* font-family: 'Jaro', sans-serif; */
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
}

.team-info p {
    font-size: 1.2rem;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--global--secondary-color);
    margin: 0;
    /* text-shadow: 0 0 2px rgba(255, 255, 255, 0.8), 0 0 2px rgba(255, 255, 255, 0.6), 0 0 2px rgba(255, 255, 255, 0.4); */
}

/* Cała sekcja */
.team {
    padding: 30px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {

    .team-content figure {
        width: 170px;
        height: 170px;
    }

}

/* =========================================SEPARATOR ========================================*/

.section-divider {
    height: 4px;
    width: 0;
    background-color: var(--global--text-color);
    /* margin: 200px 0 0 0; */
    transition: width 1s ease-in-out;
}

.divider-animated {
    width: 100%;
}

/* ==========================================ABOUT US========================================== */
/* General styling for About Us section */
.about-us {
    background-color: rgba(0, 0, 0, 0.1);
    color: #d1d1d1;
    /* Light gray text color */
    padding: 80px 0;
    text-align: center;
    font-family: 'Open Sans', sans-serif;

}



/* Container for centering content */
.container {
    width: 50%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* Styling for the text section */
.text-section {
    width: 55%;
    /* Zajmuje 55% szerokości kontenera */
    text-align: left;
}

/* Styling for text pulled from PHP */
.content-text {
    font-size: 14px;
    line-height: 1.8;
    color: #d1d1d1;
    text-align: justify;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.5s;
}

/* Fade-in animation for the description */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-us img {
    width: 40%;
    /* Zajmuje 40% szerokości kontenera */
    max-width: 400px;
    /* Maksymalna szerokość obrazu */
    border-radius: 10px;
    /* Zaokrąglenie krawędzi */
    animation: popIn 1s ease forwards;
}

/* Responsywność */

@media (max-width: 1600px) {
    .container {
        width: 70%;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 80%;
    }
}

@media (max-width: 1000px) {
    .container {
        flex-direction: column;
        /* Układ pionowy na mniejszych ekranach */
        align-items: center;
        /* Wyrównanie na środku */
        width: 90%;
    }

    .text-section,
    .about-us img {
        width: 100%;
        /* Obie sekcje zajmują pełną szerokość */
        text-align: center;
        /* Wyśrodkowanie tekstu */
    }

    .content-text {
        font-size: 12px;
        background-size: auto 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-image: url(/wp-content/uploads/2024/12/rope-gif.gif);
    }

    .about-us img {
        display: none;
    }
}