/* ==========================================================================
   ITBrains — Blog Məqalə Səhifəsi (blog-post.css)
   blog.css əsasında, yalnız bu səhifədə istifadə olunan elementlər üçün
   ========================================================================== */

.blog-title {
  padding: 60px 0;
  text-align: center;
}

.blog-title p {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 600;
  background-image: url("../Image/Bloqlarımız-bg.png");
  background-size: contain;
  background-position: center top;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  border-top: 2px solid rgba(91, 3, 163, 0.26);
  padding-top: 30px;
  border-bottom: 2px solid rgba(91, 3, 163, 0.682);
  padding-bottom: 50px;
}

[data-theme="dark"] .blog-title p {
  border-top: 2px solid rgba(7, 173, 35, 0.26);
  border-bottom: 2px solid rgba(3, 163, 24, 0.682);
}

/* Dark mode — mətn rənglərinin override edilməsi */
[data-theme="dark"] body.blog-page {
  color: #ffffff !important;
  background-color: #090909 !important;
}
[data-theme="dark"] body.blog-page h2,
[data-theme="dark"] body.blog-page h3,
[data-theme="dark"] body.blog-page h4,
[data-theme="dark"] body.blog-page h5,
[data-theme="dark"] body.blog-page h6,
[data-theme="dark"] body.blog-page a,
[data-theme="dark"] body.blog-page li {
  color: #ffffff !important;
  background-color: transparent !important;
}

[data-theme="dark"] body.blog-page p {
  color: rgb(255, 255, 255);
  background-color: transparent !important;
}

/* Dark-mode naviqasiya hover */
[data-theme="dark"] body.blog-page nav ul li a {
  color: rgba(109, 110, 118, 1) !important;
}

[data-theme="dark"] body.blog-page nav ul li a:hover {
  color: #8eff01 !important;
}

[data-theme="dark"] body.blog-page .dropdown-menu li a::after {
  background: #8eff01 !important;
}

[data-theme="dark"] body.blog-page .dropdown-menu li a:hover {
  background-color: rgba(142, 255, 1, 0.12) !important;
  color: #8eff01 !important;
}

/* Məqalə şəkli */
.blog-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 10px;
  margin: 0 auto 20px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

/* Tarix / oxuma vaxtı / kateqoriya sətri */
.meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: rgba(27, 25, 25, 1);
  text-align: center;
  margin-bottom: 50px;
}

