/* עיצוב כללי */
	body {
		direction: rtl; /* ליישר את התוכן מימין לשמאל */
		font-family: 'Heebo', sans-serif;
        background-color: #FFFFFF; /* רקע לבן */
        color: #333;
        margin: 0;
        padding: 0;
		background: #f0f0f0;
		background-image: url("../imeges/fabric-of-squares.png");
       }


/* תמונה עליונה */
#div_img_0 {
	padding-bottom:50px;
	border-top: 6px solid #D4AF37; /* מסגרת זהובה */
    background-size: 100% 100%;
    z-index: -1; /* כדי לוודא שהרקע יהיה מאחורי התוכן */


}


/* כותרת עליונה */
header {
	background-color: #003366; /* כחול כהה */
    color: #D4AF37; /* זהב */
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid #D4AF37; /* זהב */
	background: #556677;
	background-image: url("../imeges/fabric-of-squares.png");
}

header .logo h1 a{
	margin: 0;
    font-size: 48px;
    font-family: 'Almarai', sans-serif;
    font-weight: 600;
	-webkit-text-stroke: 0.7px #D4AF37; /* מסגרת שחורה */
	text-decoration: none;
	color: #1a263f; /* זהב */
}
		
header {
    text-align: center; /* ממקם את התוכן במרכז */
    padding: 5px 0; /* מרווח למעלה ולמטה */
    background-color: #f0f0f0; /* צבע רקע להדגשה */
}

.logo img {
    max-height: 80px; /* גודל תמונה מוגבל כדי שלא תהיה גדולה מדי */
    margin-right: 100px; /* מרווח בין התמונה לטקסט */
    margin-left: 10px; /* מרווח בין התמונה לטקסט */
}

.logo h1 {
    display: inline-flex; /* תצוגה כ-inline כדי שהלוגו והכיתוב יהיו באותו שורה */
    align-items: center; /* מיישר את התמונה והטקסט בצורה אנכית */
    margin: 0; /* מסיר את המרווחים של ה-h1 */
	color: #1a263f; /* צבע טקסט שמתאים ללוגו */
}






/* מבנה כותרת */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px; /* להוסיף רוחב מקסימלי שיתאים לאתר */
    margin: 0 auto; /* ממקם את התוכן במרכז */
}

/* עיצוב לחיפוש */
.search-bar {
    position: relative; /* מאפשר לתוצאות להיות ממוקמות יחסית לשורת החיפוש */
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff; /* רקע לבן */
    padding: 8px 15px;
    border-radius: 30px; /* עיגול הפינות */
    border: 1px solid #D4AF37; /* גבול זהב */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* הצללה עדינה */
}

.search-bar input {
    padding: 8px;
    font-size: 16px;
    border: none; /* ללא גבול */
    outline: none; /* ביטול קו המיקוד */
    border-radius: 20px; /* עיגול הפינות */
    width: 200px; /* גודל קבוע לשדה החיפוש */
    background-color: #f9f9f9; /* צבע רקע בהיר */
}

.search-bar button {
    padding: 8px 15px;
    font-size: 16px;
    background-color: #D4AF37; /* צבע זהב */
    color: white;
    border: none;
    border-radius: 20px; /* עיגול הפינות */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #b38b2e; /* צבע כהה יותר בהעברת העכבר */
}

