/* ============================================================
   DR. TÓTH JÁNOS — AKADÉMIAI HONLAP
   Design: Pinker-inspirált elegáns akadémiai stílus
   Stack: Clean HTML/CSS/JS (no framework)
   ============================================================ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* === DESIGN TOKENS === */
:root {
  --blue:        #1255B4;
  --blue-dark:   #0D3D87;
  --blue-hover:  #0F4799;
  --blue-band:   #1255B4;

  --bg:          #FFFFFF;
  --bg-alt:      #F5F4F1;
  --bg-hero:     #EDF1F8;
  --bg-card:     #FFFFFF;

  --text:        #1A1A1A;
  --text-body:   #3C3C3C;
  --text-muted:  #6A6A6A;
  --text-link:   #1255B4;

  --border:      #D8D4CE;
  --border-light:#E8E5E0;

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm:   0 1px 4px rgba(0,0,0,.08);
  --shadow-md:   0 3px 12px rgba(0,0,0,.10);
  --shadow-lg:   0 6px 24px rgba(0,0,0,.12);

  --radius:      2px;
  --transition:  200ms ease;

  --max-w:       1200px;
  --content-w:   860px;
  --nav-h:       70px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--text-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* === SKIP LINK (accessibility) === */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--blue); color: #fff; padding: 10px 18px;
  font-size: .9rem; font-weight: 600; border-radius: 0 0 4px 4px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* === NAVIGATION === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { display: block; }
.site-logo:hover { color: rgba(255,255,255,.85); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.6);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  color: #fff;
}
.nav-toggle svg { display: block; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: .85rem;
  }
  .nav-links a:hover { background: rgba(255,255,255,.07); border-bottom-color: rgba(255,255,255,.08); }
}

/* === PAGE HERO BANNER (inner pages) === */
.page-hero {
  background: var(--blue);
  padding: 48px 24px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}

/* === BREADCRUMB === */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { color: var(--blue-dark); }
.breadcrumb span { margin: 0 6px; }

/* === SECTIONS === */
.section { padding: 72px 24px; }
.section--alt { background: var(--bg-alt); }
.section--blue { background: var(--blue); color: #fff; }
.section--narrow { padding: 56px 24px; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}
.section--blue .section-header h2 { color: #fff; }
.section-header .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section--blue .section-header .lead { color: rgba(255,255,255,.8); }

/* Section divider accent */
.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--blue);
  margin: 16px auto 0;
}
.section--blue .section-header h2::after { background: rgba(255,255,255,.5); }

/* === HOMEPAGE HERO === */
.hero {
  background: var(--bg-hero);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 48px;
  align-items: center;
}

.hero-text { padding-right: 24px; }

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
}

.hero-name {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
  letter-spacing: .015em;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-body);
  margin-bottom: 16px;
}

.hero-keywords {
  font-size: .9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 36px;
  line-height: 1.8;
}

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

.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-photo {
  width: 100%;
  max-width: 560px;
  height: 500px;
  object-fit: cover;
  object-position: 50% 0;
  filter: grayscale(5%) contrast(1.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 48px 0; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 24px;
    gap: 40px;
  }
  .hero-text { padding-right: 0; }
  .hero-ctas { justify-content: center; }
  .hero-photo { max-width: 280px; height: 360px; margin: 0 auto; object-position: 32% 0; }
  .hero-photo-wrap { order: -1; }
}

/* === BLUE BAND === */
.blue-band {
  background: var(--blue);
  padding: 64px 24px;
  text-align: center;
}

.blue-band-inner {
  max-width: var(--content-w);
  margin: 0 auto;
}

.blue-band h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 20px;
}

.blue-band p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.btn-white:hover { background: rgba(255,255,255,.9); color: var(--blue-dark); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

.btn-sm { padding: 8px 16px; font-size: .8rem; }

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card:hover::after { transform: scaleX(1); }

.card-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(18,85,180,.08);
  padding: 4px 10px;
  border-radius: 2px;
  align-self: flex-start;
}

.card-year {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .04em;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--blue); }

.card p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* === BOOK CARDS === */
.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.book-card-header {
  background: var(--blue);
  padding: 32px 24px;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.book-card-year-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 2px;
}

.book-card-type {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
}

.book-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.book-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.book-card-authors {
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
}

.book-card-footer {
  padding: 0 24px 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* === PUBLICATIONS === */
.pub-year-group { margin-bottom: 40px; }
.pub-year-group:last-child { margin-bottom: 0; }

.pub-year-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.pub-list { list-style: none; }

.pub-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 10px;
  font-size: .95rem;
  color: var(--text-body);
  line-height: 1.65;
  transition: border-color var(--transition);
}
.pub-item:last-child { margin-bottom: 0; }
.pub-item:hover { border-color: var(--blue); }
.pub-item a { color: var(--blue); }
.pub-item a:hover { color: var(--blue-dark); text-decoration: underline; }
.pub-item em { font-style: italic; color: var(--text-muted); }

/* Publications layout */
.pub-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: stretch;
}

.pub-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: stretch;
  height: 100%;
  background: #2f7d4f;
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pub-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-style: italic;
  color: #fff;
  margin-bottom: 16px;
}

.pub-sidebar p {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.pub-sidebar .btn-white {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.pub-sidebar ul { list-style: none; }
.pub-sidebar ul li a {
  display: block;
  padding: 5px 0;
  font-size: .9rem;
  color: var(--blue);
  border-bottom: 1px solid var(--border-light);
}
.pub-sidebar ul li:last-child a { border-bottom: none; }

@media (max-width: 900px) {
  .pub-layout { grid-template-columns: 1fr; }
  .pub-sidebar { position: static; height: auto; }
}

/* === MEDIA CARDS === */
.media-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.media-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--blue);
}

