/* ==========================================================================
   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;
  }
}