.maarehot-title {
  font-weight: 700;
  font-size: 18px;
  color: #034694;
}

.maarehot-table tbody tr {
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.maarehot-table tbody tr[id] {
  scroll-margin-top: 90px;
}

.maarehot-table tbody tr:nth-child(odd) td {
  background: #fff;
  transition: 0.4s ease;
}

.maarehot-table tbody tr:nth-child(even) td {
  background: #f3f7fb;
  transition: 0.4s ease;
}

.maarehot-table tbody tr:hover td {
  background: #eaf2f8;
}

.maarehot-service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  padding: 7px 0;
}

.maarehot-service-row + .maarehot-service-row {
  border-top: 1px solid rgba(31, 111, 159, 0.16);
}

.maarehot-service-years {
  color: #1f3f56;
  font-weight: 700;
  min-width: 72px;
}

.maarehot-service-units a {
  color: #0f5f8f;
  font-weight: 700;
  text-decoration: none;
}

.maarehot-service-units a:hover,
.maarehot-service-units a:focus {
  color: #083f61;
  background: rgba(31, 111, 159, 0.1);
  outline: none;
}

.maarehot-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* חובה כדי שרוחבים יעבדו */
  direction: rtl;
  font-size: 14px;
}

.maarehot-table th,
.maarehot-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: right;
  vertical-align: top;
  word-wrap: break-word;
}

/* כותרת עליונה */
.maarehot-table thead {
  background: #f5f5f5;
}

/* עמודות */
.maarehot-table .serial-col {
  width: 60px; /* עמודת # */
  text-align: center;
}

.maarehot-table th:nth-child(2),
.maarehot-table td:nth-child(2) {
  width: 300px; /* עמודת מערכת */
}

.maarehot-table th:nth-child(3),
.maarehot-table td:nth-child(3) {
  width: 220px; /* עמודת שירות */
}

.maarehot-table th:nth-child(4),
.maarehot-table td:nth-child(4) {
  width: 220px; /* עמודת מאפיינים */
}

/* תמונה + תוכן */
.maarehot-thumb img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 6px auto;
}

/* תיאור מוסתר */
.maarehot-desc {
  display: none;
  margin-top: 8px;
}

.maarehot-desc.is-open {
  display: block;
}
.maarehot-desc {
  display: none;
}

.maarehot-desc.is-open {
  display: block;
}

.maarehot-readmore {
  text-align: center;
  margin-top: 6px;
  font-size: 13px;
  text-decoration: none;
}
.maarehot-readmore {
  text-align: right;
  font-weight: 700;
  color: #333;
}
.maarehot-thumb {
  width: 100%;
  float: right;
}
.maarehot-thumb img {
  float: right;
  max-width: 300px;
  max-height: 300px;
  height: auto;
  width: auto;
}
/* רספונסיב */
@media (max-width: 768px) {
  .maarehot-table,
  .maarehot-table thead,
  .maarehot-table tbody,
  .maarehot-table tr,
  .maarehot-table td,
  .maarehot-table th {
    display: block;
    width: 100% !important;
  }

  .maarehot-table th {
    display: none;
  }

  .maarehot-table td {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px;
    position: relative;
  }

  .maarehot-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    font-size: 18px;
  }
  .maarehot-table .serial-col {
    display: none;
  }
}

.yehidot-grid-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px 20px;
  text-align: center;
  box-sizing: border-box;
}

