/*
Theme Name: Remy Springer v11
Theme URI: https://remyspringer.net
Description: Een modern online magazine theme voor historische artikelen. Rustig, professioneel en overzichtelijk.
Version: 1.1.5
Author: Remy Springer
Author URI: https://remyspringer.net
License: GPL v2 or later
Text Domain: remy-springer
Tags: history, magazine, blog, responsive, modern
*/

    :root {
      --bg: #f5f1eb;
      --surface: #fdfcf9;
      --text: #2b2621;
      --muted: #6b6359;
      --accent: #5d4037;
      --accent-soft: #e8ddd4;
      --border: #d4cac0;
    }
    body {
      margin: 0;
      min-height: 100vh;
      background: var(--bg);
      background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(93, 64, 55, 0.02) 10px, rgba(93, 64, 55, 0.02) 20px),
        linear-gradient(180deg, var(--bg), #f7efe6);
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text);
    }
    .remy-homepage {
      padding: 24px 16px 40px;
    }
    .container {
      max-width: 1200px;
      margin: 36px auto;
      background: white;
      border-radius: 14px;
      box-shadow: 0 30px 100px rgba(15,23,42,0.08);
      padding: 36px 32px 56px;
    }
    /* page background texture kept subtle */
    body {
      background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(93,64,55,0.02) 10px, rgba(93,64,55,0.02) 20px),
        linear-gradient(180deg, var(--bg), #f7efe6);
    }
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
      padding: 24px 0 28px;
    }
    .brand {
      font-size: 1.4rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
    }
    nav {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
    }
    nav a {
      color: var(--text);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 600;
      padding: 10px 18px;
      border-radius: 999px;
      border: 1px solid transparent;
      background: rgba(255,255,255,0.9);
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
      transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    }
    nav a:hover {
      transform: translateY(-1px);
      border-color: rgba(15, 23, 42, 0.12);
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
    }
    .search-form {
      position: relative;
    }
    .search-form input {
      width: 220px;
      padding: 9px 14px;
      border-radius: 999px;
      border: 1px solid rgba(15,23,42,0.06);
      background: rgba(255,255,255,0.95);
      font-size: 0.95rem;
      transition: width 220ms ease, box-shadow 220ms ease;
    }
    .search-form input:focus {
      outline: none;
      width: 320px;
      box-shadow: 0 10px 30px rgba(15,23,42,0.08);
    }
    .search-results {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 10px);
      background: white;
      border: 1px solid var(--border);
      border-radius: 10px;
      max-height: 320px;
      overflow: auto;
      box-shadow: 0 18px 40px rgba(15,23,42,0.08);
      z-index: 80;
      padding: 8px;
    }
    .search-results .result {
      display: block;
      padding: 10px 12px;
      text-decoration: none;
      color: var(--text);
      border-radius: 8px;
      margin-bottom: 6px;
    }
    .search-results .result:hover,
    .search-results .result[aria-selected="true"] {
      background: var(--accent-soft);
    }
    .search-empty {
      padding: 12px;
      color: var(--muted);
      font-size: 0.95rem;
    }
    .auth-buttons {
      display: flex;
      gap: 12px;
    }
    .auth-buttons a {
      color: var(--text);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 600;
      padding: 10px 18px;
      border-radius: 999px;
      border: 1px solid transparent;
      background: rgba(255,255,255,0.9);
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
      transition: transform 0.24s ease, box-shadow 0.24s ease;
    }
    .auth-buttons a:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
    }
    .auth-buttons a.login {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }
    .auth-buttons a.register {
      background: var(--accent-soft);
      color: var(--accent);
      border-color: var(--accent-soft);
    }
    .hero {
      background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
      border: 1px solid rgba(15, 23, 42, 0.08);
      border-radius: 30px;
      padding: 48px 44px;
      box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(360px, 1.2fr);
      gap: 32px;
      align-items: center;
    }
    .hero p {
      color: var(--accent);
      font-size: 0.88rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      margin: 0 0 18px;
      font-weight: 700;
    }
    .hero h1 {
      margin: 0;
      font-size: clamp(2.8rem, 4vw, 4.4rem);
      line-height: 1.02;
      letter-spacing: -0.04em;
    }
    .intro {
      max-width: 720px;
      margin-top: 24px;
      color: var(--muted);
      line-height: 1.85;
      font-size: 1rem;
    }
    .hero-card {
      background: var(--accent-soft);
      border: 1px solid rgba(15, 79, 118, 0.12);
      border-radius: 28px;
      padding: 28px 26px;
    }
    .hero-card p {
      margin: 0;
      color: #0b374f;
      line-height: 1.75;
      font-size: 0.97rem;
    }
    .hero-card strong {
      display: block;
      margin-bottom: 12px;
      font-size: 1.03rem;
      color: var(--text);
    }
    .featured-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.03));
      border-radius: 18px;
      padding: 14px;
      position: relative;
      overflow: hidden;
      min-height: 320px;
      display: flex;
      gap: 16px;
      align-items: stretch;
    }
    .featured-media { flex:0 0 48%; border-radius:10px; overflow:hidden; background:#ddd; }
    .featured-media img { width:100%; height:100%; object-fit:cover; display:block; }
    .featured-content { flex:1 1 52%; color:white; display:flex; flex-direction:column; justify-content:center; gap:8px; }
    .featured-content h3 { margin:0; font-size:1.35rem; color: #fff; }
    .featured-content p { margin:0; color: rgba(255,255,255,0.92); line-height:1.6; }
    .featured-badge { position:absolute; left:14px; top:14px; background:rgba(0,0,0,0.55); color:white; padding:6px 10px; border-radius:8px; font-weight:700; font-size:0.82rem; letter-spacing:0.06em; }
    .featured-carousel {
      background: var(--accent);
      border-radius: 20px;
      padding: 22px;
      color: white;
      position: relative;
      min-height: 420px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .carousel-item {
      opacity: 0;
      transform: translateX(18px) scale(0.98);
      transition: opacity 0.7s cubic-bezier(.22,.9,.3,1), transform 0.7s cubic-bezier(.22,.9,.3,1);
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      padding: 18px 20px;
      display: flex;
      gap: 20px;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
    }
    .carousel-item.active {
      opacity: 1;
      transform: translateX(0) scale(1);
      position: relative;
      z-index: 2;
      box-shadow: 0 28px 60px rgba(43,38,33,0.18);
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
    }

    .carousel-media {
      flex: 0 0 60%;
      max-width: 60%;
      height: 100%;
      display: block;
      border-radius: 10px;
      overflow: hidden;
      background: rgba(0,0,0,0.06);
    }
    .carousel-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .carousel-content {
      flex: 1 1 54%;
      color: white;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .featured-carousel:hover .carousel-item.active {
      transform: translateY(-8px) scale(1.03);
      box-shadow: 0 36px 80px rgba(43,38,33,0.22);
    }
    .carousel-item h3 {
      margin: 0 0 14px;
      font-size: 1.6rem;
      line-height: 1.15;
      letter-spacing: -0.02em;
    }
    .carousel-item p {
      margin: 0;
      font-size: 1.05rem;
      color: rgba(255,255,255,0.95);
      line-height: 1.7;
      max-width: 520px;
    }
    .carousel-dots {
      position: absolute;
      left: 50%;
      bottom: 12px;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      justify-content: center;
      z-index: 6;
      margin: 0;
      align-items: center;
      pointer-events: auto;
    }
    .carousel-dots button {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: none;
      background: rgba(255,255,255,0.45);
      cursor: pointer;
      transition: transform 320ms cubic-bezier(.2,.9,.3,1), background 220ms ease, opacity 220ms ease;
      transform-origin: center center;
      opacity: 0.85;
    }
    .carousel-dots button.active {
      background: rgba(255,255,255,0.98);
      transform: scale(1.45);
      opacity: 1;
    }
    .carousel-dots button.pop {
      animation: dot-pop 360ms cubic-bezier(.2,.9,.3,1);
    }
    @keyframes dot-pop {
      0% { transform: scale(0.9); }
      60% { transform: scale(1.7); }
      100% { transform: scale(1.45); }
    }
    .carousel-nav {
      position: absolute;
      top: 50%;
      left: 12px;
      right: 12px;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      padding: 0 4px;
      z-index: 12;
    }
    .carousel-nav button {
      background: rgba(255,255,255,0.12);
      border: none;
      color: white;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(0) scale(0.98);
    }
    .carousel-nav button:focus {
      outline: 2px solid rgba(255,255,255,0.25);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(-2px) scale(1);
    }
    .featured-carousel:hover .carousel-nav button,
    .featured-carousel:focus-within .carousel-nav button {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(-2px) scale(1);
    }

    /* privacy accept effect */
    #privacyAccept.accept-anim { animation: accept-pop 420ms cubic-bezier(.2,.9,.3,1); }
    @keyframes accept-pop { 0%{ transform: scale(0.96); } 60%{ transform: scale(1.08); } 100%{ transform: scale(1); } }
    /* checkbox label highlight */
    .consent-label.checked { font-weight:800; text-decoration:underline; }
    .grid {
      display: grid;
      gap: 24px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin-top: 40px;
    }
    .card {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 28px;
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
      transition: transform 0.28s ease, box-shadow 0.28s ease;
    }
    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 26px 50px rgba(15, 23, 42, 0.12);
    }
    .card h4 {
      margin: 0 0 14px;
      font-size: 1.2rem;
      line-height: 1.3;
    }
    .card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.75;
      font-size: 0.98rem;
      min-height: 5.6rem;
    }
    .card a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: auto;
      color: #ffffff;
      text-decoration: none;
      font-weight: 700;
      padding: 12px 18px;
      border-radius: 999px;
      background: var(--accent);
      box-shadow: 0 14px 30px rgba(15, 79, 118, 0.22);
      transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
    }
    .card a:hover {
      transform: translateY(-1px);
      box-shadow: 0 18px 36px rgba(15, 79, 118, 0.24);
      background: #0c4560;
    }
    .section-title {
      font-size: 0.95rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 18px;
    }
    section {
      margin-top: 56px;
    }
    .category-grid {
      display: grid;
      gap: 28px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin-top: 40px;
    }
    .category-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 18px 16px;
      text-decoration: none;
      color: inherit;
      box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
      transition: transform 0.28s ease, box-shadow 0.28s ease;
      text-align: left;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .category-card .cat-media {
      border-radius: 10px;
      height: 140px;
      background-size: cover;
      background-position: center;
      width: 100%;
    }
    .category-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    }
    .category-card h3 {
      margin: 0;
      font-size: 1.25rem;
      color: var(--accent);
    }
    .category-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
      font-size: 0.95rem;
    }
    .newsletter {
      background: var(--accent);
      color: white;
      border-radius: 20px;
      padding: 40px 36px;
      margin-top: 56px;
      margin-bottom: 50px;
      text-align: center;
    }
    .newsletter h3 {
      margin: 0 0 12px;
      font-size: 1.8rem;
    }
    .newsletter p {
      margin: 0 0 24px;
      color: rgba(255,255,255,0.9);
      line-height: 1.6;
    }
    .newsletter-form {
      max-width: 720px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: stretch;
    }
    .newsletter-controls {
      display:flex;
      gap:10px;
      width:100%;
      align-items:center;
    }
    .newsletter-controls input {
      flex:1;
      padding:12px 14px;
      border-radius:10px;
      border:none;
      font-size:0.96rem;
      background:rgba(255,255,255,0.98);
      color:var(--text);
      box-shadow: inset 0 -1px 0 rgba(0,0,0,0.02);
    }
    .newsletter-controls input:focus { outline:none; box-shadow: 0 10px 30px rgba(15,23,42,0.06); }
    .newsletter-controls button {
      padding:10px 18px;
      border-radius:10px;
      border:none;
      background:var(--accent-soft);
      color:var(--accent);
      font-weight:700;
      cursor:pointer;
      transition:transform 160ms ease, opacity 160ms ease;
    }
    .newsletter-controls button:disabled { opacity:0.55; cursor:not-allowed; transform:none; }
    .newsletter-consent { display:flex; gap:8px; align-items:center; justify-content:center; width:100%; }
    .newsletter-consent .consent-label { color: rgba(255,255,255,0.95); font-size:0.95rem; }
    .newsletter-consent a { color: rgba(255,255,255,0.95); text-decoration:underline; }
    .newsletter-form input::placeholder {
      color: var(--muted);
    }
    .newsletter-form button {
      padding: 12px 28px;
      background: var(--accent-soft);
      color: var(--accent);
      border: none;
      border-radius: 8px;
      font-weight: 600;
      font-size: 0.95rem;
      cursor: pointer;
      font-family: inherit;
      transition: opacity 0.24s ease;
    }
    .newsletter-form button:hover {
      opacity: 0.9;
    }
    footer {
      margin-top: 0;
      padding: 24px 0 12px;
      color: var(--muted);
      text-align: center;
      border-top: 1px solid var(--border);
    }
    @media (max-width: 900px) {
      .grid,
      .category-grid {
        grid-template-columns: 1fr;
      }
      .carousel-item { flex-direction: column; align-items: stretch; }
      .carousel-media { display:block; flex:0 0 auto; max-width:100%; height:220px; }
      .carousel-content { flex:1 1 100%; padding-top:12px; }
      .hero {
        padding: 36px 24px;
      }
      .newsletter-form {
        flex-direction: column;
        align-items: stretch;
      }
    }
    @media (max-width: 640px) {
      header {
        flex-direction: column;
        align-items: flex-start;
      }
      nav {
        gap: 12px;
      }
      .auth-buttons {
        gap: 10px;
      }
      .auth-buttons a {
        font-size: 0.9rem;
        padding: 8px 14px;
      }
      .newsletter {
        padding: 32px 20px;
      }
    }
  

