:root {
    --bg-color: #f9f7f2;      /* רקע שמנת בהיר מאוד */
    --primary-color: #8d99ae; /* כחול-אפרפר רך */
    --accent-color: #d4a373;  /* צבע חול/בז' עדין */
    --text-dark: #2b2d42;     /* טקסט כהה אבל לא שחור מוחלט */
    --card-bg: #ffffff;       /* לבן נקי לכרטיסיות */
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* זה התיקון: מוסיף ריפוד מלמעלה כדי שהתפריט לא יסתיר את התוכן */
    padding-top: 58px;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95); /* חצי שקוף */
    backdrop-filter: blur(10px);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* --- עיצוב הסליידר --- */
.carousel-img {
    height: 75vh; /* 75% מגובה המסך */
    object-fit: cover; /* מבטיח שהתמונה תמלא את השטח בלי להתעוות */
    filter: brightness(0.6); /* מכהה מעט את התמונה כדי שהטקסט הלבן יבלוט */
}

/* עיצוב הטקסט על גבי הסליידר */
.carousel-caption {
    bottom: 30%; /* ממקם את הטקסט קצת יותר גבוה מהתחתית */
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); /* צל עדין לטקסט לקריאות */
}

/* התאמה למובייל - נקטין את גובה הסליידר */
@media (max-width: 768px) {
    .carousel-img {
        height: 50vh;
    }
    .carousel-caption h2 {
        font-size: 1.8rem; /* כותרת קטנה יותר במובייל */
    }
}


/* --- עיצוב תמונות הכרטיסיות --- */
.card-img-custom {
    max-height: 150px;
    height: 50%;
    object-fit: cover; /* התמונה תחתך כדי להתאים למסגרת, לא תימעך */
    box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

.card {
    overflow: hidden; /* למקרה שפינות התמונה יצאו מהגבול העגול */
}

/* כפתורים מותאמים אישית */
.btn-custom {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px; /* כפתור עגול */
    padding: 10px 30px;
    transition: 0.3s;
}

.btn-custom:hover {
    background-color: var(--text-dark);
    color: white;
}

.btn-outline-custom {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* אפקט ריחוף עדין לכרטיסיות */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px); /* עולה קצת למעלה */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.section-title {
    color: var(--primary-color);
    font-weight: 300; /* דק ואלגנטי */
}

/* עיצוב התגיות */
.filter-tag {
    cursor: pointer; /* הופך את העכבר ליד מצביעה */
    transition: all 0.2s;
    font-size: 0.8rem;
    position: relative; 
    z-index: 2; /* חשוב מאוד! כדי שה-stretched-link של הכרטיס לא יחסום את הלחיצה על התגית */
}

.filter-tag:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}



/* --- Footer Styles --- */
.site-footer {
    background-color: #333; /* רקע כהה */
    color: #fff; /* טקסט לבן */
    padding: 40px 20px;
    margin-top: 50px; /* רווח מהתוכן מעליו */
    direction: rtl; /* יישור לימין */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 עמודות שוות */
    gap: 30px;
}

.footer-column h3 {
    border-bottom: 2px solid #4CAF50; /* קו ירוק מתחת לכותרת */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #4CAF50; /* שינוי צבע במעבר עכבר */
}

/* --- כפתורי הסינון --- */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #4CAF50;
    background: transparent;
    color: #333;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #e8f5e9;
}

/* מצב פעיל - כשהכפתור נבחר */
.filter-btn.active {
    background: #4CAF50;
    color: white;
}

/* --- תגיות בתוך הכרטיס --- */
.card-tags-list {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.card-tag {
    background-color: #eee;
    color: #555;
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 4px;
}

/* התאמה למובייל */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* עמודה אחת במובייל */
        text-align: center;
    }
    
    .footer-column h3 {
        display: inline-block; /* שהקו יהיה רק מתחת לטקסט */
    }
    
    .tags-cloud {
        justify-content: center;
    }
}