/* Single post layout */
body.page:not(.home):not(.front-page) {
  background: #ffffff;
  color: #2c2c2c;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

body.page:not(.home):not(.front-page) .site-main,
body.page:not(.home):not(.front-page) #main {
  background: #ffffff;
}

body.page:not(.home):not(.front-page) .oceanwp-breadcrumb {
  text-align: center;
  color: rgb(203, 159, 15);
  font-size: 20px;
  margin-bottom: 26px;
  text-shadow: none;
}

body.page:not(.home):not(.front-page) .oceanwp-breadcrumb a {
  color: rgb(203, 159, 15);
  text-decoration: none;
}

body.page:not(.home):not(.front-page) .oceanwp-breadcrumb a:hover {
  text-decoration: underline;
}

/* Show each breadcrumb segment on its own line */
body.page:not(.home):not(.front-page) .oceanwp-breadcrumb ol {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

body.page:not(.home):not(.front-page) .oceanwp-breadcrumb ol li {
  display: block;
}

body.page:not(.home):not(.front-page) .oceanwp-breadcrumb .breadcrumb-sep {
  display: none;
}

body.page:not(.home):not(.front-page) .page-header-inner,
body.page:not(.home):not(.front-page) .site-breadcrumbs {
  width: min(100%, 1220px);
  margin: 0 auto;
  text-align: center;
}

body.page:not(.home):not(.front-page) .page-header-title {
  text-align: center;
}

body.page:not(.home):not(.front-page) .tm-page-title {
  font-family: 'Averta R', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  max-width: 900px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0 auto 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.13);
  padding-bottom: 22px;
  text-align: center;
}

/* Hide page header (use site header only) */
body.page:not(.home):not(.front-page) .page-header,
body.page:not(.home):not(.front-page) .page-header-inner {
  display: none;
}

/* Sidebar styling for pages */
body.page:not(.home):not(.front-page) #right-sidebar {
  margin-top: 20px;
}

body.page:not(.home):not(.front-page) #right-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.page:not(.home):not(.front-page) .sidebar-box {
  background: #0f1118;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

body.page:not(.home):not(.front-page) .sidebar-box .widget-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
  color: #e5e9f5;
}

body.page:not(.home):not(.front-page) .sidebar-box ul {
  margin: 0;
  padding-left: 18px;
}

body.page:not(.home):not(.front-page) .sidebar-box li {
  margin: 0 0 10px;
}

body.page:not(.home):not(.front-page) .sidebar-box a {
  color: #e5e9f5;
  text-decoration: none;
}

body.page:not(.home):not(.front-page) .sidebar-box a:hover {
  color: #f0b429;
}

body.page:not(.home):not(.front-page) .widget_search .searchform {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Hide search + recent comments on pages sidebar */
body.page:not(.home):not(.front-page) #search-2,
body.page:not(.home):not(.front-page) #recent-posts-2,
body.page:not(.home):not(.front-page) #recent-comments-2 {
  display: none;
}

body.page:not(.home):not(.front-page) .widget_search .field {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #151822;
  color: #e5e9f5;
}

body.page:not(.home):not(.front-page) .widget_search input[type="submit"] {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #f0b429;
  color: #fff;
}

body.page:not(.home):not(.front-page) #content-wrap {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding-top: 60px;
  box-sizing: border-box;
}

body.page:not(.home):not(.front-page) #main {
  padding-bottom: 40px;
}

body.page:not(.home):not(.front-page) .content-area {
  box-sizing: border-box;
}

body.page:not(.home):not(.front-page) .thumbnail,
body.page:not(.home):not(.front-page) .post-thumbnail {
  width: 100%;
  margin: 0 0 32px;
  display: block;
}

body.page:not(.home):not(.front-page) .thumbnail img,
body.page:not(.home):not(.front-page) .post-thumbnail img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Ограничение изображений: используем обёртку .img, а не все картинки подряд */
#content .img {
  display: block;
  height: 300px;
  overflow: hidden;
}

#content .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Обычные картинки в тексте — без искажений */
body.page:not(.home):not(.front-page) .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Captioned images: keep within viewport on mobile */
body.page:not(.home):not(.front-page) .entry-content .wp-caption,
body.page:not(.home):not(.front-page) .entry-content figure.wp-caption {
  width: fit-content !important;
  max-width: 98% !important;
}

