/* ============================================================
   DOHOSPITALITY — BLOG STYLES
   Requires ../style.css loaded first (design tokens + nav + footer + buttons)
   ============================================================ */

/* ============================================================
   BLOG INDEX — HERO
   ============================================================ */
.blog-hero {
  background: var(--navy);
  padding: 72px 0 64px;
}

.blog-hero-inner { max-width: 680px; }

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 16px;
  line-height: 1.15;
}

.blog-hero-sub {
  font-size: 1.05rem;
  color: var(--muted-light);
  line-height: 1.75;
  max-width: 520px;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-wrap {
  background: var(--cream-mid);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 68px;
  z-index: 100;
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1.5px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}

.filter-btn:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.filter-btn.active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

/* ============================================================
   POST GRID (listing page)
   ============================================================ */
.blog-body {
  background: var(--cream);
  padding: 72px 0 96px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-card {
  background: var(--cream);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.post-card:hover { background: var(--cream-mid); }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-card-pillar {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.post-card-date {
  font-size: 0.78rem;
  color: var(--muted-light);
}

.post-card-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
}

.post-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: gap 0.15s;
}

.post-card:hover .post-card-link { gap: 8px; }

.posts-empty {
  grid-column: 1 / -1;
  background: var(--cream);
  padding: 80px 40px;
  text-align: center;
}

.posts-empty p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ============================================================
   POST HERO (individual post, no image)
   ============================================================ */
.post-hero {
  background: var(--navy);
  padding: 72px 0 64px;
}

.post-hero-inner { max-width: 760px; }

.post-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted-light);
  margin-bottom: 32px;
  transition: color 0.15s;
  text-decoration: none;
}

.post-hero-back:hover { color: var(--cream); }

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.post-hero-pillar {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.post-hero-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.post-hero-date {
  font-size: 0.78rem;
  color: var(--muted-light);
}

.post-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 20px;
}

.post-hero-desc {
  font-size: 1.05rem;
  color: var(--muted-light);
  max-width: 620px;
  line-height: 1.75;
}

/* ============================================================
   POST PROSE
   ============================================================ */
.post-content {
  background: var(--cream);
  padding: 72px 0 96px;
}

.post-prose {
  max-width: 720px;
  margin: 0 auto;
}

.post-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 500;
  color: var(--navy);
  margin: 56px 0 16px;
  line-height: 1.2;
}

.post-prose h2:first-child { margin-top: 0; }

.post-prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  margin: 36px 0 12px;
  line-height: 1.3;
}

.post-prose h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 8px;
  letter-spacing: 0.01em;
}

.post-prose p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.post-prose p:first-child {
  font-size: 1.1rem;
  color: #4A5A72;
  line-height: 1.8;
}

.post-prose ul,
.post-prose ol {
  padding-left: 0;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-prose ul li,
.post-prose ol li {
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.75;
  padding-left: 20px;
  position: relative;
  list-style: none;
}

.post-prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

.post-prose ol {
  counter-reset: prose-counter;
}

.post-prose ol li {
  counter-increment: prose-counter;
}

.post-prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
}

.post-prose strong { color: var(--navy); font-weight: 600; }

.post-prose em { font-style: italic; }

.post-prose a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201,148,58,0.3);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.post-prose a:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

.post-prose blockquote {
  border-left: 3px solid var(--gold);
  margin: 36px 0;
  padding: 20px 28px;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-prose blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.65;
}

.post-prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.post-prose code {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  background: var(--cream-mid);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--navy);
}

/* Table */
.post-prose .table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.post-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.post-prose th {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
}

.post-prose td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
  line-height: 1.6;
}

.post-prose tr:last-child td { border-bottom: none; }
.post-prose tr:nth-child(even) td { background: var(--cream-mid); }

/* ============================================================
   POST FAQ
   ============================================================ */
.post-faq {
  margin: 56px 0;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.post-faq > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--navy);
  margin-bottom: 32px;
}

.post-faq .faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.post-faq .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
  list-style: none;
  user-select: none;
}

.post-faq .faq-question::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}

.post-faq .faq-item.open .faq-question::after {
  content: '−';
}

.post-faq .faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.8;
}

.post-faq .faq-item.open .faq-answer { display: block; }

/* ============================================================
   POST CTA
   ============================================================ */
.post-cta {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  margin: 56px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.post-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--cream) !important;
  line-height: 1.2;
  margin: 0 !important;
}

.post-cta p {
  font-size: 0.975rem;
  color: var(--muted-light) !important;
  line-height: 1.7;
  max-width: 480px;
  margin: 0;
}

.post-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Override prose link style inside CTA */
.post-prose .post-cta a {
  text-decoration: none;
}

.post-prose .post-cta .btn-primary { color: #fff; }
.post-prose .post-cta .btn-ghost-light { color: var(--cream); }

/* ============================================================
   RESPONSIVE — BLOG
   ============================================================ */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }

  .post-card { padding: 28px 24px; }

  .post-hero { padding: 56px 0 48px; }

  .post-prose h2 { margin-top: 40px; }

  .post-cta { padding: 36px 28px; }

  .post-cta-actions { flex-direction: column; }
  .post-cta-actions .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .post-hero h1 { font-size: 1.75rem; }
  .filter-btn { font-size: 0.78rem; padding: 6px 13px; }
}
