.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-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-desc {
  display: none;
  margin-top: 8px;
}

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

.maarehot-readmore {
  text-align: right;
  margin-top: 6px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
  color: #333;
}

.maarehot-thumb {
  width: 100%;
  float: right;
}

.maarehot-thumb img {
  float: right;
  display: block;
  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;
  }
}

.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;
}

.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%;
  }
}

.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;
}

.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;
}

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

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

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

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

.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;
}


.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(--unit153-header-offset, 0px) + 30px);
  z-index: 40;
}

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


.history-sidebar-container,
.library-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 {
  list-style: none;
  margin: 0;
  padding: 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 {
    grid-template-columns: 1fr;
  }

  .library-single-layout {
    grid-template-areas:
      "content"
      "chapters";
  }

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

  .history-single-sidebar,
  .library-single-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;
}

.commanders-list-wrapper {
  direction: rtl;
}

.commanders-list-wrapper .commander-lightbox-trigger {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  display: block;
  float: right;
}

.commanders-list-wrapper .commander-lightbox-trigger img {
  float: none;
}

.commander-lightbox {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(90vw, 900px);
}

.commander-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.commander-lightbox img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
}

.commander-lightbox-close {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #033;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

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

.story-grid-item {
  min-width: 0;
}

.story-grid-link {
  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);
  color: #083f61;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.story-grid-link:hover,
.story-grid-link:focus-visible {
  box-shadow: 0 12px 28px rgba(8, 63, 97, 0.16);
  color: #083f61;
  outline: 2px solid #00adef;
  outline-offset: 2px;
  text-decoration: none;
  transform: translateY(-2px);
}

.story-grid-thumb {
  background: #eaf2f8;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.story-grid-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.story-grid-title {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  padding: 16px 18px 18px;
}

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

.story-hero {
  background: #fff;
  border: 1px solid rgba(31, 111, 159, 0.16);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  margin-bottom: 28px;
  overflow: hidden;
}

.story-hero-media img {
  display: block;
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.story-hero-content {
  padding: 22px 24px;
}

.story-hero-title {
  color: #034694;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin: 0;
}

.story-single-content {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.story-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.story-gallery-item {
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: zoom-in;
  overflow: hidden;
  padding: 0;
}

.story-gallery-item img {
  display: block;
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.story-back-link-wrap {
  margin: 0 0 24px;
}

.story-back-link {
  color: #106ba0;
  font-weight: 700;
}

.story-lightbox {
  background: transparent;
  border: 0;
  max-width: min(90vw, 960px);
  padding: 0;
  position: relative;
}

.story-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.story-lightbox img {
  display: block;
  height: auto;
  max-height: 85vh;
  max-width: 90vw;
  width: auto;
}

.story-lightbox-close {
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: #033;
  cursor: pointer;
  font-size: 24px;
  height: 36px;
  left: 8px;
  line-height: 1;
  position: absolute;
  top: 8px;
  width: 36px;
}

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

  .story-gallery-item img {
    height: auto;
    max-height: 280px;
  }
}
