/* Custom Styles */

body {
    font-family: 'Arial', sans-serif;
}

header {
    background-image: url('image-20.webp'); /* Możesz zastąpić własnym obrazem */
    background-size: cover;
    background-position: center;
}

header .container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 50px;
    border-radius: 10px;
}

.card {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.card-body {
    position: relative;
    height: 200px; /* Dostosuj wysokość w zależności od zawartości */
}

.badge {
    font-size: 0.9em;
}

.filter-btn.active {
    /* Styl aktywnego przycisku */
    background-color: #0d6efd;
    color: white;
}

.vr {
    height: 40px;
}

/* Przycisk "Zapisz się" dla desktop */
.card .save-btn {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    width: 100%;
    transition: bottom 0.3s;
}

.card:hover .save-btn {
    bottom: 0;
}

.save-btn a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #28a745;
    color: white;
    text-decoration: none;
}

.save-btn a:hover {
    background-color: #218838;
}

/* Stylizacja Cennika */
.cennik-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolumny na małych ekranach */
    gap: 15px;
}

@media (min-width: 576px) {
    .cennik-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 kolumny na średnich ekranach */
    }
}

@media (min-width: 767px) {
    .cennik-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 kolumny na ekranach od 767px */
    }
}

@media (min-width: 992px) {
    .cennik-grid {
        grid-template-columns: repeat(6, 1fr); /* 6 kolumn na dużych ekranach */
    }
}

@media (min-width: 1200px) {
    .cennik-grid {
        grid-template-columns: repeat(6, 1fr); /* 6 kolumn na bardzo dużych ekranach */
    }
}

.pricing-card {
    margin-top: 5px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 4px; /* Default padding dla najmniejszych ekranów */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* Zapobiega wychodzeniu wstążki poza kafelek */
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
    text-align: center; /* Wyśrodkowanie tekstu */
    height: 60px; /* Default height dla najmniejszych ekranów */
    max-height: 80px; /* Maksymalna wysokość */
}

.pricing-card.selectable.active {
    border-color: #0d6efd;
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pricing-card .ribbon {
    position: absolute;
    top: 5px;
    left: -20px;
    width: 80px;
    background-color: #7E3F98;
    color: white;
    text-align: center;
    padding: 5px 0;
    transform: rotate(-45deg);
    font-size: 0.7em;
    overflow: hidden; /* Zapewnia, że wstążka nie wychodzi poza kafelek */
    white-space: nowrap;
}

@media (min-width: 576px) {
    .pricing-card .ribbon {
        top: 10px;
        left: -30px;
        width: 100px;
        font-size: 0.8em;
    }
}

@media (min-width: 1200px) {
    .pricing-card .ribbon {
        top: 5px;
        left: -25px;
        width: 90px;
        font-size: 0.7em;
    }
}

.pricing-card h4 {
    margin-bottom: 10px;
    font-size: 0.9em; /* Zmniejszony rozmiar czcionki dla mniejszych ekranów */
}

.pricing-card .price {
    font-size: 0.9em; /* Zmniejszony rozmiar czcionki dla mniejszych ekranów */
    font-weight: bold;
}

.pricing-card .price span {
    font-size: 0.8em;
    color: #6c757d;
}

/* Responsive adjustments for Cennik */
@media (max-width: 767px) {
    header .container {
        padding: 20px;
    }
    .vr {
        display: none;
    }
    /* Przycisk "Zapisz się" zawsze widoczny na mobile */
    .card .save-btn {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        transition: none;
    }
}

@media (min-width: 1200px) {
    .pricing-card {
        height: 80px;
        padding: 6px;
    }
    .pricing-card h4 {
        font-size: 1em;
    }
    .pricing-card .price {
        font-size: 1em;
    }
}

.pricing-card {
    /* Upewnienie się, że wysokość jest ograniczona */
    max-height: 80px;
}

/* Stylizacja Opcji Grupowych z Animacją */
#group-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

#group-options.show {
    max-height: 1000px; /* Wystarczająco duża wartość, aby pomieścić zawartość */
    opacity: 1;
}

/* Stylizacja Sekcji Zapisz się */
#zapisz-sie {
    background-color: #e9ecef;
}

#zapisz-sie h2 {
    margin-bottom: 20px;
}

#zapisz-sie p {
    font-size: 1em;
    margin-bottom: 20px;
}

#zapisz-sie .btn {
    font-size: 1em;
}

/* Stylizacja Kontaktów */
.contact-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-card h5 {
    margin-top: 10px;
    font-size: 1em; /* Zmniejszony rozmiar czcionki dla najmniejszych ekranów */
}

