.lectures-post {
  position: relative;
}
.lectures-post-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.book__item {
  padding-bottom: 15px;
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 15px;
}
.my-form {
  margin-left: auto;
}
.my-form input {
  direction: rtl !important;
}
.my-form input,
.my-form textarea {
  direction: rtl !important;
}

/* Подписи тоже вправо */
.my-form label {
  display: block;
}

/* Кнопка отправки */
.my-form .wpcf7-submit {
  border: none;
  border-radius: 10px;
  background: #d1cdce;
  font-size: 20px;
}
.wpcf7 input[type="url"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
  direction: rtl !important;
}

.my-form .my-form__footer {
  display: flex;
  justify-content: space-between;
}

mark {
  background: none;
  color: #0e7bcd;
}
.lectures-post__btn {
  gap: 0px;
}

.sidebar-featured-topics__book {
  display: block;
  background: #e6e6e6;
  border-radius: 10px;
  padding: 15px 30px;
  position: relative;
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  text-align: justify;
  color: #000;
  max-height: 166px;
}

.sidebar-featured-topics__book img {
  transform: translateY(33px) scale(1.2);
}
.page-title {
  font-weight: 600;
  font-size: 50px;
  line-height: 120%;
  text-align: justify;
  color: #032169;
  margin-bottom: 20px;
}
.layout__sidebar {
  min-height: auto;
}
.footer {
  margin-top: 0px;
}
.sidebar-featured-topics {
  transform: translateY(-30px);
}
.sidebar-featured-topics__book img {
  transform: translateY(23px) scale(1.2);
}
.layout__wrapper {
  margin-bottom: 20px;
}
.landmarks-post__content,
.judgments-post__content,
.articles-post__content,
.lectures-post__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}
.search-result__location {
  display: flex;
}

.highlight {
  font-weight: bold;
  color: #0e7bcd;
}
.header__search-body li {
  cursor: pointer;
  background-color: #e6e6e6;
  padding: 6px 25px 6px 0px;
  transition: all 0.3s;
  margin-top: 10px;
}
.header__search-body li:hover {
  background-color: #d7d7d7;
}

.more-details-post {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
  margin-bottom: 15px;
}
.more-details-post__wrapper {
  height: 170px;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 20px 20px 10px;
  margin-bottom: 20px;
}
.more-details-post__title {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 20px;
  line-height: 130%;
  text-align: justify;
  color: #fff;
  font-size: 18px;
}
.more-details-post__wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.more-details-post__wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: #000; */
  /* opacity: 0.4; */
 /* background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)); */
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 50%);
  z-index: 1;
}
.more-details-post__text {
  margin-bottom: 15px;
  font-size: 20px;
}
.landmarks__sidebar {
}
.landmarks__sidebar .more-details-post:first-child {
  border-bottom: 1px solid #d7d7d7;
}

.img-border-radius {
  border-radius: 10px;
}

/* Inner sticky header for single judgments */
.judgment-body {
  margin-top: 10px;
}

/* ===================== Judgments single & in-document search ===================== */

/* Breadcrumbs layout */
.layout__new-breadcrumbs {
  margin-bottom: 12px;
}

.new-breadcrumbs {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  direction: rtl; /* keep RTL flow */
}

.new-breadcrumbs .breadcrumb {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #032169;
}

/* Remove any old separators if you had them */
.new-breadcrumbs .breadcrumb::after {
  content: none;
}

/* SVG caret between items (not before the first) */
.new-breadcrumbs .breadcrumb + .breadcrumb::before {
  content: "";
  display: inline-block;
  width: 10px;         /* tweak size to taste */
  height: 10px;
  margin: 0 6px;
  background: url("/wp-content/themes/myThem/assets/images/left_caret.svg")
    no-repeat center center;
  background-size: contain;
  vertical-align: middle;
}

.judgment-article {
  margin-top: 16px;
}

.judgment-header {
  margin-bottom: 24px;
}

