/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.0.1.1714465633
Updated: 2024-04-30 11:27:13

*/
@import url('https://fonts.googleapis.com/css2?family=Assistant&display=swap');

@font-face {
  font-family: 'ovrot';
  src: url('fonts/EFT_Legioner.eot');
  src: url('fonts/EFT_Legioner.eot?#iefix') format('embedded-opentype'),
       url('fonts/EFT_Legioner.woff') format('woff'),
       url('fonts/EFT_Legioner.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  unicode-range: U+0590-05FF; /* טווח תווים עבריים בלבד */
}

.jet-filter-items-scroll {
    direction: rtl; /* Set direction to right-to-left */
    overflow-y: auto; /* Ensure vertical scrolling is enabled */
    scrollbar-width: thin; /* For modern browsers, adjust the scrollbar width */
    max-height: 147px; /* Preserve your container's max height */
}

.jet-filter-items-scroll::-webkit-scrollbar {
    width: 8px; /* Adjust the width of the scrollbar */
}

.jet-filter-items-scroll::-webkit-scrollbar-track {
    background: #f1f1f1; /* Background of the scrollbar track */
}

.jet-filter-items-scroll::-webkit-scrollbar-thumb {
    background: #888; /* Scrollbar thumb color */
    border-radius: 5px; /* Rounded edges for the scrollbar thumb */
}

.frontend-form__submit {
  color: #fff;
  display: flex;
  justify-content: center;
  background-color: #0073aa;
  padding: 10px 20px;
  margin-bottom: 10px;
  cursor: pointer;
}

.frontend-form__submit:hover {
  color: #fff;
  display: flex;
  justify-content: center;
  background-color: #0073aa;
  padding: 10px 20px;
  margin-bottom: 10px;
  cursor: pointer;
}

.acf-fields.acf-form-fields.-top {
color: #f9f9f9;
  padding: 20px;
}

.acf-field-text input[type="text"],
.acf-field-validate-email input[type="text"] {
  width: 100%;
	
  padding: 10px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}
/* Target the button by its classes */
.fea-submit-button.button.button-primary {
  border-color: white;      /* Change border color */
  color: #fff;                /* Text color */
  padding: 10px 20px;         /* Button padding */
  border-radius: 33px;         /* Rounded corners */
  font-weight: bold;          /* Bold text */
  cursor: pointer;            /* Pointer cursor on hover */
	display: flex;
	justify-content: center;
}
.acf-field-submit-button .acf-input, .frontend-form-title, .fea-submit-buttons, .save-progress-buttons, .frontend-admin-tabs-view-horizontal .frontend-admin-tabs-wrapper{
	display: flex;
	justify-content: center;
}
.acf-field-submit-button .acf-input,
.frontend-form-title,
.fea-submit-buttons,
.save-progress-buttons,
.frontend-admin-tabs-view-horizontal .frontend-admin-tabs-wrapper:hover {
    background-color: transparent !important;
}

.elementor-1496 .elementor-element.elementor-element-dcc70b5 .acf-fields>.acf-field {
    display: flex;
    justify-content: center;
}
.fea-submit-button.button.button-primary:hover{
	background-color: transparent !important; 
}

body,
.elementor-heading-title,
.elementor-widget-container,
.elementor p,
.elementor span {
  font-family: 'ovrot', 'Assistant', sans-serif !important;
}

input[type="password"] {
  font-family: Sans-serif !important;
}
.elementor-6080.elementor-element.elementor-element-deecfed.jet-form-builder__field:not(.checkradio-field):not(.range-field):not(.jet-form-builder-repeater):not(.wysiwyg-field),
.elementor-6080.elementor-element.elementor-element-deecfed.jet-form-builder__field * {
    font-family: sans-serif !important;
}
:lang(en) { 
  font-family: 'Assistant', sans-serif;
}

.yt-grid-wrap {
		max-width:100% !important; margin:0 auto !important;
	}
	.yt-grid {
		display:flex !important; flex-wrap:wrap !important; gap:20px !important; justify-content:center !important; 
	}
	.yt-card {
		box-shadow:0 0 10px rgba(0,0,0,.1) !important; background:#fff !important; width: 30%;border:1px solid #ddd !important;
		border-radius:18px !important;  box-sizing:border-box !important; position:relative !important;
	}
	@media(max-width:991px){
		.yt-card { width:calc((100% - 20px) / 2) !important; }
	}
	@media(max-width:640px){
		.yt-card { width:100% !important; }
	}
	.yt-card img{
		width:100% !important; border-radius:18px 18px 0 0 !important; cursor:pointer !important; object-fit:cover !important;
	}
	.yt-card h3{
		font-size:22px !important; font-weight:600 !important; margin:10px 0 !important; padding:0 30px !important; color:#59B4CB !important;
	}
	.yt-card p{
		font-size:16px !important; color:#555 !important; padding:0 30px 16px !important;
	}
	.yt-play{
		position:absolute !important; bottom:10px !important; left:10px !important; font-size:17px !important; color:#fff !important;
		background:rgba(0,0,0,.7) !important; border-radius:50% !important; padding:8px 11px !important; cursor:pointer !important; transition:.3s !important;
	}
	.yt-play:hover{background:rgba(0,0,0,.9)!important;}
	.yt-modal{
		display:none; position:fixed!important; top:0!important; left:0!important; width:100%!important; height:100%!important;
		background:rgba(0,0,0,.8)!important; justify-content:center!important; align-items:center!important; z-index:9999!important;
	}
	.yt-modal iframe{width:80%!important;height:450px!important;border:0!important;}
	.yt-close{
		position:absolute!important; top:125px!important; right:10%!important; font-size:32px!important; background:none;
		border:none; color: red;!important; cursor:pointer!important;
	}
.yt-close:hover {
	background-color: transparent !important;
}

/* אלמנט .e-con-inner שמכיל בתוכו את ה-widget-טקסט-העורך המסוים
   כשה-widget אינו עם display:none  */
.e-con-inner:has(
  > .elementor-element.elementor-element-fab3dc3.course-field.elementor-widget-text-editor:not([style*="display: none"])
){
    /* כאן כתבי את הסגנונות */
	margin-right: 0 !important;
    background:#fef2e0;
    padding:1rem;
}


document.addEventListener('DOMContentLoaded', () => {

  const raw = document.getElementById('benefit-end-date')?.textContent?.trim();
  if (!raw) return;

  const [d,m,y] = raw.split('/');                // d/m/Y
  const endDate = new Date(`${y}-${m}-${d}`);
  endDate.setHours(0,0,0,0);

  const today = new Date();  today.setHours(0,0,0,0);

  if (endDate >= today){                         // ההטבה בתוקף
      const form = document.querySelector('.benefit-form');
      form?.classList.remove('hide-on-load');    // → מציג בלי קפיצה
  }
});
