.maarehot-title {
    font-weight: 700;
}

.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: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.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: underline;
}
.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: 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: #0f5f8f;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.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: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

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

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

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

.unit-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 {
    position: relative;
    z-index: 1;
}

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

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

@media (max-width: 768px) {
    .unit-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;
    }
}

/* 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: underline;
	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;
    background: red;
}
}
