/* Prevent horizontal scroll */
.article-content {
  overflow-x: hidden;
}

/* Iframes (YouTube, maps, embeds) */
.article-content iframe {
  max-width: 100%;
  width: 100%;
  border-radius: 0.75rem;
  /* 12px */
  overflow: hidden;
  border: 2px solid #1d4ed8;
  /* site blue */
}

/* Proper 16:9 for video embeds */
.article-content iframe[src*="youtube"],
.article-content iframe[src*="youtu.be"],
.article-content iframe[src*="vimeo"] {
  aspect-ratio: 16 / 9;
  height: auto;
}

/* HTML5 videos */
.article-content video {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid #1d4ed8;
}

/* Optional polish */
.article-content iframe,
.article-content video {
  background: #000;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}



/* ===============================
   PREMIUM ARTICLE CONTENT STYLES
=============================== */

.article-content {
  color: #0f172a;
  /* slate-900 */
  font-size: 1.05rem;
  line-height: 1.85;
  word-wrap: break-word;
}


/* -------------------------------
   HEADINGS
-------------------------------- */

/* Common heading styling */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #0f172a;
  line-height: 1.35;
  margin-top: 1.4rem;
  margin-bottom: 0.8rem;
  font-family: inherit;
}

/* H1 */
.article-content h1 {
  font-size: 1.6rem;
  font-weight: 800;
}

/* H2 with left accent line */
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-left: 1rem;
}

/* Blue line only beside first text line */
.article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1.15em;
  background: #1d4ed8;
  border-radius: 999px;
}

/* H3 */
.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

/* H4 */
.article-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

/* H5 */
.article-content h5 {
  font-size: 1.05rem;
  font-weight: 600;
}

/* H6 */
.article-content h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
}

/* -------------------------------
   PARAGRAPHS
-------------------------------- */

.article-content p {
  margin: 0.9rem 0;
}

/* -------------------------------
   LINKS
-------------------------------- */

.article-content a {
  color: #1d4ed8;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: #1e40af;
  text-decoration-thickness: 2px;
}

/* -------------------------------
   LISTS
-------------------------------- */

.article-content ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 1.75rem;
  margin: 1.2rem 0;
}

.article-content ol {
  list-style-type: decimal;
  list-style-position: outside;
  padding-left: 1.75rem;
  margin: 1.2rem 0;
}

.article-content li {
  margin: 0.5rem 0;
  padding-left: 0.25rem;
}

/* Marker styling */
.article-content ul li::marker,
.article-content ol li::marker {
  color: #1d4ed8;
  font-weight: 600;
}


/* -------------------------------
   BLOCKQUOTE
-------------------------------- */

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(to right, #eff6ff, #ffffff);
  /*border-left: 5px solid #1d4ed8;*/
  color: #334155;
  font-style: italic;
  border-radius: 0.75rem;
}

/* -------------------------------
   IMAGES
-------------------------------- */

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 0.75rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
  display: block;
}

/* -------------------------------
   TABLES
-------------------------------- */

.article-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.article-content th,
.article-content td {
  padding: 0.4rem 1rem;
  border: 1px solid #bfdbfe;
  vertical-align: top;
  word-wrap: break-word;
}

.article-content th {
  background: linear-gradient(to bottom, #eff6ff, #dbeafe);
  font-weight: 700;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
}

.article-content tr:nth-child(even) td {
  background: #f8fafc;
}

/* -------------------------------
   CODE BLOCKS
-------------------------------- */

.article-content pre {
  background: #0f172a;
  color: #e5e7eb;
  padding: 1.2rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.article-content code {
  background: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.95rem;
}

/* -------------------------------
   HR
-------------------------------- */

.article-content hr {
  margin: 3rem 0;
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #1d4ed8, transparent);
}