* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background: #f3f6fb;
  color: #1f2937;
  line-height: 1.75;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.article-page {
  padding: 24px 16px 60px;
}

.article-container {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.article-header {
  padding: 34px 28px 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.article-category {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 14px;
  color: #111827;
  font-weight: 900;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b7280;
  font-size: 14px;
}

.meta-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  border-radius: 999px;
}

.article-featured {
  padding: 26px 28px 10px;
}

.featured-placeholder {
  min-height: 220px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 900;
  text-align: center;
  padding: 20px;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.25);
}

.article-content {
  padding: 10px 28px 28px;
}

.content-section {
  margin: 26px 0;
}

.content-section h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  margin: 0 0 12px;
  color: #111827;
  font-weight: 900;
}

.content-section h3 {
  font-size: 1.15rem;
  margin: 20px 0 10px;
  color: #1f2937;
  font-weight: 800;
}

.content-section p {
  margin: 0 0 14px;
  color: #374151;
}

.content-section ul,
.content-section ol {
  margin: 10px 0 0 22px;
  padding: 0;
}

.content-section li {
  margin: 8px 0;
}

.warning-box,
.tip-box,
.mistakes-box,
.cta-box {
  border-radius: 18px;
  padding: 18px 18px;
  margin: 18px 0;
  border: 1px solid transparent;
}

.warning-box {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.tip-box {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #155e75;
}

.mistakes-box {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.cta-box {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border-color: #bfdbfe;
  text-align: center;
}

.cta-box h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-secondary {
  background: #111827;
  color: #fff;
}

.info-table,
.practice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.info-table th,
.info-table td,
.practice-table th,
.practice-table td {
  border: 1px solid #e5e7eb;
  padding: 14px 14px;
  text-align: left;
  vertical-align: top;
}

.info-table th,
.practice-table th {
  background: #111827;
  color: #fff;
  font-weight: 800;
}

.info-table tbody tr:nth-child(even),
.practice-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.numbered-list {
  margin-left: 22px;
}

.faq-section {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 16px 16px;
  border-radius: 16px;
}

.faq-item h4 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1rem;
}

.article-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.back-link {
  font-weight: 800;
  color: #2563eb;
}

.share-section h4 {
  margin: 0 0 10px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.share-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

/* Responsive tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.article-content table {
  min-width: 700px;
}

blockquote {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 5px solid #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 12px;
  font-style: italic;
}

/* Mobile */
@media (max-width: 768px) {
  .article-page {
    padding: 12px 10px 40px;
  }

  .article-header,
  .article-featured,
  .article-content,
  .article-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-meta {
    gap: 8px;
  }

  .meta-item {
    padding: 7px 10px;
    font-size: 13px;
  }

  .featured-placeholder {
    min-height: 170px;
  }

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

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .info-table,
  .practice-table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .info-table th,
  .info-table td,
  .practice-table th,
  .practice-table td {
    padding: 12px 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.6rem;
  }

  .content-section h2 {
    font-size: 1.25rem;
  }

  .content-section h3 {
    font-size: 1.05rem;
  }

  .warning-box,
  .tip-box,
  .mistakes-box,
  .cta-box,
  .faq-item {
    padding: 14px;
  }

  .share-buttons {
    width: 100%;
  }

  .share-btn {
    flex: 1 1 100%;
  }
}