@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

@font-face { font-family: "Trueno"; font-style: normal; font-weight: 200; src: url("/font/TruenoUltLt.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Trueno"; font-style: italic; font-weight: 200; src: url("/font/TruenoUltLtIt.woff") format("woff"); font-display: swap; }

@font-face { font-family: "Trueno"; font-style: normal; font-weight: 300; src: url("/font/TruenoLt.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Trueno"; font-style: italic; font-weight: 300; src: url("/font/TruenoLtIt.woff") format("woff"); font-display: swap; }

@font-face { font-family: "Trueno"; font-style: normal; font-weight: 400; src: url("/font/TruenoRg.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Trueno"; font-style: italic; font-weight: 400; src: url("/font/TruenoRgIt.woff") format("woff"); font-display: swap; }

@font-face { font-family: "Trueno"; font-style: normal; font-weight: 600; src: url("/font/TruenoSBd.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Trueno"; font-style: italic; font-weight: 600; src: url("/font/TruenoSBdIt.woff") format("woff"); font-display: swap; }

@font-face { font-family: "Trueno"; font-style: normal; font-weight: 700; src: url("/font/TruenoBd.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Trueno"; font-style: italic; font-weight: 700; src: url("/font/TruenoBdIt.woff") format("woff"); font-display: swap; }

@font-face { font-family: "Trueno"; font-style: normal; font-weight: 800; src: url("/font/TruenoExBd.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Trueno"; font-style: italic; font-weight: 800; src: url("/font/TruenoExBdIt.woff") format("woff"); font-display: swap; }

@font-face { font-family: "Trueno"; font-style: normal; font-weight: 900; src: url("/font/TruenoBlk.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Trueno"; font-style: italic; font-weight: 900; src: url("/font/TruenoBlkIt.woff") format("woff"); font-display: swap; }

@font-face { font-family: "Trueno"; font-style: normal; font-weight: 950; src: url("/font/TruenoUltBlk.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Trueno"; font-style: italic; font-weight: 950; src: url("/font/TruenoUltBlkIt.woff") format("woff"); font-display: swap; }

:root {
  --primary: #485680;
  --white: #ffffff;
  --light-grey: #f4f4f9;
  --border-radius: 12px;
  --footer-bg: #1f2a4a;
  --footer-fg: #edf1ff;
  --footer-muted: #b7c1d8;
  --footer-accent: #6f81bb;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-grey);
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  --color: #E1E1E1;
  background-color: #F3F3F3;
  background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent);
  background-size: 55px 55px;
}

a {
  text-decoration: none;
  color: inherit;
}

.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 2rem auto;
  width: 100%;
  padding: 0 1rem;
}

.notification {
  width: 100%;
  text-align: center;
  background-color: var(--primary);
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 0.5rem;
  margin: -1rem 0rem 1rem 0rem;
}

/* BASE HERO */
.hero {
  --hero-h: 500px;          /* default: velký hero */
  position: relative;
  min-height: var(--hero-h);
  background: var(--primary); /* fallback, když se obrázek nenačte */
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

/* MALÝ HERO – jediný rozdíl: výška 300px */
.hero__sm {
  --hero-h: 300px;
}

/* BACKGROUND (<picture> nebo <img>) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* obrázek uvnitř <picture class="hero__bg"> */
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* tmavý overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(72, 86, 128, 0.6);
  z-index: 1;
}

/* obsah nad overlayem */
.hero__content,
.hero h1,
.hero p,
.hero .btn {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 1rem;
}

.section {
  margin: 2rem 0;
}

.section--center {
  text-align: center;
}

.section__title {
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.section__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.section__grid--images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.section__grid--images img {
  width: 48px;
  /* set your desired icon size */
  height: 48px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.section__grid--images img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* make icons a bit smaller on very narrow screens */
@media (max-width: 400px) {
  .section__grid--images img {
    width: 36px;
    height: 36px;
  }
}


/* PROGRAM LIST */
.program-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem auto;
  /* don't stretch cards to tallest
  align-items: flex-start; */
}

.program-item {
  position: relative;
  overflow: hidden;
  flex: 1 1 280px;
  /* desktop: basis = width */
  background: var(--white);
  padding: 1.25rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease-out;
}

.program-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ---- the single, expanding stripe ---- */
.program-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  /* start as narrow stripe */
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
  z-index: 0;
}

.program-item:hover::before {
  width: 100%;
  /* sweep full width on hover */
}

/* ==== CONTENT ABOVE STRIPE ==== */
.program-item__number,
.program-item__title,
.program-item__text {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* badge */
.program-item__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.5rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  border-radius: 50%;
  font-size: 1rem;
}

.program-item:hover .program-item__number {
  background: var(--white);
  color: var(--primary);
}

/* title */
.program-item__title {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* text */
.program-item__text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* invert text for readability */
.program-item:hover .program-item__title,
.program-item:hover .program-item__text {
  color: #fff;
}

/* ===== responsive stack ===== */
@media (max-width: 600px) {
  .program-grid {
    flex-direction: column;
    align-items: stretch;
    /* let items fill width naturally */
  }

  .program-item {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    /* <— kill the 280px *height* on column */
    height: auto;
    /* be explicit */
  }

  /* make sure last element doesn't add extra space */
  .program-item>*:last-child {
    margin-bottom: 0;
  }
}


/* TEAM GRID: MAX 3 ACROSS */
.section__grid--team {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .section__grid--team {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .section__grid--team {
    grid-template-columns: 1fr;
  }
}

/* TEAM MEMBER CARD */
.team-member {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-avatar {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.5;
  height: auto;
  object-fit: cover;
  margin: 0;
  padding: 0;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--primary);
}

.team-info p {
  margin: 0 0 0.75rem;
  font-weight: 500;
  color: #555;
}

.team-info a {
  font-size: 0.9rem;
  color: #333;
}

.team-info a:hover {
  text-decoration: underline;
}

/* Add same hover stripe effect to team-member cards */
.team-member {
  position: relative;
  overflow: hidden;
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
  z-index: 0;
}

.team-member:hover::before {
  width: 100%;
  /* expand stripe to full width on hover */
}

/* Ensure content stays above the stripe */
.team-member .team-avatar,
.team-member .team-info {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Invert text color on hover for readability */
.team-member:hover .team-info h3,
.team-member:hover .team-info p,
.team-member:hover .team-info a {
  color: #fff;
}


/* DETAILS SECTION */
.details-section {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "text";
  gap: 2rem;
  text-align: center;
  margin: 2rem 0;
}

/* Map children to named areas */
.details-section__img  { grid-area: media; }
.details-section__text { grid-area: text; }

.details-section__img {
  width: 100%;
  /*height: 300px;*/
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 auto;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.details-section__text {
  margin: 0;
}

.details-section__title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.details-section__button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 1rem 0;
  background-color: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.details-section__button:hover {
  background-color: transparent;
  color: var(--primary);
  /* vnitřní ohraničení + silnější vnější stín + jemný posun */
  box-shadow:
    inset 0 0 0 2px var(--primary),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .details-section {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "media text"; /* default: media first, text second */
    text-align: left;
  }

  /* Flip order on desktop when .invert is present (HTML order stays the same) */
  .details-section.invert {
    grid-template-areas: "text media";
  }
}



/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  background: var(--primary);
  color: var(--white);
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .12s;
}

.btn:hover {
  background: white;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary), 0 8px 16px rgba(0, 0, 0, .1);
  transform: translateY(-1px);
}

/* ===== CTA (same layout, image instead of SVG) ===== */

.cta-band {
  background: transparent;
  /* keep the page look */
  padding: 0;
  margin: 2rem 0 0;
}

.cta-band__inner {
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
  position: relative;
  overflow: hidden;
}

/* brand left stripe like your cards */
.cta-band__inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
}

/* IMAGE replacing the svg glyph */
.cta-band__image {
  display: inline-block;
  width: auto;
  /* adjust to taste */
  height: 50px;
  object-fit: cover;
  margin-bottom: .65rem;
}

.cta-band h2 {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 1.35rem;
  text-transform: uppercase;
  margin: .25rem 0 .75rem;
}

/* button = your brand invert-on-hover */
.cta-band__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  background: var(--primary);
  color: var(--white);
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .12s;
}

.cta-band__btn:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary), 0 8px 16px rgba(0, 0, 0, .1);
  transform: translateY(-1px);
}

/* small screens still centered; nothing else needed */


/* ===== END CTA BAND  =========================================*/

/* KONTAKTY */
/* Kontaktní formulář */
.contact-form {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 500;
  color: var(--primary);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(72, 86, 128, 0.2);
}

.contact-form textarea {
  width: 100%;
  height: 300px;
  max-height: 300px;
  resize: none;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.btn-full {
  position: relative;
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--border-radius);
  text-align: right;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
  overflow: hidden;
  transition: color .3s ease, box-shadow .2s ease;
  isolation: isolate;
  z-index: 0;
}

.btn-full::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
  transition: width .3s ease;
  z-index: -1;
}

.btn-full:hover::before {
  width: 100%;
}

.btn-full:hover {
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
}

/* kontakt page */
    /* Force left alignment even if section--center sets text-align:center */
    #kontakty.section { text-align: left; }
    #kontakty .contacts-grid,
    #kontakty .contact-item,
    #kontakty .contact-title,
    #kontakty .contact-sub,
    #kontakty .contact-lines { text-align: left; }

    /* == COPY OF PROGRAM LAYOUTING, RENAMED == */
    .contacts-grid{
      display:flex;
      flex-wrap:wrap;
      justify-content:center;
      gap:1.5rem;
      margin:2rem auto;
    }

    .contact-item{
      position:relative;
      overflow:hidden;
      flex:1 1 280px;                 /* like program-item */
      background: var(--white);
      padding:1.25rem 1rem;
      border-radius: var(--border-radius);
      box-shadow:0 4px 10px rgba(0,0,0,.05);
      /* no hover effects */
    }

    /* ---- left blue stripe (constant) ---- */
    .contact-item::before{
      content:'';
      position:absolute;
      top:0; left:0;
      width:4px; height:100%;
      background: var(--primary);
      z-index:0;
    }

    /* content above stripe */
    .contact-title,
    .contact-sub,
    .contact-lines{ position:relative; z-index:1; }

    /* badge next to title */
    .contact-title{
      display:inline-flex;
      align-items:center;
      gap:.5rem;
      margin:0 0 .5rem;
      font-size:1.125rem;
      font-weight:600;
      color: var(--primary);
    }
    .contact-badge{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:36px; height:36px;
      background: var(--primary);
      color: var(--white);
      font-weight:600;
      border-radius:50%;
      font-size:1rem;
      flex:0 0 36px;
    }

    .contact-sub{
      font-size:1rem;
      color:#555;
      line-height:1.6;
      margin:0;
    }

    /* each mail/phone on its own line; no hover transforms */
    .contact-lines{ margin-top:.5rem; }
    .contact-line{
      display:block;
      text-decoration:none;
      color:inherit;
      background:#f3f4f6;
      border-radius:999px;
      padding:.45rem .65rem;
      margin-top:.45rem;
      font-weight:500;
      line-height:1.25;
      overflow-wrap:anywhere;
    }
    .contact-line:focus-visible{
      outline:none;
      box-shadow:0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent);
    }

    /* primary-colored icons via CSS mask */
    .contact-line__ico{
      width:1.05em; height:1.05em;
      display:inline-block;
      margin-right:.5rem;
      vertical-align:-.125em;
      background: var(--primary);
      -webkit-mask-size:contain; mask-size:contain;
      -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
      -webkit-mask-position:center; mask-position:center;
    }
    .contact-line--mail .contact-line__ico{
      -webkit-mask-image:url('/images/icons/email.svg');
              mask-image:url('/images/icons/email.svg');
    }
    .contact-line--phone .contact-line__ico{
      -webkit-mask-image:url('/images/icons/phone.svg');
              mask-image:url('/images/icons/phone.svg');
    }

    /* responsive stack like your program */
    @media (max-width:600px){
      .contacts-grid{
        flex-direction:column;
        align-items:stretch;
      }
      .contact-item{
        width:100%;
        max-width:none;
        flex:0 0 auto;
        height:auto;
      }
      .contact-item>*:last-child{ margin-bottom:0; }
    }

/* ===========================
   NEW CSS — Spolek dopravy
   (no duplicates from original)
   =========================== */

/* Badges & chips */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: .75rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 999px;
  margin-right: .5rem;
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: #eef1f7;
  color: #333;
  margin-left: .35rem;
}

.chip--active {
  box-shadow: inset 0 0 0 2px var(--primary);
}

/* Normalize chip buttons so they match the pills */
button.chip {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: #eef1f7;
  color: #333;
  font: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.1;
}

.tag-chips {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.tag-chips button.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.tag-chips button.chip:hover {
  opacity: .9;
}

/* Active/toggled state */
.tag-chips .chip[aria-pressed="true"],
.tag-chips .chip.chip--active {
  background: var(--primary);
  color: var(--white);
  box-shadow: none;
}

/* Keyboard focus ring */
.tag-chips .chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: none;
}

/* Post lists & filters */
.posts-latest {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .posts-latest {
    grid-template-columns: 1fr;
  }
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
  /*grid-template-columns: repeat(3, 1fr);*/
  gap: 1.5rem;
  margin-top: 1rem;
}

/* subtle loading state for AJAX swaps */
#postsGrid.is-loading {
  opacity: .5;
  pointer-events: none;
  transition: opacity .15s ease;
}

