*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, li, 
header, main, section, article, nav, footer,
div, span {
	margin: 0;
	padding: 0;
	border: 0;
}

html {
	background-color: #f0f0f0;
	margin: 0;
	padding: 0;
	border: 0;	
}

body {
	background-color: #ffffff;
	margin: 0 auto;
	padding: 0;
	width: 100%;
	max-width: 1000px;
	min-height: 100vh;
	position: relative;
}

.site-header {
	background-color: #1a365d;
	height: 128px;
	width: 100%;
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid #FFD700;
}

.site-logo {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 86px;
	height: auto;
	z-index: 101;
}

.hebrew-greeting {
	position: absolute;
	top: 4px;
	right: 100px;
	color: white !important;
	font-size: 14px;
	z-index: 101;
}

#hebrew-date {
	color: white !important;
}

.site-title {
	position: absolute;
	top: 18px;
	right: 100px;
	font-family: 'YiddishkeitAlefAlefAlef-Bold', serif;
	font-size: 42px;
	color: white;
	z-index: 101;
}

.site-subtitle {
	position: absolute;
	top: 44px;
	right: 178px;
	color: white;
	font-size: 17px;
	z-index: 101;
	white-space: nowrap;
	overflow: hidden;
	max-width: calc(100% - 178px);
}

.navigation-container {
	position: absolute;
	top: 82px;
	right: 100px;
	left: 0;
	height: 42px;
	background: transparent;
	display: flex;
	align-items: center;
	padding: 0;
}

.nav-button.wide {
	width: 17%;
	height: 100%;
	background: transparent;
	border: 0.5px solid #FFD700;
	color: white;
	font-size: 12px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.nav-button.wide:not(:first-child) {
	margin-right: 0.25%;
}

.nav-button.wide:hover {
	background-color: rgba(255, 215, 0, 0.2);
}

.nav-button.wide .button-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	line-height: 1;
}

.nav-button.wide .button-title {
	font-family: 'YiddishkeitAlefAlefAlef-Bold', serif;
	font-size: 16px;
	line-height: 1;
	margin-bottom: 6px;
}

.nav-button.wide .button-subtitle {
	font-family: 'SBL Hebrew', serif;
	font-size: 12px;
	line-height: 1;
}

.nav-button.narrow {
	width: 8%;
	height: 100%;
	background: transparent;
	border: 0.5px solid #FFD700;
	color: white;
	font-size: 10px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: absolute;
	left: 0;
}

.nav-button.narrow:hover {
	background-color: rgba(255, 215, 0, 0.2);
}

.button-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.mail-icon {
	font-size: 14px;
	line-height: 1;
	margin-bottom: 2px;
}

.button-text {
	font-size: 9px;
	line-height: 1;
}

.construction-message {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60vh;
	padding: 40px 20px;
}

