* {
    box-sizing: border-box;
}

.card-date {
    margin: 4px 0 6px;
    font-size: 13px;
    color: #6b7280;
}

.hero-date {
    margin: 6px 0 10px;
    font-size: 14px;
    color: #6b7280;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ececec;
    color: #111827;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-wrap {
    max-width: 1220px;
    margin: 28px auto;
    padding: 0 16px 40px;
}

.site-header {
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    padding: 26px 30px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.branding {
    flex: 1;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
}

.logo-mark {
    font-size: 34px;
    color: #d62c2c;
    transform: translateY(-2px);
    letter-spacing: -6px;
}

.logo-blue {
    color: #2b5fa9;
    font-size: 62px;
}

.logo-red {
    color: #d62c2c;
    font-size: 62px;
}

.logo-dot {
    color: #1e2b44;
    font-size: 42px;
    margin-left: 4px;
}

.header-search {
    width: 420px;
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 8px;
}

.header-search input {
    height: 46px;
    border: 1px solid #d7dbe3;
    border-radius: 6px;
    padding: 0 14px;
    font-size: 16px;
    outline: none;
    background: #f8f9fb;
}

.header-search input:focus {
    border-color: #2b5fa9;
    background: #fff;
}

.header-search button {
    height: 46px;
    border: 0;
    border-radius: 6px;
    background: #2b5fa9;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.header-search button:hover {
    background: #214c88;
}

.main-nav {
    background: #2b5fa9;
    display: flex;
    align-items: stretch;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.main-nav a {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 18px 10px;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: background 0.15s ease;
}

.main-nav a:last-child {
    border-right: 0;
}

.main-nav a:hover,
.main-nav a.active {
    background: #214c88;
}

#homepageContent {
    background: #ffffff;
    padding: 24px;
    border-radius: 0 0 16px 16px;
}

.top-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(280px, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}

.hero-article {
    background: #fff;
}

.hero-article img {
    height: 470px;
    object-fit: cover;
}

.hero-content {
    padding: 1px 0 0;
}

.hero-content h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.hero-content p {
    margin: 0;
    color: #5b6472;
    font-size: 17px;
    line-height: 1.55;
}

.side-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start;
}

.side-card {
    background: #fff;
}

.side-card-large {
    grid-column: 1 / -1;
}

.side-card img {
    object-fit: cover;
}

.side-card-large img {
    height: 246px;
}

.side-card-small img {
    height: 110px;
}

.side-card-content {
    padding-top: 1px;
}

.side-card-large h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.18;
    font-weight: 800;
}

.side-card-small h2 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.22;
    font-weight: 800;
}

.side-card p {
    margin: 0;
    color: #5b6472;
    line-height: 1.45;
}

.side-card-large p {
    font-size: 14px;
}

.side-card-small p {
    font-size: 13px;
}

.bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.news-card img {
    height: 220px;
    object-fit: cover;
}

.news-card-content {
    padding-top: 1px;
}

.news-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.22;
    font-weight: 800;
}

.news-card p {
    margin: 0;
    color: #5b6472;
    font-size: 14px;
    line-height: 1.5;
}

.empty-state {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    font-size: 16px;
}

.article-detail {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

.article-detail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 14px 0 18px;
}

.article-detail h1 {
    margin: 12px 0 14px;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -0.8px;
}

.article-detail p {
    font-size: 20px;
    line-height: 1.75;
    color: #1f2937;
}

.article-detail a {
    color: #2b5fa9;
}

@media (max-width: 1100px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-search {
        width: 100%;
    }

    .top-layout {
        grid-template-columns: 1fr;
    }

    .hero-article img {
        height: 400px;
    }

    .side-section {
        grid-template-columns: repeat(3, 1fr);
    }

    .side-card-large {
        grid-column: span 3;
    }

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

@media (max-width: 760px) {
    .site-wrap {
        margin: 14px auto;
        padding: 0 10px 24px;
    }

    .site-header {
        padding: 18px 16px;
        border-radius: 12px 12px 0 0;
    }

    .logo-blue,
    .logo-red {
        font-size: 34px;
    }

    .logo-dot {
        font-size: 24px;
    }

    .logo-mark {
        font-size: 22px;
        letter-spacing: -4px;
    }

    .header-search {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav a {
        font-size: 14px;
        padding: 14px 8px;
    }

    #homepageContent {
        padding: 16px;
        border-radius: 0 0 12px 12px;
    }

    .hero-article img {
        height: 250px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .side-section {
        grid-template-columns: 1fr;
    }

    .side-card-large {
        grid-column: auto;
    }

    .side-card-large img,
    .side-card-small img,
    .news-card img {
        height: 210px;
    }

    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .article-detail {
        padding: 18px;
    }

    .article-detail h1 {
        font-size: 30px;
    }

    .article-detail p {
        font-size: 18px;
    }
}
.detail-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.detail-header {
    background: #fff;
    padding: 24px 28px;
    border-radius: 12px 12px 0 0;
}

.detail-logo {
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 52px;
    line-height: 1;
    text-decoration: none;
}

.detail-nav {
    background: #2457a6;
    padding: 14px 28px;
}

.detail-nav a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 320px;
    gap: 28px;
    background: #fff;
    padding: 24px;
    border-radius: 0 0 12px 12px;
}

.detail-main {
    min-width: 0;
}

.detail-sidebar {
    min-width: 0;
    background: #f7f7f8;
    border-radius: 10px;
    padding: 18px;
    align-self: start;
}

.detail-sidebar h3 {
    margin: 0 0 16px;
    font-size: 20px;
}

.detail-sidebar-item {
    padding: 0 0 14px;
    margin: 0 0 14px;
    border-bottom: 1px solid #d9dde3;
}

.detail-sidebar-item:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-sidebar-item h4 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.25;
}

.detail-sidebar-item p {
    margin: 0;
    color: #5b6472;
    font-size: 14px;
    line-height: 1.45;
}

.detail-backlink {
    display: inline-block;
    margin-bottom: 14px;
    color: #2457a6;
    font-weight: 700;
    text-decoration: none;
}

.detail-title {
    margin: 0 0 14px;
    font-size: 42px;
    line-height: 1.08;
    color: #111827;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-author-box {
    display: inline-block;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 10px 14px;
}

.detail-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.detail-top-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-bottom: 22px;
}

.detail-body {
    font-size: 19px;
    line-height: 1.8;
    color: #1f2937;
}

.detail-body p {
    margin: 0 0 18px;
}

.detail-body h2,
.detail-body h3,
.detail-body h4 {
    margin: 26px 0 14px;
    line-height: 1.2;
}

.detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.detail-body figure {
    margin: 24px 0;
}

.detail-body figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

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

    .detail-title {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .detail-wrap {
        padding: 12px 10px 24px;
    }

    .detail-header,
    .detail-nav,
    .detail-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .detail-logo {
        font-size: 30px;
    }

    .detail-title {
        font-size: 28px;
    }

    .detail-body {
        font-size: 17px;
    }

}

.promo-card a {
    display: block;
    height: 100%;
    text-decoration: none;
    background: #f5f5f5; /* jemně odlišná od článků */
    transition: all 0.2s ease;
}

.promo-card a:hover {
    background: #ececec;
}

.promo-card .news-card-content {
    padding: 16px;
}

.promo-card .card-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-card h3 {
    margin: 0 0 8px;
    color: #111;
    font-weight: 700;
}

.promo-card p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}