/* ==========================================================================
   Article Detail & Editorial Blog Stylesheet
   Scarlet Infra Brand Colors & Architecture Styling
   File: assets/css/article-detail.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,500&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* Keep header navigation always visible */
.nav {
  visibility: visible !important;
}

:root {
  --art-bg: #ffffff;
  --art-bg-soft: #f8fafb;
  --art-bg-darker: #f0f4f7;
  --art-title: #0e1418;
  --art-heading: #141a1f;
  --art-lead: #0e1418;
  --art-body: #3c454d;
  --art-muted: #6e7982;
  --art-border: #e2e7ec;
  --art-border-hover: rgba(211, 54, 59, 0.35);
  --art-accent: #d3363b;
  --art-accent-hover: #b82b30;
  --art-accent-soft: rgba(211, 54, 59, 0.08);
  --art-accent-border: rgba(211, 54, 59, 0.2);
  --art-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --art-serif: 'Playfair Display', "Times New Roman", Georgia, serif;
}

/* ==========================================================================
   Base Container (Pure White Background)
   ========================================================================== */
.article-page-wrap {
  background-color: #ffffff !important;
  font-family: var(--art-sans);
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

/* ==========================================================================
   Hero Section with Seamless White Bottom Fade
   ========================================================================== */
.article-hero {
  position: relative;
  width: 100%;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #ffffff;
  overflow: hidden;
}

.article-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.article-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.article-hero-vignette-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 240px;
  background: linear-gradient(180deg, rgba(14, 20, 24, 0.85) 0%, rgba(14, 20, 24, 0.45) 45%, rgba(14, 20, 24, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.article-hero-gradient-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 65%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.25) 30%,
      rgba(255, 255, 255, 0.72) 62%,
      rgba(255, 255, 255, 0.95) 86%,
      #ffffff 100%);
  pointer-events: none;
  z-index: 2;
}

.article-hero-ambient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 90%, rgba(255, 255, 255, 0.85) 0%, transparent 60%);
  pointer-events: none;
  z-index: 3;
}

.article-hero-container {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0 32px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--art-border);
}

.article-hero-title {
  font-family: var(--art-serif);
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--art-title);
  margin: 0;
  max-width: 1050px;
  visibility: visible;
}

/* ==========================================================================
   Article Content Layout
   ========================================================================== */
.article-content-section {
  background-color: #ffffff;
  width: 100%;
  padding: 40px 0 110px;
  position: relative;
  z-index: 5;
}

.article-grid-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Section Spacing Separator */
.article-section-block {
  margin-bottom: 56px;
  position: relative;
}

/* Subtle Section Divider */
.article-divider {
  width: 100%;
  height: 1px;
  background: var(--art-border);
  margin: 48px 0;
  border: none;
}

/* Typography */
.article-lead {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--art-lead);
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 3px solid var(--art-accent);
  visibility: visible;
}

.article-body-p {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.82;
  color: var(--art-body);
  margin: 0 0 20px;
  visibility: visible;
}

.article-body-p strong {
  color: var(--art-title);
  font-weight: 600;
}

.article-h2 {
  font-family: var(--art-serif);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--art-title);
  margin: 0 0 18px;
  visibility: visible;
}

.article-h3 {
  font-family: var(--art-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--art-heading);
  margin: 28px 0 12px;
}

/* ==========================================================================
   Component 1: Checklist Grid (Factors / Amenities / Considerations)
   ========================================================================== */
.article-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
  margin: 26px 0;
}

.article-checklist-grid.grid-3-col {
  grid-template-columns: repeat(3, 1fr);
}

.checklist-card,
.checklist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--art-bg-soft);
  border: 1px solid var(--art-border);
  border-radius: 12px;
  padding: 14px 18px;
  transition: all 0.25s ease;
}

.checklist-card:hover,
.checklist-item:hover {
  background: #ffffff;
  border-color: var(--art-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(211, 54, 59, 0.08);
}

.checklist-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--art-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(211, 54, 59, 0.28);
}

.checklist-icon svg {
  width: 13px;
  height: 13px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
}

.checklist-text {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--art-title);
  line-height: 1.4;
}

/* ==========================================================================
   Component 2: Advisory Notice / Tip Box
   ========================================================================== */
.article-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(211, 54, 59, 0.035);
  border: 1px solid rgba(211, 54, 59, 0.16);
  border-left: 4px solid var(--art-accent);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 28px 0;
}

.tip-box-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: var(--art-accent);
  margin-top: 2px;
}

.tip-box-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--art-title);
  margin: 0;
  font-weight: 500;
}