.search-results {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    width: 250px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.search-result-item {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item a {
    text-decoration: none;
    color: black;
}

.search-result-item:hover {
    background: #f0f0f0;
}








/* עיצוב התפריטים */
.top-menu {
	display: flex;
    justify-content: space-around;
    background-color: #003366; /* כחול כהה */
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.menu-item {
    position: relative;
    text-align: center;
}

.menu-item p {
    font-size: 18px;
    margin: 0;
    cursor: pointer;
    padding: 15px 25px;
    color: #fff;
    background-color: #D4AF37; /* זהב */
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	border: 1px solid #fff; /* לבן */
}

.menu-item p:hover {
    background-color: #003366; /* כחול כהה */
    transform: scale(1.1);
	border: 1px solid #003366; /* לבן */
}

.submenu {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover .submenu {
    display: block;
    opacity: 1;
}
		
/* עיצוב תפריט נפתח */
.submenu {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    width: 200px; /* רוחב קבוע לתפריט הנפתח */
    transition: opacity 0.3s ease;
    opacity: 0;
	position: absolute; /* או fixed אם אתה רוצה שהתפריט יהיה צף */
    z-index: 1000; /* מספר גבוה כדי לוודא שהוא יוצג מעל הווידאו */
    background-color: white; /* כדי שהתוכן לא יהיה שקוף */
}

/* עיצוב פריטים בתפריט הנפתח */
.submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu ul li {
    padding: 10px 20px;
}

.submenu ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submenu ul li a:hover {
    background-color: #D4AF37;
    color: #003366; /* כחול כהה */
	border-radius: 10px;

}

/* הצגת התפריט הנפתח עם מעבר */
.menu-item:hover .submenu {
    display: block;
    opacity: 1;
}

/* אנימציה בהצגת התפריט */
.submenu {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


#null {
  
}






/* עיצוב לדפים פנימיים */


       /* תוכן מרכזי מתפרס לרוחב */
        .container {
            max-width: 1200px;
            margin: auto;
            padding: 40px 60px;
            background: white;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
			border-radius: 30px; /* עיגול הפינות */
			margin-bottom:30px;
        }

        /* כותרות */
       .container h1 {
            text-align: center;
            font-size: 34px;
            color: #3a3a3a;
            margin-bottom: 20px;
            border-bottom: 2px solid #e0e0e0;
            padding-bottom: 10px;
        }

        .container h2 {
            font-size: 22px;
            color: #444;
            margin-top: 30px;
        }

        .container p {
            font-size: 18px;
            line-height: 1.8;
            text-align: justify;
            color: #444;
        }

        /* הפרדת קטעים עם רקע עדין */
        .highlight {
            background: #f9f9f9;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
            border-right: 5px solid #d4af37;
			font-size: 18px;
        }

        /* תמונות */
        .image-container {
            text-align: center;
            margin: 30px 0;
        }

        .image-container img {
            
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        /* פסוק מודגש */
        .pasuk {
            font-size: 22px;
            font-weight: bold;
            text-align: center;
            font-style: italic;
            color: #5b3716;
            background-color: #fff8e1;
            padding: 15px;
            border-radius: 8px;
            border-right: 5px solid #d4af37;
            margin-top: 40px;
        }
		
		/* עיצוב המקור */
		.pasuk .source {
			font-size: 18px;  /* גודל קטן יותר */
			font-weight: normal;  /* לא בולד */
			font-style: normal;  /* לא נטוי */
			color: #8b5e34;  /* צבע כהה מעט */
			margin-right: 10px;
			display: inline-block; /* לוודא שהתצוגה לא מושפעת */
		}
        /* תמונה של הדף - כדאי להוסיף אחת שתשדרג את הדף */
        .hero-image {
            background-image: url('images/header_image.jpg');
            background-size: cover;
            height: 350px;
            text-align: center;
            color: white;
            font-size: 36px;
            line-height: 350px;
            font-weight: bold;
            background-position: center;
        }
		
		
		
		
/* להערות וטעויות*/

.footer {
    text-align: center;
    background-color: #f4f4f4;
    padding: 1px;
    font-size: 16px;
    color: #333;
    margin-top: 30px;
    border-top: 2px solid #d4af37;
}
.footer a {
    color: #d44c2c;
    text-decoration: none;
    font-weight: bold;
}
.footer a:hover {
    text-decoration: underline;
}



/* עיצוב טבלאות */

	  .table-container {
		text-align: center;
		margin: 20px auto;
		max-width: 90%;
	}

	.table-container h3 {
		color: #d44c2c; /* צבע כותרת */
		font-size: 24px;
		margin-bottom: 10px;
		text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
	}

	table {
		width: 100%;
		border-collapse: collapse;
		background: #fff;
		box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
		border-radius: 8px;
		overflow: hidden;
	}

	th, td {
		border: 1px solid #ccc;
		padding: 10px;
		text-align: center;
		font-size: 16px;
	}

	th {
		background: #1a263f; /* כחול כהה כמו הלוגו */
		color: white;
		font-weight: bold;
	}

	td {
		background: #f9f9f9;
	}

	tr:nth-child(even) td {
		background: #f1f1f1;
	}

	tr:hover td {
		background: #d4af37; /* זהב עדין */
		color: #fff;
		transition: 0.3s;
	}
	
	
	
	
	
/* עיצוב מסגרות לתמונות */
#img {
    border: 3px solid #c9a227; /* מסגרת זהובה */
    border-radius: 5px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

/* קישורים */
  a {
    color: #c9a227; /* כחול כהה */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #c9a227; /* זהב עדין בהבהוב */
    text-decoration: underline;
}

a:visited {
    color: #c9a227; /* אפור מעודן לקישור שביקרו בו */
}