* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1a202c;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #1a202c;
	text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color:  #1a202c;
    font-weight: 400;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #0077b6;  /* Wyraźniejszy niebieski kolor*/
    transform: translateY(-2px);  /*⬅️ Delikatne uniesienie do góry*/
	text-shadow: 0.5px 0 0 currentColor; 
}
.nav-link.active {
    color: #1a365d;
    font-weight: 500;
}

/* Active Navigation Link */
.main-nav .nav-link.active {
    color: #0077b6;
    font-weight: 500;
    position: relative;
}

.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0077b6;
}

/* ============ Footer ============*/
.main-footer {
    background-color: #1a365d;
    color: #ffffff;
    padding: 50px 0 30px 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
	text-decoration: none;
	color: inherit;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.6;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #90cdf4;
    margin-bottom: 14px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-nav ul li a:hover {
    color: #ffffff;
}

.footer-contact p {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.8;
}

.footer-contact a {
    color: #90cdf4;
    text-decoration: none;
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.15);
	padding-top: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.copyright {
	font-size: 13px;
	opacity: 0.5;
}
	.footer-bottom p {
	font-size: 13px;
	opacity: 0.6;
}

.footer-bottom a {
	color: rgba(255,255,255,0.6);
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s ease;
}

.footer-bottom a:hover { color: #ffffff; }


/* ========== BLOG STYLES ========== */

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f7fafc;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #4a5568;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: #a0aec0;
}

.breadcrumb-list a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #0077b6;
}

/* Blog Header - dostosowane do stylu hero ze strony głównej */
.blog-header {
    background-color: #ebf8ff;
    min-height: 600px;
	padding: 120px 0 60px 0;
    position: relative;
    overflow: hidden;
}


.blog-header .container {
    position: relative;
    z-index: 2;
	pointer-events: none
}

.blog-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: #1a202c;
    margin: 0 0 20px 0;
    text-align: left;
    line-height: 1.2;
}

.blog-description {
    max-width: 700px;
    margin: 0 0 5px;
    color: #1a202c;
    font-size: 18px;
    opacity: 0.9;
    text-align: left;
    line-height: 1.6;
}

/* ========================================
   POLAND MAP STYLES
   Style dla mapy Polski
   ======================================== */

/* Modyfikacja hero-content dla mapy */
.hero-content {
    max-width: 65%;
    pointer-events: none;
}

.hero-content h1,
.hero-content p {
    pointer-events: auto;
}

