#pi-admin-modal,
#pi-admin-shell {
  box-sizing: border-box;
  direction: ltr;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Keep the biography text away from the screen edge on compact laptops. */
@media (min-width: 981px) and (max-width: 1366px) {
  body.home .et_pb_row_3 {
    box-sizing: border-box;
    padding-inline: clamp(24px, 2.5vw, 36px) !important;
  }
}


#pi-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 7, 25, 0.72);
  backdrop-filter: blur(8px);
}

#pi-admin-modal[hidden],
#pi-admin-shell[hidden] {
  display: none !important;
}

.pi-admin-dialog {
  width: min(100%, 390px);
  color: #17203a;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  padding: 26px;
  text-align: left;
}

.pi-admin-dialog h2 {
  margin: 0 0 8px;
  padding: 0;
  color: #10182e;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
}

.pi-admin-dialog p {
  margin: 0 0 18px;
  padding: 0;
  color: #5c6478;
  font-size: 14px;
  line-height: 1.45;
}

.pi-admin-code-label {
  display: block;
  margin-bottom: 7px;
  color: #39425a;
  font-size: 13px;
  font-weight: 700;
}

#pi-admin-code {
  width: 100%;
  height: 54px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 14px;
  color: #0c1530;
  background: #f6f8fc;
  border: 1px solid #cbd2df;
  border-radius: 11px;
  outline: none;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

#pi-admin-code:focus {
  border-color: #315efb;
  box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.16);
}

#pi-admin-code:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.pi-admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.pi-admin-button {
  appearance: none;
  min-height: 42px;
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  padding: 9px 15px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.pi-admin-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.pi-admin-button-primary {
  flex: 1;
  color: #fff;
  background: #315efb;
}

.pi-admin-button-primary:hover:not(:disabled) {
  background: #244bd8;
}

.pi-admin-button-secondary {
  color: #28324d;
  background: #edf0f6;
}

#pi-admin-message {
  min-height: 20px;
  margin: 11px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 650;
}

#pi-admin-message.pi-admin-message-ok {
  color: #067647;
}

#pi-admin-shell {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2147483645;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  color: #f8faff;
  background: rgba(9, 16, 39, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

#pi-admin-shell .pi-admin-button {
  min-height: 40px;
  color: #f8faff;
  background: #253150;
  white-space: nowrap;
}

#pi-admin-shell .pi-admin-button:hover:not(:disabled) {
  background: #34446e;
}

#pi-admin-shell .pi-admin-save {
  background: #246bfd;
}

#pi-admin-shell .pi-admin-save:hover:not(:disabled) {
  background: #1453d9;
}

.pi-admin-language-links {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.pi-admin-language-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 38px;
  box-sizing: border-box;
  padding: 6px 9px;
  color: #dce4ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.pi-admin-language-links a:hover,
.pi-admin-language-links a[aria-current="page"] {
  color: #fff;
  background: #315efb;
  border-color: #315efb;
}

#pi-admin-bar-status {
  max-width: 260px;
  overflow: hidden;
  color: #b8c3df;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pi-admin-editable {
  min-width: 0.35em;
  border-radius: 3px;
  outline: 1px dashed rgba(49, 94, 251, 0.72);
  outline-offset: 2px;
  cursor: text;
  background: rgba(255, 244, 143, 0.1);
}

.pi-admin-editable:hover {
  outline-color: #ffb000;
  background: rgba(255, 224, 92, 0.22);
}

.pi-admin-editable:focus {
  outline: 2px solid #315efb;
  background: rgba(255, 255, 255, 0.94);
  color: #111a31;
  box-shadow: 0 2px 14px rgba(16, 24, 48, 0.18);
}

body.pi-admin-active {
  padding-bottom: 84px !important;
}

