/*
Theme Name: CodeVN Theme
Theme URI: https://vnwebpro.com/
Author: Hà Trang
Author URI: https://vnwebpro.com/author/hatrang/
Description: Giao diện trang web học lập trình của VNWebPro.com
Version: 1.0
License: GPLv2 or later
Text Domain: codevn
*/

body {
    font-family: Arial, Tahoma, 'Roboto', 'Noto Sans', sans-serif;
}
.site-logo img {
  max-height: 40px;
  width: auto;
}
.code-editor {
    background: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.preview-pane {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.topic-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}
.roadmap-step {
    position: relative;
}
.roadmap-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    height: 40px;
    border-left: 2px dashed #4f46e5;
}
/* Bố cục tổng thể */
.single-post-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151; /* gray-700 */
}

/* Paragraph */
.single-post-content p {
  margin-bottom: 1.25rem;
}

/* Headings */
.single-post-content h2 {
  font-size: 1.5rem;      /* text-2xl */
  font-weight: 700;       /* font-bold */
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;          /* gray-800 */
}

/* Links */
a {
  color: #4f46e5; /* indigo-600 */
}

a:hover {
  color: #4338ca; /* indigo-700 */
}

.single-post-content h3 {
  font-size: 1.25rem;      /* text-xl */
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Lists */
.single-post-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.single-post-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Images */
.single-post-content img {
  max-width: 100%;
  border-radius: 0.5rem;  /* rounded-lg */
  margin: 1.5rem 0;
}

/* Blockquotes */
.single-post-content blockquote {
  border-left: 4px solid #4f46e5;
  background-color: #f9fafb;
  padding: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #374151;
}

.single-post-content h2, .single-post-content h3 {
  scroll-margin-top: 100px;
}
.single-post-content hr {
  border: none;
  border-top: 1px solid #e5e7eb; /* gray-200 */
  margin: 2rem 0;
}
.single-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border: 1px solid #e5e7eb; /* gray-200 */
}

.single-post-content thead {
  background-color: #f3f4f6; /* gray-100 */
}

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

.single-post-content th {
  font-weight: 600;
  color: #1f2937; /* gray-800 */
}

.single-post-content tbody tr:nth-child(even) {
  background-color: #f9fafb; /* gray-50 */
}
.wp-block-table thead {
    border-bottom: 0;
}

/* Sidebar */
aside ul li {
    margin: 10px 0;
}