.home footer h6,
.home footer small h6,
.home footer .widget_title,
.home footer small .widget_title,
.home footer .custom_links_list_title,
.home footer small .custom_links_list_title {
  font-size: 18px !important;
  line-height: 1.4 !important;
}

.home footer .widget_custom_links li,
.home footer .widget_custom_links a,
.home footer .custom_links_list li,
.home footer .custom_links_list a {
  font-size: 16px !important;
  line-height: 1.4 !important;
}

/* Blog cards styling (Info over image / News / Classic / Popular Posts) */
.elementor-element-bef6496 .post_featured img,
.elementor-element-62c41dc .post_featured img,
.elementor-element-df3d4b6 .post_featured img,
.elementor-element-cb82fe9 .post_thumb img {
  border-radius: 16px !important;
}

.elementor-element-bef6496 .post_categories a,
.elementor-element-62c41dc .post_categories a,
.elementor-element-df3d4b6 .post_categories a,
.elementor-element-cb82fe9 .post_categories a {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  font-weight: 600;
  color: #353130 !important;
}

.elementor-element-bef6496 .sc_blogger_item_title a,
.elementor-element-df3d4b6 .post_title a,
.elementor-element-cb82fe9 .post_title a {
  color: #353130 !important;
}
.elementor-element-bef6496 .sc_blogger_item_title a:hover,
.elementor-element-df3d4b6 .post_title a:hover,
.elementor-element-cb82fe9 .post_title a:hover {
  color: #353130 !important;
}

/* Comments label neutral color */
.elementor-element-bef6496 .post_meta_comments,
.elementor-element-bef6496 .post_meta_comments *,
.elementor-element-df3d4b6 .post_meta_comments,
.elementor-element-df3d4b6 .post_meta_comments * {
  color: #353130 !important;
}

/* Popular Posts tabs: replace theme purple accent with site orange, scoped to this widget only */
.elementor-element-cb82fe9 {
  --theme-color-text_link: #FF8160;
  --theme-color-alter_link: #FF8160;
}

/* Buttons: always show text (no hover reveal animation), true "grow only" hover */
.elementor-element-bef6496 .link_text,
.elementor-element-62c41dc .link_text,
.elementor-element-df3d4b6 .link-text {
  opacity: 1 !important;
  text-indent: 0 !important;
  visibility: visible !important;
  margin-right: 8px !important;
}

.elementor-element-bef6496 .item_more_link,
.elementor-element-62c41dc .item_more_link,
.elementor-element-df3d4b6 .post-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 9999px;
  padding: 10px 22px;
  text-transform: none;
  transition: transform .2s ease;
}
.elementor-element-bef6496 .item_more_link:hover,
.elementor-element-62c41dc .item_more_link:hover,
.elementor-element-df3d4b6 .post-more-link:hover {
  transform: scale(1.05);
}
.elementor-element-bef6496 .link_icon,
.elementor-element-62c41dc .link_icon,
.elementor-element-df3d4b6 .more-link-icon {
  display: none !important;
}

/* Info over image card: remove dark overlay, align text/button left */
.elementor-element-62c41dc .mask {
  background: transparent !important;
}
.elementor-element-62c41dc .post_info_bc {
  text-align: left !important;
}

/* Fix invisible button text (was white-on-white on some templates) */
.elementor-element-bef6496 .link_text,
.elementor-element-62c41dc .link_text,
.elementor-element-df3d4b6 .link-text {
  color: #353130 !important;
}

