/* ========== RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== TYPOGRAFIA I KOLORY ========== */
body {
    background-color: #fff;
    color: #000000;
}

a {
    color: #134a3c;
    text-decoration: underline;
}

a:link {
    color: #134a3c;
    text-decoration: none;
}

a:hover {
    color: #000000;
    text-decoration: underline;
}

/* ========== PRZYCISKI ========== */
.btn-primary {
    background-color: #eabd00;
    border-color: #eabd00;
    color: #fff;
}

.btn-primary:hover {
    background-color: #fff;
    color: #000000;
    border-color: #eabd00;
}

#acceptCookies {
    color: #000000;
    background-color: #eabd00;
    border-color: #eabd00;
}

/* ========== NAWIGACJA ========== */
.navbar-toggler {
    z-index: 1051;
    margin-left: auto;
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: #000000;
}

.navbar-brand {
    position: absolute;
    top: -10px;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: var(--bs-border-radius) !important;
    max-width: 100%;
    overflow: hidden;
}

.navbar-white {
    background-color: #fff;
    border-bottom: 1px solid #134a3c;
}

/* Logo */
.navbar-logo {
    max-height: 100px;
    transition: max-height 0.3s ease;
}

.navbar-logo.shrink {
    max-height: 50px;
}

/* ========== KOMPONENTY ========== */

/* Karty */
.card {
    background-color: #f4f4f4;
    border: 1px solid #134a3c;
}

.card-body {
    color: #134a3c;
}

.bg-green {
    background-color: #eabd00;
}

/* Karuzele */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.carousel-control-prev {
    left: -20%;
}

.carousel-control-next {
    right: -20%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: #134a3c;
}

/* Cookie belka */
#cookieNotification {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom);
}


.carousel-indicators {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ========== MEDIA QUERIES ========== */


.carousel-indicators [data-bs-target] {
    width: 30px;
    height: 4px;
    background-color: #134a3c;
    border: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    border-radius: 2px;
}

.carousel-indicators .active {
    opacity: 1;
}

#portfolio .carousel-item .col-md-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


@media (max-width: 768px) {
        header .col-md-6.text-white {
        margin-top: 10rem;
        text-align: center;
    }


    /* Logo – responsywne zmniejszanie */
    .navbar-logo {
        max-height: 100px;
    }
    .navbar-logo.shrink {
        max-height: 35px;
    }

    /* Formularz w nagłówku – centrowanie */
    header .col-md-6.bg-white {
        width: 100%;
        max-width: 90%;
        margin: 2rem auto 0 auto;
        float: none;
        text-align: center;
    }

    /* Nawigacja – logo mniejsze */
    .navbar-brand img {
        max-height: 60px;
    }

    /* Kontener */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    
    /* Karuzele i certyfikaty */

    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }

    .carousel .col-md-3,
    #certificates .col-md-4 {
        width: 50%;
        text-align: center; /* wyśrodkowanie tekstu */
        margin-bottom: 1rem;
    }

    #certificates .col-md-4 {
        width: 50%;
        margin-bottom: 1rem;
    }
    .carousel .col-md-3 h5 {
    text-align: center;
    margin-top: 0.5rem;
    }

    .carousel .col-md-3 img {
        max-width: 80%;
        margin: 0 auto;
    }

    .carousel .col-md-3 h5 {
        font-size: 0.8rem;
    }

    /* Cookie belka – układ pionowy */
    #cookieNotification span {
        font-size: 13px;
        line-height: 1.4;
        text-align: center;
    }

    #cookieNotification .container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: center;
        align-items: center;
    }

    /* Przyciski */
    #acceptCookies {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* Strzałki karuzeli */
    .carousel-control-prev {
        left: 0;
    }

    .carousel-control-next {
        right: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        width: 100%;
        padding: 1rem;
    }

    .navbar-nav {
        text-align: right;
    }

    .navbar-nav .nav-link {
        justify-content: flex-end;
        display: flex;
    }
}