/* ========== Blog Page Specific Styles ========== */
/* Note: CSS variables, reset, container, header, footer, section-header are inherited from style.css */
/* Note: page-banner, cta-section, faq-collapse base, rich-text are inherited from subpage.css */

/* ========== Blog Hero Banner ========== */
.blog-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0 60px;
  margin-bottom: 40px;
}
.blog-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.blog-hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: white;
  margin: 0 0 12px;
  line-height: 1.2;
}
.blog-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 800px;
}
.blog-hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 24px;
}
.blog-hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}
.blog-hero-stat-number {
  font-size: 28px;
  font-weight: 700;
}
.blog-hero-stat-label {
  font-size: 14px;
  opacity: 0.9;
}

/* ========== Featured Article Card ========== */
.featured-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}
.featured-card-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.featured-card-image::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -50px;
  right: -50px;
}
.featured-card-image::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  bottom: -30px;
  left: -30px;
}
.featured-card-image-icon {
  font-size: 80px;
  color: rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}
.featured-card-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.featured-card-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
  width: fit-content;
  transition: background 0.3s;
}
.featured-card-tag:hover {
  background: var(--primary-dark);
}
.featured-card h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px;
  line-height: 1.4;
}
.featured-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 20px;
  flex-grow: 1;
}
.featured-card-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.featured-card-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: 16px;
  transition: gap 0.3s, color 0.3s;
}
.featured-card-read:hover {
  gap: 12px;
  color: var(--primary-dark);
}

/* ========== Category Tags / Filter Bar ========== */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}
.filter-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.1);
}
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}
.filter-btn.active:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ========== Blog Grid ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.blog-grid-title {
  grid-column: 1 / -1;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.blog-card:hover::before {
  transform: scaleX(1);
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}
.blog-card-tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 16px;
  margin-bottom: 14px;
  width: fit-content;
  background: rgba(0, 82, 204, 0.08);
  color: var(--primary);
  transition: transform 0.2s;
}
.blog-card:hover .blog-card-tag {
  transform: scale(1.05);
}
.blog-card-tag.compliance {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}
.blog-card-tag.compare {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}
.blog-card-tag.tax {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.blog-card-tag.review {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}
.blog-card-tag.cost {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}
.blog-card-tag.analysis {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
}
.blog-card-tag.basic {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}
.blog-card-tag.concept {
  background: rgba(202, 138, 4, 0.1);
  color: #ca8a04;
}
.blog-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--text-dark);
  transition: color 0.3s;
}
.blog-card:hover h3 {
  color: var(--primary);
}
.blog-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 20px;
  flex-grow: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.blog-card-meta span {
  font-size: 13px;
  color: var(--text-muted);
}
.blog-card-read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--primary);
  font-size: 13px;
  transition: gap 0.2s, color 0.2s;
}
.blog-card:hover .blog-card-read {
  gap: 8px;
  color: var(--primary-dark);
}

/* ========== Article Stats ========== */
.article-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}
.article-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.article-stat:hover {
  color: var(--primary);
}
.article-stat svg {
  width: 16px;
  height: 16px;
}

/* ========== Blog Highlight Box ========== */
.blog-highlight-box {
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 1px solid rgba(0, 82, 204, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.blog-highlight-box:hover {
  border-color: rgba(0, 82, 204, 0.3);
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.08);
}
.blog-highlight-box::before {
  content: '\1F4A1';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
}
.blog-highlight-box h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}
.blog-highlight-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}

/* ========== Info Box Variants ========== */
.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 20px 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.info-box:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.info-box.warning {
  background: #fffbeb;
  border-color: #fef3c7;
}
.info-box.warning:hover {
  border-color: #fde68a;
}
.info-box.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.info-box.success:hover {
  border-color: #6ee7b7;
}
.info-box.danger {
  background: #fef2f2;
  border-color: #fecaca;
}
.info-box.danger:hover {
  border-color: #fca5a5;
}
.info-box-title {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-box-title::before {
  content: '\2139\FE0F';
}
.info-box.warning .info-box-title::before {
  content: '\26A0\FE0F';
}
.info-box.success .info-box-title::before {
  content: '\2705';
}
.info-box.danger .info-box-title::before {
  content: '\274C';
}

/* ========== Step Numbering ========== */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}
.step-number:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

