/* Sidebar image widgets - branded card style */
.widget-area .sidebar-primary aside,
.widget-area .sidebar-primary .widget {
  background-color: transparent !important;
  background: transparent !important;
  border-color: transparent !important;
  border: none !important;
}

/* Branded card for image/media widgets specifically */
.widget-area .sidebar-primary .widget_block.widget_media_image,
.widget-area .sidebar-primary aside.widget_media_image {
  background-color: #1a3a52 !important;
  border-left: 4px solid #c0392b !important;
  border-radius: 3px !important;
  padding: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important;
}



/* Article1 Dispatch Archive - CORRECTED with Actual Plugin Classes */

:root {
  --dispatch-navy: #1a3a52;
  --dispatch-navy-dark: #0f2839;
  --dispatch-cream: #f5f5f5;
  --dispatch-red: #d85a30;
}

/* ===== FIRST DISPATCH ITEM (HERO) ===== */

.dispatch-list-item:first-child {
  background: linear-gradient(135deg, #1a3a52 0%, #0f2839 100%) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  position: relative !important;
  margin-bottom: 2rem !important;
}

/* LATEST badge */
.dispatch-list-item:first-child::before {
  content: 'LATEST' !important;
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  background: #d85a30 !important;
  color: white !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  border-radius: 4px !important;
  z-index: 10 !important;
}

/* Hero content area */
.dispatch-list-item:first-child .dispatch-list-content {
  padding: 2.5rem !important;
  background: transparent !important;
}

/* Hero title */
.dispatch-list-item:first-child .dispatch-list-title {
  margin: 0 0 1.5rem 0 !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

.dispatch-list-item:first-child .dispatch-list-title a {
  color: #f5f5f5 !important;
  text-decoration: none !important;
}

.dispatch-list-item:first-child .dispatch-list-title a:hover {
  opacity: 0.9 !important;
}

/* Hero excerpt (story count, date) */
.dispatch-list-item:first-child .dispatch-list-excerpt {
  color: rgba(245, 245, 245, 0.85) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin-bottom: 1.5rem !important;
}

/* Hero meta */
.dispatch-list-item:first-child .dispatch-list-meta {
  display: none !important;
}

/* Hero read more button */
.dispatch-list-item:first-child .read-more {
  display: inline-block !important;
  padding: 12px 24px !important;
  background: #d85a30 !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: opacity 0.2s !important;
  border: none !important;
  cursor: pointer !important;
}

.dispatch-list-item:first-child .read-more:hover {
  opacity: 0.9 !important;
}

/* ===== ARCHIVE DISPATCH ITEMS (BELOW HERO) ===== */

.dispatch-list-item:not(:first-child) {
  background: white !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  margin-bottom: 1.5rem !important;
  transition: all 0.2s !important;
}

.dispatch-list-item:not(:first-child):hover {
  border-color: #d85a30 !important;
  box-shadow: 0 4px 12px rgba(26, 58, 82, 0.1) !important;
}

.dispatch-list-item:not(:first-child) .dispatch-list-content {
  padding: 1.5rem !important;
}

.dispatch-list-item:not(:first-child) .dispatch-list-title {
  margin: 0 0 1rem 0 !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

.dispatch-list-item:not(:first-child) .dispatch-list-title a {
  color: #1a3a52 !important;
  text-decoration: none !important;
}

.dispatch-list-item:not(:first-child) .dispatch-list-title a:hover {
  color: #d85a30 !important;
}

.dispatch-list-item:not(:first-child) .dispatch-list-excerpt {
  color: #666 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin-bottom: 1rem !important;
}

.dispatch-list-item:not(:first-child) .dispatch-list-meta {
  font-size: 12px !important;
  color: #999 !important;
  margin-bottom: 1rem !important;
}

.dispatch-list-item:not(:first-child) .read-more {
  color: #d85a30 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  border-bottom: 2px solid #d85a30 !important;
  transition: all 0.2s !important;
  display: inline-block !important;
}

.dispatch-list-item:not(:first-child) .read-more:hover {
  opacity: 0.8 !important;
}

/* ===== ARCHIVE CONTAINER ===== */

.dispatch-archive-container {
  padding: 2rem 0 !important;
}

.dispatch-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .dispatch-list-item:first-child {
    border-radius: 8px !important;
  }

  .dispatch-list-item:first-child .dispatch-list-content {
    padding: 2rem 1.5rem !important;
  }

  .dispatch-list-item:first-child .dispatch-list-title {
    font-size: 24px !important;
  }

  .dispatch-list-item:first-child::before {
    top: 15px !important;
    right: 15px !important;
    font-size: 11px !important;
    padding: 5px 10px !important;
  }

  .dispatch-list-item:not(:first-child) .dispatch-list-content {
    padding: 1rem 1.5rem !important;
  }

  .dispatch-list-item:not(:first-child) .dispatch-list-title {
    font-size: 18px !important;
  }
}



/* Hide Featured Image on Single Dispatch Page Only */

/* Hide featured image on full dispatch post pages */
.single-dispatch .post-thumbnail,
.single-dispatch img.wp-post-image,
.post-type-archive-dispatch.single img.wp-post-image {
  display: none !important;
}

/* Ensure dispatch content doesn't have extra spacing from hidden image */
.single-dispatch .entry-content {
  margin-top: 2rem !important;
}

/* Keep featured image visible on archives/homepage */
.archive .post-thumbnail,
.archive img.wp-post-image,
.home .post-thumbnail,
.home img.wp-post-image {
  display: block !important;
}

.dispatch-subscribe {
  display: none !important;
}

/* Fix Dispatch Widget Footer Link Colors */

/* URL and Share This Dispatch section */
.dispatch-footer {
  color: #f5f5f5 !important;
}

/* Links in footer (Twitter, LinkedIn, Email, etc.) */
.dispatch-footer a,
.dispatch-share a {
  color: #d85a30 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}

.dispatch-footer a:hover,
.dispatch-share a:hover {
  opacity: 0.8 !important;
  text-decoration: underline !important;
}

/* Share This Dispatch heading */
.dispatch-footer h4,
.dispatch-share h4 {
  color: #f5f5f5 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  margin-bottom: 1rem !important;
  text-transform: uppercase !important;
}

/* Individual share links */
.dispatch-share-link {
  display: inline-block !important;
  margin-right: 1.5rem !important;
  margin-bottom: 0.5rem !important;
}

.dispatch-share-link a {
  color: #d85a30 !important;
}

.story-source a {
  color: #d85a30 !important;
}