/* use existing card style but remove bottom border on single */
.judgments-post--single {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* excerpt under main title */
.judgment-head__excerpt {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
}

/* spacer for sticky toolbar */
.docfind-spacer {
  height: 0;
}

/* toolbar container */
.docfind {
	width: calc(100% + 20px);
  margin-bottom: 20px;
  padding: 10px 10px;
  border-radius: 8px;
  border: 1px solid #e3e3e3;
  background-color: #f9fafb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* sticky state (class toggled from Alpine) */
.docfind.is-fixed {
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* main row layout */
.docfind__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.docfind__row:has(+ .docfind__row) {
	margin-bottom: 10px;
}

/* search field (label + input) */
.docfind__field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 200px;
}

.docfind__label {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.docfind__inputwrap {
  position: relative;
  flex: 0 1 auto;
}

.docfind__inputwrap input[type="text"] {
  width: 100%;
  /* right: search icon, left: clear icon */
  padding: 7px 32px 7px 28px;
  border-radius: 999px;
  border: 1px solid #cfd4dc;
  font-size: 14px;
  line-height: 1.4;
  direction: rtl;
  text-align: right;
}

.docfind__inputwrap input[type="text"]:focus {
  outline: none;
  border-color: #0e7bcd;
  box-shadow: 0 0 0 2px rgba(14, 123, 205, 0.15);
}

/* clear button inside input */
.docfind__clear {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #999;
}

.docfind__clear:hover {
  color: #555;
}

.docfind__searchbtn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #666;
}

.docfind__searchbtn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* suggestions dropdown */
.docfind__suggestions {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 20;
  direction: rtl;
}

.docfind__suggestion {
  width: 100%;
  border: none;
  background: transparent;
  text-align: right;
  padding: 6px 10px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.docfind__suggestion:hover,
.docfind__suggestion.is-active {
  background-color: #f0f4ff;
}

.docfind__suggestionCount {
  font-size: 12px;
  color: #777;
}

/* meta (status + count) */
.docfind__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
  white-space: nowrap;
}

.docfind__status {
  color: #0e7bcd;
}

.docfind__count {
  direction: rtl;
}

.docfind__no {
  color: #b00020;
}

/* nav buttons */
.docfind__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.docfind__btn {
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid #cfd4dc;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.docfind__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* PDF actions */

.docfind__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

/* global search link a bit lighter */
.docfind__link--global {
  font-size: 13px;
  padding: 4px 10px;
  border-color: #999;
  color: #444;
}

/* settings wrapper */
.docfind__settings {
  position: relative;
  display: flex;
  align-items: center;
}

.docfind__settings-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  color: #555;
}

.docfind__settings-toggle:hover {
  color: #222;
}

/* settings panel */
.docfind__settings-panel {
  position: absolute;
  top: 100%;
  left: 0; /* RTL: panel opens to the left side of toolbar group */
  min-width: 220px;
  margin-top: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 30;
  direction: rtl;
}

.docfind__settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}

.docfind__settings-row:last-child {
  margin-bottom: 0;
}

.docfind__settings-row input[type="number"] {
  width: 80px;
  font-size: 13px;
}

.docfind__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
}

.docfind__link--primary {
  background-color: #0e7bcd;
  color: #fff;
}

a.docfind__link.docfind__link--secondary {
    text-decoration: underline;
    border: none;
    color: #0e7bcd;
    background-color: transparent;
}

/* highlight inside the document */
.judgment-content span.js-search-hit {
  background-color: #fff3cd;
  padding: 0 2px;
  border-radius: 2px;
}

.judgment-content span.js-search-hit.is-current {
  background-color: #ffc107;
}

/* source text block */
.judgment-source-text {
  white-space: pre-wrap;
  direction: rtl;
  text-align: right;
  font-family: "Noto Sans Hebrew", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  font-size: 16px;
}

/* responsive */
@media (max-width: 900px) {
  .docfind__row {
    flex-direction: column;
    align-items: stretch;
  }

  .docfind__field {
    width: 100%;
  }

  .docfind__meta,
  .docfind__nav,
  .docfind__actions {
    justify-content: flex-start;
  }
}


/*
.judgment-head {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
  display: flex;
}
.judgment-head__right {
  font-weight: 600;
  font-size: 24px;
  line-height: 120%;
  text-align: justify;
  color: #032169;
  margin-bottom: 20px;
  width: 300px;
  flex-shrink: 0;
  margin-left: 30px;
  font-stretch: 80%;
}
.judgment-head__date {
  font-weight: 600;
  font-size: 50px;
  line-height: 100%;
  margin-bottom: 10px;
}
.judgment-head__title {
  font-size: 24px;
}

.judgment-head__sn {}

.judgment-head__left {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.judgment-head__posttitle {
  font-weight: 400;
  font-size: 20px;
  line-height: 130%;
  text-align: justify;
  color: #000;
  margin-bottom: 20px;
}
.judgment-head__excerpt {
  margin-bottom: 10px;
}
*/
@media (max-width: 1200px) {
  .judgment-head__right {
    margin-left: 10px;
    width: auto;
    max-width: 300px;
  }
}
@media (max-width: 992px) {
  .judgment-head {
    flex-direction: column;
  }
  .judgment-head__date {
    font-size: 50px;
  }
}

/* YCM - BW images*/
img.main-contact__img,
img.articles-post__img, 
img.more-details-post__img {
    filter: saturate(0);
}

/* video modal additional videos - less focus by lower brightness */
.video-modal__more-videos .additional-video {
    filter: brightness(0.4);
}

.video-modal__more-videos:hover .additional-video {
    filter: brightness(0.6);
}

.video-modal__more-videos .additional-video:hover {
    filter: brightness(1);
}