/* Zmienne globalne */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --text-color: #333;
    --background-color: #f4f4f4;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

/* Reset i style podstawowe */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Główna treść */
.main-content {
    flex: 1;
    width: 100%;
    padding: 20px 0;
}

/* Sekcja hero */
.hero {
    position: relative;
    width: 100%;
    padding: 40px 20px;
}

.carousel {
    width: 100%;
}

.carousel-item {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Sekcja funkcji */
.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 4rem auto;
    gap: 2rem;
}

.feature {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Style dla ogłoszeń */
.ogloszenia-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
}

.ogloszenie {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ogloszenie-zdjecie img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ogloszenie-tresc {
    padding: 1.5rem;
}

.ogloszenie-tytul {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.ogloszenie-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.ogloszenie-opis {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ogloszenie-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.ogloszenie-link:hover {
    background-color: #2980b9;
}

