/* --- Global Styles & Variables --- */
:root {
    --primary-color: #6F4E37; /* Coffee Brown */
    --secondary-color: #F5F5DC; /* Beige */
    --text-color: #333333;
    --accent-color: #8B4513; /* Saddle Brown */
    --light-gray: #f4f4f4;
    --font-primary: 'Lato', sans-serif;
    --font-secondary: 'Merriweather', serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    background-color: #FFFFFF;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    line-height: 1.3;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Header & Navigation --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 60vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: -1;
}

.hero-text {
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
}

/* --- General Sections --- */
section {
    padding: 60px 0;
}

.intro,.blog-preview {
    text-align: center;
}

.intro h2,.blog-preview h2,.partner-block h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.intro p,.blog-preview p {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

/* --- Benefits Section --- */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.benefit-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
}

.benefit-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Blog Preview --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card h4 {
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    flex-grow: 1;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Partner Block --- */
.partner-block {
    background-color: var(--secondary-color);
    text-align: center;
    border-radius: 8px;
}

.partner-block p {
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.disclosure {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px!important;
}

/* --- Footer --- */
footer {
    background-color: var(--text-color);
    color: #fff;
    padding: 40px 0;
}

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

.footer-info p {
    margin: 5px 0;
}

.footer-info a {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-links a {
    color: #fff;
    margin-bottom: 5px;
}

/* --- Article & Policy Pages --- */
.article-page {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.8rem;
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    text-align: center;
    font-size: 2.8rem;
}

.article-image {
    width: 100%;
    /* Zmniejszenie wysokości obrazów nagłówkowych w artykułach, aby nie nachodziły na treść */
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.article-content {
    max-width: 750px;
    margin: 0 auto;
}

.article-content p,.article-content ul,.article-content ol {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.article-content h3 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content ul,.article-content ol {
    padding-left: 25px;
}

.partner-block-article {
    border: 2px solid var(--secondary-color);
    padding: 20px;
    margin-top: 40px;
    border-radius: 8px;
    text-align: center;
}

.partner-block-article h4 {
    font-size: 1.5rem;
}

.disclaimer-important {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 20px;
    border-radius: 8px;
    background-color: #fff9f2;
}

/* Table Styles */
.table-container {
    margin: 30px 0;
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}
th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
th {
    background-color: var(--secondary-color);
    font-weight: 700;
}
tbody tr:nth-child(even) {
    background-color: var(--light-gray);
}
.table-caption {
    text-align: right;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* Blog List Page */
.blog-list.list-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}
.blog-list.list-item:last-child {
    border-bottom: none;
}
.blog-list.list-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.blog-list.list-item-content h2 {
    margin-top: 0;
}
.btn-read-more {
    font-weight: 700;
    color: var(--accent-color);
}