.posts-empty {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.posts-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.posts-filters input[type="search"] {
  flex: 1 1 280px;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
}

/* Post cards — static (no hover animation) */
.post-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
  position: relative;
  /* needed for overlay link */
}

/* Make the whole card clickable (overlay link) */
.post-card__link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.post-card__link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* slim left stripe, no transition */
.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.post-card__wrap {
  display: grid;
  grid-template-columns: 1fr;
  color: inherit;
  text-decoration: none;
}

.post-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card__body {
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.post-card__title {
  color: var(--primary);
  font-size: 1.1rem;
  margin: .25rem 0 .5rem;
}

.post-card__excerpt {
  color: #555;
}

/* Proper spacing between date and tags */
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}

.post-card__meta .chip,
.post-card__meta .badge {
  margin: 0;
}

.post-card--compact .post-card__img {
  height: 140px;
}

/* Post detail (for future single-post view) */
.post-detail__head {
  margin-bottom: 1rem;
}

.post-detail__img {
  width: 100%;
  /*height: 360px;*/
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
  margin: 1rem 0;
}

.post-detail__content {
  line-height: 1.75;
  color: #333;
}

.post-detail__content h2,
.post-detail__content h3 {
  color: var(--primary);
  margin: 1rem 0 .5rem;
}

.post-detail__content p {
  margin: .75rem 0;
}

