/* ==========================================================
   Single Post Hero — Magazine Style
   Matching site palette: navy #0A2647 / #1A365D, accent red
   ========================================================== */

/* ── Hero Container ── */
/* Must override .ragd-hero base (dark gradient + overlay) */
.ragd-hero.ragd-hero--single {
    background: #ffffff !important;
    background-image: none !important;
    min-height: auto !important;
    padding: 0 !important;
    overflow: visible;
}

/* Kill the dark overlay and decorative glow */
.ragd-hero.ragd-hero--single::before,
.ragd-hero.ragd-hero--single::after {
    display: none !important;
}

.ragd-single-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 0;
}

/* ── Breadcrumbs ── */
.ragd-single-breadcrumb {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ragd-single-breadcrumb a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ragd-single-breadcrumb a:hover {
    color: #1A365D;
}

.ragd-single-breadcrumb .separator {
    margin: 0 6px;
    color: #D1D5DB;
}

/* ── Category Badge ── */
.ragd-single-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E8F4FD;
    color: #1A365D;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.ragd-single-category:hover {
    background: #D0EBFA;
    transform: translateY(-1px);
    color: #1A365D;
    text-decoration: none;
}

.ragd-single-category svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Title ── */
.ragd-single-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    color: #0A2647;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    max-width: 100%;
}

/* ── Meta Row ── */
.ragd-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
}

.ragd-single-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.ragd-single-meta-item svg {
    width: 16px;
    height: 16px;
    stroke: #9CA3AF;
    flex-shrink: 0;
}

.ragd-single-meta-dot {
    color: #D1D5DB;
    font-size: 8px;
    line-height: 1;
}

.ragd-single-meta-author {
    font-weight: 600;
    color: #1A365D;
}

/* ── Featured Image ── */
.ragd-single-featured {
    width: 100%;
    margin: 0 0 0;
    overflow: hidden;
}

.ragd-single-featured img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* ── Divider after hero ── */
.ragd-single-divider {
    max-width: 1100px;
    margin: 32px auto 0;
    padding: 0 24px;
}

.ragd-single-divider::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB 20%, #E5E7EB 80%, transparent);
}

/* ── Updated Date Badge (below hero) ── */
.ragd-single-updated {
    max-width: 1100px;
    margin: 16px auto 0;
    padding: 0 24px;
}

.ragd-single-updated-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FEF3C7;
    color: #92400E;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
}

.ragd-single-updated-inner svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .ragd-single-hero-inner {
        padding: 20px 16px 0;
    }

    .ragd-single-title {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .ragd-single-meta {
        font-size: 13px;
        gap: 4px 12px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .ragd-single-featured img {
        border-radius: 8px;
    }

    .ragd-single-category {
        font-size: 11px;
        padding: 5px 12px;
    }

    .ragd-single-breadcrumb {
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    .ragd-single-hero-inner {
        padding: 36px 0 0;
    }

    .ragd-single-divider {
        margin-top: 40px;
        padding: 0;
    }

    .ragd-single-updated {
        padding: 0;
    }

    .ragd-single-title {
        font-size: 42px;
    }
}

/* ── Article Content (single post body) improvements ── */
.article-postv2 .the_content_article {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 0;
}

@media (min-width: 1024px) {
    .article-postv2 .the_content_article {
        padding: 40px 0 0;
    }
}

.article-postv2 .the_content_article h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 700;
    color: #0A2647;
    margin: 2em 0 0.6em;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.article-postv2 .the_content_article h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    color: #1A365D;
    margin: 1.5em 0 0.5em;
    line-height: 1.3;
}

.article-postv2 .the_content_article p {
    font-size: 17px;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1.2em;
}

.article-postv2 .the_content_article img {
    border-radius: 8px;
    margin: 1.5em 0;
}

.article-postv2 .the_content_article ul,
.article-postv2 .the_content_article ol {
    font-size: 17px;
    line-height: 1.75;
    color: #374151;
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.article-postv2 .the_content_article li {
    margin-bottom: 0.4em;
}

.article-postv2 .the_content_article blockquote {
    border-left: 4px solid #1A365D;
    margin: 1.5em 0;
    padding: 16px 20px;
    background: #F8FAFC;
    border-radius: 0 8px 8px 0;
    font-size: 17px;
    color: #374151;
    font-style: italic;
}

/* ── "W skrócie" info box improvement ── */
.article-postv2 .the_content_article .wp-block-group,
.article-postv2 .the_content_article .info-box {
    border-radius: 12px;
    overflow: hidden;
}

/* ── Author Bio (replaces removed inline styles) ── */
.article-postv2 .author-bio {
    display: flex;
    align-items: center;
    border: none;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 24px;
    margin-top: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.article-postv2 .author-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid #E5E7EB;
}

.article-postv2 .author-info {
    flex-grow: 1;
}

.article-postv2 .author-info h3 {
    margin: 0 0 5px 0;
    color: #0A2647;
    font-size: 1.2em;
}

.article-postv2 .author-info p {
    margin: 0;
    color: #6B7280;
    font-size: 0.9em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .article-postv2 .author-bio {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-postv2 .author-avatar img {
        width: 100px;
        height: 100px;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .article-postv2 .author-info h3 {
        font-size: 1em;
    }

    .article-postv2 .author-info p {
        font-size: 0.85em;
    }
}

/* ── Related Posts ("Zobacz także") ── */
.article-postv2 .the_content_article .container h3 {
    font-size: 20px;
    color: #0A2647;
    margin-top: 2em;
}

/* ── Responsive Tables ── */
.article-postv2 .the_content_article table {
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin: 1.5em 0;
}

.article-postv2 .the_content_article table thead,
.article-postv2 .the_content_article table tbody {
    display: table;
    min-width: 100%;
}

.article-postv2 .the_content_article table th,
.article-postv2 .the_content_article table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
    white-space: normal;
    word-break: normal;
}

.article-postv2 .the_content_article table th {
    background: #F1F5F9;
    font-weight: 700;
    color: #0A2647;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.article-postv2 .the_content_article table tbody tr:nth-child(even) {
    background: #F8FAFC;
}

.article-postv2 .the_content_article table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 640px) {
    .article-postv2 .the_content_article table {
        font-size: 13px;
    }

    .article-postv2 .the_content_article table th,
    .article-postv2 .the_content_article table td {
        padding: 8px 10px;
    }
}

/* ── Article Navigation ── */
.article-postv2 .article-nav {
    max-width: 1100px;
    margin: 0 auto;
}