/* ============================================================
   AKTUELNOSTI / BLOG — Shared CSS
   ============================================================ */

/* ---- Blog Preview Section (Homepage) ---- */
.aktuelnosti-preview {
    padding: 80px 0;
    background: #f8fafc;
}
.aktuelnosti-preview .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-header-blog {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 20px;
    flex-wrap: wrap;
}
.section-header-blog .left-side .section-tag-blog {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.section-header-blog .left-side h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}
.section-header-blog .btn-see-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #4ecdc4;
    color: #1a1a2e;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all .2s;
    white-space: nowrap;
}
.section-header-blog .btn-see-more:hover {
    background: #3bbdb4;
    transform: translateY(-1px);
}
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 900px) {
    .blog-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .blog-preview-grid { grid-template-columns: 1fr; }
    .section-header-blog { flex-direction: column; align-items: flex-start; }
    .section-header-blog .left-side h2 { font-size: 1.6rem; }
}
.blog-preview-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.blog-preview-card .card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e5e7eb;
    position: relative;
}
.blog-preview-card .card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.blog-preview-card:hover .card-img img {
    transform: scale(1.04);
}
.blog-preview-card .card-img .no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #2d4b73);
    color: rgba(255,255,255,.3);
    font-size: 3rem;
}
.blog-preview-card .card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-preview-card .card-date {
    font-size: .78rem;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 10px;
}
.blog-preview-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-preview-card .card-excerpt {
    font-size: .875rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}
.blog-preview-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: #0ea5e9;
    text-decoration: none;
    transition: gap .2s;
}
.blog-preview-card .card-link:hover { gap: 10px; }

/* ---- Blog Listing Page ---- */
.blog-listing-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d4b73 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}
.blog-listing-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.blog-listing-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.7);
    max-width: 600px;
    margin: 0 auto;
}
.blog-listing-section {
    padding: 60px 0 80px;
    background: #f8fafc;
}
.blog-listing-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.blog-card .card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e5e7eb;
}
.blog-card .card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.blog-card:hover .card-img img { transform: scale(1.04); }
.blog-card .card-img .no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #2d4b73);
    color: rgba(255,255,255,.25);
    font-size: 3rem;
}
.blog-card .card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card .card-date {
    font-size: .78rem;
    color: #9ca3af;
    margin-bottom: 8px;
}
.blog-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card .card-excerpt {
    font-size: .85rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}
.blog-card .card-link {
    font-size: .85rem;
    font-weight: 600;
    color: #0ea5e9;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .2s;
}
.blog-card .card-link:hover { gap: 8px; }
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
    grid-column: 1/-1;
}
.blog-empty .icon { font-size: 3rem; margin-bottom: 16px; }

/* ---- Single Post Page ---- */
.post-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 960px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { order: 2; }
    .post-main { order: 1; }
}
.post-main {}
.post-hero-img {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 32px;
}
.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.post-meta-bar .post-date {
    font-size: .85rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
}
.post-h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
}
.post-excerpt-lead {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid #f3f4f6;
    font-style: italic;
}
.post-content {
    font-size: 1rem;
    color: #374151;
    line-height: 1.8;
}
.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 32px 0 14px;
}
.post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 24px 0 10px;
}
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol {
    margin: 0 0 18px 24px;
}
.post-content li { margin-bottom: 6px; }
.post-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}
.post-content a { color: #0ea5e9; }
.post-content strong { color: #1a1a1a; }
.post-lang-notice {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .85rem;
    color: #92400e;
    margin-bottom: 24px;
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
}
.sidebar-widget {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 24px;
}
.sidebar-widget-header {
    background: linear-gradient(135deg, #1a1a2e, #2d4b73);
    color: white;
    padding: 16px 20px;
    font-size: .95rem;
    font-weight: 700;
}
.sidebar-services-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-services-list li {
    border-bottom: 1px solid #f3f4f6;
}
.sidebar-services-list li:last-child { border-bottom: none; }
.sidebar-services-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    text-decoration: none;
    color: #374151;
    font-size: .88rem;
    font-weight: 500;
    transition: all .15s;
}
.sidebar-services-list a:hover {
    background: #f0fdfc;
    color: #0ea5e9;
    padding-left: 26px;
}
.sidebar-services-list .arrow { color: #d1d5db; font-size: .7rem; margin-left: auto; }
.sidebar-cta {
    padding: 24px;
    text-align: center;
}
.sidebar-cta h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.sidebar-cta p {
    font-size: .85rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
}
.sidebar-cta a {
    display: block;
    background: #4ecdc4;
    color: #1a1a2e;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    transition: background .2s;
}
.sidebar-cta a:hover { background: #3bbdb4; }

/* Language switcher notice on post pages */
.lang-switcher-bar {
    background: #1a1a2e;
    padding: 10px 0;
    margin-top: 80px;
}
.lang-switcher-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.lang-switcher-bar span {
    color: rgba(255,255,255,.5);
    font-size: .8rem;
}
.lang-switcher-bar a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.2);
    transition: all .15s;
}
.lang-switcher-bar a:hover, .lang-switcher-bar a.active-lang {
    background: #4ecdc4;
    color: #1a1a2e;
    border-color: #4ecdc4;
}
