/* Site Design Tokens */
:root {
  --primary: #20364f;
  --secondary: #6b8199;
  --accent: #b5563a;
  --surface: #f6f6f4;
  --surface-accent: #eaeae6;
  --ink: #111d2b;
  --ink-light: #42556b;
  --border-color: #d2d8e0;
  
  --font-display: 'Abhaya Libre', Georgia, serif;
  --font-body: 'Titillium Web', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Normalization */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--surface);
}

/* Layout Containers */
.kb-keret {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Banner Header */
.kb-fejlec-blokk {
  width: 100%;
  background-color: var(--primary);
  color: var(--surface);
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 3rem; /* Space reserved for pinned nav strip */
  border-bottom: 3px solid var(--accent);
}

.kb-fejlec-tartalom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.kb-marka-titulus {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--surface);
  text-decoration: none;
}

.kb-marka-leiras {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Thin horizontal strip pinned to bottom edge of header */
.kb-navigacios-sav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(17, 29, 43, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0;
}

.kb-navigacios-sav .kb-keret {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.kb-navigacios-sav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #d0d8e2;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s ease;
}

.kb-navigacios-sav a:hover,
.kb-navigacios-sav a.aktiv {
  color: var(--surface);
  border-bottom: 2px solid var(--accent);
}

/* Homepage Opening Block */
.kb-stukkatur-fej {
  padding: 4rem 0 3rem 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--surface);
}

.kb-stukkatur-sorok {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.kb-stukk-line-1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--primary);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.kb-stukk-line-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
  margin-left: 0.2rem;
}

.kb-stukk-line-3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.kb-stukk-alcim {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* Narrow column for homepage intro content */
.kb-bevezeto-oszlop {
  max-width: 680px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
}

.kb-bevezeto-oszlop p {
  margin-bottom: 1.25rem;
}

/* Pitch Section on Homepage */
.kb-pille-szekcio {
  padding: 3rem 0;
  background-color: var(--surface-accent);
  border-bottom: 1px solid var(--border-color);
}

.kb-pille-cim {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.kb-pille-halozat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kb-pille-sor {
  background-color: var(--surface);
  padding: 1.25rem 1.75rem;
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kb-pille-nev {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.kb-pille-leiras {
  font-size: 1rem;
  color: var(--ink-light);
}

/* Article Presentation Poster Rows */
.kb-poszter-szekcio {
  padding: 4rem 0;
}

.kb-poszter-szekcio-fej {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.kb-poszter-lista {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.kb-poszter-sor {
  width: 100%;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  transition: background-color 0.2s ease;
}

.kb-poszter-sor:first-child {
  padding-top: 0;
}

.kb-poszter-sor:last-child {
  border-bottom: none;
}

.kb-poszter-focim-link {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
  width: 100%;
  display: block;
}

.kb-poszter-focim-link:hover {
  color: var(--accent);
}

.kb-poszter-meta-sor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--secondary);
  width: 100%;
}

.kb-poszter-datum {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
}

.kb-poszter-leiras {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-light);
  max-width: 820px;
  margin-top: 0.25rem;
}

/* Single Article & Page Layout */
.kb-cikk-fej {
  padding: 3.5rem 0 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2.5rem;
}

.kb-cikk-fej-cim {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.kb-cikk-fej-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.kb-cikk-fej-bevezeto {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-light);
  font-weight: 500;
  max-width: 800px;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

/* Article Prose Body Container */
.kb-cikk-tartalom {
  max-width: 780px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink);
  padding-bottom: 4rem;
}

.kb-cikk-tartalom h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.kb-cikk-tartalom h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.kb-cikk-tartalom p {
  margin-bottom: 1.5rem;
}

.kb-cikk-tartalom blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background-color: var(--surface-accent);
  border-left: 4px solid var(--primary);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
}

/* MANDATORY Explicit List Rule for BOTH Prose & Intro Containers */
.kb-cikk-tartalom ul,
.kb-cikk-tartalom ol,
.kb-bevezeto-oszlop ul,
.kb-bevezeto-oszlop ol {
  margin-top: 1rem;
  margin-bottom: 1.75rem;
  padding-left: 2rem;
}

.kb-cikk-tartalom li,
.kb-bevezeto-oszlop li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.kb-cikk-tartalom a,
.kb-bevezeto-oszlop a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kb-cikk-tartalom a:hover,
.kb-bevezeto-oszlop a:hover {
  color: var(--primary);
}

/* Section Header (for list.html) */
.kb-szekcio-fej {
  padding: 3.5rem 0 2rem 0;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 2rem;
}

.kb-szekcio-fej-cim {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.kb-szekcio-fej-leiras {
  font-size: 1.15rem;
  color: var(--secondary);
}

/* Footer */
.kb-lablec {
  margin-top: auto;
  background-color: var(--primary);
  color: var(--surface);
  padding: 3rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kb-lablec-tartalom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kb-lablec-felsorossag {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
}

.kb-lablec-marka {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--surface);
  text-decoration: none;
}

.kb-lablec-linkek {
  display: flex;
  gap: 1.5rem;
}

.kb-lablec-linkek a {
  font-size: 0.9rem;
  color: #c0cad6;
  text-decoration: none;
  transition: color 0.15s ease;
}

.kb-lablec-linkek a:hover {
  color: var(--surface);
}

.kb-lablec-jog {
  font-size: 0.85rem;
  color: var(--secondary);
}

/* Responsive adjustments for mobile (375px) */
@media (max-width: 640px) {
  .kb-fejlec-blokk {
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
  }
  
  .kb-navigacios-sav .kb-keret {
    gap: 1rem;
  }
  
  .kb-stukkatur-fej {
    padding: 2.5rem 0 2rem 0;
  }

  .kb-poszter-sor {
    padding: 1.75rem 0;
  }

  .kb-poszter-leiras {
    font-size: 0.95rem;
  }

  .kb-lablec-felsorossag {
    flex-direction: column;
    align-items: flex-start;
  }
}
