/* ==========================================================================
   BLOG DETAILS / SHOW SPECIFIC STYLES (public/blogs/show.blade.php)
   ========================================================================== */

/* 2-Column Split Layout (Explicit Flexbox Layout) */
.blog-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  background-color: #ffffff;
}

.blog-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.blog-left-content {
  flex: 1 1 65%;
  max-width: 68%;
  min-width: 0;
}

.blog-right-sidebar {
  flex: 1 1 27%;
  max-width: 28%;
  min-width: 0;
  position: sticky;
  top: 100px;
}

@media (max-width: 991px) {
  .blog-left-content {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .blog-right-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
    position: static;
    margin-top: 40px;
  }
}

/* Dark Modern Hero Banner with Brand Navy Palette */
.blog-hero-header {
  background: linear-gradient(135deg, #0b092a 0%, #151247 65%, #1e195e 100%);
  color: #ffffff;
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-draft-preview-banner {
  background-color: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.blog-draft-preview-text {
  color: #664d03;
  font-weight: 600;
  font-size: 0.9rem;
}

.blog-draft-preview-text i {
  margin-right: 8px;
}

.blog-draft-edit-btn {
  background-color: #ffc107;
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 50rem;
}

.blog-hero-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(189, 74, 60, 0.22) 0%, rgba(189, 74, 60, 0) 70%);
  pointer-events: none;
}

.blog-category-badge {
  display: inline-block;
  background: var(--accent-orange, #bd4a3c);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 20px;
  border-radius: 50rem;
  margin-bottom: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(189, 74, 60, 0.3);
}

.blog-category-badge:hover {
  background: #a63c30;
  color: #ffffff !important;
}

.blog-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  max-width: 900px;
  margin: 0 auto 16px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .blog-hero-title {
    font-size: 1.8rem;
  }
}

.blog-author-line {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.blog-detail-wrapper {
  background-color: #ffffff;
}

/* Main Featured Cover Image */
.blog-cover-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
}

/* Excerpt Box */
.blog-excerpt-box {
  border-left: 4px solid #bd4a3c;
  background-color: #fff4e8;
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  font-size: 1.1rem;
  font-style: italic;
  color: #151247;
  margin-bottom: 24px;
}

/* Rich Body Content Styling */
.blog-content-body {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 40px;
}

.blog-content-body h1,
.blog-content-body h2,
.blog-content-body h3,
.blog-content-body h4 {
  color: #151247;
  font-weight: 800;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.blog-content-body h2 {
  font-size: 1.6rem;
}

.blog-content-body h3 {
  font-size: 1.3rem;
}

.blog-content-body p {
  margin-bottom: 1.4rem;
}

.blog-content-body ul,
.blog-content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content-body li {
  margin-bottom: 0.5rem;
}

.blog-content-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* Tags Section Pill Badges */
.blog-tags-container {
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  margin-top: 40px;
}

.tags-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #151247;
  margin-bottom: 14px;
}

.tags-flex-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tag-pill-badge {
  display: inline-block;
  background-color: #bd4a3c;
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 50rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-pill-badge:hover {
  background-color: #a63c30;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(189, 74, 60, 0.3);
}

/* Right Sidebar Styling */
.sidebar-category-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #151247;
  margin-bottom: 16px;
}

.sidebar-recent-posts-title {
  font-size: 1.15rem;
  margin-top: 40px;
}

.sidebar-category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-category-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 4px 0;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.sidebar-category-link:hover,
.sidebar-category-link.active {
  color: #bd4a3c;
  padding-left: 4px;
}

/* Recent Posts Sidebar Item */
.recent-post-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  text-decoration: none;
}

.recent-post-thumb {
  width: 60px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-post-title-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #151247;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.recent-post-row:hover .recent-post-title-text {
  color: #bd4a3c;
}

/* Related Posts Section Grid (3 Columns) */
.related-posts-wrapper {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
}

.related-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #151247;
  margin-bottom: 24px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(21, 18, 71, 0.08);
}

.related-card-img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.related-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-card-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #bd4a3c;
  margin-bottom: 6px;
}

.related-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #151247;
  line-height: 1.4;
  margin: 0;
}

.related-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-card-title a:hover {
  color: #bd4a3c;
}
