/* =========================================================
   GUIDES LIST PAGE (cards + search + accordions)
   Safe: uses prefixed classes to avoid conflicts
   ========================================================= */

.guides-page {
  padding-bottom: 2rem;
}

/* Accessible skip link */
.guides-skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 9999;
  background: #fff;
  color: #232323;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #d3d4d6;
  box-shadow: 0 6px 24px rgba(50, 50, 50, 0.12);
  text-decoration: none;
  font-weight: 700;
}
.guides-skip-link:focus {
  left: 10px;
  outline: 2px solid rgba(162, 7, 7, 0.45);
  outline-offset: 3px;
}

/* Breadcrumbs (if you remove details_unified.css, you still get nice crumbs) */
.breadcrumb-nav {
  margin: 0.4rem 0 1.1rem;
  font-size: 1.03rem;
  background: none;
  padding: 0;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb li {
  color: #7a6a6a;
  font-weight: 650;
  display: flex;
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 0.54em;
  color: #d8be8d;
  font-weight: 900;
}
.breadcrumb a {
  color: #a20707;
  text-decoration: none;
  font-weight: 750;
}
.breadcrumb a:hover,
.breadcrumb a:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* HERO */
.guides-hero {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 247, 249, 0.92) 100%);
  border-radius: 18px;
  border: 1.5px solid #d3d4d6;
  box-shadow: 0 10px 34px rgba(50, 50, 50, 0.10);
  padding: clamp(16px, 2.2vw, 26px);
  margin-bottom: 1.3rem;
}

.guides-hero__text h1 {
  margin-bottom: 0.35rem;
}
.guides-hero__subtitle {
  margin: 0;
  color: #57595b;
  font-size: 1.06rem;
  line-height: 1.55;
  max-width: 70ch;
}

.guides-hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.2rem;
}

.guides-hero__cta {
  width: fit-content;
  max-width: 100%;
}

.guides-search {
  position: relative;
  width: 100%;
}
.guides-search__input {
  width: 100%;
  padding: 0.85rem 2.55rem 0.85rem 1rem;
  border-radius: 14px;
  border: 1.5px solid #d3d4d6;
  background: rgba(255, 255, 255, 0.9);
  color: #26292c;
  font-weight: 650;
  box-shadow: 0 2px 10px rgba(30, 30, 30, 0.06);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.guides-search__input:focus {
  border-color: rgba(162, 7, 7, 0.55);
  box-shadow: 0 0 0 4px rgba(162, 7, 7, 0.12);
}
.guides-search__clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #e2e2e2;
  background: #f6f7f9;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: #232323;
  transition: background 0.14s, transform 0.14s;
}
.guides-search__clear:hover {
  background: #ebedef;
  transform: translateY(-50%) scale(1.04);
}

.guides-results {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  color: #57595b;
  font-weight: 600;
}

