/* Blog Article Styles */
.article-main {
  padding: 1.5rem 0 3rem;
  background-color: #fff;
}

.article-content {
  max-width: 1100px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.article-header h1 {
  font-size: 2.8rem;
  color: #2563eb;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.hero-image {
  margin-bottom: 1.8rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.article-section {
  margin-bottom: 2rem;
}

.article-section h2 {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #eaeaea;
}

.article-section h3 {
  font-size: 1.5rem;
  color: #333;
  margin: 1.2rem 0 0.8rem;
}

.article-section h4 {
  font-size: 1.2rem;
  color: #333;
  margin: 1rem 0 0.6rem;
}

.article-section p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

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

.article-section li {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.article-image {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.article-image figcaption {
  padding: 0.7rem 1rem;
  background-color: #f8fafd;
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  font-style: italic;
}

.formula-box {
  background-color: #f0f7ff;
  border-left: 4px solid #2563eb;
  padding: 1.2rem;
  margin: 1.2rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.formula-box p {
  margin-bottom: 0;
  font-size: 1.2rem;
  text-align: center;
}

.code-block {
  background-color: #f5f7fa;
  padding: 1rem;
  border-radius: 6px;
  margin: 1.2rem 0;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
}

.code-block pre {
  margin: 0;
  font-family: 'Consolas', 'Monaco', monospace;
}

.code-block code {
  color: #333;
  font-size: 1.1rem;
  white-space: pre;
}

.example-box {
  background-color: #f8fafd;
  padding: 1.2rem;
  border-radius: 8px;
  margin: 1.2rem 0;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.example-box h4 {
  margin-top: 0;
  color: #2563eb;
}

.example-box p:last-child {
  margin-bottom: 0;
}

.cta-box {
  background-color: #ebf3fe;
  padding: 1.2rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  text-align: center;
  border: 1px solid #d1e3fd;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.cta-box p {
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.cta-box a {
  color: #2563eb;
  text-decoration: underline;
  transition: color 0.2s;
}

.cta-box a:hover {
  color: #1d4ed8;
}

.reference-box {
  background-color: #f5f7fa;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  margin: 1.2rem 0;
  border-left: 3px solid #aaa;
  font-size: 0.95rem;
}

.table-container {
  overflow-x: auto;
  margin: 1.2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.comparison-table th, 
.comparison-table td {
  padding: 0.8rem 1rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.comparison-table th {
  background-color: #f0f7ff;
  font-weight: 600;
  color: #2563eb;
}

.comparison-table tr:nth-child(even) {
  background-color: #f8fafd;
}

.tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.tip-item {
  background-color: #f8fafd;
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tip-item h4 {
  color: #2563eb;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.tip-item p {
  margin-bottom: 0;
}

.faq-item {
  background-color: #f8fafd;
  padding: 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-item h3 {
  color: #2563eb;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.faq-item p {
  margin-bottom: 0.7rem;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.conclusion-box {
  background-color: #f0f7ff;
  padding: 1.2rem;
  border-radius: 8px;
  margin: 1.2rem 0;
  text-align: center;
  border: 1px solid #d1e3fd;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.05);
}

.conclusion-box p {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.final-cta {
  margin-top: 2rem;
  background-color: #e1effe;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-header h1 {
    font-size: 2.2rem;
  }
  
  .article-section h2 {
    font-size: 1.7rem;
  }
  
  .article-section h3 {
    font-size: 1.4rem;
  }
  
  .tips-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .article-header h1 {
    font-size: 1.9rem;
  }
  
  .article-section h2 {
    font-size: 1.5rem;
  }
  
  .article-section h3 {
    font-size: 1.3rem;
  }
  
  .article-section p,
  .article-section li {
    font-size: 1rem;
  }
  
  .formula-box p {
    font-size: 1.1rem;
  }
  
  .code-block code {
    font-size: 1rem;
  }
  
  .cta-box p {
    font-size: 1.1rem;
  }
} 