@media (max-width: 760px) {
  #pi-admin-shell {
    flex-wrap: wrap;
  }

  #pi-admin-shell .pi-admin-button {
    flex: 1 1 auto;
    padding-inline: 11px;
  }

  .pi-admin-language-links {
    order: 2;
    margin-left: 0;
  }

  #pi-admin-bar-status {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    text-align: center;
  }

  body.pi-admin-active {
    padding-bottom: 132px !important;
  }
}


/* Hidden entry: after eight clicks the only visible object is the code field. */
.pi-admin-code-only {
  width: min(82vw, 310px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pi-admin-code-only #pi-admin-code {
  height: 58px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

#pi-admin-code.pi-admin-code-error {
  border-color: #df2c2c;
  animation: pi-code-shake .28s linear 2;
}

@keyframes pi-code-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

#pi-blog-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 7, 25, 0.78);
  backdrop-filter: blur(10px);
  direction: ltr;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

#pi-blog-modal[hidden] { display: none !important; }

.pi-blog-dialog {
  width: min(720px, 96vw);
  max-height: 92vh;
  overflow: auto;
  box-sizing: border-box;
  padding: 22px;
  color: #17203a;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 28px 90px rgba(0,0,0,.42);
}

.pi-blog-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
  color: #121a30;
  font-size: 20px;
}

#pi-blog-close {
  border: 0;
  background: transparent;
  color: #596174;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.pi-blog-dialog label {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  color: #39425a;
  font-size: 13px;
  font-weight: 700;
}

.pi-blog-dialog input[type="text"],
.pi-blog-dialog input[type="url"],
.pi-blog-dialog input[type="date"],
.pi-blog-dialog input[type="file"],
.pi-blog-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  color: #151c31;
  background: #f7f8fb;
  border: 1px solid #cbd2df;
  border-radius: 9px;
  font: inherit;
  font-weight: 500;
}

.pi-blog-dialog textarea { resize: vertical; min-height: 170px; line-height: 1.5; }
.pi-blog-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.pi-blog-actions { display: flex; justify-content: flex-end; gap: 9px; }
#pi-blog-message { min-height: 20px; margin-top: 8px; color: #b42318; font-size: 13px; }

#pi-dynamic-blog-posts > .pi-dynamic-blog-post {
  position: relative;
  margin-bottom: 54px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.pi-blog-image-wrap { margin-top: 18px !important; }
