*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --red: #C8102E;
    --blue: #1B3A5C;
    --bg: #f8f8f8;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --cat-rozhovory: #1B3A5C;
    --cat-veda: #2D6A4F;
    --cat-tech: #4A90D9;
    --cat-paragrafy: #8B6914;
    --cat-art: #9B2335;
    --cat-oceneni: #C8102E;
    --cat-specialy: #6B4C9A;
}

body { font-family: 'Source Sans 3', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; line-height: 1.3; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* TOP BAR */
.top-bar { background: var(--blue); color: #ccc; font-size: 0.8rem; padding: 6px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #ccc; margin-left: 12px; transition: color 0.2s; }
.top-bar a:hover { color: #fff; }
.top-bar .social-links svg { width: 16px; height: 16px; fill: currentColor; vertical-align: middle; }

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

/* LOGO */
.logo-area { text-align: center; padding: 28px 0 20px; background: var(--white); border-bottom: 1px solid var(--border); }
.logo { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 900; color: var(--blue); letter-spacing: 3px; display: inline-flex; align-items: center; gap: 12px; }
.logo .heart { display: inline-block; font-size: 1.8rem; background: linear-gradient(180deg, #fff 33%, #D7141A 33%, #D7141A 66%, #11457E 66%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tagline { font-family: 'Source Sans 3', sans-serif; font-size: 0.95rem; color: var(--text-light); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }

/* NAV */
.main-nav { background: var(--white); border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 100; }
.main-nav .container { display: flex; justify-content: center; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 0; }
.nav-links li a { display: block; padding: 14px 20px; font-weight: 600; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text); position: relative; transition: color 0.2s; }
.nav-links li a::after { content: ''; position: absolute; bottom: 0; left: 20px; right: 20px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform 0.25s ease; }
.nav-links li a:hover, .nav-links li a.active { color: var(--red); }
.nav-links li a:hover::after, .nav-links li a.active::after { transform: scaleX(1); }
/* SEARCH */
.search-form { display: flex; align-items: center; margin-left: auto; gap: 0; }
.search-input { padding: 6px 12px; border: 1px solid var(--border); border-radius: 4px 0 0 4px; font-size: 0.85rem; font-family: inherit; width: 180px; outline: none; transition: border-color 0.2s; }
.search-input:focus { border-color: var(--red); }
.search-btn { padding: 6px 10px; background: var(--red); color: #fff; border: 1px solid var(--red); border-radius: 0 4px 4px 0; cursor: pointer; display: flex; align-items: center; transition: background 0.2s; }
.search-btn:hover { background: #a00d24; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; padding: 20px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 4px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.pagination a { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.pagination a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.pagination .active { background: var(--red); color: #fff; border: 1px solid var(--red); }
.pagination .dots { background: none; border: none; color: var(--text-light); }

/* SEARCH RESULTS */
.search-header { padding: 30px 0 20px; }
.search-header h1 { font-size: 1.8rem; margin-bottom: 8px; }
.search-header p { color: var(--text-light); }
.search-highlight { background: #fff3cd; padding: 1px 3px; border-radius: 2px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* LAYOUT */
.page-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 30px 0; }

/* BREADCRUMB */
.breadcrumb { padding: 16px 0; font-size: 0.85rem; color: var(--text-light); }
.breadcrumb a { color: var(--blue); } .breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* FEATURED */
.featured-article { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 30px; height: 520px; cursor: pointer; }
.featured-article img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.featured-article:hover img { transform: scale(1.03); }
.featured-article .content { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 36px 36px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: #fff; }
.featured-article h2 { font-size: 2.2rem; margin-bottom: 12px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.featured-article h2 a { color: #fff; } .featured-article h2 a:hover { color: var(--red); }
.featured-article .excerpt { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 14px; line-height: 1.7; max-width: 600px; }
.featured-article .meta { color: rgba(255,255,255,0.6); }
.featured-article .meta .author { color: rgba(255,255,255,0.8); }
.featured-article .meta .sep { color: rgba(255,255,255,0.3); }

/* BADGE */
.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; color: #fff; margin-bottom: 10px; }
.badge-rozhovory { background: var(--cat-rozhovory); }
.badge-veda, .badge-věda { background: var(--cat-veda); }
.badge-tech { background: var(--cat-tech); }
.badge-paragrafy { background: var(--cat-paragrafy); }
.badge-art { background: var(--cat-art); }
.badge-oceneni, .badge-ocenění { background: var(--cat-oceneni); }
.badge-specialy, .badge-speciály { background: var(--cat-specialy); }

/* META */
.meta { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--text-light); }
.meta .author { font-weight: 600; color: var(--text); }
.meta .sep { color: var(--border); }

/* ARTICLE GRID */
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.article-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.25s, box-shadow 0.25s; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.article-card img { width: 100%; height: 200px; object-fit: cover; }
.article-card .content { padding: 16px 18px 20px; }
.article-card h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.35; }
.article-card h3 a:hover { color: var(--red); }
.article-card .excerpt { font-size: 0.9rem; color: var(--text-light); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* SECTION HEADING */
.section-heading { font-family: 'Source Sans 3', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--red); display: inline-block; }

/* ARTICLE PAGE */
.article-hero { border-radius: 8px; overflow: hidden; margin-bottom: 28px; }
.article-hero img { width: 100%; height: 480px; object-fit: cover; }
.article-title { font-size: 2.4rem; margin-bottom: 16px; line-height: 1.2; }
.article-meta { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-light); flex-wrap: wrap; }
.article-meta .author-name { font-weight: 700; color: var(--text); }
.article-body { background: var(--white); border-radius: 8px; padding: 36px 40px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 30px; }
.article-body p { font-size: 1.08rem; line-height: 1.85; margin-bottom: 20px; color: #444; }
.article-body h2 { font-size: 1.6rem; margin: 36px 0 16px; color: var(--blue); }
.article-body h3 { font-size: 1.3rem; margin: 28px 0 12px; }
.pull-quote { border-left: 4px solid var(--red); padding: 20px 28px; margin: 32px 0; background: #fdf6f7; border-radius: 0 8px 8px 0; }
.pull-quote p { font-family: 'Playfair Display', serif; font-size: 1.3rem !important; font-style: italic; color: var(--blue) !important; line-height: 1.6 !important; margin-bottom: 8px !important; }
.pull-quote cite { font-style: normal; font-size: 0.85rem; color: var(--text-light); }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tag { display: inline-block; padding: 5px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 20px; font-size: 0.8rem; color: var(--text-light); transition: all 0.2s; }
.tag:hover { border-color: var(--red); color: var(--red); }

/* RELATED */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.related-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.25s, box-shadow 0.25s; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.related-card img { width: 100%; height: 160px; object-fit: cover; }
.related-card .content { padding: 14px 16px 18px; }
.related-card h3 { font-size: 0.95rem; line-height: 1.35; }
.related-card h3 a:hover { color: var(--red); }
.related-card .meta { font-size: 0.8rem; color: var(--text-light); margin-top: 8px; }

/* CATEGORY PAGE */
.category-header { padding: 40px 0 30px; text-align: center; }
.category-header h1 { font-size: 2.2rem; margin-bottom: 8px; }
.category-header p { color: var(--text-light); font-size: 1.05rem; }
.category-badge-large { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 16px; border-radius: 4px; color: #fff; margin-bottom: 16px; }

/* SIDEBAR */
.sidebar { position: sticky; top: 60px; align-self: start; }
.sidebar-box { background: var(--white); border-radius: 8px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.sidebar-box h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--red); font-family: 'Source Sans 3', sans-serif; font-weight: 700; }
.hofo-box { background: var(--blue) !important; color: #fff; }
.hofo-box h4 { color: #fff; border-color: var(--red); }
.hofo-logo { font-family: 'Source Sans 3', sans-serif; font-size: 1.4rem; font-weight: 700; letter-spacing: 3px; margin-bottom: 4px; }
.hofo-subtitle { font-size: 0.8rem; color: #aac; margin-bottom: 16px; }
.hofo-video { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hofo-video:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.hofo-video img { width: 80px; height: 50px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.hofo-video .title { font-size: 0.85rem; line-height: 1.3; }
.most-read-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.most-read-item:last-child { border: none; margin: 0; padding: 0; }
.most-read-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--red); line-height: 1; flex-shrink: 0; width: 30px; }
.most-read-item .title { font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.most-read-item .title:hover { color: var(--red); }
.most-read-item .cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-top: 3px; }
.newsletter-box { background: linear-gradient(135deg, var(--red), #a00d24) !important; color: #fff; text-align: center; }
.newsletter-box h4 { color: #fff; border-color: rgba(255,255,255,0.3); text-align: center; }
.newsletter-box p { font-size: 0.9rem; margin-bottom: 14px; opacity: 0.9; }
.newsletter-box input[type="email"] { width: 100%; padding: 10px 14px; border: none; border-radius: 4px; font-size: 0.9rem; margin-bottom: 10px; font-family: 'Source Sans 3', sans-serif; }
.newsletter-box button { width: 100%; padding: 10px; background: var(--blue); color: #fff; border: none; border-radius: 4px; font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; cursor: pointer; transition: background 0.2s; font-family: 'Source Sans 3', sans-serif; }
.newsletter-box button:hover { background: #14304d; }
.social-follow { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn { flex: 1; min-width: 60px; padding: 10px 8px; text-align: center; border-radius: 4px; color: #fff; font-size: 0.75rem; font-weight: 600; transition: opacity 0.2s; }
.social-btn:hover { opacity: 0.85; }
.social-btn.fb { background: #1877F2; } .social-btn.ig { background: #E4405F; } .social-btn.li { background: #0A66C2; } .social-btn.yt { background: #FF0000; }
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.partner-logo { background: var(--bg); border-radius: 4px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: #999; font-weight: 600; }

/* FOOTER */
.footer { background: var(--blue); color: #ccc; margin-top: 50px; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 40px; }
.footer h5 { color: #fff; font-family: 'Source Sans 3', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer p, .footer li { font-size: 0.9rem; line-height: 1.8; }
.footer ul { list-style: none; } .footer a { color: #aaa; transition: color 0.2s; } .footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }

/* COOKIE */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--blue); color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; z-index: 1000; box-shadow: 0 -2px 12px rgba(0,0,0,0.2); font-size: 0.9rem; }
.cookie-banner.hidden { display: none; }
.cookie-banner button { padding: 8px 24px; border: none; border-radius: 4px; font-weight: 700; cursor: pointer; font-family: 'Source Sans 3', sans-serif; font-size: 0.85rem; flex-shrink: 0; }
.cookie-accept { background: var(--red); color: #fff; } .cookie-accept:hover { background: #a00d24; }
.cookie-settings { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3) !important; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 768px) {
    .logo { font-size: 1.5rem; letter-spacing: 1px; }
    .tagline { font-size: 0.75rem; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .nav-links.open { display: flex; }
    .nav-links li a { padding: 12px 20px; border-bottom: 1px solid var(--border); }
    .hamburger { display: block; }
    .main-nav .container { justify-content: space-between; flex-wrap: wrap; }
    .search-form { order: 3; width: 100%; padding: 8px 0; }
    .search-input { flex: 1; width: auto; }
    .article-grid { grid-template-columns: 1fr; }
    .featured-article { height: 380px; }
    .featured-article h2 { font-size: 1.3rem; }
    .featured-article .content { padding: 24px 20px 20px; }
    .sidebar { grid-template-columns: 1fr; }
    .article-hero img { height: 260px; }
    .article-title { font-size: 1.6rem; }
    .article-body { padding: 24px 20px; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .cookie-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .top-bar .date { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* PHP TEMPLATE CLASSES (aliases for Node classes) */
.hero-article { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 30px; height: 520px; cursor: pointer; display: block; }
.hero-article img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero-article:hover img { transform: scale(1.03); }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 36px 36px; background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: #fff; }
.hero-article h1 { font-size: 2.2rem; margin-bottom: 12px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-cat { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; color: #fff; background: var(--red); margin-bottom: 10px; }
.hero-overlay p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 14px; line-height: 1.7; max-width: 600px; }
.hero-meta { color: rgba(255,255,255,0.6); font-size: 0.85rem; display: flex; gap: 12px; }

.card-img { position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .card-img img { transform: scale(1.05); }
.card-cat { position: absolute; top: 12px; left: 12px; display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; color: #fff; background: var(--red); }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.35; }
.card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--text-light); }

/* ARTICLE DETAIL (PHP) */
.article-detail { background: var(--white); border-radius: 8px; padding: 36px 40px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 30px; }
.article-meta-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.article-meta-top .article-cat { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; color: #fff; background: var(--red); }
.article-meta-top .article-date { font-size: 0.85rem; color: var(--text-light); }
.article-detail h1 { font-size: 2.2rem; margin-bottom: 16px; line-height: 1.2; }
.article-perex { font-size: 1.15rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.article-author { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-hero-img { margin-bottom: 28px; border-radius: 8px; overflow: hidden; }
.article-hero-img img { width: 100%; max-height: 480px; object-fit: cover; }
.article-content { font-size: 1.08rem; line-height: 1.85; color: #444; }
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 1.6rem; margin: 36px 0 16px; color: var(--blue); }
.article-content h3 { font-size: 1.3rem; margin: 28px 0 12px; }
.article-content img { border-radius: 8px; margin: 20px 0; }

.page-title { font-size: 2rem; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--red); }

.related-articles { margin-top: 40px; }
.related-articles h3 { font-size: 1.2rem; margin-bottom: 20px; }

/* BETTER MOBILE */
@media (max-width: 768px) {
    .hero-article { height: 320px; }
    .hero-article h1 { font-size: 1.3rem; }
    .hero-overlay { padding: 20px; }
    .hero-overlay p { font-size: 0.9rem; display: none; }
    .article-detail { padding: 20px 16px; }
    .article-detail h1 { font-size: 1.5rem; }
    .article-hero-img img { max-height: 260px; }
    .page-title { font-size: 1.5rem; }
    .card-img img { height: 160px; }
}
@media (max-width: 480px) {
    .hero-article { height: 260px; border-radius: 8px; }
    .hero-article h1 { font-size: 1.1rem; }
    .hero-meta { display: none; }
    .logo-area { padding: 16px 0 12px; }
    .logo { font-size: 1.2rem; letter-spacing: 0; gap: 6px; }
    .tagline { font-size: 0.65rem; letter-spacing: 1px; }
    .article-detail { padding: 16px 12px; }
    .card-body { padding: 12px 14px 16px; }
    .card-body h3 { font-size: 0.95rem; }
}
