/* Teasy Blog — content-only styles (globals via style.css) */

/* =====================
   PAGE WRAPPER
   ===================== */

.page-wrapper {
  width: 100%;
}

/* =====================
   BLOG INDEX — HERO
   ===================== */

.blog-hero {
  background: #f5f1eb;
  padding: 9rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.blog-hero-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.blog-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1.1rem;
}

.blog-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =====================
   BLOG POST GRID
   ===================== */

.blog-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.blog-section .section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
}

.blog-section .section-label h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.section-label-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  border-color: rgba(255,107,53,0.3);
}

.post-card-header {
  padding: 1.5rem 1.5rem 0;
}

.post-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.post-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.6rem;
  letter-spacing: -0.2px;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card-body {
  padding: 0.75rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.2rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s ease;
}

.read-more:hover {
  gap: 0.55rem;
}

.read-more-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.read-more:hover .read-more-arrow {
  transform: translateX(2px);
}

/* =====================
   ARTICLE / LEGAL HERO
   ===================== */

.article-hero {
  background: #f5f1eb;
  padding: 9rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,107,53,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
  text-decoration: none;
}

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

.article-category-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.article-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 1rem;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-hero-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--border);
  border-radius: 50%;
}

/* =====================
   ARTICLE CONTENT
   ===================== */

.article-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.article-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

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

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(255,107,53,0.04);
  border-radius: 0 12px 12px 0;
}

.article-content blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
}

/* Highlight box */
.highlight-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.highlight-box h3 {
  color: var(--text);
  margin-top: 0 !important;
  margin-bottom: 0.6rem !important;
  font-size: 1rem !important;
  font-weight: 700;
}

.highlight-box ul {
  margin-bottom: 0;
}

/* CTA Box */
.cta-box {
  background: var(--bg-dark);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-box h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.6rem;
  position: relative;
}

.cta-box p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff !important;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
  position: relative;
}

.cta-button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Article footer nav */
.article-footer-nav {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.back-to-blog:hover {
  color: var(--accent-dark);
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* =====================
   RESPONSIVE
   ===================== */

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

  .blog-hero {
    padding: 7rem 1.2rem 3.5rem;
  }

  .article-hero {
    padding: 7rem 1.2rem 3rem;
  }

  .article-layout {
    padding: 2.5rem 1.2rem 3.5rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  .article-footer-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .blog-hero h1,
  .article-hero h1 {
    font-size: 1.75rem;
  }
}
