body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Alata', sans-serif;
    overflow-x: hidden;
    background-image: url(/imghome/tlo.png);
    background-size: contain;
}

header {
    background-color: #8cbadc; 
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    height: 10vh;
    box-shadow: 0 8px 6px -6px #5788ab;
    z-index: 10;
    font-size: 1.2rem;
}

#logo-container {
    display: flex;
    align-items: center;
}

#logo {
    width: 50px;
    height: 51px;
    margin: 0 20px;
}

nav {
    flex-grow: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    justify-content: flex-start; 
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 10px 20px; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

nav ul li a:hover, nav ul li a:focus {
    background-color: rgba(255, 255, 255, 0.2); 
    border-radius: 50px; 
}

#contact-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#contact-info p, 
#contact-info a {
    align-items: center;
    margin: 0; 
    border-radius: 50px;
}

#mail {
    background-color: #ffc759;
    border: 1px solid #ffc759;
    padding: 10px 30px;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

#mail:hover {
    background-color: white;
    border: 1px solid white;
    color: #ffc759;
    text-shadow: none;
}

#contact-info p {
    margin: 0 15px;
}

#contact-info i {
    margin-right: 8px; 
}

#contact-info span {
    display: inline;
}

#contact-info a {
    text-decoration: none; 
    color: inherit;
    padding: 0; 
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    position: relative;
    display: inline-block;
}

/*headernagłówek
headhomeglowna*/



.home-content {
    flex-basis: 50%;
}

.home-content, .home-image {
    flex-basis: 50%;
    justify-content: center;
    align-items: center;
}

.school-selection {
    justify-content: space-around;
    align-items: center;  
    color: white;
    margin: auto;
    width: 80%
}

#ps, #lo {
    flex: 1; 
    text-align: center; 
    padding: 10px 10px; 
    box-sizing: border-box; 
    text-shadow: none;
    font-weight: 400;
}

#lo {
    background-color: #ff9a53;
    border-radius: 50px
}

#ps {
    background-color: #b9d66e;
    border-radius: 50px
}

.zapiszsie {
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.zapiszsie a {
    color: #ffc759;
}

.home-image img {
    width: 700px;
    height: auto;
}

.home-text h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.home-text h5 {
    font-size: 1.3rem;
    margin-top: 0;
    font-weight: 100;
    color: white;
}

.home-text h3, .home-text h5 {
    animation-delay: 0.5s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.home-text h5 {
    animation-delay: 1s;
}

#zolty {
    color: #ffc759;
}

/*homiehomeglowna
kontaktpod*/

#contact {
    background-color: #ffffff; 
    color: #333333; 
    padding: 40px 0;
}

#contact .container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.contact-details {
    flex-basis: 60%;
}

.contact-item h3 {
    margin-top: 0;
    font-size: 2rem;
}

.contact-item a {
    text-decoration: none;
    color: #333333; 
}

.contact-item p {
    margin: 5px 0;
    line-height: 1.6;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.contact-item p i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-item p i {
    margin-right: 10px;
    display: inline-block; 
    transition: transform 0.3s ease; 
}

.contact-item p:hover i {
    transform: rotate(30deg); 
}

.social-media {
    flex-basis: 30%;
    text-align: right; 
}

.social-media h3 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.social-icons a {
    display: inline-block;
    margin-left: 10px;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    color: #333
}

.social-icons a:hover,
.social-icons a:focus { 
    transform: scale(1.2); 
}

#bluefb {
    color: #4267B2;
}

#redyt {
    color: #FF0000
}

#purpleig {
    color: #5B51D8
}

.fas, .fab {
    margin-right: 8px;
}

/*kontakt
onas*/

#about-us {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10%;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.about-us-text {
    flex-basis: 100%;
    color: #333;
    background-color: #fff;
    padding: 10px 50px 20px;
    border-radius: 25px;
}

.about-us-text h2 {
    font-size: 2.5rem;
}

.about-us-text p {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-top: 10px;
}

.about-us-text a {
    color: #333;
    font-weight: 600;
}

