@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;600;700;800&display=swap');

.article-detail-page {
    --article-bg: #faf8ff;
    --article-paper: #ffffff;
    --article-soft: #f2f3ff;
    --article-soft-strong: #eaedff;
    --article-text: #131b2e;
    --article-muted: #5f6470;
    --article-accent: #800020;
    --article-accent-soft: #ffdada;
    --article-outline: rgba(140, 112, 113, 0.15);
    width: 100%;
    color: var(--article-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.article-detail-page *,
.article-detail-page *::before,
.article-detail-page *::after {
    box-sizing: border-box;
}

.article-detail-page [data-reveal] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22, 1, .36, 1), filter 0.8s ease;
    will-change: opacity, transform;
}

.article-detail-page [data-reveal="up"] {
    transform: translate3d(0, 36px, 0);
}

.article-detail-page [data-reveal="scale"] {
    transform: scale(0.96);
    filter: blur(6px);
}

.article-detail-page [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.article-detail-page [data-reveal-delay="1"] {
    transition-delay: 0.08s;
}

.article-detail-page [data-reveal-delay="2"] {
    transition-delay: 0.16s;
}

.article-detail-page [data-reveal-delay="3"] {
    transition-delay: 0.24s;
}

.article-detail-hero,
.article-detail-body,
.related-articles {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.article-detail-hero {
    padding: 28px 0 48px;
}

.article-detail-hero__inner {
    max-width: 980px;
}

.article-detail-hero__topline,
.article-detail-hero__chips,
.article-detail-hero__actions,
.article-detail-hero__author,
.article-detail-newsletter__form,
.related-articles__heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.article-detail-hero__topline,
.related-articles__heading {
    justify-content: space-between;
}

.article-detail-chip,
.article-detail-tag,
.related-card__category,
.article-section-heading span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--article-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-detail-chip--accent,
.article-section-heading span {
    background: var(--article-accent-soft);
    color: var(--article-accent);
}

.article-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--article-outline);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--article-text);
    text-decoration: none;
    transition: border-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.article-icon-button:hover,
.article-icon-button.is-copied {
    border-color: rgba(128, 0, 32, 0.32);
    color: var(--article-accent);
    transform: translateY(-1px);
}

.article-detail-hero__title {
    margin: 26px 0 22px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.article-detail-hero__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--article-accent);
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(19, 27, 46, 0.08);
}

.article-detail-hero__author-name {
    margin: 0 0 3px;
    font-weight: 700;
}

.article-detail-hero__author-meta {
    margin: 0;
    color: var(--article-muted);
    font-size: 0.92rem;
}

.article-detail-cover {
    margin-top: 32px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--article-soft);
    box-shadow: 0 36px 80px rgba(19, 27, 46, 0.08);
}

.article-detail-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.7s ease;
}

.article-detail-cover:hover img {
    transform: scale(1.03);
}

.article-detail-body {
    padding-bottom: 72px;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
    gap: 40px;
    align-items: start;
}

.article-detail-content-wrap {
    width: min(760px, 100%);
    margin: 0;
}

.article-detail-sidebar {
    position: sticky;
    top: 156px;
    display: grid;
    gap: 14px;
}

.article-detail-sidebar__card {
    padding: 18px 18px 16px;
    border: 1px solid rgba(140, 112, 113, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(19, 27, 46, 0.035);
}

.article-detail-sidebar__heading {
    margin-bottom: 12px;
}

.article-detail-sidebar__heading span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--article-accent-soft);
    color: var(--article-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-detail-sidebar__heading h2 {
    margin: 10px 0 0;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.article-detail-sidebar__articles,
.article-detail-sidebar__contact-list,
.article-detail-sidebar__socials {
    display: grid;
    gap: 8px;
}

.article-detail-sidebar__article a,
.article-detail-sidebar__contact-item,
.article-detail-sidebar__social-link {
    display: grid;
    gap: 4px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    transition: color 0.24s ease, transform 0.24s ease;
}

.article-detail-sidebar__article a:hover,
.article-detail-sidebar__contact-item:hover,
.article-detail-sidebar__social-link:hover {
    color: var(--article-accent);
    transform: translateY(-1px);
}

.article-detail-sidebar__article strong,
.article-detail-sidebar__social-link span,
.article-detail-sidebar__contact-item span {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.45;
}

.article-detail-sidebar__article p {
    margin: 0;
    color: var(--article-muted);
    font-size: 0.83rem;
    line-height: 1.55;
}

.article-detail-sidebar__contact-item,
.article-detail-sidebar__social-link {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
}

.article-detail-sidebar__contact-item i,
.article-detail-sidebar__social-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(128, 0, 32, 0.08);
    color: var(--article-accent);
    font-size: 0.82rem;
}

.article-detail-sidebar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 10px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--article-accent);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.24s ease, transform 0.24s ease;
}