.pi-blog-image { width: min(100%, 620px); height: auto; border-radius: 8px; }
.pi-blog-delete { margin-top: 12px; color: #fff; background: #a82323; }

@media (max-width: 620px) {
  .pi-blog-grid { grid-template-columns: 1fr; gap: 0; }
  .pi-blog-dialog { padding: 17px; }
}

/* v8: Israeli Songs uses the same white button style and never shows Divi hover icons. */
.pi-israeli-nav-col .et_pb_button,
.pi-israeli-nav-col .et_pb_button:hover,
.pi-israeli-nav-col .et_pb_button:focus,
.pi-israeli-mobile-nav .et_pb_button,
.pi-israeli-mobile-nav .et_pb_button:hover,
.pi-israeli-mobile-nav .et_pb_button:focus {
  color: #fff !important;
  border-color: rgba(255,255,255,.59) !important;
  border-radius: 34px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pi-israeli-nav-col .et_pb_button::before,
.pi-israeli-nav-col .et_pb_button::after,
.pi-israeli-mobile-nav .et_pb_button::before,
.pi-israeli-mobile-nav .et_pb_button::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}
.pi-israeli-nav-col .et_pb_button:hover,
.pi-israeli-mobile-nav .et_pb_button:hover {
  padding-right: 1em !important;
  padding-left: 1em !important;
}

/* Hidden entry: after eight logo clicks the only visible object is the code field. */

body.pi-admin-structure-active .et_pb_section.pi-structure-section,
body.pi-admin-structure-active .et_pb_module.pi-structure-module {
  position: relative !important;
}

body.pi-admin-structure-active .et_pb_section.pi-structure-section {
  outline: 2px dashed rgba(27, 109, 230, .72);
  outline-offset: -2px;
}

body.pi-admin-structure-active .et_pb_module.pi-structure-module {
  outline: 1px dashed rgba(25, 103, 210, .38);
  outline-offset: 2px;
}

.pi-structure-controls {
  position: absolute;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.pi-structure-controls-section {
  top: 7px;
  right: 8px;
  opacity: 1;
  pointer-events: auto;
}

.pi-structure-controls-module {
  top: -29px;
  right: 0;
}

.pi-structure-module:hover > .pi-structure-controls-module,
.pi-structure-module:focus-within > .pi-structure-controls-module {
  opacity: 1;
  pointer-events: auto;
}

.pi-structure-btn {
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: rgba(20, 32, 55, .93);
  box-shadow: 0 3px 12px rgba(0,0,0,.24);
  font: 600 11px/26px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.pi-structure-btn:hover { background: #183e7f; }
.pi-structure-danger { background: #a52626; }
.pi-structure-danger:hover { background: #c52f2f; }

.pi-admin-image-editable {
  cursor: pointer !important;
  outline: 2px dashed rgba(31, 111, 228, .5);
  outline-offset: 3px;
}

.pi-user-section {
  min-height: 160px;
}

.pi-user-text-module {
  padding: 18px 0;
}

#pi-admin-structure[aria-pressed="true"] {
  background: #1f6fe5 !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  .pi-structure-controls-section {
    position: sticky;
    top: 4px;
    justify-content: flex-end;
    padding: 4px;
  }
  .pi-structure-controls-module {
    top: -27px;
  }
  .pi-structure-btn {
    padding: 0 6px;
    font-size: 10px;
  }
}

.pi-user-plain-section {
  box-sizing: border-box;
  width: min(1080px, 90%);
  margin: 34px auto;
  padding: 28px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}


/* v8 blog: create/edit posts, images and public comments. */
.pi-blog-admin-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.pi-blog-edit { color:#fff; background:#315efb; }
.pi-blog-delete { margin-top:0; color:#fff; background:#a82323; }
.pi-blog-remove-image { display:flex !important; grid-template-columns:auto 1fr !important; align-items:center; justify-content:flex-start; gap:8px !important; }
.pi-blog-remove-image input { width:auto !important; margin:0; }
.pi-blog-image-note { margin:-6px 0 14px; color:#667085; font-size:12px; }

.pi-blog-comments { margin-top:30px; padding-top:22px; border-top:1px solid rgba(127,127,127,.30); }
.pi-blog-comments-title { margin:0 0 14px; padding:0; color:inherit; font-size:20px; line-height:1.25; }
.pi-blog-comments-list { display:grid; gap:10px; margin-bottom:18px; }
.pi-blog-comments-empty { margin:0; padding:0; opacity:.72; }
.pi-blog-comment { position:relative; padding:13px 15px; border:1px solid rgba(127,127,127,.24); border-radius:10px; background:rgba(127,127,127,.08); }
.pi-blog-comment-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:9px; margin-bottom:6px; }
.pi-blog-comment-head strong { color:inherit; font-size:14px; }
.pi-blog-comment-head time { opacity:.62; font-size:11px; }
.pi-blog-comment-body { margin:0 !important; padding:0 !important; white-space:pre-wrap; overflow-wrap:anywhere; color:inherit; line-height:1.55; }
.pi-comment-admin-delete { margin-top:8px; padding:0; border:0; background:transparent; color:#d64545; cursor:pointer; font:inherit; font-size:11px; text-decoration:underline; }
.pi-blog-comment-form { display:grid; gap:10px; max-width:680px; }
.pi-blog-comment-form label { display:grid; gap:5px; margin:0; color:inherit; font-size:12px; font-weight:700; }
.pi-blog-comment-form input,
.pi-blog-comment-form textarea { width:100%; box-sizing:border-box; padding:10px 12px; border:1px solid #c9ced8; border-radius:8px; background:#fff; color:#171c27; font:inherit; line-height:1.35; }
.pi-blog-comment-form textarea { resize:vertical; min-height:92px; }
.pi-blog-comment-submit { width:max-content; min-height:38px; padding:8px 15px; border:0; border-radius:8px; background:#315efb; color:#fff; cursor:pointer; font:inherit; font-weight:700; }
.pi-blog-comment-submit:disabled { opacity:.55; cursor:not-allowed; }
.pi-blog-comment-status { min-height:18px; font-size:12px; color:inherit; opacity:.8; }
.pi-comment-hp { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
html[dir="rtl"] .pi-blog-comment-form,
html[dir="rtl"] .pi-blog-comments { direction:rtl; text-align:right; }

@media (max-width:620px) {
  .pi-blog-admin-actions .pi-admin-button { flex:1 1 auto; }
  .pi-blog-comment { padding:11px 12px; }
}


/* v10: blog manager is available from every page in admin mode. */
#pi-blog-manager {
  position: fixed; inset: 0; z-index: 2147483647; display: grid; place-items: center; padding: 18px;
  background: rgba(2,7,25,.76); backdrop-filter: blur(8px); direction: ltr;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
#pi-blog-manager[hidden] { display:none !important; }
.pi-blog-manager-dialog { width:min(100%,860px); max-height:min(88vh,900px); overflow:auto; box-sizing:border-box; padding:22px; color:#17203a; background:#fff; border-radius:18px; box-shadow:0 24px 80px rgba(0,0,0,.42); }
.pi-blog-manager-toolbar { display:flex; flex-wrap:wrap; gap:9px; margin:14px 0 8px; }
.pi-blog-manager-toolbar .pi-admin-button { text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.pi-blog-manager-note { margin:0 0 16px; color:#667085; font-size:13px; }
.pi-blog-manager-list { display:grid; gap:10px; }
.pi-blog-manager-list h4 { margin:18px 0 2px; padding:0; color:#17203a; font-size:15px; }
.pi-blog-manager-item { display:flex; gap:14px; align-items:center; justify-content:space-between; padding:13px 14px; border:1px solid #e1e5ec; border-radius:12px; background:#f8f9fc; }
.pi-blog-manager-info { min-width:0; display:grid; gap:4px; }
.pi-blog-manager-info strong { overflow-wrap:anywhere; color:#17203a; font-size:14px; line-height:1.35; }
.pi-blog-manager-info small { color:#667085; font-size:11px; line-height:1.4; }
.pi-blog-manager-actions { display:flex; flex:0 0 auto; flex-wrap:wrap; gap:7px; }
.pi-blog-manager-actions .pi-admin-button { min-height:36px; padding:7px 11px; color:#fff; background:#315efb; text-decoration:none; }
.pi-blog-manager-actions .pi-blog-delete { background:#a82323; }
.pi-blog-manager-static { background:#fff; }
.pi-blog-open-page { color:#28324d !important; background:#edf0f6 !important; text-decoration:none !important; }
.pi-blog-manager-empty,.pi-blog-manager-loading { margin:0; padding:14px; border-radius:10px; background:#f7f8fb; color:#667085; font-size:13px; }
#pi-admin-shell .pi-admin-posts,#pi-admin-shell .pi-admin-blog-add { background:#315efb; }
#pi-admin-shell .pi-admin-posts:hover:not(:disabled),#pi-admin-shell .pi-admin-blog-add:hover:not(:disabled) { background:#244bd8; }
@media (max-width:760px) { .pi-blog-manager-dialog{padding:15px}.pi-blog-manager-item{align-items:stretch;flex-direction:column}.pi-blog-manager-actions{width:100%}.pi-blog-manager-actions .pi-admin-button{flex:1 1 auto} }