/* ========== Blog Article Styles ========== */
.blog-article {
  padding: 40px 0 80px;
  background: white;
}
.article-header {
  max-width: 800px;
  margin: 0 auto 32px;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: background 0.3s;
}
.article-tag:hover {
  background: var(--primary-dark);
}
.article-header h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
  margin: 0 0 20px;
}
.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}
.article-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 2px solid var(--primary);
  color: var(--text-dark);
}
.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-dark);
}
.article-content p {
  margin: 12px 0;
}
.article-content ul,
.article-content ol {
  margin: 12px 0;
  padding-left: 24px;
}
.article-content li {
  margin: 6px 0;
}
.article-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 4px;
  color: var(--text-dark);
  font-style: italic;
}
.article-intro {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius-lg);
  margin: 24px 0;
}
.article-toc {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
  transition: border-color 0.3s;
}
.article-toc:hover {
  border-color: rgba(0, 82, 204, 0.2);
}
.article-toc h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text-dark);
}
.article-toc ol {
  padding-left: 20px;
  margin: 0;
}
.article-toc li {
  margin: 6px 0;
}
.article-toc a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.article-toc a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}
.cost-table {
  margin: 20px 0;
  overflow-x: auto;
}
.cost-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cost-table th,
.cost-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.cost-table th {
  font-weight: 700;
  background: var(--bg-light);
}
.cost-table tr:hover td {
  background: rgba(0, 82, 204, 0.02);
}
.article-cta {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.article-cta:hover {
  border-color: #64b5f6;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.1);
}
.article-cta-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.article-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 82, 204, 0.3);
}
.article-cta-primary h3 {
  color: white;
  margin: 0 0 8px;
}
.article-cta-primary p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px;
}
.article-cta-primary .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========== Related Articles ========== */
.related-articles {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.related-articles h3 {
  font-size: 18px;
  margin: 0 0 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  display: block;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.related-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 82, 204, 0.08);
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.related-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
}
.related-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  background: var(--bg-light);
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span {
  color: var(--text-dark);
}

/* ========== Bank Preferences ========== */
.bank-preferences {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.bank-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.bank-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.bank-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.bank-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== FAQ Collapse (Blog) ========== */
.blog-faq-collapse {
  margin: 24px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.blog-faq-collapse .faq-item {
  background: white;
  border: 1px solid var(--border);
  border-bottom: none;
  transition: all 0.3s;
}
.blog-faq-collapse .faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.blog-faq-collapse .faq-item.open {
  background: var(--bg-light);
}
.blog-faq-collapse .faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.blog-faq-collapse .faq-question:hover {
  color: var(--primary);
  background: rgba(0, 82, 204, 0.02);
}
.blog-faq-collapse .faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--primary);
}
.blog-faq-collapse .faq-item.open .faq-arrow {
  transform: rotate(180deg);
}
.blog-faq-collapse .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.blog-faq-collapse .faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== Responsive: 1024px ========== */
@media (max-width: 1024px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-card-image {
    min-height: 200px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .bank-preferences {
    grid-template-columns: 1fr;
  }
}

/* ========== Responsive: 768px ========== */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 32px;
  }
  .blog-hero p {
    font-size: 16px;
  }
  .blog-hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  .featured-card-content {
    padding: 24px;
  }
  .featured-card h2 {
    font-size: 24px;
  }
  .blog-card h3 {
    font-size: 18px;
  }
  .article-header h1 {
    font-size: 24px;
  }
  .article-content h2 {
    font-size: 22px;
  }
  .article-content h3 {
    font-size: 18px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-meta {
    gap: 10px;
    font-size: 12px;
  }
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
  .blog-filter-bar {
    flex-wrap: wrap;
  }
}

/* ========== Responsive: 480px ========== */
@media (max-width: 480px) {
  .blog-hero {
    padding: 40px 0;
  }
  .blog-hero h1 {
    font-size: 26px;
  }
  .blog-hero-stats {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .blog-hero-stat-number {
    font-size: 22px;
  }
  .featured-card-content {
    padding: 20px;
  }
  .featured-card h2 {
    font-size: 20px;
  }
  .blog-card {
    padding: 20px;
  }
  .blog-card h3 {
    font-size: 16px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  .article-header h1 {
    font-size: 20px;
  }
  .article-content h2 {
    font-size: 20px;
  }
  .article-content h3 {
    font-size: 16px;
  }
  .blog-faq-collapse .faq-question {
    padding: 16px;
    font-size: 14px;
  }
  .faq-answer-inner {
    padding: 0 16px 16px;
  }
  .article-cta-primary {
    padding: 24px 16px;
  }
}