.about-us-image {
    flex-basis: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*onas
opnie*/

.testimonials {
    text-align: center;
    padding: 50px 0;
    max-width: 1200px;
    margin: auto;
}

.testimonials h2 {
    color: #333; 
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-align: left
}

.testimonials-container {
    column-count: 3;
    column-gap: 10px;
}

.testimonial-item {
    break-inside: avoid-column;
    margin-bottom: 10px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    cursor: pointer;
}

.testimonial-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}


.testimonial-text {
    font-style: italic;
    color: #555; 
    margin-bottom: 15px;
}

.testimonial-rating .star {
    color: #eac117; 
    margin: 0 2px;
}

.testimonial-author h3 {
    color: #333; 
    margin: 5px 0;
}

.testimonial-author p {
    color: #333; 
    font-size: 0.9em;
}

/*komentarze
footer*/

footer {
    text-align: center;
    padding: 20px;
    color: white; 
}

footer a {
    color: white
}

.cookie-consent-container {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 1000;
    display: none; 
}

.cookie-consent-content p {
    margin: 0 0 10px 0;
}

.cookie-consent-btn {
    color: white;
    background-color: #8cbadc; 
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 25px
}
/*rensponsywnosctelefon*/

@media (max-width: 768px) {
    * {
        margin: 0;
        padding: 0;
    }

    .cookie-consent-content p {
        width: 80%;
        margin: auto
    }

    .cookie-consent-container {
        padding: 10px 0;
    }   
    
    #home {
        flex-direction: column;
        padding: 20px 0;
        position: relative;
        height: auto;
    }
    
    .zapiszsie h2 {
        width: 80%;
        margin: 15px auto
    }
    
    .school-selection {
        flex-direction: column;
        align-items: center;
    }

    #ps, #lo {
        width: auto;
        margin: 5px auto; 
        font-size: 1rem;
        border-radius: 50px
    }
    
    .home-text h3 {
        margin-top: 40px;
    }
    
    .home-text h3, .home-text h5 {
        width: 75%;
        margin: auto;
    }
    
    .home-text h5 {
        margin-bottom: 20px;`
    }

    .home-image img {
        display: none;
        
    }

    .contact-details {
        flex-basis: 60%;
    }

    .contact-item h3, .social-media h3 {
        font-size: 1.2rem;
    }

    .contact-item p, .contact-item i {
        font-size: 1rem;
    }

    .contact-item p i {
        font-size: 1rem;
    }

    .social-icons a {
        font-size: 1.5rem;
    }
    
    .testimonials h2 {
        font-size: 2rem;
        width: 90%;
        margin: 0px auto 20px;
    }

    .testimonials-container {
        column-count: 2;
        column-gap: 5px;
        width: 95%;
        margin: auto
    }

}

@media (max-width: 1300px) {
#about-us {
        display: block;
    }

    .about-us-text h2 {
        font-size: 2rem;
    }

    .about-us-text p {
        font-size: 1rem;
    }

    .about-us-image img {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1224px) {
    #home {
        flex-direction: column;
        align-items: center; 
        justify-content: center; 
        height: 100%; 
        width: 80%; 
        margin: auto; 
        display: flex;
        height: auto;
        padding: 20px 0;
        position: relative
    }
    
    .home-content,
    .home-image {
        width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
        flex-basis: 100%;
    }
}

@media (max-width: 930px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        height: auto
    }

    #logo-container {
        margin-bottom: 10px; 
    }

    #contact-socials {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    nav {
        order: 2; 
        margin: auto
    }

    nav ul {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
        padding: 0;
        margin: 0;
        list-style-type: none;
    }

    nav ul li {
        margin: 5px; 
        font-size: 1.25rem;
    }

    #contact-info {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
        gap: 10px; 
        font-size: 0.8rem;
        margin: auto;
    }
}

@media (min-width: 930px) and (max-width: 1600px) {  
  header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
    }

    #logo-container {
        flex-basis: auto; 
        justify-content: flex-start; 
        margin-top: 10px;
    }

    nav {
        width: 100%;
        justify-content: center;
        padding: 0;
        margin-top: 20px;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        padding: 0 10px;
        font-size: 1.3rem;
        text-align: 
    }

    #contact-socials {
        width: 100%; 
        justify-content: space-evenly; 
        flex-direction: row;
        margin-top: 20px; 
    }

    #contact-info {
        justify-content: center;
    }

    #contact-info p, 
    #contact-info a {
        display: block; 
    }
}