.construction-message h1 {
	font-family: 'YiddishkeitAlefAlefAlef-Bold', serif;
	font-size: 48px;
	color: #1a365d;
	text-align: center;
	border: 3px solid #1a365d;
	padding: 30px 60px;
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* פאנל ניהול */
.admin-panel {
	position: fixed;
	top: 10%;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	max-width: 900px;
	height: 70vh;
	background: white;
	border: 2px solid #1a365d;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	display: flex;
	flex-direction: column;
}

.panel-header {
	background: #1a365d;
	color: white;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 2px solid #FFD700;
}

.panel-header h2 {
	font-family: 'YiddishkeitAlefAlefAlef-Bold', serif;
	font-size: 18px;
	margin: 0;
}

.close-button {
	background: none;
	border: 1px solid white;
	color: white;
	font-size: 20px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.close-button:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.panel-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.tabs-header {
	display: flex;
	background: #f5f5f5;
	border-bottom: 1px solid #ddd;
}

.tab-button {
	flex: 1;
	padding: 12px 20px;
	background: #f5f5f5;
	border: none;
	border-right: 1px solid #ddd;
	font-family: 'YiddishkeitAlefAlefAlef-Bold', serif;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.tab-button:last-child {
	border-right: none;
}

.tab-button:hover {
	background: #e0e0e0;
}

.tab-button.active {
	background: white;
	border-bottom: 2px solid #1a365d;
}

.tabs-content {
	flex: 1;
	overflow-y: auto;
}

.tab-content {
	display: none;
	padding: 20px;
	height: 100%;
}

.tab-content.active {
	display: block;
}

.tab-content h3 {
	font-family: 'YiddishkeitAlefAlefAlef-Bold', serif;
	color: #1a365d;
	margin-bottom: 20px;
	font-size: 16px;
}

/* מנהל הפרשות */
.parshiot-manager {
	display: flex;
	gap: 20px;
	height: 100%;
}

.parshiot-list {
	width: 40%;
	border: 1px solid #ddd;
	overflow-y: auto;
	max-height: 400px;
}

.parsha-item {
	padding: 10px 15px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
	transition: background-color 0.3s;
}

.parsha-item:hover {
	background: #f0f0f0;
}

.parsha-item.selected {
	background: #1a365d;
	color: white;
}

.parsha-item.moed {
	background: #fff8dc;
}

.parsha-item.moed.selected {
	background: #b8860b;
}

.parsha-name {
	font-weight: bold;
	margin-bottom: 5px;
}

.parsha-type {
	font-size: 12px;
	color: #666;
}

.parsha-item.selected .parsha-type {
	color: #ccc;
}

.articles-count {
	font-size: 11px;
	color: #888;
}

.parsha-item.selected .articles-count {
	color: #ddd;
}

.articles-manager {
	flex: 1;
}

.articles-manager h4 {
	font-family: 'YiddishkeitAlefAlefAlef-Bold', serif;
	color: #1a365d;
	margin-bottom: 15px;
}

.articles-list {
	border: 1px solid #ddd;
	max-height: 200px;
	overflow-y: auto;
	margin-bottom: 15px;
}

.article-item {
	padding: 8px 12px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
	transition: background-color 0.3s;
}

.article-item:hover {
	background: #f0f0f0;
}

.article-item.selected {
	background: #1a365d;
	color: white;
}

.article-title {
	font-weight: bold;
	margin-bottom: 3px;
}

.article-date {
	font-size: 12px;
	color: #666;
}

.article-item.selected .article-date {
	color: #ccc;
}

.article-actions, .book-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

.action-button {
	padding: 8px 16px;
	background: #1a365d;
	color: white;
	border: 1px solid #1a365d;
	cursor: pointer;
	font-size: 12px;
	transition: background-color 0.3s;
}

.action-button:hover:not(:disabled) {
	background: #2d4a6b;
}

.action-button:disabled {
	background: #ccc;
	border-color: #ccc;
	cursor: not-allowed;
}

/* דף מחשבת ציבורי */
.machshevet-page {
	padding: 40px 20px;
	max-width: 100%;
}

.page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #1a365d;
}

.page-header h2 {
	font-family: 'YiddishkeitAlefAlefAlef-Bold', serif;
	font-size: 24px;
	color: #1a365d;
	margin: 0;
}

.back-button {
	padding: 8px 16px;
	background: #1a365d;
	color: white;
	border: 1px solid #1a365d;
	cursor: pointer;
	font-size: 12px;
	transition: background-color 0.3s;
}

.back-button:hover {
	background: #2d4a6b;
}

.parshiot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.parsha-display-item {
	padding: 15px;
	border: 2px solid #1a365d;
	background: white;
	cursor: pointer;
	transition: all 0.3s;
	text-align: center;
}

.parsha-display-item:hover {
	background: #f0f8ff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.parsha-display-item.moed {
	border-color: #b8860b;
	background: #fff8dc;
}

.parsha-display-item.moed:hover {
	background: #fffacd;
}

.parsha-display-name {
	font-family: 'YiddishkeitAlefAlefAlef-Bold', serif;
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 8px;
	color: #1a365d;
}

.parsha-display-item.moed .parsha-display-name {
	color: #b8860b;
}

.parsha-display-type {
	font-size: 12px;
	color: #666;
	margin-bottom: 5px;
}

.articles-display-count {
	font-size: 11px;
	color: #888;
	font-style: italic;
}



