/* Ogólne stylowanie kontenera sekcji */
.about-section {
    display: flex;
    gap: 100px; /* Większy odstęp między kolumnami */
    padding: 50px;
    max-width: 1500px;
    margin: 0 auto;
    flex-wrap: wrap;
    margin-bottom: 120px;
} 

/* Stylowanie dla kolumny tekstowej */
.about-text-column {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-column h2 {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px; /* Większy margines dla odstępu od tekstu poniżej */
    
}

.about-text-column .text_strong_content strong {
    font-size: 1.375rem; /* Specjalny rozmiar czcionki dla strong */
    color: #333; /* Kolor czarny */
    font-weight: 500;
    margin-bottom: 30px; /* Odstęp pomiędzy sekcją strong a pozostałym tekstem */
}

.about-text-column .text_about_content {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
    margin-top: 30px; /* Odstęp pomiędzy paragrafami */
}

/* Stylowanie dla kolumny ze zdjęciami */
.about-images-grid {
    flex: 1;
    width: 50%;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: auto;
    grid-template-areas:
        "image1 image2"
        "card1 card2";
    gap: 30px;
    position: relative;
}

.smaller-image {
    grid-area: image1;
    position: relative;
}

.larger-image {
    grid-area: image2;
    position: relative;
    margin-top: 50px; /* Obniżenie drugiego zdjęcia */
}

.about-card-1 {
    grid-area: image1;
    position: absolute;
    bottom: 30%;
    left: 25%;
    width: 250px; /* Ustawiona szerokość karty */
    height: 250px; /* Ustawiona wysokość karty */
    transform: translateX(-50%);
    z-index: 11;
}

.about-card-2 {
    grid-area: image2;
    position: absolute;
    bottom: -15%;
    left: 10%;
    width: 250px; /* Ustawiona szerokość karty */
    height: 250px; /* Ustawiona wysokość karty */
    transform: translateX(-50%);
    z-index: 11;
}

/* Stylowanie dla obrazów */
.smaller-image img,
.larger-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
}

/* Stylowanie dla kart na zdjęciach */
.about-card {
    background: #f5f5f5; /* Zmieniony kolor tła */
    border-radius: 15px; /* Większe zaokrąglenie */
    padding: 20px;
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-card-icon {
    width: 50px;
    height: auto;
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 1.125rem !important; /* Większy rozmiar czcionki */
    line-height: 1.75rem !important; /* Wysokość linii */
    margin: 0;
    font-weight: bold;
    color: black; /* Zmieniono na stały kolor */
}

.about-card p {
    font-size: 1.125rem !important; /* Większy rozmiar czcionki */
    line-height: 1.75rem !important; /* Wysokość linii */
    color: rgba(109, 109, 109, 0.8); /* Zmieniono na stały kolor RGB z przezroczystością */ 
    font-weight: 500;
}

/* Stylowanie dla responsywności */
@media (max-width: 1600px) {
    .about-card {
        width: 200px; /* Zmniejszenie szerokości kart */
        height: 200px; /* Zmniejszenie wysokości kart */
    }

   .about-card p {
    font-size: 1.025rem !important;
    line-height: 1.75rem !important;
    color: rgba(109, 109, 109, 0.8);
    font-weight: 500;
  }
}

@media (max-width: 1300px) {
    .about-card {
        width: 180px; /* Zmniejszenie szerokości kart */
        height: 180px; /* Zmniejszenie wysokości kart */
    }

    .about-card p {
        font-size: 0.9rem !important;

      }
}




@media (max-width: 1200px) {
    .about-section {
        flex-direction: row;
        align-items: flex-start;
    }

    .about-text-column,
    .about-images-grid {
        width: 100%;
    }

    .about-images-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "image1 image2"
            "card1 card2";
    }

    .about-card-1
   {
        position: absolute;
        bottom: 10%; /* Dostosowanie pozycji kart do dolnych boków zdjęć */
        left: -10%;
        transform: translateX(0);
        width: 150px; /* Dalsze zmniejszenie szerokości kart */
        height: 150px; /* Dalsze zmniejszenie wysokości kart */
    }

  
    .about-card-2 {
        position: absolute;
        bottom: -15%; /* Dostosowanie pozycji kart do dolnych boków zdjęć */
        left: -10%;
        transform: translateX(0);
        width: 150px; /* Dalsze zmniejszenie szerokości kart */
        height: 150px; /* Dalsze zmniejszenie wysokości kart */
    }


    .about-card-icon {
        margin-top: 10px; /* Zmniejszenie odstępu nad ikoną */
        margin-bottom: 10px; /* Zmniejszenie odstępu pod ikoną */
    }

    .about-card h3,
    .about-card p {
        font-size: 0.85rem !important; /* Dalsze zmniejszenie rozmiaru czcionki */
        line-height: 1.25rem !important; /* Mniejsza wysokość linii */
    }
}
    

@media (max-width: 992px) {
    .about-section {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 0;
        margin-top: 40px;
    }

    .about-text-column {
        width: 95%;
        text-align: center;
        margin-bottom: 40px;
        text-align: left;
        
    }

    .about-text-column h2 {
        font-size: 1.75em; /* Zmniejszony rozmiar czcionki */
        font-weight: bold;
    }

    .about-text-column .text_strong_content strong {
        font-size: 1.125rem; /* Zmniejszony rozmiar czcionki dla strong */
        color: #333;
        font-weight: 500;
    }

 

    .about-images-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "image1"
            "card1"
            "image2"
            "card2";
        row-gap: 20px;
        justify-items: center;
    }

    .smaller-image, .larger-image {
        width: 100%;
        max-width: 736px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        border-radius: 15px;
        position: relative;
    }

    .smaller-image img, .larger-image img {
        width: 100%;
        height: 320px; /* Ustawienie stałej wysokości na 320px */
        border-radius: 15px;
        object-fit: cover;
        object-position: unset; /* Wyświetlenie górnej części obrazu */
    }

    .about-card {
        background-color: #f4f4f4;
        padding: 20px 30px;
        border-radius: 12px;
        width: 95%;
        max-width: 600px;
        text-align: center;
        position: absolute;
        bottom: -40px;
        left: 50%;
        transform: translateX(-50%);
    }

    .about-card-icon {
        width: 48px;
        height: auto;
        margin-bottom: 8px;
    }

    .about-card h3 {
        font-size: 1.5em;
        margin: 5px 0;
    }

    .about-card p {
        font-size: 1.2em;
        margin: 0;
    }
}


@media (max-width: 768px) {

     .about-section{
        margin-bottom: 80px;
     }

    .about-text-column h2 {
        font-size: 1.125rem; /* Dalsze zmniejszenie rozmiaru czcionki */
    }

    .about-text-column .text_strong_content strong {
        font-size: 1.125rem; /* Dalsze zmniejszenie rozmiaru czcionki dla strong */
    }

    .about-text-column .text_about_content {
        font-size: 0.95em; /* Dalsze zmniejszenie rozmiaru czcionki dla głównego tekstu */
    }
}



@media (max-width: 576px) {

    .about-text-column{
        width: 100%;
    }

    .about-main-image {
        height: 250px; /* Skrócona wysokość dla jeszcze mniejszych ekranów */
    }

    .about-card {
        width: 95%;
        max-width: 600px;
        padding: 15px 20px;
        bottom: -30px;
    }

    .about-card h3 {
        font-size: 1.3em;
    }

    .about-card p {
        font-size: 1em;
    }
}