/* ── ACOS Standard Blog Post — brings default WP posts in line with the
   rest of the site (event pages already use this same system). ── */

/* Post title */
.single-post .elementor-widget-theme-post-title .elementor-heading-title {
  font-family: var(--acos-font-heading) !important;
  font-size: var(--acos-h1-size) !important;
  font-weight: var(--acos-h1-weight) !important;
  line-height: var(--acos-h1-lh) !important;
  letter-spacing: var(--acos-h1-spacing) !important;
  color: var(--acos-color-primary) !important;
  margin: 0 0 12px !important;
}

/* Post meta (date, author, etc.) */
.single-post .elementor-widget-post-info .elementor-post-info__item,
.single-post .elementor-widget-post-info a {
  font-family: var(--acos-font-body) !important;
  font-size: 14px !important;
  color: var(--acos-color-text-muted) !important;
  text-decoration: none !important;
}

.single-post .elementor-widget-post-info a:hover {
  color: var(--acos-color-secondary) !important;
}

/* Post body content */
.single-post .elementor-widget-theme-post-content .elementor-widget-container {
  font-family: var(--acos-font-body);
  font-size: var(--acos-body-size);
  line-height: var(--acos-body-lh);
  letter-spacing: var(--acos-body-spacing);
  color: var(--acos-color-text);
}

.single-post .elementor-widget-theme-post-content p {
  margin: 0 0 16px !important;
}

.single-post .elementor-widget-theme-post-content p:last-child {
  margin-bottom: 0 !important;
}

.single-post .elementor-widget-theme-post-content h1,
.single-post .elementor-widget-theme-post-content h2,
.single-post .elementor-widget-theme-post-content h3,
.single-post .elementor-widget-theme-post-content h4,
.single-post .elementor-widget-theme-post-content h5,
.single-post .elementor-widget-theme-post-content h6,
.single-post .elementor-widget-theme-post-content .wp-block-heading {
  font-family: var(--acos-font-heading) !important;
  color: var(--acos-color-primary) !important;
  line-height: normal !important;
  margin: 36px 0 16px !important;
}

.single-post .elementor-widget-theme-post-content h1:first-child,
.single-post .elementor-widget-theme-post-content h2:first-child,
.single-post .elementor-widget-theme-post-content h3:first-child,
.single-post .elementor-widget-theme-post-content .wp-block-heading:first-child {
  margin-top: 0 !important;
}

.single-post .elementor-widget-theme-post-content h2,
.single-post .elementor-widget-theme-post-content h2.wp-block-heading {
  font-size: var(--acos-h2-size) !important;
  font-weight: var(--acos-h2-weight) !important;
}

.single-post .elementor-widget-theme-post-content h3,
.single-post .elementor-widget-theme-post-content h3.wp-block-heading {
  font-size: var(--acos-h3-size) !important;
  font-weight: var(--acos-h3-weight) !important;
}

.single-post .elementor-widget-theme-post-content h4,
.single-post .elementor-widget-theme-post-content h4.wp-block-heading {
  font-size: var(--acos-h4-size) !important;
  font-weight: var(--acos-h4-weight) !important;
  letter-spacing: var(--acos-h4-spacing) !important;
}

.single-post .elementor-widget-theme-post-content h5,
.single-post .elementor-widget-theme-post-content h6,
.single-post .elementor-widget-theme-post-content h5.wp-block-heading,
.single-post .elementor-widget-theme-post-content h6.wp-block-heading {
  font-size: var(--acos-h5-size) !important;
  font-weight: var(--acos-h5-weight) !important;
  letter-spacing: var(--acos-h5-spacing) !important;
}

.single-post .elementor-widget-theme-post-content strong,
.single-post .elementor-widget-theme-post-content b {
  color: var(--acos-color-primary);
  font-weight: 700;
}

.single-post .elementor-widget-theme-post-content a {
  color: var(--acos-color-secondary) !important;
  text-decoration: none !important;
}

.single-post .elementor-widget-theme-post-content a:hover {
  text-decoration: var(--acos-link-decoration) !important;
}

/* Lists — OL/UL */
.single-post .elementor-widget-theme-post-content ul,
.single-post .elementor-widget-theme-post-content ol {
  margin: 0 0 16px !important;
  padding-left: 22px !important;
}

.single-post .elementor-widget-theme-post-content ul:last-child,
.single-post .elementor-widget-theme-post-content ol:last-child {
  margin-bottom: 0 !important;
}

