/* Blog Styles */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #10b981;
  --accent: #f59e0b;
  --dark: #064e3b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg-cream: #f8faf8;
  --bg-white: #fff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg-cream);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.blog-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.blog-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo img {
  border-radius: 10px;
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.blog-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

.blog-nav a:hover,
.blog-nav a.active {
  color: var(--primary);
}

.blog-nav .btn-cta {
  background: var(--accent);
  color: white !important;
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
}

.blog-nav .btn-cta:hover {
  background: #d97706;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-white);
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.875rem;
}

.breadcrumb li::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--text-light);
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 500;
}

/* Blog Hero */
.blog-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Categories */
.blog-categories {
  background: var(--bg-white);
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 65px;
  z-index: 90;
}

.blog-categories .container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.blog-categories a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: all 0.2s;
}

.blog-categories a:hover,
.blog-categories a.active {
  background: var(--primary);
  color: white;
}

/* Blog Main */
.blog-main {
  padding: 3rem 0;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.post-category {
  background: #dcfce7;
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
}

.post-date {
  color: var(--text-light);
}

.post-content h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

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

.post-content h2 a:hover {
  color: var(--primary);
}

.post-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

.no-posts {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

/* Article Page */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-header {
  padding: 2.5rem 2.5rem 1.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.article-category {
  background: #dcfce7;
  color: var(--primary);
  padding: 0.375rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
}

.article-date,
.article-reading-time {
  color: var(--text-light);
}

.article-header h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

.article-excerpt {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-style: italic;
}

.article-author {
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
}

.article-featured-image {
  margin: 0;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  padding: 2rem 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--dark);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--dark);
}

.article-content p {
  margin-bottom: 1.25rem;
}

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

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article-content pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.article-content code {
  background: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-content th,
.article-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.article-content th {
  background: #f9fafb;
  font-weight: 600;
}

/* Article Footer */
.article-footer {
  padding: 1.5rem 2.5rem;
  border-top: 1px solid #e5e7eb;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.article-tags span {
  color: var(--text-light);
  font-weight: 500;
}

.article-tags a {
  background: #f3f4f6;
  color: var(--text);
  padding: 0.375rem 0.875rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.article-tags a:hover {
  background: var(--primary);
  color: white;
}

/* Article Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid #e5e7eb;
}

.article-share span {
  color: var(--text-light);
  font-weight: 500;
}

.article-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--text);
  transition: all 0.2s;
}

.article-share a:hover {
  background: var(--primary);
  color: white;
}

/* Blog CTA */
.blog-cta {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
  margin: 0;
  width: 100%;
}

.blog-cta h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.blog-cta p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(245,158,11,0.4);
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.5);
}

/* Footer */
.blog-footer {
  background: var(--dark);
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-brand img {
  border-radius: 10px;
}

.footer-content p {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .blog-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }
  
  .blog-nav.active {
    display: flex;
  }
  
  .blog-nav a {
    padding: 0.75rem;
    display: block;
  }
  
  .blog-nav .btn-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .blog-hero {
    padding: 3rem 0;
  }
  
  .blog-hero h1 {
    font-size: 1.75rem;
  }
  
  .blog-categories {
    top: 57px;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .article-header {
    padding: 1.5rem;
  }
  
  .article-header h1 {
    font-size: 1.5rem;
  }
  
  .article-content {
    padding: 1.5rem;
    font-size: 1rem;
  }
  
  .article-footer,
  .article-share {
    padding: 1rem 1.5rem;
  }
  
  .blog-cta {
    padding: 3rem 0;
  }
  
  .blog-cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .article-meta {
    font-size: 0.8rem;
  }
  
  .article-header h1 {
    font-size: 1.25rem;
  }
  
  .article-excerpt {
    font-size: 1rem;
  }
  
  .article-content h2 {
    font-size: 1.25rem;
  }
  
  .article-content h3 {
    font-size: 1.1rem;
  }
}

/* ==========================================
   Blog Content Components
   ========================================== */

/* Lead paragraph */
.article-content .lead {
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Highlight Box */
.article-content .highlight-box {
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.article-content .highlight-box h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.article-content .highlight-box p {
  margin-bottom: 0;
}

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

.article-content .highlight-box.info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
}

.article-content .highlight-box.info h3 {
  color: #1d4ed8;
}

.article-content .highlight-box.success {
  background: #f0fdf4;
  border-left: 4px solid var(--primary);
}

.article-content .highlight-box.success h3 {
  color: var(--primary-dark);
}

.article-content .highlight-box.warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
}

.article-content .highlight-box.warning h3 {
  color: #b45309;
}

/* Steps Container */
.article-content .steps-container {
  margin: 2rem 0;
}

.article-content .step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.article-content .step:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
}

.article-content .step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.article-content .step-content {
  flex: 1;
}

.article-content .step-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--dark);
  font-size: 1.1rem;
}