.article-detail-sidebar__cta:hover {
    background: #a64b61;
    color: #fffdfd;
    transform: translateY(-1px);
}

.article-detail-lead {
    margin: 0 0 42px;
    color: var(--article-muted);
    font-size: 1.28rem;
    line-height: 1.85;
    font-weight: 400;
}

.article-detail-lead::first-letter {
    float: left;
    margin: 0.08em 0.16em 0 0;
    color: var(--article-accent);
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 0.88;
}

.article-detail-content {
    color: var(--article-text);
    font-size: 1.06rem;
    line-height: 1.9;
}

.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4,
.article-section-heading h2,
.related-articles__heading h2,
.article-detail-newsletter__inner h2 {
    font-family: 'Manrope', 'Inter', sans-serif;
    color: var(--article-text);
    letter-spacing: -0.04em;
}

.article-detail-content h2 {
    margin: 56px 0 18px;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.08;
    font-weight: 800;
}

.article-detail-content h3 {
    margin: 40px 0 14px;
    font-size: 1.55rem;
    font-weight: 700;
}

.article-detail-content h4 {
    margin: 26px 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
}

.article-detail-content p,
.article-detail-content ul,
.article-detail-content ol,
.article-detail-content blockquote,
.article-detail-content figure,
.article-detail-content pre,
.article-detail-content table {
    margin: 0 0 1.4rem;
}

.article-detail-content ul,
.article-detail-content ol {
    padding-left: 1.35rem;
}

.article-detail-content li + li {
    margin-top: 0.45rem;
}

.article-detail-content a {
    color: var(--article-accent);
    text-decoration: underline;
    text-decoration-color: rgba(128, 0, 32, 0.24);
    text-underline-offset: 3px;
}

.article-detail-content a:hover {
    text-decoration-color: rgba(128, 0, 32, 0.55);
}

.article-detail-content blockquote {
    position: relative;
    padding: 20px 24px 20px 28px;
    border-left: 4px solid var(--article-accent);
    background: #fff7f8;
    border-radius: 0 18px 18px 0;
    font-style: italic;
}

.article-detail-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.article-detail-content figcaption {
    margin-top: 10px;
    color: var(--article-muted);
    font-size: 0.92rem;
    text-align: center;
}

.article-detail-content code {
    padding: 0.14rem 0.38rem;
    border-radius: 8px;
    background: var(--article-soft);
    color: var(--article-accent);
    font-size: 0.94em;
}

.article-detail-content pre {
    padding: 1.2rem 1.35rem;
    border-radius: 18px;
    background: #1a2234;
    color: #eef0ff;
    overflow-x: auto;
}

.article-detail-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.article-detail-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(140, 112, 113, 0.12);
}

.article-detail-content th,
.article-detail-content td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(140, 112, 113, 0.1);
    text-align: left;
}

.article-detail-content th {
    background: var(--article-soft);
    font-weight: 700;
}

.article-detail-gallery,
.article-detail-downloads,
.related-articles {
    margin-top: 62px;
}

.article-section-heading {
    margin-bottom: 22px;
}

.article-section-heading h2,
.related-articles__heading h2 {
    margin: 14px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 800;
}

.gallery-grid,
.related-grid {
    display: grid;
    gap: 22px;
}

.gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-item {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--article-paper);
    box-shadow: 0 24px 60px rgba(19, 27, 46, 0.06);
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item figcaption {
    padding: 14px 16px 16px;
    color: var(--article-muted);
    font-size: 0.92rem;
}

.attachments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.attachment-item a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(140, 112, 113, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    color: inherit;
    text-decoration: none;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.attachment-item a:hover {
    transform: translateY(-2px);
    border-color: rgba(128, 0, 32, 0.18);
    box-shadow: 0 22px 50px rgba(19, 27, 46, 0.05);
}

.attachment-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--article-soft);
    color: var(--article-accent);
}

.attachment-item__content strong {
    display: block;
    margin-bottom: 4px;
}

.attachment-item__content span,
.attachment-item__size,
.related-card p,
.article-detail-newsletter__inner p {
    color: var(--article-muted);
}

.attachment-item__size {
    font-weight: 700;
    white-space: nowrap;
}

.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(140, 112, 113, 0.12);
}

.article-detail-tag {
    border: 1px solid rgba(140, 112, 113, 0.12);
    background: rgba(255, 255, 255, 0.78);
    color: var(--article-muted);
    text-decoration: none;
    transition: border-color 0.24s ease, color 0.24s ease, background 0.24s ease;
}

.article-detail-tag:hover {
    border-color: rgba(128, 0, 32, 0.24);
    background: #fff7f8;
    color: var(--article-accent);
}

.article-detail-newsletter {
    margin-top: 76px;
}

.article-detail-newsletter__inner {
    padding: 38px;
    border: 1px solid rgba(140, 112, 113, 0.12);
    border-radius: 28px;
    background: var(--article-soft);
    text-align: center;
}

.article-detail-newsletter__inner span,
.related-articles__heading span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--article-accent-soft);
    color: var(--article-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-detail-newsletter__inner h2 {
    margin: 16px 0 10px;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
}

.article-detail-newsletter__form {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

.article-detail-newsletter__form input,
.article-detail-newsletter__form button {
    min-height: 50px;
    border-radius: 16px;
    font: inherit;
}

.article-detail-newsletter__form input {
    min-width: min(100%, 320px);
    padding: 0 16px;
    border: 1px solid rgba(140, 112, 113, 0.16);
    background: #ffffff;
}

.article-detail-newsletter__form input:focus {
    outline: none;
    border-color: rgba(128, 0, 32, 0.32);
    box-shadow: 0 0 0 4px rgba(128, 0, 32, 0.08);
}

.article-detail-newsletter__form button {
    padding: 0 22px;
    border: 0;
    background: var(--article-accent);
    color: #ffffff !important;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.24s ease, transform 0.24s ease;
}

.article-detail-newsletter__form button:hover {
    background: #5f0017;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.article-detail-newsletter__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 22px;
    padding: 0 22px;
    border-radius: 16px;
    background: var(--article-accent);
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.24s ease, transform 0.24s ease;
}

.article-detail-newsletter__link:hover {
    background: #5f0017;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.related-articles {
    padding: 72px 0 0;
}

.related-articles__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--article-text);
    font-weight: 700;
    text-decoration: none;
}

.related-articles__link:hover {
    color: var(--article-accent);
}

.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.related-card {
    display: flex;
    flex-direction: column;
}

.related-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: var(--article-soft);
    text-decoration: none;
    box-shadow: 0 28px 60px rgba(19, 27, 46, 0.05);
}

.related-card__media img,
.related-card__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.related-card__media img {
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card__media:hover img {
    transform: scale(1.04);
}

.related-card__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f2f3ff 100%);
}

.related-card__placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--article-accent);
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
}

.related-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.related-card h3 {
    margin: 18px 0 10px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.related-card h3 a {
    color: inherit;
    text-decoration: none;
}

.related-card h3 a:hover {
    color: var(--article-accent);
}

.related-card p {
    margin: 0;
    line-height: 1.8;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(19, 27, 46, 0.82);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: min(1100px, 100%);
    padding: 22px;
    border-radius: 24px;
    background: #0f1524;
    color: #eef0ff;
}

.lightbox-close,
.lightbox-download,
.lightbox-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
}