/* ===== KONTENER MAPY W HERO ===== */
.hero-map-container {
    position: absolute;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    width: 50%;
    height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* ===== WRAPPER MAPY ===== */
.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== SVG MAPY ===== */
.poland-map {
    width: 100%;
    height: auto;
}

/* ===== WOJEWÓDZTWA ===== */
.voivodeship {
    fill: #ffffff;
    stroke: #cbd5e0;
    stroke-width: 0.8;
    cursor: pointer;
    transition: fill .2s ease, stroke .2s ease, filter .2s ease;
}

.voivodeship:hover {
    fill: #dbeefe;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
}

.voivodeship:active {
    fill: #0077b6;
    stroke: #005f8f;
}

.voivodeship.disabled {
    fill: #ffffff;
    cursor: not-allowed;
}

.voivodeship.disabled:hover {
    fill: #f7fafc;
    filter: none;
}

/* ===== TOOLTIP ===== */
.map-tooltip {
    position: absolute;
    background: rgba(26,54,93, 0.95);
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    pointer-events: none;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100;
}

.map-tooltip strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.map-tooltip span {
    color: #90cdf4;
    font-size: 13px;
}

/* ===== MAP FOOTNOTE ===== */
.map-footnote {
    text-align: center;
    margin-top: 6px;
    font-size: 14px;
    color: #718096;
}

.map-footnote strong {
    color: #2d3748;
    font-weight: 600;
}

/* ===== LOADING STATE ===== */
.loading {
    text-align: center;
    padding: 20px;
    color: #718096;
}



/* ===== RESPONSYWNOŚĆ MAPY ===== */
@media (max-width: 900px) {
    .hero-content {
        max-width: 100%;
    }
    
    .hero-map-container {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: -50px;
		justify-content: flex-start;
    }
    .poland-map {
        transform: translateX(-15%);
    }
    .map-wrapper {
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .map-wrapper {
        max-width: 420px;
    }
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .hero {
        padding: 80px 0;
    }
    .hero h1 {
        font-size: 32px;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 14px;
    }
    .blog-header {
        padding: 60px 0 20px 0;
        min-height: auto;
    }
    .blog-title {
        font-size: 32px;
    }
    .blog-description {
        font-size: 16px;
    }
}
/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Blog Content Layout */
.blog-content {
    padding: 80px 0;
    background-color: #ffffff;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-main-column {
    min-width: 0; /* Prevents overflow in CSS Grid */
}

/* Zmiana wyrównania i stylu tytułu sekcji */
.rules-section .section-title {
    text-align: left;
    margin-left: 20px;
    color: #0a2c4e;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.rules-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #0077b6;
}

.rules-content {
    max-width: 1160px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.8;
    font-size: 18px;
    padding: 0 20px;
    color: #333333;
}

.rules-content p {
    margin-bottom: 20px;
}


/* Section Subtitles */
.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #1a365d;
    margin: 0 0 30px 0;
    position: relative;
    padding-bottom: 10px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0077b6;
}

/* Featured Articles */
.featured-articles {
    margin-bottom: 60px;
}

.featured-article {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    position: relative;
    cursor: pointer;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.featured-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .article-image img {
    transform: scale(1.05);
}

.article-meta-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.reading-time {
    background-color: rgba(26, 54, 93, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-article .article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.article-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background-color: #ebf8ff;
    color: #1a365d;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #0077b6;
}

.article-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.article-title a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Cały kafelek klikalny - pseudo-element rozciągnięty na całą kartę */
.article-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.article-title a:hover {
    color: #0077b6;
}

.article-excerpt {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.article-meta time {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

.article-actions {
    display: flex;
    gap: 10px;
}

.share-btn {
    background: none;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.share-btn:hover {
    border-color: #1a365d;
    color: #1a365d;
    background-color: #f7fafc;
}

/* Articles List */
.articles-list {
    margin-bottom: 40px;
}

.article-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    position: relative;
    cursor: pointer;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.article-image-small {
    position: relative;
    overflow: hidden;
    height: 80px;
    border-radius: 8px;
}

.article-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-image-small img {
    transform: scale(1.1);
}

.article-content-small {
    display: flex;
    flex-direction: column;
}

.article-content-small .article-tags {
    margin-bottom: 10px;
}

.article-content-small .article-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-content-small .article-excerpt {
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-content-small .article-meta {
    margin-top: auto;
}

.article-content-small .article-meta .reading-time {
    background-color: transparent;
    color: #718096;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
}

.article-content-small .share-btn {
    padding: 6px 8px;
    font-size: 12px;
}

/* === PAGINACJA  GHOST BUTTONS === */

.pagination {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e6e6e6;
}

/* Układ przycisków */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

/* Paginacja Ghost buttons  */
.pagination-controls button {
    background: transparent;
    border: 1px solid transparent; 
    color:  #333;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
}

:root {
    --brand-blue: #00396b; /* granatowy ciemny #00396b; #1a365d */
}

/* Hover — pokazujemy delikatną ramkę i kolor */
.pagination-controls button:hover:not(.active):not(:disabled) {
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
}

/* Active — granatowe tło + biała czcionka */
.pagination-controls button.active {
    background: var(--brand-blue);
    color: #fff;
    border: 1px solid var(--brand-blue);
}

/* Disabled */
.pagination-controls button:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Focus state dla keyboard navigation - ACCESSIBILITY */
.pagination-controls button:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}


/* ======= Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: #f7fafc;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e2e8f0;
}

.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #1a365d;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #0077b6;
}

/* Search Widget */
.search-form {
    position: relative;
    display: flex;
}

.search-form input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4a5568;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #1a365d;
}

/* Focus state dla search button - ACCESSIBILITY */
.search-btn:focus-visible {
    outline: 2px solid #0077b6;
    outline-offset: 2px;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-filter {
    background-color: white;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-filter:hover,
.tag-filter.active {
    background-color: #1a365d;
    color: white;
    border-color: #1a365d;
}

/* Focus state dla tag filters - ACCESSIBILITY */
.tag-filter:focus-visible {
    outline: 2px solid #0077b6;
    outline-offset: 2px;
}

/* Popular Articles Widget */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    cursor: pointer;
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.popular-content h4 a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
	font-weight: 500;
}

/* Cały kafelek "Najpopularniejsze" klikalny */
.popular-content h4 a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.popular-content h4 a:hover {
    color: #0077b6;
}

.popular-content time {
    color: #718096;
    font-size: 12px;
}

/* Quick Links Widget */
.quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quick-links li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.quick-links li:last-child {
    border-bottom: none;
}

.quick-links a {
    color: #1a365d;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.quick-links a:hover {
    color: #0077b6;
}

.quick-links a::before {
    content: '→';
    margin-right: 8px;
    color: #0077b6;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.quick-links a:hover::before {
    transform: translateX(4px);
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.share-header h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1a365d;
}

.share-close {
    background: none;
    border: none;
    color: #4a5568;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.share-close:hover {
    background-color: #f7fafc;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #1a365d;
    transition: all 0.3s ease;
}

.share-option:hover {
    background-color: #f7fafc;
    border-color: #1a365d;
}

/* Active Navigation Link */
.main-nav .nav-link.active {
    color: #0077b6;
    font-weight: 500;
    position: relative;
}

.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0077b6;
}

/* Responsive Design */
@media (max-width: 1024px) {
	
	.blog-header h1 {
	font-size: 32px;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
	
    .blog-sidebar {
        order: -1;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-article .article-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .blog-content {
        padding: 60px 0;
    }
    .featured-articles {
        margin-bottom: 40px;
    }
    .featured-article {
        grid-template-columns: 1fr;
    }
    .featured-article .article-content {
        padding: 20px;
    }
    .article-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    .article-image-small {
        height: 150px;
    }
    .sidebar-widget {
        padding: 15px;
    }
    .tags-cloud {
        justify-content: center;
    }
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
   .main-nav { 
   gap: 10px; 
   }
   .nav-link { 
   font-size: 14px; 
   }
	
	.breadcrumbs {
        padding: 10px 0;
    }
    
    .breadcrumb-list {
        font-size: 12px;
    }
    
    .blog-header {
        padding: 60px 0;
    }
    
    
    .blog-title {
        font-size: 28px;
    }
    
    .blog-description {
        font-size: 14px;
    }
    
	.blog-content {
	padding: 40px 0;
    }
    .section-subtitle {
        font-size: 20px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .article-content-small .article-title {
        font-size: 16px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .share-modal-content {
        padding: 20px;
    }
}

/* Print Styles */
/* ========== ARTICLE PAGE STYLES ========== */

/* Article Layout */
.article-content {
    padding: 80px 0;
    background-color: #ffffff;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-main-content {
    min-width: 0;
    max-width: 800px;
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.article-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.article-actions-top {
    display: flex;
    gap: 10px;
}

.print-article {
    background: none;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.print-article:hover {
    border-color: #1a365d;
    color: #1a365d;
    background-color: #f7fafc;
}

.article-header .article-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #1a365d;
    line-height: 1.3;
    margin: 0 0 25px 0;
}

.article-header .article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #718096;
    font-size: 14px;
    flex-wrap: wrap;
}

.article-date,
.reading-time,
.article-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Featured Image */
.article-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-caption {
    background-color: #f7fafc;
    padding: 15px 20px;
    font-size: 14px;
    color: #4a5568;
    font-style: italic;
    border-top: 1px solid #e2e8f0;
}

/* Article Body */
.article-body {
    font-size: 18px;
    line-height: 1.7;
    color: #2d3748;
}

.article-lead {
    font-size: 20px;
    font-weight: 500;
    color: #1a365d;
    margin-bottom: 40px;
    padding: 25px;
    background-color: #ebf8ff;
    border-left: 4px solid #0077b6;
    border-radius: 0 8px 8px 0;
}

.article-body h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #1a365d;
    margin: 40px 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0077b6;
}

.article-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #1a365d;
    margin: 30px 0 15px 0;
}

.article-body h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #1a365d;
    margin: 25px 0 10px 0;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong {
    color: #1a365d;
    font-weight: 400;
}

/* Article Highlights */
.article-highlight {
    background: linear-gradient(135deg, #ebf8ff, #dbeafe);
    border: 1px solid #0077b6;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

.article-highlight h4 {
    margin: 0 0 15px 0;
    color: #1a365d;
    font-size: 18px;
}

.article-highlight p {
    margin: 0;
    color: #2d3748;
}

.article-summary {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0;
}

.article-summary h4 {
    margin: 0 0 15px 0;
    color: #1a365d;
    font-size: 18px;
}

.article-summary p {
    margin: 0;
    color: #2d3748;
}

/* Article Footer */
.article-footer {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.article-share {
    margin-bottom: 40px;
}

.article-share h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #1a365d;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.article-footer .share-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #1a365d;
    transition: all 0.3s ease;
    text-decoration: none;
}

.article-footer .share-option:hover {
    background-color: #f7fafc;
    border-color: #1a365d;
    transform: translateY(-2px);
}

/* Article Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #f7fafc;
    border-radius: 12px;
    text-decoration: none;
    color: #1a365d;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.post-nav-link:hover {
    background-color: #ebf8ff;
    border-color: #0077b6;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
    flex-direction: row-reverse;
}

.nav-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    font-weight: 400;
    display: block;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    display: block;
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Table of Contents */
.toc-widget {
    position: sticky;
    top: 100px;
}

.table-of-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.table-of-contents a:hover,
.table-of-contents a.active {
    color: #1a365d;
    background-color: #ebf8ff;
    border-left-color: #0077b6;
    transform: translateX(5px);
}

/* Related Articles */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-item {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
	font-weight: 500;
}

.related-content h4 a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #0077b6;
}

.related-content time {
    color: #718096;
    font-size: 12px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: white; 
    border: 1px solid transparent; /* było #e2e8f0; */
    border-radius: 8px;
    color: #1a365d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #ebf8ff; 
    border-color: #0077b6;
    transform: translateY(-2px); 

}

/* Back to Blog */
.back-to-blog {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #1a365d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    justify-content: center;
}

.back-to-blog:hover {
    background-color: #152b4d;
    transform: translateY(-2px);
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: white;  /*#1a365d; */
    color: #1a365d; /*white; strzałka */ 
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    /*background-color: #152b4d;*/
    transform: translateY(-3px);
}

/* Print Styles for Articles */
@media print {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar,
    .article-actions-top,
    .article-footer,
    .breadcrumbs {
        display: none !important;
    }
    
    .article-content {
        padding: 20px 0;
    }
    
    .article-header .article-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .article-body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .article-body h2 {
        font-size: 18pt;
        margin: 20px 0 10px 0;
        break-after: avoid;
    }
    
    .article-body h3 {
        font-size: 14pt;
        margin: 15px 0 8px 0;
        break-after: avoid;
    }
    
    .article-highlight,
    .article-summary {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin: 15px 0;
    }
    
    .article-featured-image {
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .article-featured-image img {
        height: auto;
        max-height: 300px;
    }
}

/* Responsive Design for Articles */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        order: -1;
    }
    
    .toc-widget {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-content {
        padding: 60px 0;
    }
    
    .article-header .article-title {
        font-size: 28px;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .article-body h2 {
        font-size: 24px;
    }
    
    .article-body h3 {
        font-size: 20px;
    }
    
    .article-featured-image img {
        height: 250px;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        flex-direction: row;
        text-align: left;
    }
    
    .article-meta-top {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .article-header .article-title {
        font-size: 24px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .article-lead {
        font-size: 17px;
        padding: 20px;
    }
    
    .article-highlight,
    .article-summary {
        padding: 20px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .article-footer .share-option {
        justify-content: center;
    }
}

/* --- PAGINACJA BLOGA --- */

.pagination {
    margin-top: 30px;
    text-align: center;
    width: 100%;
}

.pagination-info {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.pagination-controls {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    gap: 8px;
}

.pagination-btn {
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: 0.25s ease;
}

.pagination-btn:hover {
    background: #0077b6;
    color: #fff;
    border-color: #0077b6;
}

.pagination-btn.active {
    background: #0077b6 !important;
    color: #fff !important;
    border-color: #0077b6 !important;
}
@media (max-width: 480px) {
    .pagination-controls button {
        padding: 5px 8px;
        font-size: 13px;
    }
    .pagination-controls {
        gap: 4px;
    }
}

/* ====KONIEC BLOG STYLES ====*/