/* WordPress theme integration */
.admin-bar .remy-homepage { padding-top: 46px; }
.site-main { display:block; }
.screen-reader-text { position:absolute; left:-9999px; }
.category-card, .card { color: inherit; }
.card a, .category-card a { color: inherit; }
.article-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 26px; }
.article-card { display:flex; flex-direction:column; min-height:100%; background:#fff; border:1px solid var(--border); border-radius:18px; overflow:hidden; box-shadow:0 16px 40px rgba(40,28,20,.06); }
.article-card img { width:100%; height:210px; object-fit:cover; }
.article-card-content { padding:20px; flex:1; display:flex; flex-direction:column; }
.article-card h3 { font-size:1.25rem; margin:0 0 12px; }
.article-card p { color:var(--muted); margin-bottom:20px; }
.article-card .read-more { margin-top:auto; color:var(--accent); font-weight:700; }
.main-menu, .main-menu ul { list-style:none; margin:0; padding:0; display:flex; gap:12px; align-items:center; }
.main-menu a { display:inline-flex; padding:10px 18px; border-radius:999px; background:white; color:var(--text); font-weight:700; box-shadow:0 8px 24px rgba(42,35,30,.06); }
.main-menu a:hover { color:var(--accent); }
.search-form { position:relative; }
.search-form input[type="search"] { width:220px; padding:13px 18px; border-radius:999px; border:1px solid var(--border); font:inherit; background:white; }
.search-results { position:absolute; top:calc(100% + 8px); right:0; width:320px; background:#fff; border:1px solid var(--border); border-radius:12px; box-shadow:0 20px 50px rgba(0,0,0,.12); z-index:20; overflow:hidden; }
.search-results .result, .search-empty { display:block; padding:12px 14px; color:var(--text); border-bottom:1px solid var(--border); }
.hero h1 { max-width: 560px; }
.hero .intro { max-width: 560px; }
@media(max-width:900px){ .article-grid{grid-template-columns:1fr;} header > div { width:100%; flex-wrap:wrap; } .search-form input[type="search"]{ width:100%; } }


/* === Fixes: carousel blijft even groot + geen onderstreping + artikeltekst normaal === */
.featured-carousel {
  height: 420px;
  min-height: 420px;
  max-height: 420px;
}
.carousel-item,
.carousel-item:visited,
.carousel-item:hover,
.carousel-item:focus {
  color: #fff;
  text-decoration: none;
}
.carousel-item.active {
  position: absolute;
}
.carousel-content {
  min-width: 0;
  overflow: hidden;
}
.carousel-item h3,
.carousel-item h3 a,
.carousel-item a,
.carousel-content h3,
.carousel-content p {
  text-decoration: none !important;
}
.carousel-content h3 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 5.3em;
}
.carousel-content p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 8.5em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.carousel-media {
  height: 210px;
  align-self: center;
}

.single .entry-meta,
.single .entry-meta p {
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.single .entry-content,
.page .entry-content {
  max-width: 820px;
  color: var(--text);
  line-height: 1.85;
  font-size: 1.05rem;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.single .entry-content p,
.page .entry-content p,
.single .entry-content li,
.page .entry-content li {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.85;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
}
.single .entry-content h2,
.single .entry-content h3,
.page .entry-content h2,
.page .entry-content h3 {
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 2rem;
}
.single .entry-content a,
.page .entry-content a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .featured-carousel { height: 560px; max-height: 560px; }
  .carousel-media { height: 220px; }
}


/* === Polish fix: geen paarse/onderstreepte links + nette categorie-badges + normale tekst in carousel === */
.brand a,
.brand a:visited,
.brand a:hover,
.brand a:focus {
  color: var(--text) !important;
  text-decoration: none !important;
}

.carousel-item,
.carousel-item:visited,
.carousel-item:hover,
.carousel-item:focus,
.carousel-item h3,
.carousel-item h3 a,
.carousel-content h3,
.carousel-content h3 a {
  color: #fff !important;
  text-decoration: none !important;
}

.carousel-content p {
  letter-spacing: normal !important;
  text-transform: none !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.carousel-content h3 {
  letter-spacing: -0.03em !important;
  text-transform: none !important;
}

.entry-meta a,
.single .entry-meta a,
.post-categories a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  margin: 0 0.15rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border: 1px solid var(--border);
  text-decoration: none !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single .entry-meta,
.single .entry-meta p {
  text-decoration: none !important;
}

.single .entry-content a,
.page .entry-content a {
  color: var(--accent);
  text-decoration: none !important;
  font-weight: 700;
}

.single .entry-content a:hover,
.page .entry-content a:hover,
.entry-meta a:hover,
.post-categories a:hover {
  filter: brightness(0.92);
}

/* === Category/archive card polish: zelfde gedrag als homepage === */
.article-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(40, 28, 20, 0.14);
  border-color: rgba(93, 64, 55, 0.25);
}

.article-card a,
.article-card a:visited,
.article-card a:hover,
.article-card a:focus,
.article-card h3 a,
.article-card h3 a:visited,
.article-card h3 a:hover,
.article-card h3 a:focus {
  color: var(--text) !important;
  text-decoration: none !important;
}

.article-card h3 a:hover {
  color: var(--accent) !important;
}

.article-card .read-more,
.article-card .read-more:visited,
.article-card .read-more:hover,
.article-card .read-more:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(93, 64, 55, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.article-card .read-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(93, 64, 55, 0.24);
  background: #4c332c;
}

.article-card-content {
  min-height: 320px;
}

.article-card-content p {
  line-height: 1.55;
}

/* Paars/blauw standaard WordPress-linkgedrag op archiefpagina’s neutraliseren */
.archive a,
.category a,
.search a,
.blog a {
  text-decoration-thickness: 0;
}

/* === Final polish: carousel titels stabiel + cards bewegen alleen omhoog === */
.featured-carousel {
  height: 420px !important;
  min-height: 420px !important;
  max-height: 420px !important;
  overflow: hidden !important;
}

.featured-carousel:hover .carousel-item.active,
.carousel-item.active,
.carousel-item.active:hover,
.carousel-item:hover {
  transform: translateX(0) scale(1) !important;
}

.carousel-item {
  padding: 26px 34px !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.carousel-media {
  flex: 0 0 58% !important;
  max-width: 58% !important;
  height: 220px !important;
  align-self: center !important;
}

.carousel-content {
  flex: 1 1 42% !important;
  min-width: 0 !important;
  max-width: 42% !important;
  overflow: visible !important;
  justify-content: center !important;
}

.carousel-content h3,
.carousel-item h3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  max-height: none !important;
  margin: 0 0 16px !important;
  font-size: clamp(1.35rem, 2vw, 2rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
  color: #fff !important;
}

.carousel-content p {
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  max-height: none !important;
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
}

.carousel-item,
.carousel-item *,
.carousel-item:visited,
.carousel-item:hover,
.carousel-item:focus {
  text-decoration: none !important;
}

.article-card {
  height: auto !important;
  min-height: 0 !important;
  will-change: transform;
  transform-origin: center center;
}

.article-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 26px 56px rgba(40, 28, 20, 0.14) !important;
}

.article-card-content {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.article-card-content p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .read-more:hover {
  transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
  .featured-carousel {
    height: 560px !important;
    min-height: 560px !important;
    max-height: 560px !important;
  }
  .carousel-item {
    flex-direction: column !important;
    padding: 28px 24px !important;
  }
  .carousel-media,
  .carousel-content {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .carousel-media { height: 230px !important; }
}

/* === Search page fix === */
.search-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.archive-hero,
.search-hero {
  margin: 34px 0 28px;
  padding: 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 20px 60px rgba(40, 28, 20, 0.06);
}
.archive-hero h1,
.search-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-transform: none;
}
.archive-description {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.no-results-card {
  max-width: 760px;
  margin: 34px auto;
  padding: 42px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(40, 28, 20, 0.08);
}
.no-results-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: none;
}
.no-results-card p {
  color: var(--muted);
  line-height: 1.65;
}
.no-results-search {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.no-results-search input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
}
.no-results-search button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.pagination-wrap {
  margin-top: 34px;
}
.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  margin-right: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text) !important;
  text-decoration: none !important;
  font-weight: 800;
}
.pagination-wrap .current {
  background: var(--accent);
  color: #fff !important;
}
.article-thumb-placeholder {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Remy requested polish: full featured titles, no ugly underlines, controlled hover, fixed search/archive cards */
.brand a,
.brand a:visited,
.carousel-item,
.carousel-item:visited,
.carousel-item:hover,
.carousel-content h3,
.carousel-content h3 a,
.article-card a,
.article-card a:visited,
.article-card a:hover,
.category-card,
.category-card:visited,
.category-card:hover {
  text-decoration: none !important;
}

.featured-carousel .carousel-item.active,
.featured-carousel .carousel-item.active:hover {
  height: 100% !important;
  max-height: 100% !important;
}

.featured-carousel:hover .carousel-item.active,
.featured-carousel:focus-within .carousel-item.active {
  transform: translateY(-8px) !important;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14) !important;
}

.carousel-content h3,
.featured-content h3 {
  display: block !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  text-transform: none !important;
  letter-spacing: -0.04em !important;
  font-size: clamp(1.35rem, 2vw, 2rem) !important;
  line-height: 1.03 !important;
  max-height: none !important;
}

.carousel-content p,
.featured-content p {
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.article-card {
  height: auto !important;
  min-height: 560px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.article-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12) !important;
}

.article-card-content h3 a {
  color: var(--text) !important;
}

.read-more,
.no-results-search button,
.search-submit {
  text-decoration: none !important;
}

.search-section .article-card,
.archive-section .article-card {
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .featured-carousel:hover .carousel-item.active,
  .featured-carousel:focus-within .carousel-item.active {
    transform: translateY(-4px) !important;
  }
  .carousel-content h3,
  .featured-content h3 {
    font-size: clamp(1.2rem, 6vw, 1.75rem) !important;
  }
}

/* === v11 responsive + search polish === */
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-form .search-field {
  width: min(280px, 100%);
}
.search-form .search-submit {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .container {
    max-width: calc(100% - 28px) !important;
    margin: 16px auto !important;
    padding: 24px 18px 34px !important;
    overflow: hidden !important;
  }
  header {
    padding: 18px 0 22px !important;
    gap: 16px !important;
  }
  header > div,
  header nav,
  .main-menu {
    width: 100%;
  }
  .brand {
    font-size: clamp(1.15rem, 5vw, 1.8rem) !important;
    letter-spacing: .18em !important;
    overflow-wrap: anywhere;
  }
  .hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    padding: 28px 18px !important;
    min-height: auto !important;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 4rem) !important;
    line-height: .95 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }
  .hero p {
    font-size: .92rem !important;
    letter-spacing: .28em !important;
    overflow-wrap: anywhere;
  }
  .hero .intro {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    max-width: 100% !important;
  }
  .featured-carousel {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .carousel-item,
  .carousel-item.active {
    position: relative !important;
    display: none !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 22px !important;
    transform: none !important;
  }
  .carousel-item.active {
    display: flex !important;
  }
  .carousel-media {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }
  .carousel-media img {
    width: 100% !important;
    height: auto !important;
    max-height: 260px !important;
    object-fit: cover !important;
  }
  .carousel-content {
    width: 100% !important;
    padding: 0 !important;
  }
  .carousel-content h3 {
    font-size: clamp(1.7rem, 9vw, 2.5rem) !important;
    line-height: 1 !important;
  }
  .carousel-content p {
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }
  .featured-carousel:hover .carousel-item.active,
  .featured-carousel:focus-within .carousel-item.active {
    transform: none !important;
    box-shadow: none !important;
  }
  .category-grid,
  .article-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .article-card {
    min-height: auto !important;
  }
  .article-card:hover {
    transform: translateY(-4px) !important;
  }
  .search-form {
    width: 100%;
  }
  .search-form .search-field {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  body {
    background-size: 16px 16px, auto !important;
  }
  .remy-homepage {
    padding: 10px 8px 24px !important;
  }
  header {
    align-items: flex-start !important;
  }
  header > div[style] {
    justify-content: flex-start !important;
  }
  .main-menu {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 0 !important;
  }
  .main-menu li { list-style: none !important; }
  .main-menu a,
  .auth-buttons a,
  .search-submit {
    padding: 10px 14px !important;
    font-size: .95rem !important;
  }
  .auth-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .hero {
    padding: 22px 14px !important;
    border-radius: 18px !important;
  }
  .hero h1 {
    font-size: clamp(2rem, 15vw, 3.4rem) !important;
  }
  .featured-carousel {
    border-radius: 18px !important;
  }
  .carousel-item,
  .carousel-item.active {
    padding: 18px !important;
    border-radius: 18px !important;
  }
  .featured-badge {
    align-self: flex-start !important;
  }
  .carousel-nav {
    display: none !important;
  }
  .section-title,
  .eyebrow {
    letter-spacing: .28em !important;
    font-size: .85rem !important;
  }
  .single-content,
  .entry-content,
  .article-content {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
  }
  .single-content p,
  .entry-content p,
  .article-content p {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
  }
  .single-content img,
  .entry-content img,
  .article-content img {
    max-width: 100% !important;
    height: auto !important;
  }
}
