/* Paletă retro */
:root {
  --bg: #DDE2C6;
  --paper: #FFFAF2;
  --text: #1A4F63;
  --accent: #E38B75;
  --accent-light: #F2D27A;
  --blue-soft: #7DB7C8;
}


.title {
  margin-top: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 42px;
}

/* shortened divider rules preserved further down */

/* kept body formatting at top (Inter font chosen) */
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* PAGE ARTICLE */

.post-card {
  position: relative;
  background: var(--paper);
  padding: 40px 20px;
  text-align: center;
  border-radius: 6px;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  margin: 0;
}

.post-content {
  margin-top: 40px;
  background: var(--paper);
  padding: 25px 30px;
  border-radius: 6px;
}

.post-content img {
  max-width: 100%;
  border-radius: 4px;
  margin: 25px 0;
}

.back {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
}

/* Footer styles not in use by template; removed (styles were here previously) */

/* Removed duplicate body override (kept Inter font and color variables on top). */

/* New layout wrapper: left sidebar, main content, right ads */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 28px;
  align-items: start;
}

.ads {
  position: sticky;
  top: 20px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border-radius: 8px;
  border: 1px solid rgba(30, 80, 90, 0.06);
  box-shadow: 0 6px 18px rgba(26,79,99,0.06);
}

.ads .banner {
  display: block;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #e9e3d8;
}

/* Responsive: single column on narrow screens */
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 100%;
    position: static;
  }
  .ads {
    position: static;
    margin-top: 12px;
  }
}

      /* Lateral menu – carnet style */
      .sidebar {
        width: 260px;
        min-height: 100vh;
        background: #f3e9d6;
        border-right: 3px solid #d8c7a2;
        padding: 20px;
        padding-top: 5px;
        box-sizing: border-box;
        position: sticky;
        top: 0;
      }
      /* Removed unused .sidebar h1 rule — no h1 in sidebar on current templates. */
      .sidebar .stamp-logo {
        width: 200px;
        margin: 10px 0;
        opacity: 0.85;
      }
      .sidebar nav a {
        display: block;
        margin: 8px 0;
        padding: 6px 4px;
        text-decoration: none;
        color: #444;
        border-left: 3px solid transparent;
        transition: 0.2s;
        font-size: 15px;
      }
      .sidebar nav a:hover {
        border-left: 3px solid #7bb7b3;
        color: #2e5d5a;
      }

      /* Main content */
      main {
        padding: 40px;
        max-width: 820px;
        line-height: 1.6;
        background: transparent;
      }
      main img {
        max-width: 100%;
        border-radius: 6px;
        margin: 15px 0;
      }

      /* Retro header */
      .hero {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 10px;
        border: 2px solid rgba(30,80,90,0.06);
        box-shadow: 0 8px 32px rgba(26,79,99,0.08);
        height: 400px; /* match hero image height */
        object-fit: cover;
        display: block;
      }

.hero-wrap {
  margin-bottom: 8px;
}

.articles-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.articles-list li {
  margin: 10px 0;
}
.articles-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  display: inline-block;
  padding: 6px 8px;
  border-radius: 6px;
}
.articles-list a:hover {
  background: rgba(30,80,90,0.05);
}

/* Cards layout for index */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.card-item {
  margin: 0;
}
.card-link {
  color: inherit;
  text-decoration: none;
}
.card {
  background: var(--paper);
  border-radius: 8px;
  border: 2px solid rgba(30,80,90,0.06);
  box-shadow: 0 6px 12px rgba(26,79,99,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.card-title {
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text);
  font-family: 'Playfair Display', serif;
}

      /* Hand-drawn divider */
      .divider {
        border: none;
        border-top: 2px dashed #c4b8a5;
        margin: 20px 0;
      }
