/* ════════════════════════════════════════════
   SeniorVilág — Clean CSS v3
   ════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --primary: #2e6da4;
  --primary-d: #1a4a78;
  --accent: #e8a538;
  --dark: #1a1a2e;
  --text: #2d2d2d;
  --muted: #666;
  --border: #e0dce0;
  --bg: #f8f7f4;
  --card: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-h: 0 6px 24px rgba(0, 0, 0, 0.14);
  --max-w: 1180px;
  --gap: 24px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
}
a:hover {
  color: var(--primary-d);
}
h1,
h2,
h3,
h4 {
  line-height: 1.3;
  color: var(--dark);
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ── HEADER ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  position: relative;
}
.logo a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo-tagline {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#main-nav {
  margin-left: auto;
}
#main-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
}
#main-nav ul li a {
  display: block;
  padding: 8px 13px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
#main-nav ul li a:hover,
#main-nav ul li a.active {
  background: var(--primary);
  color: #fff;
}
.has-dropdown {
  position: relative;
}
.has-dropdown > a::after {
  content: " \25BE";
  font-size: 0.72rem;
  opacity: 0.6;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-h);
  z-index: 200;
  padding: 6px 0;
  list-style: none;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}
.dropdown-menu li {
  list-style: none;
}
.dropdown-menu li a {
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  display: block;
  color: var(--text);
  text-decoration: none;
  border-radius: 0;
  background: none;
}
.dropdown-menu li a:hover {
  background: var(--bg);
  color: var(--primary);
}

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
#hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(22, 22, 40, 0.97);
  color: #fff;
  padding: 14px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-inner p {
  flex: 1;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  min-width: 240px;
}
.cookie-inner a {
  color: #aac8f0;
}
.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
#accept-cookies {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
#accept-cookies:hover {
  background: var(--primary-d);
}
#reject-cookies {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
#reject-cookies:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 56px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 2.2rem;
  color: #fff;
  max-width: 680px;
  margin: 0 auto 14px;
}
.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent);
  color: var(--dark);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn-primary:hover {
  background: #d4941a;
  transform: translateY(-2px);
  color: var(--dark);
}
.btn-outline {
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.7);
  display: inline-block;
  transition: all 0.15s;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn-blue {
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn-blue:hover {
  background: var(--primary-d);
  transform: translateY(-2px);
  color: #fff;
}

/* ── AD PLACEHOLDERS ── */
/* Convention: all ad blocks are visible, labeled, correct sizes */
.ad-block {
  position: relative;
  background: #f0ede8;
  border: 1px dashed #b8b4b0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-block::before {
  content: "HIRDETÉS";
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 0.65rem;
  color: #aaa;
  letter-spacing: 0.08em;
}
/* Leaderboard 728×90 — top/bottom of page */
.ad-leader {
  width: 100%;
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto;
}
.ad-wrap {
  text-align: center;
  padding: 16px 0;
}
/* Medium Rectangle 300×250 — sidebar */
.ad-rect {
  width: 300px;
  min-height: 250px;
}
/* Large Rectangle 336×280 — in-article */
.ad-in {
  width: 100%;
  max-width: 336px;
  min-height: 280px;
  margin: 24px auto;
}
/* Full-width — between sections */
.ad-full {
  width: 100%;
  min-height: 90px;
}

/* ── SECTION TITLE ── */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.sec-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
}
.sec-head a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.sec-wrap {
  padding: 36px 0;
}