/* 4 פריטים בשורה בדסקטופ */
.yehidot-grid-item {
  width: calc(25% - 20px);
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

/* לינק שעוטף את הכל */
.yehidot-grid-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

/* עיגול לתמונה עם שאדו */
.yehidot-thumb-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.yehidot-thumb-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* כותרת */
.yehidot-title {
  font-size: 18px;
  margin: 0;
  text-align: center;
  transition: color 0.25s ease;
}

/* אפקט hover */
.yehidot-grid-link:hover .yehidot-thumb-circle {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transform: scale(1.05);
}

.yehidot-grid-link:hover {
  transform: translateY(-4px);
}

.yehidot-grid-link:hover .yehidot-title {
  color: #0073aa;
}

/* טאבלט – 2 בשורה */
@media (max-width: 1024px) {
  .yehidot-grid-item {
    width: calc(50% - 20px);
  }
}

/* מובייל – גם 2 בשורה */
@media (max-width: 600px) {
  .yehidot-grid-item {
    width: calc(50% - 20px);
  }

  .yehidot-thumb-circle {
    width: 120px;
    height: 120px;
  }

  .yehidot-title {
    font-size: 16px;
  }
}

.commendations-grid-wrapper {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.commendation-grid-item {
  background: #fff;
  border: 1px solid rgba(31, 111, 159, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  padding: 18px;
}

.commendation-rank {
  font-size: 12px;
}
.commendation-name {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: baseline;
}
.commendation-title {
  font-size: 20px;
  margin: 0 0 8px;
}
.commendation-type-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.commendation-type {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: #eaf2f8;
  border-right: 4px solid #1f6f9f;
  color: #083f61;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 6px 10px;
}

.commendation-type-image-slot {
  width: 150px;
  max-width: 150px;
  height: 50px;
  max-height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.commendation-type-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 50px;
  object-fit: contain;
  object-position: center;
}

.commendation-type-image--placeholder {
  width: 150px;
  height: 50px;
  max-width: 150px;
  max-height: 50px;
}

.commendation-type-name {
  line-height: 1.3;
}

.commendation-meta {
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.commendation-meta span {
  color: #1f3f56;
  font-weight: 700;
}

.commendation-meta a {
  color: #00adef;
  font-weight: 700;
  text-decoration: none;
}

.commendation-description {
  border-top: 1px solid rgba(31, 111, 159, 0.16);
  margin-top: 12px;
  padding-top: 12px;
}

@media (max-width: 768px) {
  .commendations-grid-wrapper {
    grid-template-columns: 1fr;
  }
}

.fallen-grid-wrapper {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fallen-grid-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(31, 111, 159, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  padding: 18px;
}

.fallen-thumb img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.fallen-name {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: baseline;
}

.fallen-rank {
  font-size: 12px;
}

.fallen-title {
  font-size: 20px;
  margin: 0 0 8px;
}

.fallen-meta {
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.fallen-meta span {
  color: #1f3f56;
  font-weight: 700;
}

.fallen-meta a {
  color: #0f5f8f;
  font-weight: 700;
  text-decoration: none;
}

.fallen-dates {
  display: flex;
  flex-wrap: wrap;
}

.fallen-memorial-line {
  border-top: 1px solid rgba(31, 111, 159, 0.16);
  color: #1f3f56;
  margin-top: 12px;
  padding-top: 12px;
}

.fallen-grid-cta {
  color: #106ba0;
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-right: auto;
  margin-top: 12px;
  text-decoration: none;
  width: fit-content;
}

.fallen-single-main {
  direction: rtl;
}

.fallen-hero {
  align-items: start;
  background: #fff;
  border: 1px solid rgba(31, 111, 159, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 24px;
  grid-template-columns: 180px minmax(0, 1fr);
  margin-bottom: 28px;
  padding: 24px;
}

.fallen-hero .fallen-thumb img {
  height: 180px;
  width: 180px;
}

.fallen-hero .fallen-title {
  font-size: 28px;
}

.fallen-single-content {
  color: #1f2933;
  direction: rtl;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.fallen-single-content > :first-child {
  margin-top: 0;
}

.fallen-single-content > :last-child {
  margin-bottom: 0;
}

.fallen-back-link-wrap,
.interception-back-link-wrap {
  margin: 28px 0 0;
}

.fallen-back-link,
.interception-back-link {
  color: #106ba0;
  font-weight: 700;
  text-decoration: none;
}

.fallen-back-link:hover,
.fallen-back-link:focus-visible,
.interception-back-link:hover,
.interception-back-link:focus-visible {
  color: #4db6ba;
  outline: none;
}

.unit-related-title a {
  color: #106ba0;
  font-weight: inherit;
  text-decoration: none;
}

.unit-related-title a:hover,
.unit-related-title a:focus-visible {
  color: #4db6ba;
  outline: none;
}

.interceptions-grid-wrapper {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
}

.interception-grid-item {
  background: #fff;
  border: 1px solid rgba(31, 111, 159, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  padding: 18px;
  position: relative;
  scroll-margin-top: 90px;
}

.interception-item-edit-link {
  display: none;
  height: 28px;
  position: absolute;
  right: 0px;
  top: 0px;
  width: 28px;
}

.interception-item-edit-link::before {
  background-color: #ccc;
  content: "";
  display: block;
  height: 16px;
  margin: 6px auto 0;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 16px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.interception-item-edit-link:hover::before,
.interception-item-edit-link:focus-visible::before {
  background-color: #083f61;
}

@media (min-width: 769px) {
  .interception-item-edit-link {
    display: block;
  }
}

.interception-fields-grid {
  direction: rtl;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  width: 100%;
}

.interception-field-cell {
  border-left: 1px solid rgba(31, 111, 159, 0.14);
  min-width: 0;
  padding: 0 14px 4px;
}

.interception-field-cell:first-child {
  border-left: 0;
  padding-right: 0;
}

.interception-field-cell:last-child {
  padding-left: 0;
}

.interception-field-label {
  color: #1f3f56;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
  text-align: right;
}

.interception-field-value {
  color: #083f61;
  font-size: 15px;
  line-height: 1.45;
  text-align: right;
}

.interception-field-value a {
  color: #0f5f8f;
  font-weight: 700;
  text-decoration: none;
}

.interception-datetime {
  direction: rtl;
  display: flex;  
  gap: 8px;
  text-align: right;
}

.interception-datetime-part {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  padding: 0px 4px;
}

.interception-datetime-part--date {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}


.interception-datetime-value {
  color: #083f61;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}



.interception-description-block {
  border-top: 1px solid rgba(31, 111, 159, 0.16);
  margin-top: 16px;
  padding-top: 14px;
}

.interception-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.interception-full-story {
  align-items: center;
  color: #0f5f8f;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  text-decoration: none;
}

.interception-full-story:hover,
.interception-full-story:focus {
  color: #083f61;
  outline: none;
}

.interception-full-story-icon {
  display: inline-flex;
  line-height: 0;
}

.interception-full-story-icon svg {
  display: block;
  height: 14px;
  width: 14px;
}

.interception-description {
  background: linear-gradient(135deg, #f7fbfd 0%, #eef5fa 100%);
  border: 1px solid rgba(31, 111, 159, 0.14);
  border-radius: 12px;  
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #1f3f56;
  display: none;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 10px;
  padding: 14px 16px;
}

.interception-description.is-open {
  display: block;
}

.interception-description p:last-child {
  margin-bottom: 0;
}

.interception-readmore {
  align-items: center;
  color: #0f5f8f;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  text-decoration: none;
}

.interception-readmore:hover,
.interception-readmore:focus {
  color: #083f61;
  outline: none;
}

.interception-readmore-label {
  color: inherit;
}

.interception-readmore-arrow {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  display: inline-block;
  flex-shrink: 0;
  height: 0;
  transition: transform 180ms ease;
  width: 0;
}

.interception-readmore.is-open .interception-readmore-arrow {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .interceptions-grid-wrapper {
    grid-template-columns: 1fr;
  }

  .interception-fields-grid {
    grid-template-columns: 1fr;
  }

  .interception-field-cell {
    border-left: 0;
    border-top: 1px solid rgba(31, 111, 159, 0.14);
    padding: 12px 0 0;
  }

  .interception-field-cell:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

.interception-single-main {
  direction: rtl;
}

.interception-single-meta {
  background: #fff;
  border: 1px solid rgba(31, 111, 159, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  margin-bottom: 28px;
  padding: 18px;
}

.interception-single-content {
  color: #1f2933;
  direction: rtl;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.interception-single-content > :first-child {
  margin-top: 0;
}

.interception-single-content > :last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .fallen-grid-wrapper {
    grid-template-columns: 1fr;
  }

  .fallen-grid-item {
    grid-template-columns: 1fr;
  }

  .fallen-thumb img {
    width: 100%;
    height: auto;
  }

  .fallen-hero {
    grid-template-columns: 1fr;
  }

  .fallen-hero .fallen-thumb img {
    height: auto;
    width: 100%;
  }
}

.unit-single-main {
  direction: rtl;
}

.unit-hero {
  align-items: center;
  background: linear-gradient(135deg, #083f61 0%, #0f5f8f 56%, #1f6f9f 100%);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  color: #fff;
  display: flex;
  gap: 28px;
  margin-bottom: 34px;
  overflow: hidden;
  padding: 34px;
  position: relative;
}

.history-hero,
.library-hero {
  align-items: center;
  background: linear-gradient(135deg, #182f5c 0%, #1f3b72 52%, #2a4d8f 100%);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(31, 59, 114, 0.22);
  color: #fff;
  display: flex;
  margin-bottom: 34px;
  overflow: hidden;
  padding: 34px;
  position: relative;
}

.unit-hero::after,
.history-hero::after,
.library-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  content: "";
  height: 220px;
  left: -70px;
  position: absolute;
  top: -70px;
  width: 220px;
}

.unit-hero-logo {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  display: flex;
  flex: 0 0 150px;
  height: 150px;
  justify-content: center;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.unit-hero-logo:empty {
  display: none;
}

.unit-hero-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.unit-hero-content,
.history-hero-content,
.library-hero-content {
  position: relative;
  z-index: 1;
}

.unit-hero-kicker,
.history-hero-kicker,
.library-hero-kicker {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.unit-hero-title,
.history-hero-title,
.library-hero-title {
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0;
}

.unit-single-layout {
  display: grid;
  direction: ltr;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.unit-single-content {
  direction: rtl;
  grid-column: 2;
  min-width: 0;
}

.unit-single-sidebar .units-sidebar-container {
  background: #f7fbfd;
  border: 1px solid rgba(31, 111, 159, 0.18);
  border-radius: 14px;
  direction: rtl;
  grid-column: 1;
  padding: 18px;
}

.unit-sidebar-section + .unit-sidebar-section {
  border-top: 1px solid rgba(31, 111, 159, 0.16);
  margin-top: 18px;
  padding-top: 18px;
}

.unit-sidebar-section h2 {
  color: #083f61;
  font-size: 18px;
  margin: 0 0 10px;
}

.unit-single-sidebar a {
  color: #00adef;   
  transition: none;
}

.unit-sidebar-view-all{
  font-size: 12px;
  text-align: left;
  display: block;
}
.unit-sidebar-view-all::after{
  content: " >";
}
.unit-single-sidebar a:hover,
.unit-single-sidebar a:focus,
.unit-single-sidebar a:active {
  color: #00adef;
  outline: none;
  text-decoration: none;
}

.unit-single-sidebar table tr,
.unit-single-sidebar table td,
.unit-single-sidebar table th {
  transition: none;
}

.unit-single-sidebar table tr:hover,
.unit-single-sidebar table tr:hover td,
.unit-single-sidebar table tr:hover th {
  background: transparent;
  box-shadow: none;
}

.unit-sidebar-list,
.unit-commanders-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.unit-sidebar-list li,
.unit-commanders-list li {
  margin-bottom: 8px;
}

.unit-systems-table {
  background: transparent;
  border: 0;
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}

.unit-systems-table thead,
.unit-systems-table tbody,
.unit-systems-table tr {
  background: transparent;
  border: 0;
}

.unit-systems-table th,
.unit-systems-table td,
.unit-systems-table tr:nth-child(2n + 1) > td {
  background: transparent;
  border: 0;
  padding: 6px 0;
  text-align: right;
  vertical-align: top;
}

.unit-systems-table th {
  font-weight: 700;
}

.unit-interceptions-table .unit-interception-date {
  color: #1f3f56;
  
  white-space: nowrap;
  width: 42%;
}

.unit-commander-dates {
  display: inline-block;
}

.unit-commander-name {
  color: #1f3f56;
  display: inline-block;
  font-weight: 700;
}

.unit-related-rank,
.unit-related-meta {
  font-size: 12px;
}

.unit-related-title {
  display: inline;
}

.unit-all-units-trigger-wrap {
  isolation: isolate;
  margin-bottom: 12px;
  padding-bottom: 4px;
  position: sticky;
  top: calc(var(--air-defense-header-offset, 0px) + 10px);
  z-index: 40;
  [type="button"]{
    color: #fff;
    border: none;
    width: 100%;
    border-radius: 12px;
    display: flex;
  }
}

.unit-all-units-trigger-wrap::before {
  /* background: linear-gradient(180deg, #fff 0%, #fff 72%, rgba(255, 255, 255, 0)); */
  content: "";
  inset: -8px -4px 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}


.unit-all-units-trigger {
  align-items: center;
  background: linear-gradient(135deg, #083f61 0%, #0f5f8f 56%, #1f6f9f 100%);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(8, 63, 97, 0.24);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
  width: 100%;
}

.unit-all-units-trigger:hover,
.unit-all-units-trigger:focus-visible {
  box-shadow: 0 10px 22px rgba(8, 63, 97, 0.32);
  outline: 2px solid #00adef;
  outline-offset: 2px;
  transform: translateY(-1px);
}

.unit-all-units-trigger-icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.unit-all-units-trigger-icon svg {
  display: block;
}

.unit-all-units-panel {
  border: 0;
  border-radius: 18px;
  direction: rtl;
  margin: auto;
  max-height: min(85vh, calc(100dvh - 32px - var(--air-defense-header-offset, 0px)));
  max-width: 1140px;
  overflow: hidden;
  padding: 0;
  width: min(1140px, calc(100% - 32px));
}

.unit-all-units-panel::backdrop {
  background: rgba(8, 63, 97, 0.52);
}

.unit-all-units-panel-inner {
  background: #fff;
  display: flex;
  flex-direction: column;
  max-height: inherit;
  min-height: 0;
  overflow: hidden;
}

.unit-all-units-panel-header {
  align-items: center;
  background: linear-gradient(135deg, #083f61 0%, #0f5f8f 100%);
  color: #fff;
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 20px;
  [type="button"]{
    border-color: #fff;
    color: #fff;
  }
  [type="button"]:focus,
  [type="button"]:hover{
    background-color: transparent;
  }
}

.unit-all-units-panel-header h2 {
  color: #fff !important;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.unit-all-units-close {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 20px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  min-width: 32px;
  padding: 0;
  width: 32px;
}

.unit-all-units-close:hover,
.unit-all-units-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.unit-all-units-grid {
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-height: min(68vh, calc(100dvh - 160px - var(--air-defense-header-offset, 0px)));
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  -webkit-overflow-scrolling: touch;
}

.unit-all-units-card {
  align-items: center;
  background: #f7fbfd;
  border: 1px solid rgba(31, 111, 159, 0.16);
  border-radius: 10px;
  color: #083f61;
  display: flex;
  flex-direction: row;
  gap: 8px;
  min-height: 40px;
  padding: 7px 10px;
  text-align: right;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.unit-all-units-card:hover,
.unit-all-units-card:focus-visible {
  background: #eef6fb;
  border-color: rgba(31, 111, 159, 0.34);
  box-shadow: 0 6px 14px rgba(8, 63, 97, 0.12);
  color: #083f61;
  outline: 2px solid #00adef;
  outline-offset: 2px;
  text-decoration: none;
}

.unit-all-units-card.is-current {
  background: #e4f2fa;
  border-color: #0f5f8f;
  box-shadow: inset 0 0 0 1px rgba(15, 95, 143, 0.18);
  font-weight: 700;
}

.unit-all-units-card-logo {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex: 0 0 26px;
  height: 26px;
  justify-content: center;
  overflow: hidden;
  width: 26px;
}

.unit-all-units-card-logo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.unit-all-units-card-title {
  display: block;
  flex: 1;
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
  text-align: right;
}

@media (max-width: 768px) {
  .unit-hero,
  .history-hero,
  .library-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .unit-hero-logo {
    flex-basis: auto;
    height: 120px;
    width: 120px;
  }

  .unit-single-layout {
    grid-template-columns: 1fr;
  }

  .unit-single-content,
  .unit-single-sidebar {
    grid-column: 1;
  }

  .unit-all-units-panel {
    border-radius: 0;
    height: 100dvh;
    max-height: 100dvh;
    max-width: none;
    overflow: hidden;
    width: 100%;
  }

  .unit-all-units-panel-inner {
    height: 100%;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .unit-all-units-panel-header {
    flex-shrink: 0;
    padding:
      max(16px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      16px
      max(16px, env(safe-area-inset-left));
  }

  .unit-all-units-grid {
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding:
      12px
      max(12px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
  }

  .unit-all-units-close {
    height: 36px;
    min-width: 36px;
    width: 36px;
  }

  .unit-all-units-card {
    padding: 8px 10px;
  }

  .unit-all-units-card-title {
    font-size: 13px;
  }
}

.history-single-main,
.library-single-main {
  direction: rtl;
}

.history-single-layout,
.library-single-layout {
  align-items: start;
  display: grid;
  direction: ltr;
  gap: 32px;
}

.history-single-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.library-single-layout {
  grid-template-areas: "content chapters";
  grid-template-columns: minmax(0, 1fr) 280px;
}

.library-single-layout.has-related-units {
  grid-template-areas: "units content chapters";
  grid-template-columns: 280px minmax(0, 1fr) 280px;
}

.history-single-content {
  direction: rtl;
  grid-column: 1;
  min-width: 0;
}

.library-single-content {
  direction: rtl;
  grid-area: content;
  min-width: 0;
}

.history-single-sidebar {
  align-self: start;
  grid-column: 2;
  isolation: isolate;
  position: sticky;
  top: calc(var(--air-defense-header-offset, 0px) + 30px);
  z-index: 40;
}

.library-single-sidebar,
.library-units-sidebar {
  align-self: start;
  isolation: isolate;
  position: sticky;
  top: calc(var(--air-defense-header-offset, 0px) + 30px);
  z-index: 40;
}

.library-single-sidebar {
  grid-area: chapters;
}

.library-units-sidebar {
  grid-area: units;
}

.history-sidebar-container,
.library-sidebar-container,
.library-units-sidebar-container {
  background: #f7fbfd;
  border: 1px solid rgba(31, 111, 159, 0.18);
  border-radius: 14px;
  direction: rtl;
  padding: 18px;
}

.history-sidebar-title,
.library-sidebar-title {
  color: #083f61;
  font-size: 18px;
  margin: 0 0 12px;
}

.history-sidebar-list,
.library-sidebar-list,
.library-related-units-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.library-related-units-list li + li {
  margin-top: 8px;
}

.library-related-unit-link {
  align-items: center;
  color: #083f61;
  display: flex;
  gap: 8px;
  text-decoration: none;
}

.library-related-unit-link:hover,
.library-related-unit-link:focus-visible {
  color: #00adef;
  outline: none;
  text-decoration: none;
}

.library-related-unit-logo {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex: 0 0 26px;
  height: 26px;
  justify-content: center;
  overflow: hidden;
  width: 26px;
}

.library-related-unit-logo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.library-related-unit-title {
  flex: 1;
  min-width: 0;
}

.history-sidebar-nav a,
.library-sidebar-nav a {
  color: #106ba0;
}

.history-sidebar-nav a:hover,
.history-sidebar-nav a:focus-visible,
.library-sidebar-nav a:hover,
.library-sidebar-nav a:focus-visible {
  color: #4db6ba;
  outline: none;
  text-decoration: none;
}

@media (max-width: 768px) {
  .history-single-layout,
  .library-single-layout,
  .library-single-layout.has-related-units {
    grid-template-columns: 1fr;
  }

  .library-single-layout,
  .library-single-layout.has-related-units {
    grid-template-areas:
      "content"
      "units"
      "chapters";
  }

  .history-single-content,
  .history-single-sidebar {
    grid-column: 1;
  }

  .history-single-sidebar,
  .library-single-sidebar,
  .library-units-sidebar {
    position: static;
  }
}

.history-grid-wrapper {
  box-sizing: border-box;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-grid-item {
  display: flex;
  min-width: 0;
}

.history-grid-link {
  align-items: center;
  background: linear-gradient(145deg, #182f5c 0%, #1f3b72 55%, #2a4d8f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(31, 59, 114, 0.2);
  color: #fff;
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 140px;
  padding: 40px 34px;
  text-decoration: none;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  width: 100%;
}

.history-grid-wrapper a.history-grid-link,
.history-grid-wrapper a.history-grid-link:hover,
.history-grid-wrapper a.history-grid-link:focus,
.history-grid-wrapper a.history-grid-link:active,
.history-grid-wrapper a.history-grid-link:visited {
  color: #fff;
  text-decoration: none;
}

.history-grid-title {
  color: #fff !important;
  font-size: clamp(28px, 2.6vw, 28px) !important;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-align: center;
}

.history-grid-wrapper a.history-grid-link:hover .history-grid-title,
.history-grid-wrapper a.history-grid-link:focus-visible .history-grid-title,
.history-grid-wrapper a.history-grid-link:active .history-grid-title,
.history-grid-wrapper a.history-grid-link:visited .history-grid-title {
  color: #fff;
}

.history-grid-link:focus-visible {
  outline: 2px solid #00adef;
  outline-offset: 4px;
}

.history-grid-wrapper a.history-grid-link:hover,
.history-grid-wrapper a.history-grid-link:focus-visible {
  box-shadow: 0 14px 32px rgba(31, 59, 114, 0.32);
  color: #fff;
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .history-grid-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-grid-title {
    font-size: clamp(24px, 4.5vw, 30px);
  }
}

@media (max-width: 600px) {
  .history-grid-wrapper {
    grid-template-columns: 1fr;
  }

  .history-grid-link {
    min-height: 112px;
    padding: 24px 18px;
  }

  .history-grid-title {
    font-size: clamp(22px, 6.5vw, 28px);
  }
}

/* Header, menu, and bullet customizations migrated from the parent footer. */
.headermain {
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 999;
}

/* When fixed */
.headermain.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
:not(.elementor-editor-active) .homeslidertotop {
  margin-top: -123px !important;
}
/**/
.headermain .headermain1 .elementor-widget-container img,
.headermain .headermain3 .elementor-widget-container img {
  transition: height 0.5s ease; /* אנימציה על הגובה */
}

.headermain .headermain1 .elementor-widget-container,
.headermain .headermain3 .elementor-widget-container {
  transition: margin 0.5s ease;
}

.headermain .headermain2 {
  transition: padding 0.5s ease;
}

/**/
.headermain.is-fixed .headermain1 .elementor-widget-container {
  margin-top: 0 !important;
}
.headermain.is-fixed .headermain1 .elementor-widget-container img {
  height: 54px !important;
  width: auto;
}
.headermain.is-fixed .headermain3 .elementor-widget-container {
  margin-top: 0 !important;
}
.headermain.is-fixed .headermain3 .elementor-widget-container img {
  height: 54px !important;
  width: auto;
}
.headermain.is-fixed .headermain2 {
  padding-top: 0 !important ;
  padding-bottom: 0 !important ;
}
.home .headermain:not(.is-fixed) .sub-menu.elementor-nav-menu--dropdown {
  background: rgba(255, 255, 255, 0.29) !important;
}
ul.bulletsul,
.page-content ul.menu {
  list-style: none; /* Removes the default bullets */
  margin: 0;
  padding: 0;
}
ul.bulletsul li,
.page-content ul.menu li {
  margin-bottom: 6px;
}
ul.bulletsul li a,
.page-content ul.menu li a {
  color: #106ba0;
}
ul.bulletsul li a:hover,
.page-content ul.menu li a:hover {
  text-decoration: none;
  color: #4db6ba;
  font-weight: 400 !important;
}
ul.bulletsul li a:before,
.page-content ul.menu li a:before {
  width: 15px;
  height: 15px;
  content: "";
  display: inline-block;
  margin-left: 10px;
  position: relative;
  top: 2px;
  background: url("../../img/bull.png") no-repeat center center;
  background-size: contain;
}
ul.bulletsul li.currentbull a,
.page-content ul.menu li.current-menu-item a {
  font-weight: bold;
}
.elementor-nav-menu--main .elementor-nav-menu .sub-menu a {
  padding: 8px 20px;
}
.headermain2 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
@media (max-width: 4770px) and (min-width: 1500px) {
  .headermain:not(.is-fixed)
    .headermain2
    .elementor-nav-menu
    a.elementor-item.has-submenu {
    padding-bottom: 58px;
    padding-top: 58px;
  }
}

a,
a:link,
a:visited,
a:hover,
a:focus,
a:active,
a:focus-visible {
  text-decoration: none !important;
}