.single-post .elementor-widget-theme-post-content li {
  margin-bottom: 8px;
  line-height: var(--acos-body-lh);
}

.single-post .elementor-widget-theme-post-content ul li::marker {
  color: var(--acos-color-secondary);
}

.single-post .elementor-widget-theme-post-content ol li::marker {
  color: var(--acos-color-primary);
  font-weight: 600;
}

/* Images / figures, including WP alignment classes */
.single-post .elementor-widget-theme-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.single-post .elementor-widget-theme-post-content .wp-block-image {
  margin: 0 0 20px;
}

.single-post .elementor-widget-theme-post-content .wp-block-image figcaption {
  font-family: var(--acos-font-body);
  font-size: 13px;
  color: var(--acos-color-caption);
  margin-top: 8px;
  text-align: center;
}

.single-post .elementor-widget-theme-post-content .alignright {
  float: right;
  margin: 0 0 16px 28px;
}

.single-post .elementor-widget-theme-post-content .alignleft {
  float: left;
  margin: 0 28px 16px 0;
}

.single-post .elementor-widget-theme-post-content .aligncenter {
  display: block;
  margin: 0 auto 20px;
  float: none;
}

/* Multi-column layout blocks */
.single-post .elementor-widget-theme-post-content .wp-block-columns {
  gap: var(--acos-space-column);
  margin: 0 0 24px;
}

.single-post .elementor-widget-theme-post-content .wp-block-column h2,
.single-post .elementor-widget-theme-post-content .wp-block-column h3,
.single-post .elementor-widget-theme-post-content .wp-block-column h4 {
  margin-top: 0 !important;
}

/* Tables */
.single-post .elementor-widget-theme-post-content .wp-block-table {
  margin: 0 0 24px;
}

.single-post .elementor-widget-theme-post-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--acos-font-body);
  font-size: 15px;
  color: var(--acos-color-text);
}

.single-post .elementor-widget-theme-post-content table th,
.single-post .elementor-widget-theme-post-content table td {
  padding: 10px 14px;
  border: 1px solid var(--acos-color-border);
  text-align: left;
}

.single-post .elementor-widget-theme-post-content table tr:first-child td,
.single-post .elementor-widget-theme-post-content table tr:first-child th {
  background: var(--acos-color-primary);
  color: var(--acos-color-white);
  font-family: var(--acos-font-heading);
  font-weight: 600;
}

.single-post .elementor-widget-theme-post-content table tr:nth-child(even) td {
  background: var(--acos-color-off-white);
}

/* Buttons inside content */
.single-post .elementor-widget-theme-post-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 24px;
}

.single-post .elementor-widget-theme-post-content .wp-block-button__link {
  background: var(--acos-btn-lg-bg) !important;
  color: var(--acos-btn-lg-color) !important;
  border: none !important;
  font-family: var(--acos-btn-font) !important;
  font-size: var(--acos-btn-lg-size) !important;
  font-weight: var(--acos-btn-lg-weight) !important;
  text-transform: var(--acos-btn-uppercase) !important;
  letter-spacing: var(--acos-btn-spacing) !important;
  border-radius: var(--acos-btn-radius) !important;
  padding: 12px 26px !important;
  text-decoration: none !important;
  display: inline-block;
  transition: background 0.2s, opacity 0.2s;
}

.single-post .elementor-widget-theme-post-content .wp-block-button__link:hover,
.single-post .elementor-widget-theme-post-content .wp-block-button__link:focus,
.single-post .elementor-widget-theme-post-content .wp-block-button__link:active,
.single-post .elementor-widget-theme-post-content .wp-block-button__link:visited {
  text-decoration: none !important;
}

.single-post .elementor-widget-theme-post-content .wp-block-button__link:hover {
  background: var(--acos-btn-lg-hover-bg) !important;
  color: var(--acos-btn-lg-color) !important;
  opacity: 1;
}

.single-post .elementor-widget-theme-post-content blockquote {
  margin: 0 0 20px;
  padding: 10px 20px;
  border-left: 3px solid var(--acos-color-secondary);
  color: var(--acos-color-text-muted);
  font-style: italic;
}

.single-post .elementor-widget-theme-post-content hr {
  border: none;
  border-top: 1px solid var(--acos-color-border);
  margin: 28px 0;
}