/* ── ARTICLE CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.cards-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.a-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.a-card:hover {
  box-shadow: var(--shadow-h);
  transform: translateY(-3px);
}
.a-card-img {
  height: 180px;
  overflow: hidden;
  background: #d8e8f0;
}
.a-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.a-card:hover .a-card-img img {
  transform: scale(1.04);
}
.a-card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.a-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.a-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
}
.a-title a {
  color: var(--dark);
  text-decoration: none;
}
.a-title a:hover {
  color: var(--primary);
}
.a-excerpt {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}
.a-link {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.a-link:hover {
  color: var(--primary-d);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tag-p {
  background: #ddeeff;
  color: #1a5595;
}
.tag-e {
  background: #dcf5e5;
  color: #1a6b3a;
}
.tag-s {
  background: #fff0d4;
  color: #8a5700;
}
.tag-u {
  background: #e8f4fb;
  color: #1a5c8a;
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.widget h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
}
.widget ul {
  list-style: none;
}
.widget ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.widget ul li:last-child {
  border-bottom: none;
}
.widget ul li a {
  text-decoration: none;
  color: var(--text);
}
.widget ul li a:hover {
  color: var(--primary);
}
.w-count {
  float: right;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 1px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ── CATEGORY TABS ── */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cat-tab {
  padding: 7px 18px;
  border-radius: 24px;
  border: 2px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.15s;
  white-space: nowrap;
}
.cat-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.cat-tab.act {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.cat-tab.act:hover {
  color: #fff;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 40px 0 20px;
  flex-wrap: wrap;
}
.pn,
.pp {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  padding: 0 12px;
  transition: all 0.15s;
}
.pn:hover,
.pp:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pn.cur {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  pointer-events: none;
}
.p-dots {
  color: var(--muted);
  padding: 0 4px;
}

/* ── PAGE HEADER ── */
.page-hd {
  padding: 36px 0 24px;
}
.page-hd h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-hd p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 680px;
}

/* ── BREADCRUMB ── */
.bc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.bc a {
  color: var(--muted);
  text-decoration: none;
}
.bc a:hover {
  color: var(--primary);
}

/* ── SEE ALL ── */
.see-all {
  text-align: center;
  margin: 36px 0;
}
.btn-all {
  display: inline-block;
  padding: 13px 36px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn-all:hover {
  background: var(--primary-d);
  transform: translateY(-2px);
  color: #fff;
}

/* ── NEWSLETTER ── */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.newsletter h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.newsletter p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 20px;
}
.nl-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.nl-form input[type="email"] {
  padding: 11px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  width: 260px;
  min-width: 200px;
}
.nl-form button {
  padding: 11px 22px;
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}

/* ── FOOTER ── */
#site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0 0;
  margin-top: 64px;
}
.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.ft-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ft-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}
.ft-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.ft-col ul {
  list-style: none;
}
.ft-col ul li {
  margin-bottom: 8px;
}
.ft-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
}
.ft-col ul li a:hover {
  color: #fff;
}
.ft-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;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 10px;
}
.ft-ad {
  padding: 16px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

/* ── BACK TO TOP ── */
#btt {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-h);
  z-index: 500;
  transition: background 0.15s;
  line-height: 1;
}
#btt.on {
  display: flex;
}
#btt:hover {
  background: var(--primary-d);
}

/* ── MISC ── */
.results-n {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 260px;
    gap: 28px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .cards-grid,
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }
  .ft-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sidebar {
    position: static;
  }
  .ad-rect {
    width: 100%;
  }
  #hamburger {
    display: flex;
  }
  #main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    z-index: 99;
  }
  #main-nav.open {
    display: block;
  }
  #main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  #main-nav ul li a {
    padding: 12px 20px;
    border-radius: 0;
  }
  #main-nav ul li a:hover,
  #main-nav ul li a.active {
    background: var(--bg);
    color: var(--primary);
  }
  .has-dropdown > a::after {
    display: none;
  }
  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--border);
    border-radius: 0;
    padding: 0;
    background: transparent;
  }
  .dropdown-menu li a {
    padding: 10px 20px 10px 36px;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .hero {
    padding: 36px 16px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .cat-tabs {
    gap: 6px;
  }
  .cat-tab {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  .page-hd h1 {
    font-size: 1.5rem;
  }
}
@media print {
  #site-header,
  #site-footer,
  .sidebar,
  .ad-block,
  #cookie-banner,
  #btt {
    display: none !important;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
