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


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

/* shortened divider rules preserved further down */

/* kept body formatting at top (Inter font chosen) */
body {
  margin: 0;
  padding: 0;
  background: var(--light-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;
  text-align: left;
}

.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: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}


/* Responsive: single column on narrow screens */
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
    position: static;
  }
}

/* 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: 1200px;
  line-height: 1.6;
  background: transparent;
}

main img {
  max-width: 100%;
}

/* 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; 
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.card-item {
  margin: 0;
  flex: 0 0 300px;
}

.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;
}