/* ------------------------
   OGÓLNE BODY & BACKGROUND
-------------------------*/
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* ------------------------
   HEADER & OVERLAY
-------------------------*/
header {
    position: relative;
    color: white;
    padding: 80px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s forwards;
    letter-spacing: 2px;
}

header p {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.5s forwards;
}

/* Animacje */
@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------
   SEKCJA TYTUŁÓW
-------------------------*/
.section-title {
    margin: 40px 0 20px;
    font-size: 1.75rem;
    text-align: center;
    font-weight: bold;
    padding-bottom: 10px;
    display: inline-block;
    border-bottom: 2px solid #007bff;
}

/* ------------------------
   KARTY (Cards)
-------------------------*/
.card {
    margin-bottom: 30px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    object-fit: cover;
    width: 100%;
    height: 200px; /* wysokość możesz zmienić */
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Opcjonalna karta z obrazem tła (użyj klasy .card-bg) */
.card-bg {
    background: url('wp-content/themes/twentytwentyfive/sidebar.png') center/cover no-repeat;
    color: white;
}

/* ------------------------
   LIST-GROUP ITEMS (np. widgety, kategorie)
-------------------------*/
.list-group-item {
    font-weight: 600;
    border: none;
    padding: 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-bottom: 10px;
    cursor: pointer;
}

.list-group-item:hover, 
.list-group-item:focus {
    background-color: #007bff;
    color: white;
}

/* Użycie flexbox w list-group-item z obrazkiem */
.list-group-item.d-flex {
    align-items: center;
}

.list-group-item.d-flex img {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    padding: 2px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* ------------------------
   STOPKA (footer)
-------------------------*/
footer {
    background: linear-gradient(to right, #232526, #414345);
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

footer a {
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #6a11cb;
}

/* ------------------------
   BREADCRUMB
-------------------------*/
.breadcrumb-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.breadcrumb-item a {
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ------------------------
   IKONY & SOCIAL
-------------------------*/
.icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    margin: 0 auto 15px;
    background-color: white;
}

.icon-bg i {
    font-size: 54px;
    color: #007bff;
}

.social-icons a {
    font-size: 24px;
    margin: 0 10px;
    transition: transform 0.3s ease;
    color: #007bff;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #6a11cb;
}

/* ------------------------
   MAPA
-------------------------*/
#map {
    height: 300px;
    width: 100%;
    margin-top: 20px;
    border-radius: 15px;
}

/* ------------------------
   RESPONSYWNOŚĆ
-------------------------*/
@media (max-width: 768px) {
    header {
        padding: 50px 0;
        min-height: 250px;
    }
    header h1 {
        font-size: 2.5rem;
    }
    header p {
        font-size: 1.2rem;
    }

    .navbar-nav,
    .list-group-item {
        text-align: center;
    }

    /* W listach z obrazkami dostosuj layout */
    .list-group-item.d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .list-group-item.d-flex img {
        margin: 0 0 10px 0 !important;
        width: 100%;
        height: auto;
    }
}