.article-content .step-content p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.article-content .step-content ul {
  margin: 0.5rem 0 0 1.25rem;
}

.article-content .step-content ul li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* FAQ Section */
.article-content .faq-section {
  margin: 2rem 0;
}

.article-content .faq-item {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
}

.article-content .faq-item h4 {
  margin: 0 0 0.75rem 0;
  color: var(--primary-dark);
  font-size: 1rem;
}

.article-content .faq-item h4::before {
  content: '❓ ';
}

.article-content .faq-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* Data Table */
.article-content .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.article-content .data-table th {
  background: var(--primary);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.article-content .data-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.article-content .data-table tr:last-child td {
  border-bottom: none;
}

.article-content .data-table tr:nth-child(even) {
  background: #f9fafb;
}

/* Benefits Grid */
.article-content .benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.article-content .benefits-grid .benefit-item {
  background: #f0fdf4;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.article-content .benefits-grid .benefit-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.article-content .benefits-grid h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-dark);
  font-size: 1rem;
}

.article-content .benefits-grid p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Benefits Summary */
.article-content .benefits-summary {
  margin: 1.5rem 0;
}

.article-content .benefits-summary .benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f0fdf4;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.article-content .benefits-summary .benefit-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.article-content .benefits-summary .benefit-text {
  font-size: 0.95rem;
}

/* Cost Cards */
.article-content .cost-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.article-content .cost-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.article-content .cost-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.article-content .cost-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.article-content .cost-content p {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.article-content .cost-amount {
  color: var(--primary);
  font-size: 0.95rem;
}

/* Providers List */
.article-content .providers-list {
  margin: 1.5rem 0;
}

.article-content .provider-item {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
}

.article-content .provider-item h4 {
  margin: 0 0 0.75rem 0;
  color: var(--primary-dark);
}

.article-content .provider-item ul {
  margin: 0;
  padding-left: 1.25rem;
}

.article-content .provider-item li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* Tips Box */
.article-content .tips-box {
  background: #fffbeb;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #fcd34d;
}

.article-content .tips-box h4 {
  margin: 0 0 1rem 0;
  color: #b45309;
}

.article-content .tips-box ol {
  margin: 0;
  padding-left: 1.25rem;
}

.article-content .tips-box li {
  margin-bottom: 0.75rem;
}

/* CTA Box */
.article-content .cta-box {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: white;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.article-content .cta-box h3 {
  margin: 0 0 0.75rem 0;
  color: white;
  font-size: 1.25rem;
}

.article-content .cta-box p {
  margin: 0 0 1.25rem 0;
  opacity: 0.9;
}

.article-content .cta-box .btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(245,158,11,0.4);
  transition: all 0.2s;
}

.article-content .cta-box .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.5);
}

/* Warning Box */
.article-content .warning-box {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.article-content .warning-box h3 {
  margin: 0 0 0.75rem 0;
  color: #dc2626;
}

.article-content .warning-box ul {
  margin: 0;
}

/* Example Box */
.article-content .example-box {
  background: #f0fdf4;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #bbf7d0;
}

.article-content .example-box h4 {
  margin: 0 0 0.75rem 0;
  color: var(--primary-dark);
}

.article-content .example-box p,
.article-content .example-box ul {
  margin-bottom: 0.5rem;
}

/* Legal Refs */
.article-content .legal-refs {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.article-content .legal-refs li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.article-content .legal-refs li:last-child {
  border-bottom: none;
}

/* Savings Cards */
.article-content .savings-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.article-content .savings-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.article-content .savings-card.highlight {
  background: #f0fdf4;
  border-color: var(--primary);
}

.article-content .savings-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.article-content .savings-content h4 {
  margin: 0 0 0.25rem 0;
}

.article-content .savings-content p {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.article-content .savings-amount {
  color: var(--primary);
  font-weight: 600;
}

/* Tax Table */
.article-content .tax-table th,
.article-content .deadline-table th {
  background: var(--primary);
  color: white;
}

/* Formula Box */
.article-content .formula-box {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  text-align: center;
}

.article-content .formula-box p {
  margin: 0;
  font-family: monospace;
  font-size: 1.1rem;
}

/* Tip in step */
.article-content .step .tip {
  background: #fffbeb;
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #b45309;
}

/* Mobile responsive for components */
@media (max-width: 768px) {
  .article-content .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .article-content .cost-cards {
    grid-template-columns: 1fr;
  }
  
  .article-content .savings-cards {
    grid-template-columns: 1fr;
  }
  
  .article-content .step {
    flex-direction: column;
    text-align: center;
  }
  
  .article-content .step-number {
    margin: 0 auto;
  }
}