/* Featured strip */
.guides-featured {
  margin-top: 1.1rem;
  border-radius: 16px;
  border: 1.5px solid #ffe082;
  background: linear-gradient(90deg, #fffbe2, #f7faff);
  box-shadow: 0 8px 22px rgba(50, 50, 50, 0.08);
  padding: 1rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
}
.guides-featured__badge {
  background: #a20707;
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.guides-featured__title {
  font-weight: 900;
  color: #232323;
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}
.guides-featured__desc {
  color: #57595b;
  line-height: 1.5;
}
.guides-featured__actions {
  display: flex;
  justify-content: flex-end;
}

/* SECTION */
.guides-section {
  background: rgba(255, 255, 255, 0.70);
  border-radius: 18px;
  border: 1.5px solid #d3d4d6;
  box-shadow: 0 8px 26px rgba(50, 50, 50, 0.08);
  padding: clamp(14px, 2vw, 22px);
  margin: 1.2rem 0;
}

.guides-section__header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
}
.guides-section__header h2 {
  margin: 0;
}
.guides-section__sub {
  margin: 0;
  color: #57595b;
  line-height: 1.55;
  max-width: 75ch;
}

/* GRID (cards) */
.guides-grid {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.guide-card {
  background: #f6f7f9;
  border: 1.5px solid #d3d4d6;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(30, 30, 30, 0.06);
  transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.guide-card:hover,
.guide-card:focus-within {
  border-color: rgba(162, 7, 7, 0.35);
  box-shadow: 0 12px 28px rgba(30, 30, 30, 0.12);
  transform: translateY(-4px);
}

.guide-card__inner {
  padding: 1rem 1rem 0.95rem;
  display: flex;
  flex-direction: column;
  min-height: 190px;
}

.guide-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guide-card__badge {
  width: fit-content;
  background: linear-gradient(90deg, #ffe680 0%, #ffd700 45%, #fff3b0 100%);
  color: #7a5b08;
  font-weight: 900;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.86rem;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.guide-card__title {
  color: #232323;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.22;
  font-size: 1.06rem;
}
.guide-card__title:hover,
.guide-card__title:focus {
  color: #a20707;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-card__desc {
  margin: 0.7rem 0 0;
  color: #57595b;
  line-height: 1.6;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
}

.guide-card__footer {
  margin-top: auto;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
}

/* Buttons on cards */
.guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 12px;
  padding: 0.6rem 0.95rem;
  border: 1.3px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.12s, box-shadow 0.14s, background 0.14s, border-color 0.14s;
}
.guide-btn:focus-visible {
  outline: 2px solid rgba(162, 7, 7, 0.45);
  outline-offset: 3px;
}

.guide-btn--primary {
  background: linear-gradient(90deg, #a20707 0%, #c02c2c 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(162, 7, 7, 0.18);
}
.guide-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(162, 7, 7, 0.24);
}

.guide-btn--ghost {
  background: #ebedef;
  border-color: #d3d4d6;
  color: #232323;
}
.guide-btn--ghost:hover {
  transform: translateY(-1px);
  background: #e2e2e2;
}

/* Empty state */
.guides-empty {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1.5px solid #f5e7b5;
  background: #fcf7e7;
  color: #a20707;
  font-weight: 750;
  box-shadow: 0 6px 18px rgba(50, 50, 50, 0.08);
}
.guides-empty--hidden {
  display: none;
}

/* Accordions */
.guides-accordions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guides-accordion {
  background: #f6f7f9;
  border: 1.5px solid #d3d4d6;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(30, 30, 30, 0.06);
  overflow: hidden;
}

.guides-accordion > summary {
  cursor: pointer;
  padding: 0.95rem 1rem;
  font-weight: 900;
  color: #232323;
  list-style: none;
}
.guides-accordion > summary::-webkit-details-marker {
  display: none;
}
.guides-accordion > summary::after {
  content: "▾";
  float: right;
  color: #a20707;
  font-weight: 900;
  transition: transform 0.14s ease;
}
.guides-accordion[open] > summary::after {
  transform: rotate(180deg);
}

.guides-accordion__content {
  padding: 0.1rem 1rem 1rem;
  color: #26292c;
}
.guides-accordion__content p {
  color: #57595b;
  line-height: 1.7;
  margin: 0.6rem 0;
}
.guides-muted {
  color: #57595b;
}

.guides-bullets {
  margin: 0.6rem 0 0.4rem 1.1rem;
  color: #26292c;
}
.guides-bullets li {
  margin: 0.28rem 0;
  line-height: 1.55;
}

.guides-steps {
  margin: 0.7rem 0 0.4rem 1.1rem;
}
.guides-steps li {
  margin: 0.35rem 0;
  line-height: 1.6;
}

/* FAQ items inside accordion */
.guides-faq {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.2rem;
}
.guides-faq__item {
  background: #ffffff;
  border: 1px solid #e6e8ea;
  border-radius: 14px;
  padding: 0.1rem 0.8rem;
}
.guides-faq__item summary {
  cursor: pointer;
  font-weight: 850;
  color: #a20707;
  padding: 0.8rem 0.2rem;
}
.guides-faq__item p {
  margin: 0.1rem 0 0.85rem;
  color: #57595b;
}

/* Callout */
.guides-callout {
  margin-top: 1.1rem;
  border-radius: 16px;
  border: 2px solid #ffe082;
  background: linear-gradient(90deg, #fffbe2, #f7faff);
  padding: 1rem 1rem;
  box-shadow: 0 10px 26px rgba(50, 50, 50, 0.08);
}
.guides-callout__title {
  font-weight: 950;
  color: #232323;
  margin-bottom: 0.25rem;
}
.guides-callout__text {
  color: #57595b;
  line-height: 1.6;
}

/* Bottom CTA */
.guides-bottom-cta {
  background: rgba(255, 255, 255, 0.70);
  border-radius: 18px;
  border: 1.5px solid #d3d4d6;
  box-shadow: 0 8px 26px rgba(50, 50, 50, 0.08);
  padding: clamp(14px, 2vw, 22px);
  margin: 1.2rem 0 2rem;
}
.guides-bottom-cta__inner {
  text-align: center;
}
.guides-bottom-cta__inner h2 {
  margin-bottom: 0.4rem;
}
.guides-bottom-cta__inner p {
  margin: 0 auto 1rem;
  max-width: 68ch;
  color: #57595b;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .guides-hero__actions {
    grid-template-columns: 1fr;
  }

  .guides-hero__cta {
    width: 100%;
    justify-content: center;
  }

  .guides-featured {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .guides-featured__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .breadcrumb-nav {
    font-size: 0.99rem;
  }
  .breadcrumb li:not(:last-child)::after {
    margin: 0 0.32em;
  }

  .guide-card__inner {
    min-height: 0;
  }
}
