.tiles-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.tiles-viewport {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tiles-container {
    display: flex;
    width: max-content;
    padding: 0 10px;
}

.tile {
    flex: 0 0 300px;
    margin: 0 10px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.5s ease;
}

.tile:hover {
    transform: scale(1.05);
}

.tile-banner {
    height: 100px;
    background: linear-gradient(135deg, #4CAF50 0%, #0044cc 100%);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.tile h3 {
    color: #1A3C6D;
    padding: 15px;
    margin: 0;
}

.tile p {
    padding: 0 15px 15px;
    margin: 0;
    font-size: 0.9rem;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 100;
    transition: background-color 0.3s;
}

.scroll-btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

.font-controls {
    position: sticky;
    top: 0;
    background-color: white;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    z-index: 10;
}

.font-controls button {
    padding: 5px 10px;
    background-color: #0044cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.font-controls button:hover {
    background-color: #3366ff;
}

/* Style dla wyszukiwarki */
.search-container {
    padding: 20px;
    text-align: center;
}

.search-container input {
    padding: 10px;
    width: 300px;
    max-width: 100%;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-container button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #45a049;
}

#searchResult {
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Style dla aktualności */
.news-feed {
    padding: 20px;
    background-color: #f5f5f5;
    text-align: center;
}
.news-item {
    margin: 10px 0;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.news-item h4 {
    color: #1A3C6D;
    margin-bottom: 5px;
}

/* Style dla galerii */
.gallery-section {
    padding: 20px;
    text-align: center;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.gallery-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}
.close-gallery {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Style dla FAQ accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.faq-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
}
.faq-question {
    background-color: #f5f5f5;
    border: none;
    padding: 15px;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    cursor: pointer;
}
.faq-question:hover {
    background-color: #e0e0e0;
}
.faq-answer {
    display: none;
    padding: 15px;
    background-color: #fff;
}

/* Style dla formularza kontaktowego */
.contact-section {
    padding: 20px;
    text-align: center;
}
.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}
.contact-section input,
.contact-section textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-section textarea {
    height: 150px;
}
.contact-section button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.contact-section button:hover {
    background-color: #45a049;
}
#contactResult {
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Style dla treści dynamicznej */
.dynamic-content {
    padding: 20px;
    text-align: center;
}

/* Style dla breadcrumbs */
.breadcrumbs {
    padding: 10px 20px;
    background-color: #f5f5f5;
}
.breadcrumbs ol {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
}
.breadcrumbs li {
    font-size: 0.9rem;
}
.breadcrumbs a {
    color: #1A3C6D;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .tiles-container {
        flex-direction: column;
        padding: 10px 20px;
    }
    .tile {
        flex: 0 0 auto;
        width: 100%;
        margin: 10px 0;
    }
    .scroll-btn {
        display: none;
    }
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
    .search-container input,
    .contact-section input,
    .contact-section textarea {
        width: 100%;
    }
    .gallery img {
        width: 150px;
        height: 100px;
    }
}