/*
==========================================================
🎯 SINGLE POST STYLING — Educate India
==========================================================
*/

.single-post-container {
  max-width: 1200px;
  width: 95%;
  margin: 40px auto;
  background: #fff;
  padding: 30px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  font-family: "Open Sans", sans-serif;
  color: #333;
  line-height: 1.7;
  overflow-wrap: break-word;
}

/* -----------------------------
🎯 HEADINGS — Split Color
----------------------------- */
.heading-black, .half-dark { color: #111; }
.heading-red, .half-red { color: #8B0000; }

.single-post-container h1,
.single-post-container h2,
.single-post-container h3,
.single-post-container h4,
.single-post-container h5,
.single-post-container h6 {
  font-family: "Merriweather Sans", serif;
  font-weight: 700;
  line-height: 1.5;
  margin: 1.5rem 0 1rem;
  color: #111;
  text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.08);
}
.single-post-container h1 { font-size: 34px; }
.single-post-container h2 { font-size: 30px; }
.single-post-container h3 { font-size: 26px; }
.single-post-container h4 { font-size: 22px; }
.single-post-container h5 { font-size: 19px; }
.single-post-container h6 { font-size: 17px; }

@media (max-width: 768px) {
  .single-post-container h1 { font-size: 28px; }
  .single-post-container h2 { font-size: 26px; }
  .single-post-container h3 { font-size: 22px; }
  .single-post-container h4 { font-size: 20px; }
  .single-post-container h5 { font-size: 17px; }
  .single-post-container h6 { font-size: 16px; }
}
@media (max-width: 576px) {
  .single-post-container h1 { font-size: 24px; }
  .single-post-container h2 { font-size: 22px; }
  .single-post-container h3 { font-size: 20px; }
  .single-post-container h4 { font-size: 18px; }
  .single-post-container h5 { font-size: 16px; }
  .single-post-container h6 { font-size: 15px; }
}

/* -----------------------------
✅ SHARE BAR
----------------------------- */
.share-bar {
  margin: 1.5rem 0;
  font-weight: 600;
  background: #fff6f6;
  padding: 12px 16px;
  border-left: 4px solid #8B0000;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.share-bar strong { margin-right: 8px; }
.share-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ddd;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.share-bar a.wa { background: #25D366; }
.share-bar a.fb { background: #3b5998; }
.share-bar a.tg { background: #229ED9; }
.share-bar a.x  { background: #000000; }
.share-bar a:hover { opacity: 0.85; }

/* -----------------------------
✅ LISTS
----------------------------- */
.single-post-container ul {
  padding-left: 1.5rem;
}
.single-post-container ul li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 18px;
  list-style: none;
}
.single-post-container ul li::before {
  content: '•';
  color: #8B0000;
  font-size: 1.1rem;
  position: absolute;
  left: 0;
  top: 0.2rem;
}

.single-post-container ol {
  padding-left: 1.5rem;
  counter-reset: list-counter;
}
.single-post-container ol li {
  counter-increment: list-counter;
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 24px;
  list-style: none;
}
.single-post-container ol li::before {
  content: counter(list-counter) '.';
  position: absolute;
  left: 0;
  color: #8B0000;
  font-weight: bold;
}

/* -----------------------------
✅ Blockquotes
----------------------------- */
.single-post-container blockquote {
  background: #fef5f5;
  border-left: 5px solid #8B0000;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: #555;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* -----------------------------
✅ Tables
----------------------------- */
.single-post-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.single-post-container th,
.single-post-container td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}
.single-post-container th {
  background: #f5f5f5;
  color: #222;
  font-weight: 700;
}
.single-post-container .table-responsive {
  overflow-x: auto;
  width: 100%;
  margin: 1.5rem 0;
}
.single-post-container .table-responsive table {
  min-width: 600px;
}

/* -----------------------------
✅ Code Blocks
----------------------------- */
.single-post-container pre {
  background: #f4f4f4;
  padding: 1rem;
  border-left: 4px solid #8B0000;
  overflow-x: auto;
  font-size: 14px;
  border-radius: 6px;
  margin: 1.5rem 0;
}
.single-post-container code {
  background: #f1f1f1;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
}

/* -----------------------------
✅ Images and Videos
----------------------------- */
.single-post-container img,
.single-post-container video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.single-post-container .wp-caption-text {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-top: -10px;
}

/* -----------------------------
✅ CTA Boxes (social/pdf) — UPDATED
----------------------------- */
.educate-cta {
  background: #fff6f6;
  padding: 20px 24px;
  margin: 2rem 0;
  border-left: 5px solid #8B0000;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-family: "Open Sans", sans-serif;
  color: #222;
  line-height: 1.6;
  text-align: center;
}
.educate-cta p {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #B71C1C;
}
.educate-cta .cta-buttons {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.educate-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  background: #8B0000;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  transition: background 0.3s ease;
  margin: 4px 6px;
  white-space: nowrap;
}
.educate-cta .cta-btn:hover {
  background: #b30000;
}
.cta-btn.telegram {
  background: #0078B5; /* Contrast-friendly blue */
  color: #ffffff;
}
.cta-btn.telegram:hover { background: #166f9e; }
.cta-btn.whatsapp {
  background: #117a65; /* Official darker WhatsApp green */
  color: #ffffff;
}
.cta-btn.whatsapp:hover {
  background: #18a14a;
}

@media (max-width: 576px) {
  .educate-cta p {
    font-size: 16px;
    text-align: center;
  }
  .educate-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .educate-cta .cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================
🔒 CATEGORY CONTAINERS — Imported for Related Posts (SINGLE)
========================================================== */
.final-category-wrapper {
  margin-top: 60px;
  margin-bottom: 40px;
}
.educate-post-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 14px;
  margin-bottom: 30px;
  border-bottom: 2px dashed #e4e4e4;
}
.educate-post-wrapper.icon-left {
  flex-direction: row;
}
.category-final-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #8B0000;
  margin: 1.5rem 0 0.8rem;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

/* ==========================================================
🎯 AUTO BUTTON STYLE — Formal Dark Red with Hover Effects
========================================================== */
.download-button {
  display: inline-block;
  background-color: #8B0000;
  color: #ffffff !important;
  padding: 10px 18px;
  font-weight: 600;
  border: 1px solid #8B0000;
  border-radius: 6px;
  text-align: center;
  text-decoration: none !important;
  font-family: "Merriweather Sans", sans-serif;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  margin: 10px 0;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.download-button:hover {
  background-color: #000000;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* -----------------------------
🎯 ACCESSIBILITY FIX: Underline Inline Text Links
----------------------------- */
.single-post-container p a,
.single-post-container li a,
.single-post-container blockquote a,
.single-post-container span a,
.single-post-container .wp-caption a {
  text-decoration: underline;
  font-weight: 600;
  color: #8B0000;
}
/* -----------------------------
🎯 ACCESSIBILITY FIX: No Underline CTA Text Links
----------------------------- */
.cta-btn,
.download-button,
.share-bar a {
  text-decoration: none !important;
}
