/* Guides section styling. Loads on top of style.css (header/footer/fonts/.container). */

.guides__body {
  background-color: #0a0e16;
  color: #fff;
  margin: 0;
}

/* The site header is absolute (over the hero video); guides have no hero, so
   make it a normal dark bar. */
.guides__header {
  position: static !important;
  background-color: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Listing page ---- */
.guides__hero {
  padding: 56px 0 8px;
}
.guides__hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 10px;
}
.guides__hero p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 720px;
}

.guides__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px 0 80px;
}
.guide__card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.guide__card:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 37, 24, 0.6);
}
.guide__card__media {
  aspect-ratio: 16 / 9;
  background: #11161f;
  overflow: hidden;
}
.guide__card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.guide__card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide__card__body h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
}
.guide__card__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}
.guide__card__meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.guides__empty {
  padding: 60px 0 120px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Single guide ---- */
.guide {
  padding: 40px 0 90px;
}
.guide__back {
  display: inline-block;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
}
.guide__back:hover { color: #fff; }
.guide__crumbs { font-size: 14px; margin-bottom: 16px; color: rgba(255, 255, 255, 0.55); }
.guide__crumbs a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.guide__crumbs a:hover { color: #fff; }
.guide__crumbs span { margin: 0 6px; color: rgba(255, 255, 255, 0.3); }
.guide__wrap {
  max-width: 760px;
  margin: 0 auto;
}
.guide__meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}
.guide__title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 24px;
}
.guide__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 32px;
  display: block;
}

/* Article body typography */
.guide__article { font-size: 18px; line-height: 1.75; color: rgba(255, 255, 255, 0.9); }
.guide__article h1, .guide__article h2, .guide__article h3, .guide__article h4 {
  color: #fff; line-height: 1.25; margin: 1.8em 0 0.6em; font-weight: 700;
}
.guide__article h2 { font-size: 28px; }
.guide__article h3 { font-size: 22px; }
.guide__article h4 { font-size: 19px; }
.guide__article p { margin: 0 0 1.2em; }
.guide__article a { color: #ff6a5e; text-decoration: underline; }
.guide__article ul, .guide__article ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.guide__article li { margin: 0.4em 0; }
.guide__article blockquote {
  margin: 1.5em 0; padding: 8px 20px; border-left: 3px solid #EB2518;
  color: rgba(255, 255, 255, 0.75); font-style: italic;
}
.guide__article code {
  background: rgba(255, 255, 255, 0.1); padding: 2px 6px; border-radius: 5px;
  font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.guide__figure { margin: 1.8em 0; }
.guide__figure img { width: 100%; height: auto; border-radius: 12px; display: block; }
.guide__figure figcaption {
  font-size: 14px; color: rgba(255, 255, 255, 0.5); text-align: center; margin-top: 8px;
}

.guides__footer { padding: 24px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.guides__footer .outer__footer { display: flex; justify-content: center; padding-top: 24px; }
.guides__footer p { margin: 0; color: rgba(255, 255, 255, 0.6); font-size: 15px; }

@media (max-width: 991px) {
  .guides__grid { grid-template-columns: repeat(2, 1fr); }
  .guides__hero h1 { font-size: 34px; }
  .guide__title { font-size: 30px; }
  .guide__article { font-size: 17px; }
}
@media (max-width: 600px) {
  .guides__grid { grid-template-columns: 1fr; }
}
