.post_content .peko-service-feed {
  margin: 18px 0 28px;
  padding: 0;
}

.post_content .peko-service-feed__item {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  margin: 0 0 10px;
  padding: 15px 18px;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  background: #fff;
  color: #333 !important;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: transform .2s ease, border-color .2s ease;
}

.post_content .peko-service-feed__item:hover {
  border-color: #cfe7ee;
  transform: translateY(-1px);
}

.post_content .peko-service-feed__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}

.post_content .peko-service-feed__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef8fb;
  color: #007c9f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
}

.post_content .peko-service-feed--jobs .peko-service-feed__badge {
  background: #f3f3f3;
  color: #634e4e;
}

.post_content .peko-service-feed__title {
  min-width: 0;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.post_content .peko-service-feed__arrow {
  color: #009dc6;
  font-size: 18px;
  line-height: 1;
  text-align: right;
  transition: transform .2s ease;
}

.post_content .peko-service-feed__item:hover .peko-service-feed__arrow {
  transform: translateX(3px);
}

.post_content .peko-service-feed-empty {
  margin: 18px 0 28px !important;
  padding: 16px 18px;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  background: #f8fafc;
  color: #555;
  font-size: 14px;
}

.post_content .peko-service-feed__more {
  margin: -8px 0 32px;
  text-align: center;
}

.post_content .peko-service-feed__more a {
  display: inline-block;
  min-width: 260px;
  padding: 13px 22px;
  border: 1px solid #009dc6;
  border-radius: 6px;
  background: #fff;
  color: #009dc6 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background-color .2s ease, color .2s ease;
}

.post_content .peko-service-feed__more a:hover {
  background: #009dc6;
  color: #fff !important;
}

@media screen and (max-width: 750px) {
  .post_content .peko-service-feed__item {
    grid-template-columns: 1fr 20px;
    gap: 7px 10px;
    padding: 14px 14px 14px 15px;
  }

  .post_content .peko-service-feed__meta {
    grid-column: 1 / 2;
  }

  .post_content .peko-service-feed__title {
    grid-column: 1 / 2;
    font-size: 13px;
    line-height: 1.6;
  }

  .post_content .peko-service-feed__arrow {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: center;
  }

  .post_content .peko-service-feed__more a {
    width: 100%;
    min-width: 0;
  }
}

.post_content .peko-sitemap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 52px;
  margin: 10px 0 30px;
}

.post_content .peko-sitemap__section {
  min-width: 0;
}

.post_content .peko-sitemap__heading {
  margin: 0 0 10px !important;
  padding: 0 0 10px !important;
  border: 0 !important;
  border-bottom: 2px solid #3498db !important;
  background: none !important;
  color: #222 !important;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.5;
}

.post_content .peko-sitemap__list,
.post_content .peko-sitemap__list ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.post_content .peko-sitemap__list ul.children {
  padding-left: 18px !important;
}

.post_content .peko-sitemap__list li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #edf1f4;
}

.post_content .peko-sitemap__list li:last-child {
  border-bottom: 0;
}

.post_content .peko-sitemap__list a {
  display: block;
  padding: 10px 2px;
  color: #333 !important;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none !important;
  transition: color .15s ease;
}

.post_content .peko-sitemap__list a:hover {
  color: #2488c8 !important;
}

@media screen and (max-width: 750px) {
  .post_content .peko-sitemap {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


/* Global styled H2 */
.styled_h2 {
  background: none !important;
  color: #222 !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 2px solid #009dc6 !important;
  padding: 0 0 12px !important;
}

/* Service detail CTA layout */
body.single-service .post_content p:has(> .q_custom_button) {
  display: grid;
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  margin: 28px 0 36px !important;
}

body.single-service .post_content p:has(> .q_custom_button ~ .q_custom_button) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.single-service .post_content p:has(> .q_custom_button) > br {
  display: none !important;
}

body.single-service .post_content p:has(> .q_custom_button) > .q_custom_button {
  width: 100% !important;
  max-width: none !important;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  box-shadow: none !important;
  line-height: 1.5;
  white-space: normal;
}

/* Also handle WordPress output that separates consecutive CTA buttons into paragraphs. */
body.single-service .post_content p:has(> .q_custom_button):has(+ p > .q_custom_button),
body.single-service .post_content p:has(> .q_custom_button) + p:has(> .q_custom_button) {
  display: inline-flex;
  width: calc(50% - 9px);
  max-width: none;
  vertical-align: top;
  box-sizing: border-box;
}

body.single-service .post_content p:has(> .q_custom_button):has(+ p > .q_custom_button) {
  margin-right: 14px !important;
}

@media screen and (max-width: 600px) {
  body.single-service .post_content p:has(> .q_custom_button),
  body.single-service .post_content p:has(> .q_custom_button ~ .q_custom_button),
  body.single-service .post_content p:has(> .q_custom_button):has(+ p > .q_custom_button),
  body.single-service .post_content p:has(> .q_custom_button) + p:has(> .q_custom_button) {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 22px 0 30px !important;
  }
}
