.hebrew-calendar {
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

.calendar-view-toggle {
    display: flex;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 22px;
    padding: 4px;
    border-radius: 999px;
    background: #eeeeee;
}

.calendar-view-toggle a {
    min-width: 120px;
    padding: 9px 20px;
    border-radius: 999px;
    color: #222;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.calendar-view-toggle a.active {
    color: #fff;
    background: #0073aa;
}

.kotel-calendar-month-info {
    margin: 25px 0;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    line-height: 1.8;
}

.kotel-calendar-month-info h2 { margin: 0 0 12px; font-size: 28px; }
.kotel-calendar-month-info h3 { margin: 0 0 8px; font-size: 20px; }
.kotel-calendar-info-block { margin-top: 20px; }
.kotel-calendar-credit { margin: 20px 0 0; font-size: 12px; opacity: .75; }

.hebrew-calendar h2 {
    margin-bottom: 20px;
}

.hebrew-calendar table {
    width: 100%;
    border-collapse: collapse;
}

.hebrew-calendar th,
.hebrew-calendar td {
    border: 1px solid #ccc;
    padding: 1px;
    vertical-align: top;
}

.hebrew-calendar .shabbat {
    background-color: #f0f0f0;
}

.hebrew-calendar .today {
    background-color: #ffeb3b; /* צבע רקע עבור התאריך של היום */
}

.hebrew-calendar .holiday-name,
.hebrew-calendar .parasha-name,
.hebrew-calendar .shabbat-times {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #555;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-nav a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.calendar-select {
    margin-bottom: 20px;
}

#month-select, #year-select {
    padding: 5px;
    margin-right: 10px;
}
.calendar-select {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.calendar-select form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-select select, .calendar-select button {
    padding: 5px;
    font-size: 1em;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.calendar-nav a {
    padding: 5px 10px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.calendar-nav a:hover {
    background-color: #005177;
}

.hebrew-calendar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.hebrew-calendar table {
    width: 100%;
    text-align: center;
}

.hebrew-calendar th, .hebrew-calendar td {
    padding: 1px;
    border: 1px solid #ddd;
}

.hebrew-calendar .today {
    background-color: yellow;
}
.event-link {
    background: #4caf5075;
    border-radius: 10px;
    font-weight: bold;
    font-size: 8px;
    padding: 4px;
}
.event-link a {
    margin: 0px;
}
.calendar-select {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.calendar-select form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-select select, .calendar-select button {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.calendar-select select:focus, .calendar-select button:focus {
    outline: none;
    background-color: #e9e9e9;
}

.calendar-select button {
    cursor: pointer;
    background-color: #0073aa;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

.calendar-select button:hover {
    background-color: #005177;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.calendar-nav a {
    padding: 5px 10px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.calendar-nav a:hover {
    background-color: #005177;
}

.hebrew-calendar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.hebrew-calendar table {
    width: 100%;
    text-align: center;
}

.hebrew-calendar th, .hebrew-calendar td {
    padding: 10px;
    border: 1px solid #ddd;
}

.hebrew-calendar .today {
    background-color: yellow;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #000;
  width: 14.28%; /* משקל שווה לכל עמודה */
  padding: 10px;
  text-align: center;
  vertical-align: top;
  box-sizing: border-box;
}

th {
  background-color: #f2f2f2;
}

td {
  position: relative;
}

td a {
  display: block;
  margin-top: 10px;
}
#\31 5 > div > div.elementor-element.elementor-element-f73b879.elementor-widget.elementor-widget-theme-post-content > div > div > div.calendar-nav > a {
    color: #fff;
}
button#go-button {
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    padding: 5px 20px;
	color: #000;
}
.hebrew-calendar td{
	font-size: 13px;
	text-align: right;
}
a.zmn {
    width: 29px;
    float: right;
}
.calendar-nav > a {
    color: #fff;
}
@media screen and (max-width: 850px) {
	.calendar-view-toggle { width: 100%; }
	.calendar-view-toggle a { flex: 1; min-width: 0; padding: 9px 12px; }
	   th, td {
		width: 14.2%;
		float: right;
		font-size: 9px;
	}
	.hebrew-calendar td{
		min-height: 250px !important;
	}
	a.zmn {
    width: 100%;
	}
}
/* Disable responsiveness for the calendar table */
@media only screen and (max-width: 1024px) {
    .hebrew-calendar td {
        height: 250px !important;
    }
}
@media only screen and (max-width: 1024px) { 
    .hebrew-calendar { 
        zoom: 0.8; /* שינוי גודל רק ללוח השנה */
        overflow-x: auto; /* אפשר גלילה אופקית אם יש צורך */
        width: 100%; /* מתאים את הלוח לתצוגת מובייל */
    } 
}

/* Controls: scoped and strong enough to override the site's global link rules. */
.hebrew-calendar .calendar-view-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 5px;
    border: 1px solid #b8d8e6;
    border-radius: 999px;
    background: #eef5f8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.hebrew-calendar .calendar-view-toggle a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 42px;
    padding: 9px 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #2b261f !important;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
}

.hebrew-calendar .calendar-view-toggle a.active,
.hebrew-calendar .calendar-view-toggle a:hover,
.hebrew-calendar .calendar-view-toggle a:focus-visible {
    background: #0082b5 !important;
    color: #fff !important;
}

.hebrew-calendar .calendar-selector-form {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hebrew-calendar .calendar-selector-form select {
    height: 44px;
    margin: 0 !important;
    padding: 8px 16px !important;
    border-radius: 7px !important;
    font-size: 16px;
    line-height: 1.2;
}

.hebrew-calendar .calendar-selector-form select {
    min-width: 145px;
    border: 1px solid #a8c9d8 !important;
    background: #fff !important;
    color: #222 !important;
}

.hebrew-calendar .calendar-nav a {
    border: 1px solid #0082b5 !important;
    background: #0082b5 !important;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .10);
    transition: background-color .2s ease, transform .2s ease;
}

.hebrew-calendar .calendar-nav a:hover,
.hebrew-calendar .calendar-nav a:focus-visible {
    background: #006b96 !important;
    border-color: #006b96 !important;
    transform: translateY(-1px);
}

.hebrew-calendar .calendar-nav a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 16px !important;
    border-radius: 7px !important;
}

@media screen and (max-width: 600px) {
    .hebrew-calendar .calendar-view-toggle {
        display: flex !important;
        width: 100%;
    }
    .hebrew-calendar .calendar-view-toggle a {
        flex: 1;
        min-width: 0;
        padding-inline: 10px !important;
    }
    .hebrew-calendar .calendar-selector-form select {
        flex: 1 1 130px;
        min-width: 0;
    }
    .hebrew-calendar .calendar-nav {
        gap: 6px;
    }
    .hebrew-calendar .calendar-nav a {
        flex: 1;
        padding-inline: 6px !important;
        font-size: 13px;
    }
}
