/* ==============================
   BLOG INNER PAGE — CIRL Theme
================================= */

/* ── Hero / Meta Bar ── */
.post-hero {
  background: linear-gradient(135deg, #29149C 0%, #1a0d6b 55%, #00B04E 100%);
  padding: 70px 20px 150px 20px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.post-hero .container {
  position: relative;
  z-index: 1;
}

.post-category-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.post-hero-title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  max-width: 800px;
  margin: 0 auto 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-meta-separator {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

/* ── Featured Image ── */
.post-featured-image-wrap {
  max-width: 1000px;
  margin: -100px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.post-featured-image-wrap img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(41, 20, 156, 0.2);
  object-fit: cover;
  max-height: 480px;
  display: block;
}

/* ── Article Layout ── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 20px 80px;
}

@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
    padding: 30px 20px 60px;
  }
  .post-sidebar {
    order: 2;
    margin-top: 40px;
  }
  #relatedPostsList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .related-post-item:last-child{
    border-bottom: 2px solid rgba(0, 176, 78, 0.8) !important;
  }
}

@media (max-width: 600px) {
  #relatedPostsList {
    grid-template-columns: 1fr;
  }

  .related-post-item:last-child{
    border-bottom: none !important;
  }
}

/* ── Article Body ── */
.post-body {
  background: #fff;
  border-radius: 20px;
  padding: 44px 44px;
  box-shadow: 0 4px 24px rgba(41, 20, 156, 0.06);
  border: 1px solid rgba(0, 176, 78, 0.08);
}

@media (max-width: 640px) {
  .post-body {
    padding: 28px 20px;
  }
}

/* WordPress content styles */
.post-body .wp-content h1,
.post-body .wp-content h2,
.post-body .wp-content h3,
.post-body .wp-content h4 {
  color: #29149C;
  font-weight: 500;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}

.post-body .wp-content h2 {
  font-size: 1.5rem;
  border-left: 4px solid #00B04E;
  padding-left: 14px;
}

.post-body .wp-content h3 {
  font-size: 1.2rem;
}

.post-body .wp-content p {
  color: #444;
  line-height: 1.85;
  font-size: 0.95rem;
  margin-bottom: 1.2em;
}

.post-body .wp-content a {
  color: #00B04E;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.post-body .wp-content a:hover {
  color: #29149C;
}

.post-body .wp-content ul,
.post-body .wp-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

.post-body .wp-content li {
  margin-bottom: 0.5em;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.75;
}

.post-body .wp-content blockquote {
  border-left: 4px solid #00B04E;
  background: #ecf5f0;
  margin: 1.6em 0;
  padding: 18px 24px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #29149C;
}

.post-body .wp-content img {
  max-width: 100%;
  height: 100%;
  border-radius: 12px;
  margin: 1.4em 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.post-body .wp-content figure {
  margin: 1.6em 0;
}

.post-body .wp-content figcaption {
  text-align: center;
  font-size: 0.78rem;
  color: #888;
  margin-top: 8px;
}

.post-body .wp-content pre,
.post-body .wp-content code {
  background: #f5f3ff;
  border: 1px solid #e0d7ff;
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 2px 6px;
}

.post-body .wp-content pre {
  padding: 16px 20px;
  overflow-x: auto;
}

.post-body .wp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.88rem;
}

.post-body .wp-content table th {
  background: #29149C;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}

.post-body .wp-content table td {
  border: 1px solid #e8e0f8;
  padding: 9px 14px;
  color: #444;
}

.post-body .wp-content table tr:nth-child(even) td {
  background: #f9f7ff;
}

/* ── Share Section ── */
.post-share {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 176, 78, 0.15);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.post-share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #29149C;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: "Poppins", sans-serif;
}

.share-btn-twitter {
  background: #000;
  color: #fff;
}

.share-btn-linkedin {
  background: #0077b5;
  color: #fff;
}

.share-btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.share-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ── Back Link ── */
.back-to-blogs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #29149C;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s, gap 0.2s;
}

.back-to-blogs::before {
  content: "←";
  transition: transform 0.2s;
}

.back-to-blogs:hover {
  color: #00B04E;
}

.back-to-blogs:hover::before {
  transform: translateX(-4px);
}

/* ==============================
   MORE ARTICLES PANEL (Premium)
================================= */

.post-sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 30px;
  align-self: start;

}

.more-articles-card {
  background: #fff;
  border-radius: 18px;
  padding: 25px 20px;
  border: 1px solid #eef0fa;

  box-shadow:
    0 8px 24px rgba(41, 20, 156, 0.05),
    0 18px 50px rgba(41, 20, 156, 0.08);
}

.more-articles-title {
  font-size: 1rem;
  font-weight: 700;
  color: #29149C;
  position: relative;
  padding-bottom: 12px;
}

.more-articles-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #29149C, #00B04E);
  border-radius: 2px;
}

/* Article Item */
.related-post-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 0 14px 0;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 176, 78, 0.8);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.related-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-post-item:hover {
  transform: translateY(-6px);
  opacity: 0.85;
}

/* Thumbnail */
.related-post-thumb {
  width: 100%;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}

/* Text */
.related-post-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-post-date {
  font-size: 0.68rem;
  color: #00B04E;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.related-post-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: black;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.related-post-item:hover .related-post-title {
  color: #29149C;
}


/* ── Loading / Error ── */
.post-loading {
  text-align: center;
  padding: 100px 20px;
}

.post-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #ecf5f0;
  border-top-color: #00B04E;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .post-body{
     padding: 20px;
  }
  .post-hero {
    padding: 50px 20px 100px 20px;
  }
  .post-hero-title {
    font-size: 1.6rem;
  }
  .post-featured-image-wrap {
    margin-top: -70px;
  }
  .post-layout {
    padding: 32px 16px 60px;
  }
}
