/* Page wrapper */
.guides-main {
  padding: 2.5rem 8%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hero */
.guide-hero {
  background: linear-gradient(to right, #1b4eff, #66ccff); /* Your brand gradient */
  color: white;
  padding: 4rem 10%;
  text-align: left;
}

.guide-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.guide-hero p {
  font-size: 1.1rem;
}


/* Vertical list */
.manuals-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Row card */
.manual-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: .9rem;
  align-items: start;
  transition: box-shadow .15s ease, transform .15s ease;
}
.manual-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

.manuals-list {
  display: flex;
  flex-direction: column;
  gap: 4rem; /* space between cards */
  position: relative;
}

.manuals-list > .manual-row {
  position: relative;
}

/* separator line between cards */
.manuals-list > .manual-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2rem; /* halfway in the gap */
  height: 1px;
  background: rgba(0,0,0,0.15);
}


/* Thumbnail */
.thumb-wrap {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-color);
}
.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body */
.manual-body { display: flex; flex-direction: column; gap: .5rem; }

.manual-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.manual-title {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0;
}
.manual-title a {
  color: var(--text-color);
  text-decoration: none;
}
.manual-title a:hover { text-decoration: underline; }

.year-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .8rem;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Tags */
.tags {
  list-style: none;
  display: flex;
  gap: .4rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.tags li {
  font-size: .8rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--text-color);
  opacity: .9;
}

/* Summary + meta/actions */
.summary {
  margin: .2rem 0 .4rem;
  font-size: .95rem;
  color: var(--text-color);
  opacity: .9;
  line-height: 1.6;
}

.meta-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
}
.read-time {
  font-size: .9rem;
  opacity: .85;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* Buttons */
.actions {
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.btn-view, .btn-download, .btn-print {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  font-size: .9rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  transition: background .15s ease, transform .05s ease;
}

/* Specific styles */
.btn-view {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--text-color);
}
.btn-download {
  background: color-mix(in oklab, #ff4d4f 18%, transparent);
  color: var(--text-color);
}
.btn-print {
  background: color-mix(in oklab, #6c63ff 18%, transparent); /* violet-ish for print */
  color: var(--text-color);
}
.btn-view:hover, .btn-download:hover, .btn-print:hover {
  transform: translateY(-1px);
}


/* Mobile */
@media (max-width: 760px) {
  .manual-row {
    grid-template-columns: 1fr;
  }
  .thumb-wrap {
    max-height: 220px;
  }
}