.lightbox-close,
.lightbox-download {
    position: absolute;
    top: 16px;
    width: 42px;
    height: 42px;
}

.lightbox-close {
    right: 16px;
    font-size: 1.5rem;
}

.lightbox-download {
    right: 66px;
}

.lightbox-image-container {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 76vh;
    border-radius: 18px;
}

.lightbox-loader {
    font-size: 1.4rem;
}

.lightbox-loader i {
    animation: spin 1s linear infinite;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
}

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

.lightbox-description {
    margin-top: 14px;
    color: #cdd5ef;
    text-align: center;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 920px) {
    .article-detail-layout {
        grid-template-columns: 1fr;
    }

    .article-detail-sidebar {
        position: static;
        top: auto;
    }

    .gallery-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-articles__heading {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .article-detail-hero,
    .article-detail-body,
    .related-articles {
        width: min(100% - 28px, 1180px);
    }

    .article-detail-layout {
        gap: 28px;
    }

    .article-detail-hero__topline,
    .article-detail-hero__author,
    .article-detail-newsletter__form {
        flex-wrap: wrap;
    }

    .article-detail-hero__title {
        font-size: clamp(2.4rem, 12vw, 3.9rem);
    }

    .article-detail-cover {
        border-radius: 22px;
    }

    .attachment-item a {
        grid-template-columns: auto 1fr;
    }

    .attachment-item__size {
        grid-column: 1 / -1;
        padding-left: 62px;
    }

    .article-detail-newsletter__inner {
        padding: 30px 22px;
    }

    .article-detail-sidebar__card {
        padding: 16px 16px 14px;
    }

    .article-detail-sidebar__article a,
    .article-detail-sidebar__contact-item,
    .article-detail-sidebar__social-link {
        padding: 7px 0;
    }
}

@media (max-width: 560px) {
    .article-detail-lead {
        font-size: 1.12rem;
    }

    .article-detail-lead::first-letter {
        font-size: 3.5rem;
    }

    .lightbox-content {
        padding: 18px 14px 14px;
    }

    .lightbox-image-container {
        min-height: 260px;
    }
}
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1.5rem 1rem 0.75rem;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* ==========================================================================
   PŘÍLOHY
   ========================================================================== */

.article-attachments {
    margin-bottom: 3rem;
}

.attachments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attachment-item {
    margin-bottom: 0.75rem;
}

.attachment-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.attachment-item a:hover {
    background: white;
    border-color: #175ee6;
    box-shadow: 0 2px 8px rgba(23, 94, 230, 0.1);
}

.attachment-item i {
    font-size: 1.5rem;
    color: #175ee6;
    flex-shrink: 0;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.attachment-desc {
    font-size: 0.875rem;
    color: #64748b;
}

.attachment-size {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
    flex-shrink: 0;
}

/* ==========================================================================
   FOOTER ČLÁNKU
   ========================================================================== */

.article-footer {
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    margin-top: 3rem;
}

.article-signature {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   SOUVISEJÍCÍ ČLÁNKY
   ========================================================================== */

.related-articles {
    margin-top: 4rem;
    padding: 3rem 0;
    background: #f8fafc;
    border-radius: 12px;
}

.related-articles .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.related-articles .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.related-articles .section-header .eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #175ee6;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-articles .article-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-articles .article-card:hover {
    box-shadow: 0 8px 24px rgba(23, 94, 230, 0.15);
    transform: translateY(-4px);
}

.related-articles .article-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}

.related-articles .article-card-title a {
    color: #1e293b;
    text-decoration: none;
}

.related-articles .article-card-title a:hover {
    color: #175ee6;
}

.related-articles .article-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   LIGHTBOX (Kompatibilní s veřejným webem)
   ========================================================================== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: calc(90vh - 120px);
    width: 100%;
    height: 100%;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: calc(90vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    z-index: 1002;
}

.lightbox-loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lightbox-description {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.4;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.lightbox-download {
    position: absolute;
    top: -40px;
    left: 0;
    background: transparent;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.lightbox-download:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}
