.hero { overflow: hidden; border-radius: .5rem; position: relative; }
.hero-content {
  max-width: 960px;
  /* Reset text styles - let CKEditor content define them */
  font-size: 1rem;
  line-height: 1.5;
}

/* Hero content formatting - honor CKEditor styles */
.hero-content h1,
.hero-content h2,
.hero-content h3,
.hero-content h4,
.hero-content h5,
.hero-content h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content h1 { font-size: 2.5rem; }
.hero-content h2 { font-size: 2rem; }
.hero-content h3 { font-size: 1.75rem; }
.hero-content h4 { font-size: 1.5rem; }
.hero-content h5 { font-size: 1.25rem; }
.hero-content h6 { font-size: 1rem; }

.hero-content p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.hero-content ul,
.hero-content ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.hero-content li {
  margin-bottom: 0.25rem;
}

/* Nested list styling - ensure proper indentation and list markers */
.hero-content ul ul,
.hero-content ol ol,
.hero-content ul ol,
.hero-content ol ul {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  padding-left: 1.5rem;
}

/* Different bullet styles for nested unordered lists */
.hero-content ul {
  list-style-type: disc;
}

.hero-content ul ul {
  list-style-type: circle;
}

.hero-content ul ul ul {
  list-style-type: square;
}

/* Ensure ordered lists maintain proper numbering at each level */
.hero-content ol {
  list-style-type: decimal;
}

.hero-content ol ol {
  list-style-type: lower-alpha;
}

.hero-content ol ol ol {
  list-style-type: lower-roman;
}

.hero-content strong,
.hero-content b {
  font-weight: 700;
}

.hero-content em,
.hero-content i {
  font-style: italic;
}

.hero-content a {
  color: inherit;
  text-decoration: underline;
}

.hero-content blockquote {
  border-left: 4px solid rgba(255, 255, 255, 0.5);
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1rem;
  font-style: italic;
  font-size: 1rem;
}

.hero-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.hero-content figure {
  max-width: 100%;
  margin: 1rem 0;
}

.hero-content figure img {
  max-width: 100%;
  height: auto;
}

/* Remove any default text size overrides */
.hero-content > * {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive hero text sizing */
@media (max-width: 768px) {
  /* Allow hero to grow with text; keep image and overlay behind */
  .hero {
    position: relative;
  }
  .hero picture {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    padding-bottom: 0 !important; /* disable desktop aspect ratio on mobile/tablet */
  }
  .hero picture img {
    height: 100% !important;
  }
  .hero .hero-overlay {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
  }
  .hero .hero-content {
    position: relative !important; /* take part in layout so container height grows */
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 2;
  }
  .hero-content h1 { font-size: 2rem; }
  .hero-content h2 { font-size: 1.75rem; }
  .hero-content h3 { font-size: 1.5rem; }
  .hero-content p { font-size: 0.95rem; }
}

.post-card img { object-fit: cover; }
.sticky-top { z-index: 10; }

/* Hero title overlay on post cards */
.hero-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.3) 80%, transparent 100%);
  padding: 3rem 1.5rem 1.5rem;
  z-index: 1;
}

