:root {
  --bg: #f7f6f3;
  --card-bg: #ffffff;
  --card-border: #ecebe7;
  --text: #161616;
  --text-muted: #6b6b6b;
  --text-light: #8c8c8c;
  --orange: #ff762b;
  --orange-hover: #e8641c;
  --orange-light: rgba(255, 118, 43, 0.12);
  --dark: #161616;
  --line: #ecebe7;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Header */
.site-header {
  height: 88px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.brand img {
  width: 142px;
  height: 62px;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-login {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  text-decoration: none;
}

.btn-login:hover {
  background: #f0eee9;
}

.btn-cta {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--dark);
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  text-decoration: none;
}

.btn-cta span {
  color: var(--orange);
}

.btn-cta:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

/* Container */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Listing Hero */
.blog-hero {
  padding: 64px 0 32px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.blog-title {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
  margin: 0 0 16px;
}

.blog-title .text-orange {
  color: var(--orange);
}

.blog-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Controls: Search and Filters */
.blog-controls {
  margin: 36px 0 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 48px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  font-size: 15px;
  color: var(--text);
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 118, 43, 0.15);
}

.search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: none;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.filter-pill {
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: #d8d6d0;
  color: var(--text);
}

.filter-pill.active {
  background: var(--dark);
  color: #ffffff;
  border-color: var(--dark);
  font-weight: 600;
}

/* Post Cards Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
  border-color: #e0ded9;
}

.card-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8e7e3;
}

.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.card:hover .card-cover {
  transform: scale(1.03);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 2;
  pointer-events: none;
}

.card-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Load More Button */
.load-more-wrap {
  text-align: center;
  margin: 32px 0 64px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 32px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all .2s;
}

.btn-load-more:hover {
  background: #161616;
  color: #ffffff;
  border-color: #161616;
  transform: translateY(-1px);
}

.empty-state {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 16px;
  grid-column: 1 / -1;
}

/* Dark CTA Block */
.dark-cta {
  background: var(--dark);
  color: #ffffff;
  border-radius: 24px;
  padding: 56px 36px;
  text-align: center;
  margin: 64px 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.dark-cta h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  margin: 0 0 14px;
  color: #ffffff;
  letter-spacing: -.02em;
}

.dark-cta p {
  font-size: 16px;
  color: #a4a5a6;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.dark-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #ffffff;
  padding: 15px 36px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all .2s;
  box-shadow: 0 6px 24px rgba(255, 118, 43, 0.35);
  text-decoration: none;
}

.dark-cta .cta-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 118, 43, 0.45);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px 56px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer-logo {
  width: 120px;
  height: 50px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.footer-copy {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text);
}

.footer-disclaimer {
  margin: 0 auto;
  font-size: 11px;
  color: var(--text-light);
  max-width: 500px;
}

/* Article Detail Styles */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color .2s;
}

.article-back:hover {
  color: var(--orange);
}

.article-badge {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.article-header h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--text);
  margin: 0 0 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-cover-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  background: #e8e7e3;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.article-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: #222222;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 44px 0 18px;
  letter-spacing: -.02em;
}

.article-content h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin: 32px 0 14px;
}

.article-content p {
  margin: 0 0 22px;
}

.article-content strong {
  font-weight: 700;
  color: var(--text);
}

.article-content ul, .article-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  border-left: 4px solid var(--orange);
  background: #ffffff;
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.article-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color .2s;
}

.article-content a:hover {
  color: var(--orange-hover);
}

/* Share Bar */
.share-bar {
  max-width: 720px;
  margin: 48px auto 64px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.share-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.share-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--text);
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-share-wa {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.btn-share-wa:hover {
  background: #20bd5a;
  color: #ffffff;
}

.btn-share-copy:hover {
  background: #f0eee9;
}

.copy-feedback {
  font-size: 13px;
  color: #2e7d32;
  font-weight: 600;
  display: none;
}

/* Related Articles */
.related-section {
  max-width: 1120px;
  margin: 64px auto 0;
  padding: 0 24px;
}

.related-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  text-align: left;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .site-header {
    padding: 0 24px;
    height: 76px;
  }
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 650px) {
  .site-header {
    height: 68px;
    padding: 0 18px;
  }
  .brand img {
    width: 115px;
    height: 50px;
  }
  .btn-login {
    height: 36px;
    padding: 0 16px;
    font-size: 12px;
  }
  .btn-cta {
    height: 36px;
    padding: 0 16px;
    font-size: 12px;
  }
  .blog-hero {
    padding: 40px 0 20px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .dark-cta {
    padding: 40px 20px;
    border-radius: 18px;
  }
  .article-wrap {
    padding: 32px 18px 48px;
  }
  .article-content {
    font-size: 16px;
    line-height: 1.7;
  }
  .share-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