[data-theme="dark"] body.blog-page .meta {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Məqalənin ümumi konteyneri */
.page {
  width: 1000px;
  margin: 70px auto;
}

.blog-page-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

/* Məqalə bölmələri */
.blog-section h2 {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 48px;
  color: rgba(27, 25, 25, 1);
  margin-bottom: 20px;
}

.blog-section p {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  color: rgba(65, 66, 71, 1);
  margin-bottom: 40px;
}

.blog-section p br,
.blog-section h2 br {
  display: inline;
}

/* Rəngli / vurğulanmış bölmə (siyahılı hissə) */
.section-tinted {
  margin-bottom: 40px;
  background-color: rgba(91, 3, 163, 0.04);
  border-radius: 12px;
  padding: 30px;
}

.section-tinted h2 {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 48px;
  color: rgba(27, 25, 25, 1);
  margin-bottom: 20px;
}

.section-tinted p {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  color: rgba(65, 66, 71, 1);
}

.section-tinted ol {
  padding-left: 0;
}

.section-tinted ol li {
  margin-left: 20px;
  margin-top: 20px;
  margin-bottom: 40px;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 34px;
  color: rgba(24, 22, 22, 1);
}

[data-theme="dark"] body.blog-page .section-tinted {
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 30px;
}

/* Geriyə qayıtma linki */
.blog-link {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  text-decoration: underline;
}

.blog-link a {
  color: inherit;
  transition: opacity 0.2s ease;
}

.blog-link a:hover {
  opacity: 0.75;
}

/* ─── 1024px ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .page {
    width: 90%;
    margin: 50px auto;
  }

  .blog-title h2 {
    font-size: 60px;
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .blog-section h2,
  .section-tinted h2 {
    font-size: 28px;
    line-height: 40px;
  }

  .blog-section p,
  .section-tinted p {
    font-size: 16px;
    line-height: 26px;
  }

  .meta {
    font-size: 14px;
  }

  .blog-link {
    font-size: 24px;
    margin-top: 80px;
  }

  .blog-image {
    max-width: 420px;
  }

  .blog-image img {
    max-height: 280px;
  }
}

/* ─── 768px ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .page {
    width: 95%;
    margin: 40px auto;
  }

  .blog-title {
    padding: 40px 0;
  }

  .blog-title h2 {
    font-size: 42px;
    padding-top: 15px;
    padding-bottom: 20px;
  }

  .blog-image {
    max-width: 360px;
    margin-bottom: 15px;
  }

  .blog-image img {
    max-height: 240px;
  }

  .blog-section h2,
  .section-tinted h2 {
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 15px;
  }

  .blog-section p br,
  .blog-section h2 br,
  .section-tinted h2 br {
    display: none;
  }

  .blog-section p,
  .section-tinted p {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 30px;
  }

  .section-tinted {
    margin-bottom: 30px;
  }

  .section-tinted ol li {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 12px;
  }

  .meta {
    font-size: 13px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .blog-link {
    font-size: 20px;
    line-height: 28px;
    margin-top: 60px;
  }
}

/* ─── 480px ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .page {
    width: 100%;
    margin: 30px 0;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .blog-title {
    padding: 30px 0;
  }

  .blog-title h2 {
    font-size: 28px;
    padding-top: 10px;
    padding-bottom: 15px;
    border-top: 1px solid rgba(91, 3, 163, 0.26);
    border-bottom: 1px solid rgba(91, 3, 163, 0.682);
  }

  .blog-image {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
  }

  .blog-image img {
    max-height: 200px;
  }

  .blog-section h2,
  .section-tinted h2 {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 12px;
  }

  .blog-section p,
  .section-tinted p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 20px;
  }

  .section-tinted {
    margin-bottom: 25px;
  }

  .section-tinted ol li {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 10px;
    margin-left: 0;
  }

  .meta {
    font-size: 12px;
    gap: 6px;
    margin-bottom: 30px;
    flex-wrap: wrap;
  }

  .blog-link {
    font-size: 16px;
    line-height: 24px;
    margin-top: 50px;
    text-align: center;
    padding: 0 16px;
  }
}
/* ── Bloq mətni: admin paneldəki CKEditor-un yazdığı HTML (#postArticle) ──
   Tailwind preflight başlıq və siyahı stillərini sıfırlayır, burada geri qaytarırıq */
#postArticle h2 { font-size: 1.5em; font-weight: 600; line-height: 1.3; color: #1b1919; }
#postArticle h3 { font-size: 1.25em; font-weight: 600; line-height: 1.35; color: #1b1919; }
#postArticle h4 { font-size: 1.1em; font-weight: 600; line-height: 1.4; color: #1b1919; }
#postArticle strong { font-weight: 600; }
#postArticle a { color: #8c00ff; text-decoration: underline; }
#postArticle ul { list-style: disc; padding-left: 1.5em; }
#postArticle ol { list-style: decimal; padding-left: 1.5em; }
#postArticle li + li { margin-top: 0.35em; }
#postArticle blockquote {
  border-left: 4px solid #8c00ff; padding: 0.25em 0 0.25em 1em;
  font-style: italic; color: #555;
}
#postArticle pre {
  background: #1a1028; color: #f3f0ff; padding: 1em 1.25em;
  border-radius: 10px; overflow-x: auto; font-size: 0.85em; line-height: 1.6;
}
#postArticle code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
#postArticle hr { border: 0; border-top: 1px solid rgba(0, 0, 0, 0.12); }

/* "table" sinfi Tailwind-in .table { display: table } utility-si ilə toqquşur */
#postArticle figure.table { display: block; overflow-x: auto; }
#postArticle table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
#postArticle th, #postArticle td { border: 1px solid rgba(0, 0, 0, 0.15); padding: 0.5em 0.75em; text-align: left; }
#postArticle th { background: rgba(91, 3, 163, 0.06); font-weight: 600; }

#postArticle figure.image { display: table; clear: both; margin-left: auto; margin-right: auto; max-width: 100%; }
#postArticle figure.image img { display: block; margin: 0 auto; max-width: 100%; min-width: 100%; height: auto; border-radius: 12px; }
#postArticle figure.image.image_resized { display: block; max-width: 100%; }
#postArticle figure.image.image_resized img { width: 100%; }
#postArticle figure.image figcaption {
  display: table-caption; caption-side: bottom; padding-top: 0.5em;
  text-align: center; font-size: 0.8em; color: #6b7280;
}
#postArticle figure.image.image-style-side { float: right; max-width: 50%; margin: 0 0 1em 1.5em; }
#postArticle img.image_resized { height: auto; }
#postArticle::after { content: ""; display: block; clear: both; }

[data-theme="dark"] #postArticle h2,
[data-theme="dark"] #postArticle h3,
[data-theme="dark"] #postArticle h4 { color: #fff; }
[data-theme="dark"] #postArticle a { color: #8eff01; }
[data-theme="dark"] #postArticle blockquote { color: #ccc; border-left-color: #8eff01; }
[data-theme="dark"] #postArticle hr { border-top-color: rgba(255, 255, 255, 0.15); }
[data-theme="dark"] #postArticle th,
[data-theme="dark"] #postArticle td { border-color: rgba(255, 255, 255, 0.2); }
[data-theme="dark"] #postArticle th { background: rgba(255, 255, 255, 0.06); }

@media (max-width: 640px) {
  #postArticle figure.image.image-style-side { float: none; max-width: 100%; margin: 0 auto; }
}