.media-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.media-type-badge {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 3px 10px;
  border-radius: 2px;
}

.media-source {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.media-year {
  font-size: .8rem;
  color: var(--text-muted);
  margin-left: auto;
}

.media-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.media-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.media-card-footer { margin-top: 6px; }

/* === RESEARCH TAGS === */
.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.research-tag {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(18,85,180,.07);
  color: var(--blue);
  border: 1px solid rgba(18,85,180,.2);
  border-radius: 2px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background var(--transition), color var(--transition);
}
.research-tag:hover { background: var(--blue); color: #fff; }

/* === ABOUT PAGE === */
.about-layout {
  display: block;
}

.about-nav-horizontal {
  margin-bottom: 48px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 12px;
}

.about-nav-horizontal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
}

.about-nav-horizontal a {
  display: block;
  padding: 8px 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.about-nav-horizontal a:hover,
.about-nav-horizontal a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.about-main {
  max-width: none;
}

.about-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  list-style: none;
}

.about-sidebar a {
  display: block;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.about-sidebar a:hover,
.about-sidebar a.active {
  color: var(--blue);
  border-left-color: var(--blue);
  background: rgba(18,85,180,.04);
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}

.about-inline-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 16px;
}

.about-intro > div > .about-inline-heading:first-child {
  margin-top: 0;
}

.about-portrait-figure {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.about-portrait {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.about-portrait-caption {
  font-size: .78rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 8px;
  font-style: italic;
}

.about-bio h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}

.about-bio p {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 16px;
}

.about-section { margin-bottom: 48px; }
.about-section h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.about-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 6px;
}

.about-section p,
.about-section li {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 10px;
}

.about-section ul,
.about-section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.about-links { list-style: none; padding: 0; }
.about-links li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: .95rem;
}
.about-links li:last-child { border-bottom: none; }
.about-links a { color: var(--blue); font-weight: 600; }

@media (max-width: 1024px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-portrait-figure { position: static; }
  .about-portrait { height: 260px; max-width: 240px; }
}

@media (max-width: 768px) {
  .about-nav-horizontal ul {
    gap: 8px 16px;
  }
  .about-nav-horizontal a {
    font-size: .82rem;
  }
}

/* === CONTACT PAGE === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

.contact-block {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border-light);
}

.contact-block h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
}

.contact-row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: .95rem;
  line-height: 1.5;
  align-items: flex-start;
}
.contact-row:last-child { border-bottom: none; }

.contact-label {
  font-weight: 700;
  color: var(--text-muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  min-width: 110px;
  padding-top: 2px;
}

.contact-value { color: var(--text-body); }
.contact-value a { color: var(--blue); }
.contact-value a:hover { color: var(--blue-dark); }

.contact-links-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-body);
  font-size: .9rem;
  transition: border-color var(--transition), transform var(--transition);
}
.contact-link-item:hover { border-color: var(--blue); transform: translateX(3px); color: var(--blue); }
.contact-link-item strong { font-weight: 700; display: block; font-size: .85rem; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* === CTA SECTION === */
.cta-section {
  background: var(--blue);
  padding: 56px 24px;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-group { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* === FOOTER === */
.site-footer {
  background: var(--blue);
  padding: 56px 24px 32px;
  text-align: center;
  color: rgba(255,255,255,.9);
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-name {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}

.footer-title {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
}

.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 32px;
}

.footer-nav a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover { color: #fff; }

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,.25);
  margin: 0 auto 24px;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* === UTILITY === */
.text-center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }

.lead-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-body);
}

.highlighted-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid rgba(18,85,180,.25);
  padding-bottom: 2px;
  transition: border-color var(--transition), color var(--transition);
}
.highlighted-link:hover { color: var(--blue-dark); border-color: var(--blue); }

/* External links icon */
.icon-external::after {
  content: ' ↗';
  font-size: .8em;
  opacity: .7;
}

/* === MEDIA CATEGORY SECTION === */
.media-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}
.media-category-header h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
}
.media-category-count {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
  background: rgba(18,85,180,.08);
  padding: 3px 10px;
  border-radius: 2px;
}

/* === RESPONSIVE TYPOGRAPHY === */
@media (max-width: 768px) {
  .section { padding: 48px 20px; }
  .section-header h2 { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .blue-band h2 { font-size: 1.4rem; }
  .hero-name { font-size: 2.2rem; }
}

/* === PRINT === */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-ctas, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; }
}

/* Book cover — transparent background everywhere */
.book-card-cover {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 8px;
}
.book-card-cover img {
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* Uniform portrait ratio for grid-3 book cards */
.grid-3 .book-card-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* Side-by-side layout only for the full-width .grid-2 cards (Összes kötet) */
.grid-2 .book-card {
  display: grid;
  grid-template-columns: 1fr 260px;
  grid-template-rows: auto auto 1fr auto;
}
.grid-2 .book-card-cover {
  grid-column: 2;
  grid-row: 1 / -1;
  padding: 28px 24px;
}
.grid-2 .book-card-cover img {
  max-height: 360px;
}
.grid-2 .book-card-header,
.grid-2 .book-card-body,
.grid-2 .book-card-footer { grid-column: 1; }
.grid-2 .book-card-header { min-height: 0; padding: 22px 24px; }

@media (max-width: 720px) {
  .grid-2 .book-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .grid-2 .book-card-cover {
    grid-column: 1;
    grid-row: auto;
    padding: 24px 20px 8px;
  }
  .grid-2 .book-card-cover img { max-height: 280px; }
}


/* === MEDIA CARD COVER IMAGE === */
.media-card { display: flex; flex-direction: column; overflow: hidden; }
.media-card-image {
  margin: -1.5rem -1.5rem 1.25rem -1.5rem;
  background: #1a1a1a;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.media-card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
