/* style.css */
:root {
    --primary-color: #0a2540; /* Głęboki granat rządowy */
    --secondary-color: #d4af37; /* Eleganckie złoto */
    --light-bg: #f4f6f9; /* Jasnoszare tło podstron */
    --text-color: #333333; /* Ciemnoszary tekst */
    --white: #ffffff;
    --border-color: #cccccc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Nagłówek i Nawigacja */
header {
    background-color: var(--primary-color);
    border-bottom: 4px solid var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-symbol {
    font-size: 2rem;
    color: var(--secondary-color);
}

.logo-text h1 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 0.8rem;
    color: #a0aec0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

nav a:hover, nav a.active {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Główny kontener */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    min-height: 70vh;
}

/* Hero Section (Strona główna) */
.hero {
    background: linear-gradient(rgba(10, 37, 64, 0.85), rgba(10, 37, 64, 0.95)), url('https://images.unsplash.com/photo-1541872703-74c5e44368f9?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Siatka boksów (Dashboard / Aktualności) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-top: 3px solid var(--primary-color);
}

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

/* Podstrony tekstowe (np. Konstytucja) */
.article-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.article-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.preamble {
    font-style: italic;
    font-size: 1.1rem;
    text-align: center;
    color: #555;
    line-height: 1.8;
    padding: 2rem;
    background: #fdfdfd;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 2rem;
}

/* Sekcja organów / listy osób */
.member-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.member-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
}

.member-avatar {
    width: 100px;
    height: 100px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #aaa;
}

.member-role {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.member-name {
    color: #666;
    font-size: 0.95rem;
}

/* Stopka */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 4px solid var(--secondary-color);
    font-size: 0.9rem;
}

footer p {
    opacity: 0.8;
}

/* RWD (Dostosowanie do smartfonów) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}