body.page:not(.home):not(.front-page) .entry-content .wp-caption img,
body.page:not(.home):not(.front-page) .entry-content figure.wp-caption img {
  max-width: 100%;
  height: auto;
}

body.page:not(.home):not(.front-page) .entry-header {
  text-align: center;
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
}

body.page:not(.home):not(.front-page) .entry-title {
  font-family: 'Averta R', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  max-width: 900px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0 0 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.13);
  padding-bottom: 30px;
}



.entry-content p a {
  color: rgb(203, 159, 15) !important;

}


body.page:not(.home):not(.front-page) .entry-meta {
  text-align: center;
  color: #999;
  font-size: 12px;
  margin: 0 0 26px;
}

body.page:not(.home):not(.front-page) .entry-content,
body.page:not(.home):not(.front-page) .page-content {
  width: 100%;
  margin: 0;
  font-family: 'Averta L', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #2c2c2c;
}

body.page:not(.home):not(.front-page) .entry-content p {
  margin: 0 0 18px;
  font-size: 17px;
}

body.page:not(.home):not(.front-page) .entry-content p:first-of-type {
  font-size: 20px;
}

body.page:not(.home):not(.front-page) .entry-content h2,
body.page:not(.home):not(.front-page) .entry-content h3,
body.page:not(.home):not(.front-page) .entry-content h4 {
  color: #404040;
  font-weight: 600;
  margin: 26px 0 12px;
}

body.page:not(.home):not(.front-page) .entry-content ul,
body.page:not(.home):not(.front-page) .entry-content ol {
  margin: 0 0 18px 22px;
  padding: 0;
}

body.page:not(.home):not(.front-page) .entry-content a {
  color: #1a7efb;
  text-decoration: underline;
}

body.page:not(.home):not(.front-page) .entry-content a {
  color: rgb(203, 159, 15) !important;
}

body.page:not(.home):not(.front-page) .entry-content strong {
  font-weight: 600;
}

/* Related posts cards */
#related-posts {
  margin: 60px auto 40px;
  width: min(100%, 1120px);

}

#related-posts .oceanwp-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

#related-posts .related-post {
  background: #0f1118;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  padding-bottom: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#related-posts .related-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.3);
  border-color: rgba(240, 180, 41, 0.45);
}

#related-posts .related-post-media img,
#related-posts .related-post .related-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

#related-posts .related-post-title {
  margin: 12px 16px 6px;
  font-size: 18px;
  line-height: 1.3;
}

#related-posts .related-post-title a {
  color: #e5e9f5;
  text-decoration: none;
}

#related-posts .related-post-title a:hover {
  color: #f0b429;
}

#related-posts .published {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px;
  color: #9aa3b5;
  font-size: 13px;
}

#related-posts .published i {
  color: #f0b429;
}

body.page:not(.home):not(.front-page) .entry-content a[href*="#scrolltoform"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  margin: 20px auto;
  background: #1a7efb;
  color: #fff !important;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
  max-width: 250px;
  font-size: 18px;
}

body.page:not(.home):not(.front-page) .entry-content a[href*="#scrolltoform"]:hover {
  background: #0f66d4;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

body.page:not(.home):not(.front-page) .entry-content p>a[href*="#scrolltoform"] {
  display: block;
  text-align: center;
}

@media (max-width: 640px) {
  body.page:not(.home):not(.front-page) #content-wrap {
    padding-top: 10px;
  }

  body.page:not(.home):not(.front-page) .content-area {
    padding: 30px 16px 0;
  }

  body.page:not(.home):not(.front-page) .thumbnail,
  body.page:not(.home):not(.front-page) .post-thumbnail {
    margin-bottom: 24px;
  }

  body.page:not(.home):not(.front-page) .entry-content {
    width: 100%;
    font-size: 17px;
    line-height: 1.65;
  }

  #related-posts .related-post {
    border-radius: 12px;
  }

  #related-posts .related-post-media img,
  #related-posts .related-post .related-thumb img {
    height: 150px;
  }
}