/* CTA "Ready to become a districteer" banner: fix left-alignment on tablet/mobile (Elementor CSS regen was stale) */
@media (max-width: 1024px) {
  .elementor-element-d7704c6,
  .elementor-element-a1d9a08 {
    margin: 0 0 20px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .elementor-element-9baa16e,
  .elementor-element-913fc46 {
    margin: 0 !important;
    text-align: left !important;
  }
  .elementor-element-74742e0,
  .elementor-element-2230900 {
    justify-items: start !important;
  }
}

/* CTA "Ready to become a districteer" banner: fix ugly typography on tablet/mobile */
@media (max-width: 1024px) {
  .elementor-element-d7704c6 .elementor-heading-title,
  .elementor-element-a1d9a08 .elementor-heading-title {
    line-height: 1.25 !important;
  }
  .elementor-element-d7704c6 .elementor-heading-title small,
  .elementor-element-a1d9a08 .elementor-heading-title small {
    display: block !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    line-height: 1.5 !important;
    margin-top: 14px !important;
    opacity: 0.75;
  }
}

/* Single post page: white category tags, orange title, hide author box, restyle comment button */
.single-post .post_categories a,
.single-post .post_header_wrap_style_style-1.with_featured_image .post_header .post_meta_item.post_categories a {
  background-color: #ffffff !important;
  color: #353130 !important;
}
.single-post .post_categories a:hover,
.single-post .post_header_wrap_style_style-1.with_featured_image .post_header .post_meta_item.post_categories a:hover {
  background-color: #ffffff !important;
  color: #353130 !important;
}

.single-post .post_title.entry-title,
.single-post .post_header_wrap_style_style-1.with_featured_image .post_header .post_title.entry-title,
.single-post .post_header_wrap_style_style-1.with_featured_image .post_header a.post_title {
  color: #ffffff !important;
}

.single-post .post_meta_item.post_author {
  display: none !important;
}

.single-post .author_info {
  display: none !important;
}

.single-post #send_comment {
  background: #ffffff !important;
  color: #353130 !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 9999px !important;
  padding: 14px 32px !important;
  font-weight: 500 !important;
  transition: transform .2s ease !important;
  box-shadow: none !important;
}
.single-post #send_comment:hover {
  transform: scale(1.05);
  background: #ffffff !important;
  color: #353130 !important;
}

/* --- Password-protected page: fix header overlap + style the password form --- */
body:has(.post-password-form) header.top_panel {
  position: relative !important;
  background: #151417 !important;
}
body:has(.post-password-form) .content_wrap_fullscreen {
  background: #151417;
}
body:has(.post-password-form) .content {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
body:has(.post-password-form) .post-password-form {
  background: #1c1a20;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
body:has(.post-password-form) .post-password-form p {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
}
body:has(.post-password-form) .post-password-form p:empty {
  display: none;
}
body:has(.post-password-form) .post-password-form label {
  display: block;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
}
body:has(.post-password-form) .post-password-form input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}
body:has(.post-password-form) .post-password-form input[type="password"]:focus {
  outline: none;
  border-color: #F19165;
}
body:has(.post-password-form) .post-password-form input[type="submit"] {
  margin-top: 18px;
  padding: 12px 32px;
  border-radius: 999px;
  border: none;
  background: #F19165;
  color: #151417;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s ease;
}
body:has(.post-password-form) .post-password-form input[type="submit"]:hover {
  transform: scale(1.05);
}


/* --- Category archive pages: side-by-side image + text layout --- */
body.archive.category .post_item.post_layout_excerpt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 48px;
  row-gap: 0;
  align-items: start;
}
body.archive.category .post_item.post_layout_excerpt .post_featured {
  grid-column: 1;
  grid-row: 1 / 3;
  height: 100%;
  margin: 0;
}
body.archive.category .post_item.post_layout_excerpt .post_featured .post_thumb,
body.archive.category .post_item.post_layout_excerpt .post_featured a {
  display: block;
  height: 100%;
}
body.archive.category .post_item.post_layout_excerpt .post_featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}
body.archive.category .post_item.post_layout_excerpt .post_header {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
}
body.archive.category .post_item.post_layout_excerpt .post_content {
  grid-column: 2;
  grid-row: 2;
}
@media (max-width: 900px) {
  body.archive.category .post_item.post_layout_excerpt {
    display: block;
  }
  body.archive.category .post_item.post_layout_excerpt .post_featured {
    height: auto;
    margin-bottom: 24px;
  }
}
