/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f6f6f6;
    color: #111;
    line-height: 1.6;
}

a {
    color: inherit;
}
/* footer vždy dole */
footer {
    margin-top: auto;
}
img {
    max-width: 100%;
    display: block;
}

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

/* HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    color: #111;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    color: #222;
    transition: .2s;
}

.main-nav a:hover {
    color: #666;
}

/* MAIN */
main {
    min-height: 70vh;
    padding: 30px 0;
}

/* GRID */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: .2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.article-content {
    padding: 18px;
}

.article-title {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.4;
}

.article-title a {
    text-decoration: none;
}

.article-title a:hover {
    text-decoration: underline;
}

.article-excerpt {
    color: #555;
}

/* PAGINATION */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
}

.pagination a.active {
    background: #111;
    color: #fff;
}

/* FOOTER */
.site-footer {
    background: #111;
    color: #fff;
    margin-top: 60px;
    padding: 40px 0;
}

.footer-inner {
    text-align: center;
}

.footer-links {
    margin-top: 12px;
}

.footer-links a {
    color: #ccc;
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

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

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

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

/* ==========================
   SINGLE LAYOUT
========================== */

.article-layout{
    display:grid;
    grid-template-columns: 3fr 1fr;
    gap:40px;
    max-width:1300px;
    margin:auto;
}

/* LEFT CONTENT */
.article-main{
    min-width:0;
}

.single-article{
    background:#fff;
    border-radius:12px;
    padding:40px;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.article-heading{
    font-size:44px;
    line-height:1.2;
    margin-bottom:20px;
}

.article-date{
    color:#777;
    margin-bottom:25px;
}

.article-image{
    width:100%;
    border-radius:12px;
    margin-bottom:30px;
}

.article-content{
    font-size:21px;
    line-height:1.9;
}

.article-content p{
    margin-bottom:24px;
}

.article-content h2{
    margin:40px 0 20px;
    font-size:34px;
}

.article-content h3{
    margin:30px 0 15px;
    font-size:28px;
}

/* RIGHT SIDEBAR */
.sidebar{
    position:relative;
    width:320px;
}

/* FIXED BANNER */
.banner-box{
    position:fixed;
    width:300px;
    top:120px; /* pod menu */
}

/* banner image */
.banner-box img{
    width:300px;
    height:auto;
    border-radius:12px;
    display:block;
}

 

/* PAGINATION */
.article-pagination{
    margin-top:30px;
    text-align:center;
}

.article-pagination a{
    display:inline-block;
    background:#111;
    color:#fff;
    text-decoration:none;
    padding:12px 20px;
    border-radius:10px;
}

/* MOBILE */
@media(max-width:1024px){

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

    .sidebar{
        order:2;
    }

    .banner-box{
        position:static;
        text-align:center;
    }

    .banner-box img{
        max-width:300px;
        margin:auto;
    }

    .article-heading{
        font-size:34px;
    }

    .article-content{
        font-size:18px;
    }
}
@media(max-width:1100px){

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

    .sidebar{
        width:100%;
    }

    .banner-box{
        position:static;
        width:100%;
        margin-top:30px;
        text-align:center;
    }

    .banner-box img{
        margin:auto;
        max-width:300px;
        width:100%;
    }
}
footer {
    background: #0b1f3a; /* tmavomodrá */
    color: #ffffff;
    text-align: center;
    padding: 25px 15px;
    margin-top: 60px;
    font-size: 14px;
}

footer p {
    margin: 0;
    color: #ffffff;
}