/* Important CSS for template-guide-detail */
.section-guide-detail {
  background-color: var(--color-10);
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-2xl);
  overflow-x: hidden;
}

@media (max-width: 992px) {
  .section-guide-detail {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Guide Detail Container (Standard 880px Centered Column) */
.guide-detail-content {
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* Category Badge Pill */
.badge-category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-7);
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--color-7);
  font-family: var(--font-family-1);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  padding: 6px 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  cursor: pointer;
}

.badge-category-pill:hover {
  background-color: var(--color-7);
  color: var(--color-6);
  border-color: var(--color-7);
}

/* Category Row & Meta Row & Article Horizontal Divider */
.guide-divider {
  border: 0;
  border-top: 1px solid rgba(var(--color-1-rgb), 0.1);
  opacity: 1;
  margin-top: 0;
  margin-bottom: var(--sp-base);
}


/* ==========================================================================
   2. REUSABLE BLOG RICH TEXT TYPOGRAPHY (CMS Element Selectors)
   ========================================================================== */

/* Headings 1 */
.guide-detail-content h1 {
  font-family: var(--font-family-1);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-1);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: var(--sp-base);
}

/* Headings 2 */
.guide-detail-content h2 {
  font-family: var(--font-family-1);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-1);
  text-transform: uppercase;
  margin-top: 48px;
  margin-bottom: 20px;
}

.guide-detail-content h2:first-child {
  margin-top: 0;
}

/* Headings 3 */
.guide-detail-content h3 {
  font-family: var(--font-family-1);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--color-1);
  text-transform: uppercase;
  margin-top: 36px;
  margin-bottom: 16px;
}

/* Paragraphs */
.guide-detail-content p {
  font-family: var(--font-family-2);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-3);
  margin-top: 0;
  margin-bottom: 24px;
}

.guide-detail-content p:last-child {
  margin-bottom: 0;
}

/* Bold & Strong Text */
.guide-detail-content strong,
.guide-detail-content b {
  font-weight: var(--fw-bold);
  color: var(--color-1);
}

/* Links */
.guide-detail-content a {
  color: var(--color-7);
  text-decoration: underline;
  transition: color 150ms ease;
}

.guide-detail-content a:hover {
  color: var(--color-8);
}

/* Figures & Body Images (CSS Viewport Breakout up to 1296px) */
.guide-detail-content figure,
.guide-detail-content > img {
  width: 100vw;
  max-width: min(calc(100vw - 40px), 1296px);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 40px;
  margin-bottom: 32px;
}

.guide-detail-content figure img,
.guide-detail-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg, 16px);
  object-fit: cover;
  display: block;
}

/* Image Captions (Centered to 880px Reading Column) */
.guide-detail-content figcaption {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-family-2);
  font-size: var(--fs-small);
  color: var(--color-4);
  margin-top: 10px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(var(--color-1-rgb), 0.1);
  padding-bottom: 16px;
}

/* Data Tables & Table Responsive */
.guide-detail-content table,
.guide-detail-content .table-responsive {
  width: 100%;
  max-width: 100%;
  margin: 32px 0;
}

.guide-detail-content table {
  border-collapse: collapse;
}

.guide-detail-content th {
  font-family: var(--font-family-1);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--color-1);
  padding: 16px 24px;
  text-align: left;
  border-bottom: 2px solid var(--color-1);
}

.guide-detail-content td {
  font-family: var(--font-family-2);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--color-3);
  padding: 14px 24px;
  border-bottom: 1px solid rgba(var(--color-1-rgb), 0.08);
}

.guide-detail-content tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Unordered & Ordered Lists */
.guide-detail-content ul,
.guide-detail-content ol {
  padding-left: 24px;
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--color-3);
}

.guide-detail-content ul {
  list-style-type: disc;
}

.guide-detail-content ol {
  list-style-type: decimal;
}

.guide-detail-content li {
  margin-bottom: 8px;
  font-family: var(--font-family-2);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--color-3);
}

.guide-detail-content li:last-child {
  margin-bottom: 0;
}

/* Blockquotes */
.guide-detail-content blockquote {
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 20px 24px;
  border-left: 4px solid var(--color-7);
  background-color: rgba(var(--color-7-rgb), 0.04);
  font-family: var(--font-family-2);
  font-style: italic;
  color: var(--color-2);
}


/* ==========================================================================
   3. BLOCK TEMPLATES & CUSTOM COMPONENTS
   ========================================================================== */

/* Block Template Wrapper (Fits naturally inside 880px container) */
.block-template {
  width: 100%;
  margin-top: 48px;
  margin-bottom: 48px;
}

