/* === Reset i czcionki === */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: #f4f4f4;
    color: #333;
}

/* === Baner i stopka === */
header, footer {
    background: linear-gradient(135deg, #3c78a0, #559fd1);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h2 {
    margin-bottom: 10px;
}

/* === Sekcje główne === */
main {
    padding: 20px;
}

#right-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.right-block-item {
    flex: 1 1 48%;
    background-color: #e8f5e9;
    border-left: 5px solid #388e3c;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.right-block-item:hover {
    transform: scale(1.02);
}

#left-block {
    background-color: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* === Galeria === */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.photo-gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.photo-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* === Obrazki i zdjęcia === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.erasmus_prawy {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin: 10px auto;
}

.erasmus_stopka {
    max-width: 200px;
    margin: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* === Teksty === */
h1, h2 {
    text-align: center;
    margin: 15px 0;
    font-style: italic;
    color: #2e7d32;
}

p, li {
    line-height: 1.6;
    margin-bottom: 10px;
}

ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.srodek{
    text-align: center;
}

/* === Responsywność === */
@media (max-width: 768px) {
    #right-block {
        flex-direction: column;
    }

    .right-block-item {
        flex: 1 1 100%;
    }

    .photo-gallery img {
        width: 100%;
        height: auto;
    }

    .erasmus_prawy, .erasmus_stopka {
        max-width: 100%;
    }
}