/* Article hero */

#article-hero {
  padding-top: 80px;
  padding-bottom: 64px;
  background: radial-gradient(circle at top right, rgba(0, 147, 165, 0.06) 0, transparent 55%), var(--bg-hero);
  border-bottom: 1px solid var(--border-soft);
}

.article-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: center;
}

.article-breadcrumb {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 10px;
}

.article-title {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.article-intro {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 680px;
}

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.article-hero-figure {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(214, 180, 62, 0.4);
  background: #000;
}

.article-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Simple article hero (newer articles — single column, no sidebar image) */

#hero {
  padding-top: 72px;
  padding-bottom: 30px;
  background: radial-gradient(circle at top right, rgba(0, 147, 165, 0.04) 0, transparent 55%), var(--bg-hero);
  border-bottom: 1px solid var(--border-soft);
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin-bottom: 14px;
  max-width: 980px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 880px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Card article layout (newer articles) */

.article-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

article.article {
  background: var(--bg-elevated);
  border: 1px solid rgba(224, 222, 206, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.article-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* Article content */

.article {
  font-size: 15px;
  color: var(--text-main);
}

.article h2 {
  font-size: 22px;
  margin-bottom: 12px;
  margin-top: 8px;
}

.article h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.article p {
  margin-bottom: 12px;
}

.article strong {
  font-weight: 600;
}

.article em {
  font-style: italic;
}

.article ul,
.article ol {
  margin: 10px 0 14px 20px;
  padding-left: 16px;
}

.article li {
  margin: 6px 0;
}

.article a {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article a:hover {
  color: var(--accent-primary);
}

.article-section {
  padding-top: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(224, 222, 206, 0.7);
}

.article-section:last-of-type {
  border-bottom: none;
}

/* Images */

article.article img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(224, 222, 206, 0.85);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
  display: block;
  margin: 24px 0;
}

article.article figure img {
  margin: 0 auto;
}

.img-inline {
  margin: 24px 0;
}

.article figure {
  margin: 24px 0;
  text-align: center;
}

.article figure img {
  border-radius: 12px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.article figure figcaption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Code blocks */

pre {
  margin: 16px 0;
  padding: 14px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

pre code {
  font-size: 13px;
}

/* Callout box */

.callout {
  margin: 16px 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 147, 165, 0.06);
  border: 1px solid rgba(0, 147, 165, 0.18);
  color: var(--text-main);
}

.callout strong {
  color: #0b5660;
}

/* Expand / accordion */

.callout-expand {
  margin: 16px 0;
  border: 1px solid rgba(0, 147, 165, 0.22);
  border-radius: 12px;
  background: rgba(0, 147, 165, 0.04);
  overflow: hidden;
}

.callout-expand summary {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.callout-expand summary::before {
  content: '▶';
  font-size: 10px;
  color: var(--accent-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.callout-expand[open] summary::before {
  transform: rotate(90deg);
}

.callout-expand > *:not(summary) {
  padding: 0 16px 14px;
}

/* Responsive video embed */

.embed-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 24px 0;
  background: #000;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.embed-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Podcast / audio embed */

.embed-audio {
  margin: 24px 0;
}

.embed-audio iframe {
  width: 100%;
  border: 0;
  border-radius: 10px;
}

/* Blockquote */

.article blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  border-left: 3px solid var(--accent-secondary);
  background: rgba(0, 147, 165, 0.04);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--text-muted);
}

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

/* Webinar CTA — DOCASNY blok, po 1. 10. 2026 smazat i s _includes/webinar-cta.php.
   Tyrkys je schvalne stejny jako prouzek na homepage, aby to cetlo jako jedna
   kampan. Uvnitr bileho clanku to ma vystoupit — to je zamer, ne prehmat.
   Selektory jsou zamerne scopovane na .webinar-cta, ne na .article: starsi
   clanky (napr. ppc-jako-investice) ten wrapper vubec nemaji. */

.webinar-cta {
  margin: 32px 0 8px;
  padding: 24px 22px;
  border-radius: 16px;
  background: linear-gradient(120deg, #00707e 0%, #005f70 100%);
  color: #f7f7f4;
  box-shadow: 0 14px 34px rgba(0, 95, 112, 0.24);
}

.webinar-cta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.webinar-cta .webinar-cta-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #ffffff;
}

.webinar-cta .webinar-cta-lead {
  margin: 0 0 16px;
  color: rgba(247, 247, 244, 0.9);
}

.webinar-cta a.webinar-cta-btn {
  display: inline-block;
  background: var(--accent-primary);
  color: #201600;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.webinar-cta a.webinar-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.webinar-cta .webinar-cta-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(247, 247, 244, 0.75);
}

/* Conclusion box */

#zaver {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 20px 24px;
  margin: 32px 0 8px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(224, 222, 206, 0.9);
}

#zaver h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

#zaver a.cta-button {
  display: inline-block;
  background: #ff7a00;
  color: #fff;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 12px;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#zaver a.cta-button:hover {
  background: #ff8f26;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

footer {
  margin-top: 32px;
}

/* Responsive */

@media (max-width: 960px) {
  .article-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-hero-figure {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  #article-hero {
    padding-top: 72px;
    padding-bottom: 48px;
  }

  article.article {
    padding: 18px;
  }
}