/* Block Template 1: Material Comparison Table (.block-material-comparison) */
.block-material-comparison .table-responsive {
  width: 100%;
  max-width: 100%;
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Block Template 2: Stitching Styles Grid (.block-stitching-styles) */
.block-stitching-styles .stitching-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
}

.block-stitching-styles .stitching-card {
  background-color: var(--color-6);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(var(--color-1-rgb), 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.block-stitching-styles .stitching-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 12px;
  display: block;
}

.block-stitching-styles .stitching-card-title {
  font-family: var(--font-family-1);
  font-size: var(--fs-h6);
  font-weight: var(--fw-bold);
  color: var(--color-1);
  margin-bottom: 4px;
  margin-top: 0;
  text-transform: uppercase;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.block-stitching-styles .stitching-card-desc {
  font-family: var(--font-family-2);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  line-height: 1.4;
  color: var(--color-4);
  margin: 0;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 992px) {
  .block-stitching-styles .stitching-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 490px) {
  .block-stitching-styles .stitching-grid {
    grid-template-columns: 1fr;
  }
}

/* Block Template 3: Before You Order Checklist (.block-checklist) */
.block-checklist .checklist-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.block-checklist .checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.block-checklist .checklist-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-checklist .checklist-text {
  font-family: var(--font-family-2);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-normal);
  color: var(--color-2);
}

/* ==========================================================================
   4. SECTION 2: RELATED GUIDES & ARTICLES (Redesigned 2-Card Asymmetrical Grid)
   ========================================================================== */

.section-guide-related {
  background-color: var(--color-10); /* #FFFBF5 - Light Cream */
}

/* Section Header Row */
.guide-related-header {
  margin-bottom: var(--sp-base, 32px);
}

.guide-related-see-more {
  transition: transform var(--transition-fast, 0.2s ease), opacity var(--transition-fast, 0.2s ease);
}

.guide-related-see-more:hover {
  opacity: 0.8;
  transform: translateX(4px);
}

.guide-related-see-more-icon {
  transition: transform var(--transition-fast, 0.2s ease);
}

/* Asymmetrical Cards Grid Layout */
.guide-related-grid {
  /* Layout handled by Bootstrap grid: col-12 col-md-6 col-lg-7 & col-lg-5 */
}

/* Card Item Component (.guide-related-card) */
.guide-related-card {
  height: 480px;
  background-color: var(--color-2); /* #1F1F1F */
  border-radius: var(--radius-lg); /* 16px */
  isolation: isolate;
}

/* Card Thumbnail Image */
.guide-related-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg); /* 16px */
  z-index: var(--z-base);
  transition: transform 0.4s ease;
}

.guide-related-card:hover .guide-related-card-img {
  transform: scale(1.04);
}

/* Gradient Overlay Layer for White Text Legibility */
.guide-related-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0) 20%, rgba(8, 8, 8, 0.88) 100%);
  pointer-events: none;
  z-index: var(--z-content);
  border-radius: var(--radius-lg);
}

/* Card Inner Content Body */
.guide-related-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 32px 28px;
  gap: 12px;
}

/* Category Badge Pill inside Related Card */
.guide-related-card .badge-category-pill {
  color: var(--color-6) !important; /* #FFFFFF */
  border-color: rgba(255, 255, 255, 0.4) !important;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-pill); /* 9999px */
  padding: 6px 16px;
  line-height: 1;
}

/* Card Title */
.guide-related-card-title {
  margin-top: 4px;
  margin-bottom: 4px;
}

.guide-related-card-title a {
  transition: opacity 0.2s ease;
}

.guide-related-card:hover .guide-related-card-title a {
  opacity: 0.9;
}

/* Short Description / Excerpt */
.guide-related-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin-bottom: 16px;
}

/* Circular Action Arrow Button */
.guide-related-btn-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--color-6);
  align-self: flex-start;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.guide-related-card:hover .guide-related-btn-arrow {
  background-color: var(--color-7); /* #AD1A24 */
  border-color: var(--color-7);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .section-guide-related {
    padding-top: var(--sp-md) !important;
    padding-bottom: var(--sp-md) !important;
  }

  .guide-related-header {
    margin-bottom: var(--sp-sm); /* 24px */
  }

  .guide-related-card {
    height: 440px;
  }

  .guide-related-card-content {
    padding: 24px 20px;
  }

  .guide-related-card-desc {
    font-size: 14px;
    margin-bottom: 12px;
  }
}

@media (max-width: 490px) {
  .guide-related-card {
    height: 400px;
  }

  .guide-related-card-content {
    padding: 20px 16px;
  }

  .guide-related-card-desc {
    font-size: 13px;
    margin-bottom: 10px;
  }
}