/* ==========================================================================
   Component 3: Strategic Questions / Advisory Cards
   ========================================================================== */
.article-qa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0;
}

.qa-card {
  background: var(--art-bg-soft);
  border: 1px solid var(--art-border);
  border-radius: 14px;
  padding: 22px 24px;
  transition: all 0.25s ease;
}

.qa-card:hover {
  background: #ffffff;
  border-color: var(--art-border-hover);
  box-shadow: 0 8px 24px rgba(211, 54, 59, 0.08);
}

.qa-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.qa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 6px;
  background: var(--art-accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(211, 54, 59, 0.25);
}

.qa-question {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--art-title);
  margin: 0;
}

.qa-answer {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--art-body);
  margin: 0;
  padding-left: 38px;
}

/* ==========================================================================
   Component 4: What Should Buyers Check? (5 Pillars Numbered Cards)
   ========================================================================== */
.article-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.pillar-card {
  background: var(--art-bg-soft);
  border: 1px solid var(--art-border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  background: #ffffff;
  border-color: var(--art-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(211, 54, 59, 0.08);
}

.pillar-card-num {
  font-family: var(--art-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--art-accent);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.pillar-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--art-title);
  margin: 0 0 10px;
}

.pillar-card-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--art-body);
  margin: 0;
}

/* ==========================================================================
   Component 5: Location Advantage Cards (3 Micro-markets)
   ========================================================================== */
.article-locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.location-box {
  background: var(--art-bg-soft);
  border: 1px solid var(--art-border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.location-box:hover {
  background: #ffffff;
  border-color: var(--art-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(211, 54, 59, 0.08);
}

.location-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.location-pin-icon {
  width: 20px;
  height: 20px;
  color: var(--art-accent);
}

.location-box-title {
  font-family: var(--art-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--art-title);
  margin: 0;
}

.location-box-text {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--art-body);
  margin: 0;
}

/* ==========================================================================
   Component 6: Step-by-Step 8-Step Verification Grid
   ========================================================================== */
.article-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.step-box {
  background: var(--art-bg-soft);
  border: 1px solid var(--art-border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.step-box:hover {
  background: #ffffff;
  border-color: var(--art-border-hover);
  box-shadow: 0 8px 24px rgba(211, 54, 59, 0.08);
}

.step-num-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--art-accent);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(211, 54, 59, 0.28);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--art-title);
  margin: 0 0 6px;
}

.step-desc {
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--art-body);
  margin: 0;
}

/* ==========================================================================
   Component 7: FAQ Accordion
   ========================================================================== */
.article-faq-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0;
}

.faq-item {
  background: var(--art-bg-soft);
  border: 1px solid var(--art-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(211, 54, 59, 0.35);
}

.faq-item[open] {
  background: #ffffff;
  border-color: var(--art-accent);
  box-shadow: 0 8px 24px rgba(211, 54, 59, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--art-title);
  list-style: none;
  user-select: none;
  transition: color 0.25s ease;
}

.faq-item[open] .faq-question {
  color: var(--art-accent);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--art-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
  color: var(--art-accent);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--art-body);
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.article-project-banner-wrap {
  width: 100%;
  margin: 36px 0 64px;
  position: relative;
}

.article-project-banner-wrap .hero-item {
  margin-bottom: 0;
}

.article-project-banner-wrap .tailored-title {
  color: #ffffff !important;
  font-family: var(--art-serif), 'Playfair Display', "Times New Roman", Georgia, serif !important;
}

.article-project-banner-wrap .tailored-btn svg {
  fill: none;
  stroke: currentColor;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1480px) {

  .article-hero-container,
  .article-grid-container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 1024px) {
  .article-locations-grid {
    grid-template-columns: 1fr;
  }

  .article-checklist-grid.grid-3-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .article-hero {
    min-height: 70vh;
  }

  .article-hero-title {
    font-size: clamp(2rem, 5.5vw, 2.9rem) !important;
  }

  .article-checklist-grid,
  .article-pillars-grid,
  .article-steps-grid {
    grid-template-columns: 1fr;
  }

  .qa-answer {
    padding-left: 0;
    margin-top: 8px;
  }

  .article-section-block {
    margin-bottom: 15px;
  }

  .article-divider {
    margin: 15px 0;
  }

  .article-content-section {
    padding: 40px 0;
  }

  .article-project-banner-wrap {
    margin: 30px 0;
  }

  .article-lead {
    font-size: 1rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .article-hero {
    min-height: 58vh;
  }

  .article-hero-container,
  .article-grid-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .article-hero-title {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
  }

  .article-checklist-grid.grid-3-col {
    grid-template-columns: 1fr;
  }
}