.post-detail__content p img {
  border-radius: var(--border-radius);
}

/* Document tiles & quick links */
.doc-tile,
.quick-link {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
  transition: box-shadow .2s ease-out;
  /* allowed on tiles, not on posts */
  display: block;
}

.doc-tile:hover,
.quick-link:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
}

.center-cta {
  text-align: center;
  margin-top: 1rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .post-card__img {
    height: 160px;
  }
}

/* Pagination */
.pager {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.pager__link,
.pager__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .6rem;
  border-radius: 10px;
  text-decoration: none;
  background: #eef1f7;
  color: #333;
  border: none;
  font-weight: 500;
}

.pager__link:hover {
  opacity: .9;
}

.pager__link--active {
  background: var(--primary);
  color: var(--white);
}

.pager__link--disabled {
  opacity: .5;
  pointer-events: none;
}

/* Chip links (anchor version) */
.tag-chips a.chip {
  text-decoration: none;
}

.tag-chips a.chip[aria-pressed="true"],
.tag-chips a.chip.chip--active {
  background: var(--primary);
  color: var(--white);
}


/*---FILTERS---*/
.posts-filters {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1rem;
  width: 100%;
  align-items: stretch
}

.filters-top {
  display: flex;
  width: 100%
}

.filters-top input[type="search"] {
  flex: 1;
  padding: .6rem .75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius) 0 0 var(--border-radius)
}

.filters-top .btn {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 0 1rem;
  font-weight: 600
}

.filters-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-start;
  align-self: flex-start;
  width: auto
}

.filters-bottom select {
  padding: .55rem .7rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  background: #fff
}

.filters-bottom .btn {
  padding: .55rem .9rem;
  border-radius: var(--border-radius)
}

@media (max-width:600px) {
  .filters-top .btn {
    height: 44px
  }
}


/* VIDEO SECTION (responsive 16:9) */
.video-section__wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

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