/* Resetowanie marginesów i stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #001f3f;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

header nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

header nav a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    /* background: url('../images/hero.jpg') no-repeat center center/cover; */
    background-color: #405f7f;

    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    margin-top: 10px;
}

/* Articles Section */
.articles {
    display: flex;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.articles a {
    color: #333;
    text-decoration: none;
}

.article {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    max-width: 900px;
    box-sizing: border-box;
}

.article:hover {
    transform: translateY(-5px);
}

.article img {
    max-height: 256px;
    float: left;
    margin-right: 16px;
}
article ul {
    margin-left: 1rem;
}

@media (max-width: 512px) {
    .article {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .article img {
        float: none;
        max-height: none;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }
}

.article h2 {
    font-size: 20px;
    padding: 10px;
}

.article p {
    padding: 0 10px 10px;
    color: #666;
}

/* Footer */
footer {
    background-color: #001f3f;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Stylizacja strony kontaktowej */
.contact-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h1, .contact-info h2 {
    color: #001f3f;
}

.contact-info p {
    margin: 10px 0;
}

.social-media a {
    color: #001f3f;
    text-decoration: none;
    font-weight: 600;
}

.social-media a:hover {
    text-decoration: underline;
}

/* Stylizacja formularza kontaktowego */
.contact-form {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: #001f3f;
    margin-bottom: 10px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin: 10px 0 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 15px;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #001f3f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: #0056b3;
}


/* Stylizacja artykułu */
.article-page {
    max-width: 1024px;
    box-sizing: border-box;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-title {
    font-size: 32px;
    font-weight: bold;
    color: #001f3f;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.article-image {
    max-height: 512px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.article-content img {
    max-width: 768px;
    height: auto;
    border-radius: 8px;

    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-content h2 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #001f3f;
}

.article-content a {
    color: #0056b3;
    text-decoration: underline;
}

.article-content a:hover {
    color: #001f3f;
}

.timeline-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    --item-bg: #eee;
}

.timeline {
    position: relative;
    width: 100%;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 100%;
    background: #001f3f;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Stylizacja wydarzeń */
.event {
    position: relative;
    margin-bottom: -60px;
    width: 50%;
}

.event:last-child {
    margin-bottom: 0;
}

/* Znacznik osi czasu */
.event-marker {
    position: absolute;
    top: 21px;
    width: 14px;
    height: 14px;
    background: #001f3f;
    border: 3px solid white;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 2px #001f3f;
}

/* Treść wydarzenia */
.event-content {
    position: relative;
    background: var(--item-bg, #eee);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
}

/* Data wydarzenia */
.event-date {
    font-size: 14px;
    font-weight: bold;
    color: #001f3f;
    margin-bottom: 10px;
}

.event-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.event-content p {
    font-size: 14px;
    color: #555;
}

@media (min-width: 769px) {
    .event:nth-child(odd) .event-marker {
        right: -7px;
    }

    .event:nth-child(even) .event-marker {
        left: -7px;
    }

    /* Naprzemienność wydarzeń */
    .event:nth-child(odd) {
        float: left;
        text-align: right;
        clear: both;
    }

    .event:nth-child(even) {
        float: right;
        text-align: left;
        clear: both;
    }

    .event:nth-child(odd) .event-content {
        margin-right: 20px;
    }
    .event:nth-child(even) .event-content {
        margin-left: 20px;
    }

    /* Strzałki wskazujące na oś czasu */
    .event:nth-child(odd) .event-content::after {
        content: '';
        position: absolute;
        top: 20px;
        right: -10px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 10px 0 10px 10px;
        border-color: transparent transparent transparent var(--item-bg, #eee);
    }

    .event:nth-child(even) .event-content::after {
        content: '';
        position: absolute;
        top: 20px;
        left: -10px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--item-bg, #eee) transparent transparent;
    }
}

@media (max-width: 768px) {
    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 6px;
        height: 100%;
        background: #001f3f;
        border-radius: 2px;
    }

    .event-marker {
        left: -27px;
    }

    .event {
        float: right;
        text-align: left;
        clear: both;
        width: 100%;
        margin-bottom: 40px;
    }
    .event-content::after {
        content: '';
        position: absolute;
        top: 20px;
        left: -10px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--item-bg, #eee) transparent transparent;
    }
}