.contact-card p {
    font-size: 0.9em;
    color: #6c757d;
}

/* Stylizacja Nawigacji zgodnie z Material Design 3 */
.navbar {
    background-color: #ffffff !important;
}

.navbar-brand {
    font-size: 17px !important;
    color: #000 !important;
}

/* Import czcionki Work Sans - jeśli nie dodałeś jej w <head>, możesz to również zrobić tutaj */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400&display=swap');

/* Stylizacja tekstu "SZKOLENIA" */
.szkolenia-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 1em; /* Zmniejszony rozmiar czcionki */
    font-weight: 400; /* Regular */
    color: #000; /* Kolor tekstu, dopasuj do swojej palety kolorów */
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 576px) {
    .szkolenia-text {
        font-size: 1em; /* Mniejszy rozmiar na urządzeniach mobilnych */
    }
    #category-filters .btn {
        font-size: 0.8em; /* Zmniejszony rozmiar czcionki */
        padding: 0.4em 0.6em; /* Zmniejszone paddingi */
    }

    #category-filters {
        flex-wrap: wrap; /* Pozwala na zawijanie filtrów */
    }

    #category-filters .btn-group {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    #category-filters .btn-group .btn {
        flex: 1 1 auto;
        margin: 2px;
        min-width: 80px; /* Zmniejszone minimalne szerokości przycisków */
    }
}

.nav-link {
    font-size: 1em;
    color: #343a40 !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #0d6efd !important;
}

.material-icons {
    vertical-align: middle;
}

/* Stylizacja przycisku menu na mobile */
.navbar-toggler {
    border: none;
}

.navbar-toggler .material-icons {
    color: #343a40;
    font-size: 28px;
}

/* Stylizacja Stopki */
footer {
    background-color: #343a40;
}

footer p {
    margin: 0;
}

/* Responsive adjustments for Contact Cards */
@media (min-width: 1200px) {
    .contact-card {
        padding: 20px;
    }
    .contact-card .material-icons {
        font-size: 56px;
    }
    .contact-card h5 {
        font-size: 1.3em;
    }
    .contact-card p {
        font-size: 1em;
    }
}

/* Stylizacja Przełącznika Indywidualnie / Grupowo */
#cennik .btn-group .btn {
    min-width: 150px;
}

#cennik .btn-group .btn.active {
    background-color: #0d6efd;
    color: white;
}

/* Stylizacja Wybranych Kafelków */
.pricing-card.selectable {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.pricing-card.selectable.active {
    border-color: #0d6efd;
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Stylizacja Pola z Ceną */
#final-price {
    overflow: hidden;
    font-weight: bold;
    background-color: #7E3F98; /* Red color matching the ribbon */
    color: white; /* White text for better contrast */
    padding: 15px;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    opacity: 0;
    visibility: hidden;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: center; /* Wyśrodkowanie tekstu */
}

#final-price.visible {
    opacity: 1;
    visibility: visible;
}

/* Stylizacja wstążki sumarycznej zniżki w final-price */
#final-price .ribbon {
    position: absolute;
    top: 15px;
    left: -30px;
    width: 110px;
    background-color: white;
    color: #7E3F98;
    text-align: center;
    padding: 3px 0;
    transform: rotate(-45deg);
    font-size: 0.5em;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none; /* Domyślnie ukryta */
}

/* Dodatkowe Stylizacje dla Dodatkowego Tekstu */
#final-price .total-price {
    font-size: 0.5em; /* Zmniejszony rozmiar tekstu */
    margin-top: 5px;
}

#final-price .discount-ribbon {
    background-color: #7E3F98;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
    font-size: 0.5em; /* Zmniejszony rozmiar tekstu */
}

/* Opcjonalnie: Stylizacja dla kafelków Dojazdu */
.transport-option.active {
    background-color: #ffe6e6; /* Jasno czerwony odcień dla zaznaczonych opcji transportu */
}
/* Stylizacja Alertu */
.alert-info {
    background-color: #e7f3fe;
    border-color: #b3e5fc;
    color: #31708f;
    border-radius: 8px;
    padding: 15px;
    font-size: 1em;
}

/* Stylizacja Ikony w Alert */
.alert-info .material-icons {
    font-size: 24px;
    color: rgb(13, 110, 253);
}

/* Dodatkowe marginesy dla responsywności */
@media (max-width: 576px) {
    .alert-info {
        font-size: 0.9em;
        padding: 10px;
    }
}
