/* --- Podstawowe Resetowanie i Typografia --- */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; /* Lekko szare tło dla kontrastu */
    color: #333;
}

h1, h2, h3 {
    font-family: 'Georgia', serif; /* Kontrastowy font dla nagłówków */
    color: #1a4a70; /* Ciemny, uniwersytecki niebieski */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Nagłówek i Nawigacja --- */
.site-header {
    background-color: #cccccc;
    border-bottom: 3px solid #1a4a70;
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header h1 {
    margin: 0;
    font-size: 1.8em;
}

nav a {
    color: #333;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #c90016; /* Uniwersytecki akcent (czerwień) */
}

/* --- Sekcja Hero (Wyróżnienie) --- */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hero-image {
    width: 45%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 6px;
}

.hero-text {
    width: 55%;
}

.hero-text h2 {
    font-size: 2.5em;
    margin-top: 0;
}

/* --- Przyciski (Button) --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a4a70;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2b6191;
}

.btn-secondary {
    background-color: #ccc;
    color: #333;
}

.btn-secondary:hover {
    background-color: #aaa;
}

/* --- Sekcje Główne --- */
.section {
    padding: 40px 0;
    border-top: 1px solid #ddd;
}

/* --- Siatka Badawcza (Research Grid) --- */
.research-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.research-item {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    border-left: 5px solid #c90016;
}

/* --- Zespół (Team) --- */
.team-leader {
    display: flex;
    gap: 30px;
    align-items: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 6px;
}

.leader-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Zdjęcie w kółku - nowoczesny styl */
    object-fit: cover;
}

/* --- Aktualności (News) --- */
.news-section {
    background-color: #e9ecef;
    padding: 30px 20px;
    border-radius: 6px;
}

.news-item {
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-weight: bold;
    color: #1a4a70;
    margin-right: 15px;
}

/* --- Stopka --- */
footer {
    background-color: #CCCCCC;
    color: #000;
    text-align: center;
    padding: 15px 0;
    margin-top: 50px;
    font-size: 0.8em;
}

/* Zmodyfikuj stopkę, aby używała Flexboxa do układu */
footer .container {
    max-width: 1100px; /* Upewnij się, że container ma max-width */
    margin: 0 auto;
    padding: 15px 20px; /* Przenieś padding z footera do containera */
    
    /* Ustawienia Flexboxa dla wyrównania treści i loga */
    display: flex;
    justify-content: space-between; /* Rozdziela loga i tekst na końce */
    align-items: center; /* Wyrównanie w pionie */
}

/* Stylizacja bloku logotypów */
.footer-logos {
    display: flex;
    gap: 15px; /* Odstęp między logami */
}

/* Ustaw rozmiar logotypów */
.uni-logo, .dept-logo {
    height: 55px; /* Ograniczenie wysokości loga (ustaw wg potrzeb) */
    width: auto;
    filter: invert(0%); /* Opcjonalnie: Jeśli loga są czarne, to odwrócenie kolorów da białe logo na niebieskim tle */
}

/* Zadbaj o wyrównanie tekstu stopki, który teraz jest elementem elastycznym */
.footer-small-text {
    flex-grow: 1; /* Pozwala na zajęcie dostępnej przestrzeni */
    text-align: right; /* Ustawia tekst na prawym końcu */
    font-size: 0.9em; 
    margin: 0;
}

/* Ważne: Zabezpieczenie na ekranach mobilnych (responsywność) */
@media (max-width: 768px) {
    footer .container {
        flex-direction: column; /* Na małych ekranach elementy układają się w kolumnę */
        text-align: center;
    }
    
    .footer-logos {
        margin-bottom: 10px;
        justify-content: center; /* Centruj loga */
    }

    .footer-small-text {
        text-align: center; /* Centruj tekst */
    }
}

/* --- Responsywność dla ekranów mobilnych --- */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 15px;
    }

    nav a {
        margin: 0 10px;
        display: block;
    }

    .hero {
        flex-direction: column;
        padding: 10px;
    }

    .hero-image, .hero-text {
        width: 100%;
    }
    
    .hero-image {
        max-height: 200px;
    }

    .research-grid {
        flex-direction: column;
    }

    .team-leader {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Style dla strony Publikacji (publications.html) --- */

.intro-text {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

.pub-year-block {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #ffffff;
    border-left: 5px solid #1a4a70; /* Akcent kolorem uniwersyteckim */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.pub-year-block h3 {
    color: #1a4a70;
    font-size: 1.8em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-top: 0;
}

.detailed-list {
    list-style-type: none;
    padding: 0;
}

.detailed-list li {
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    flex-direction: column; /* Układanie elementów w kolumnie */
}

.detailed-list li:last-child {
    border-bottom: none;
}

.pub-authors {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.pub-title {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 3px;
}

.pub-journal {
    font-style: italic;
    font-size: 0.95em;
    color: #1a4a70; /* Kolor akcentujący dla nazwy czasopisma */
}

.pub-links a {
    color: #c90016; /* Użycie koloru akcentującego dla linków */
    text-decoration: none;
    font-size: 0.9em;
}

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

/* Wyróżnienie członka zespołu (opcjonalnie) */
.pub-authors strong {
    font-weight: 900;
    color: #111;
}