.hero-title-overlay .card-title {
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

/* View/impression badges on cards */
.post-metrics-badges .badge {
  backdrop-filter: blur(4px);
}

/* Mobile responsive for hero title overlay */
@media (max-width: 768px) {
  /* Home page hero content */
  .hero-content {
    padding: 1.5rem 1rem !important;
    max-width: 100%;
  }

  .hero-content h1 { font-size: 1.75rem !important; }
  .hero-content h2 { font-size: 1.5rem !important; }
  .hero-content h3 { font-size: 1.25rem !important; }
  .hero-content h4 { font-size: 1.1rem !important; }
  .hero-content h5 { font-size: 1rem !important; }
  .hero-content h6 { font-size: 0.95rem !important; }

  .hero-content p {
    font-size: 0.95rem !important;
  }

  /* Post card hero title overlay */
  .hero-title-overlay {
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  }

  .hero-title-overlay .card-title {
    font-size: 1.15rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Footer content wrapper mobile optimization */
  .footer-content-wrapper .container {
    padding: 1.5rem 1.5rem !important; /* consistent horizontal padding on tablet */
  }

  /* Footer without background image - tablet optimization */
  footer > .container {
    padding: 1.5rem 1.5rem !important;
  }

  /* Let footer grow vertically with its text on mobile/tablet */
  .footer-background-wrapper {
    height: auto !important;
    padding-bottom: 0 !important; /* disable fixed aspect ratio */
    position: relative;
  }
  .footer-background-wrapper picture {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
  }
  .footer-background-wrapper .footer-overlay {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
  }
  .footer-content-wrapper {
    position: relative !important; /* participate in layout so wrapper grows */
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }

  .footer-background-wrapper h1,
  .footer-background-wrapper h2,
  .footer-background-wrapper h3 {
    font-size: 1.25rem !important;
  }

  .footer-background-wrapper h4,
  .footer-background-wrapper h5,
  .footer-background-wrapper h6 {
    font-size: 1rem !important;
  }

  .footer-background-wrapper p,
  .footer-background-wrapper li {
    font-size: 0.875rem !important;
  }
}

@media (max-width: 576px) {
  /* Same behavior on small phones */
  .hero {
    position: relative;
    min-height: 150px;
  }
  .hero picture {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    padding-bottom: 0 !important;
  }
  .hero picture img {
    height: 100% !important;
  }
  .hero .hero-overlay {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
  }
  .hero .hero-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 2;
  }
  /* Home page hero content */
  .hero-content {
    padding: 1rem 0.75rem !important;
    max-width: 100%;
  }

  .hero-content h1 { font-size: 1.4rem !important; }
  .hero-content h2 { font-size: 1.25rem !important; }
  .hero-content h3 { font-size: 1.1rem !important; }
  .hero-content h4 { font-size: 1rem !important; }
  .hero-content h5 { font-size: 0.95rem !important; }
  .hero-content h6 { font-size: 0.9rem !important; }

  .hero-content p {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
  }

  /* Post card hero title overlay */
  .hero-title-overlay {
    padding: 1rem 0.75rem 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  }

  .hero-title-overlay .card-title {
    font-size: 1rem;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Footer content wrapper for extra small screens */
  .footer-content-wrapper .container {
    padding: 1rem 1rem !important; /* consistent horizontal padding on phones */
  }

  /* Footer without background image - phone optimization */
  footer > .container {
    padding: 1rem 1rem !important;
  }

  /* Same behavior for small phones */
  .footer-background-wrapper {
    height: auto !important;
    padding-bottom: 0 !important;
    position: relative;
  }
  .footer-background-wrapper picture {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
  }
  .footer-background-wrapper .footer-overlay {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
  }
  .footer-content-wrapper {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }

  .footer-background-wrapper h1,
  .footer-background-wrapper h2,
  .footer-background-wrapper h3 {
    font-size: 1.1rem !important;
  }

  .footer-background-wrapper h4,
  .footer-background-wrapper h5,
  .footer-background-wrapper h6 {
    font-size: 0.95rem !important;
  }

  .footer-background-wrapper p,
  .footer-background-wrapper li {
    font-size: 0.8rem !important;
  }
}
/* Edit buttons for sections */
.btn-edit-section {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero:hover .btn-edit-section,
.card:hover .btn-edit-section,
.position-relative:hover .btn-edit-section {
  opacity: 1;
}

.btn-edit-section {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-edit-section:hover {
  background-color: var(--bs-light) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 55px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #0d6efd, #6ea8fe);
  border-radius: 3px;
}

/* Hide timeline bar when there are no posts (only contains text) */
.timeline:not(:has(.timeline-item))::before {
  display: none;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-left: 0;
}

.timeline-date {
  flex: 0 0 140px;
  text-align: center;
  position: relative;
  left: -13px;
  z-index: 2;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.timeline-date-content {
  display: inline-block;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Modern connector: concentric ring with subtle glow */
.timeline-date-content::after {
  content: '';
  position: absolute;
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #0d6efd 35%, transparent 36%);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.7), 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.timeline-item:hover .timeline-date-content::after {
  background: radial-gradient(circle at center, #0b5ed7 45%, transparent 46%);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.6), 0 2px 10px rgba(0, 0, 0, 0.25);
}

.timeline-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.5px;
}

.timeline-day {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0d6efd;
  line-height: 1;
  margin: 0.25rem 0;
}

.timeline-year {
  font-size: 0.875rem;
  color: #6c757d;
}

.timeline-content {
  flex: 1;
  padding-left: 0.25rem;
  margin-left: -8px;
}

.timeline-item .post-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.timeline-item .post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline-item .read-more {
  pointer-events: none;
}

/* Post preview content - show formatted HTML with truncation */
.post-preview-content {
  max-height: 150px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-preview-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
}

/* Let CKEditor dimensions be honored but constrain to container */
.post-preview-content img {
  max-width: 100%;
  height: auto;
}

/* Default block display for images without alignment, but not in lists */
.post-preview-content p img:not(.ql-align-left):not(.ql-align-right):not(.ql-align-center),
.post-preview-content > img:not(.ql-align-left):not(.ql-align-right):not(.ql-align-center) {
  display: block;
}

/* Images in list items default to left (normal flow) unless alignment is specified */
.post-preview-content li img {
  display: inline-block;
  margin: 0.5rem 0;
}

/* Ensure images in aligned paragraphs/containers follow parent alignment */
.post-preview-content .ql-align-center img,
.post-preview-content p.ql-align-center img,
.post-preview-content li.ql-align-center img {
  display: inline-block !important;
  margin-left: auto;
  margin-right: auto;
}

.post-preview-content .ql-align-right img,
.post-preview-content p.ql-align-right img,
.post-preview-content li.ql-align-right img {
  display: inline-block !important;
  margin-left: auto;
  margin-right: 0;
}

.post-preview-content .ql-align-left img,
.post-preview-content p.ql-align-left img,
.post-preview-content li.ql-align-left img {
  display: inline-block !important;
  margin-left: 0;
  margin-right: auto;
}

/* For standalone images with alignment classes applied directly */
.post-preview-content img.ql-align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.post-preview-content img.ql-align-right {
  display: block;
  margin-left: auto;
  margin-right: 0;
}

.post-preview-content img.ql-align-left {
  display: block;
  margin-left: 0;
  margin-right: auto;
}

.post-preview-content figure {
  max-width: 100%;
  margin: 0.5rem 0;
}

.post-preview-content figure img {
  max-width: 100%;
  height: auto;
}

.post-preview-content > *:first-child {
  margin-top: 0;
}

.post-preview-content > *:last-child {
  margin-bottom: 0;
}

/* CKEditor content formatting in preview */
.post-preview-content h1,
.post-preview-content h2,
.post-preview-content h3,
.post-preview-content h4,
.post-preview-content h5,
.post-preview-content h6 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.post-preview-content h1 { font-size: 1.5rem; }
.post-preview-content h2 { font-size: 1.35rem; }
.post-preview-content h3 { font-size: 1.2rem; }
.post-preview-content h4 { font-size: 1.1rem; }
.post-preview-content h5 { font-size: 1rem; }
.post-preview-content h6 { font-size: 0.95rem; }

.post-preview-content p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.post-preview-content strong,
.post-preview-content b {
  font-weight: 700;
}

.post-preview-content em,
.post-preview-content i {
  font-style: italic;
}

.post-preview-content blockquote {
  border-left: 3px solid #0d6efd;
  padding-left: 1rem;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-style: italic;
  color: #6c757d;
  background-color: #f8f9fa;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.95rem;
}

.post-preview-content ul,
.post-preview-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.post-preview-content li {
  margin-bottom: 0.25rem;
}

/* Nested list styling - ensure proper indentation and list markers */
.post-preview-content ul ul,
.post-preview-content ol ol,
.post-preview-content ul ol,
.post-preview-content ol ul {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  padding-left: 1.5rem;
}

/* Different bullet styles for nested unordered lists */
.post-preview-content ul {
  list-style-type: disc;
}

.post-preview-content ul ul {
  list-style-type: circle;
}

.post-preview-content ul ul ul {
  list-style-type: square;
}

/* Ensure ordered lists maintain proper numbering at each level */
.post-preview-content ol {
  list-style-type: decimal;
}

.post-preview-content ol ol {
  list-style-type: lower-alpha;
}

.post-preview-content ol ol ol {
  list-style-type: lower-roman;
}

.post-preview-content a {
  color: #0d6efd;
  text-decoration: underline;
}

.post-preview-content code {
  background-color: #f8f9fa;
  padding: 0.15rem 0.3rem;
  border-radius: 0.2rem;
  font-family: 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.85em;
  color: #d63384;
}

/* Edit button on post cards */
.btn-edit-post-home {
  z-index: 10;
  position: relative;
  font-size: 0.875rem;
}

.btn-edit-post-home:hover {
  background-color: var(--bs-secondary);
  color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 25px;
  }

  .timeline-date {
    flex: 0 0 70px;
    left: -10px;
  }

  .timeline-date-content {
    padding: 0.35rem 0.5rem;
  }

  .timeline-date-content::after {
    right: -20px;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.5), 0 2px 6px rgba(0, 0, 0, 0.18);
  }

  .timeline-day {
    font-size: 1.25rem;
  }

  .timeline-month,
  .timeline-year {
    font-size: 0.65rem;
  }

  .timeline-content {
    padding-left: 0.25rem;
    margin-left: -4px;
  }
}

@media (max-width: 576px) {
  .timeline::before {
    left: 18px;
  }

  .timeline-date {
    flex: 0 0 55px;
    left: -8px;
  }

  .timeline-date-content {
    padding: 0.25rem 0.4rem;
  }

  .timeline-date-content::after {
    right: -16px;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 1.5px rgba(13, 110, 253, 0.6), 0 1px 4px rgba(0, 0, 0, 0.15);
  }

  .timeline-day {
    font-size: 1.1rem;
  }

  .timeline-month,
  .timeline-year {
    font-size: 0.6rem;
  }

  .timeline-content {
    padding-left: 0.25rem;
    margin-left: -3px;
  }
}

/* Footer Styles */
footer {
  background-color: #f8f9fa;
  margin-top: 3rem;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #212529;
}

footer p {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

footer a {
  color: #0d6efd;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Footer with background image - target elements inside footer-background-wrapper */
.footer-background-wrapper h1,
.footer-background-wrapper h2,
.footer-background-wrapper h3,
.footer-background-wrapper h4,
.footer-background-wrapper h5,
.footer-background-wrapper h6,
.footer-background-wrapper p,
.footer-background-wrapper li,
.footer-background-wrapper a {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.footer-background-wrapper a:hover {
  color: white !important;
  text-decoration: underline;
}

/* Footer edit button */
footer .btn-edit-section {
  top: 0.5rem;
  right: 0.5rem;
}

/* Footer content formatting */
footer ul,
footer ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

footer li {
  margin-bottom: 0.25rem;
  color: #6c757d;
}

/* Nested list styling for footer */
footer ul ul,
footer ol ol,
footer ul ol,
footer ol ul {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  padding-left: 1.5rem;
}

/* Different bullet styles for nested unordered lists */
footer ul {
  list-style-type: disc;
}

footer ul ul {
  list-style-type: circle;
}

footer ul ul ul {
  list-style-type: square;
}

/* Ensure ordered lists maintain proper numbering at each level */
footer ol {
  list-style-type: decimal;
}

footer ol ol {
  list-style-type: lower-alpha;
}

footer ol ol ol {
  list-style-type: lower-roman;
}

footer blockquote {
  border-left: 3px solid #0d6efd;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #6c757d;
  font-style: italic;
}

/* Single column layout - centered */
footer .col-12.text-center h5,
footer .col-12.text-center p,
footer .col-12.text-center ul,
footer .col-12.text-center ol {
  text-align: center;
}

footer .col-12.text-center ul,
footer .col-12.text-center ol {
  list-style-position: inside;
}

/* Footer preview hover effect */
.footer-preview-wrapper:hover .btn-remove-footer-bg {
  opacity: 1 !important;
}

/* Footer preview text scaling - make all elements small */
.footer-text-preview h1,
.footer-text-preview h2,
.footer-text-preview h3,
.footer-text-preview h4,
.footer-text-preview h5,
.footer-text-preview h6,
.footer-text-col1 h1,
.footer-text-col1 h2,
.footer-text-col1 h3,
.footer-text-col1 h4,
.footer-text-col1 h5,
.footer-text-col1 h6,
.footer-text-col2 h1,
.footer-text-col2 h2,
.footer-text-col2 h3,
.footer-text-col2 h4,
.footer-text-col2 h5,
.footer-text-col2 h6 {
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  margin-bottom: 0.25rem !important;
}

.footer-text-preview p,
.footer-text-col1 p,
.footer-text-col2 p {
  font-size: 0.6rem !important;
  line-height: 1.2 !important;
  margin-bottom: 0.15rem !important;
}

.footer-text-preview ul,
.footer-text-preview ol,
.footer-text-col1 ul,
.footer-text-col1 ol,
.footer-text-col2 ul,
.footer-text-col2 ol {
  font-size: 0.6rem !important;
  line-height: 1.2 !important;
}

/* =============================================
   Draft Post Styling (Admin Only)
   ============================================= */

/* Draft timeline item - greyed out appearance */
.timeline-item-draft {
  opacity: 0.65;
}

.timeline-item-draft:hover {
  opacity: 0.85;
}

/* Draft post card styling */
.post-card-draft {
  background-color: #f8f9fa;
  border: 2px dashed #6c757d;
  position: relative;
}

.post-card-draft::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(108, 117, 125, 0.03) 10px,
    rgba(108, 117, 125, 0.03) 20px
  );
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.post-card-draft .card-body {
  position: relative;
  z-index: 2;
}

.post-card-draft .hero-image-container {
  position: relative;
  z-index: 2;
  filter: grayscale(30%);
}

/* Draft badge container */
.draft-badge-container {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
}

.draft-badge {
  font-size: 0.7rem;
  padding: 0.35em 0.65em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Draft timeline date styling */
.timeline-date-draft {
  background: #f8f9fa !important;
  border: 2px dashed #6c757d;
}

.timeline-date-draft::after {
  background: radial-gradient(circle at center, #6c757d 35%, transparent 36%) !important;
  box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.7), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.timeline-draft-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 1px;
  padding: 0.5rem 0;
}

/* Hide draft posts when preference is set (controlled via JS) */
.timeline-item-draft.draft-hidden {
  display: none !important;
}
