 :root { --primary:#2563eb; --dark:#1e293b; --light:#f8fafc; --gray:#64748b; }
        * { margin:0; padding:0; box-sizing:border-box; }
        body { font-family:'Rubik',sans-serif; background:var(--light); color:var(--dark); line-height:1.7; direction:rtl; }
        header { background:linear-gradient(135deg,var(--primary),#1d4ed8); color:white; text-align:center; padding:5rem 1rem; }
        header h1 { font-size:3rem; }
        .search-bar { max-width:600px; margin:2rem auto; padding:0 1rem; }
        .search-bar input { width:100%; padding:1rem 1.5rem; border:none; border-radius:50px; box-shadow:0 4px 15px rgba(0,0,0,0.1); font-size:1.1rem; }
        .container { max-width:1200px; margin:0 auto; padding:2rem 1rem; }
        .articles-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); gap:2rem; }
        .article-card {pointer-events: none; cursor: default; background:white; border-radius:16px; overflow:hidden; box-shadow:0 8px 25px rgba(0,0,0,0.08); transition:all 0.4s ease;  }
        .article-card:hover { transform:translateY(-12px) scale(1.02); box-shadow:0 25px 50px rgba(0,0,0,0.18); }
        .article-img {
            height:220px;
            background:#e2e8f0 center/cover no-repeat;
            background-position:center 30%;   
            transition:transform 0.5s ease;
        }
        .article-card:hover .article-img { transform:scale(1.08); }
        .article-content { padding:1.6rem; }
        .article-meta { color:var(--gray); font-size:0.95rem; margin-bottom:0.8rem; }
        .article-title { font-size:1.5rem; margin-bottom:0.7rem; }
        .article-excerpt { color:#475569; margin-bottom:1rem; }
        .tags { display:flex; gap:0.5rem; flex-wrap:wrap; margin-top:1rem; }
        .tag { background:#e0e7ff; color:var(--primary); padding:0.3rem 0.8rem; border-radius:20px; font-size:0.85rem; }
        .read-more {
      display: block;
    text-align: right; /* כי הכיוון rtl */
    margin-top: 18px;
    color: #2b6cb0;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    }
        .read-more:hover { color: #1e4d8a;
    text-decoration: underline;}
   

.article-card a,
    .article-card button,
    .article-card input,
    .article-card label {
        pointer-events: auto; }

        .article-actions,
    .read-label,
    .read-checkbox,
    .favorite-btn {
        pointer-events: auto; /* מאפשר לחיצה */
    }

        footer { text-align:center; padding:4rem 1rem; background:var(--dark); color:white; margin-top:5rem; }

        @media (max-width:768px) {
            .article-img { height:180px; }
            header h1 { font-size:2.4rem; }
        }
     
.blog-hero {
    margin: 3rem auto 4rem;
    padding: 0 1rem;
    max-width: 1300px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 24px 0 0 24px; /* אם אתה רוצה פינות מעוגלות רק בצד ימין */
}

.hero-image video {
    width: 100%;
    height: 520px;
    object-fit: fill;
    display: block;
}
.hero-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.hero-text {
    padding: 3rem 3.5rem;
    text-align: right;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    color: var(--dark);
}

.hero-text .subtitle {
    font-size: 1.35rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text .description {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37,99,235,0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(37,99,235,0.4);
}

@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align:center; }
    .hero-image img { height: 380px; }
    .hero-text { padding: 2.5rem 2rem; }
    .hero-text h1 { font-size: 2.7rem; }
    .hero-image video { height: 380px; border-radius: 24px 24px 0 0; }
}

@media (max-width: 576px) {
    .hero-image img { height: 280px; }
    .hero-text h1 { font-size: 2.4rem; }
    .hero-text .subtitle { font-size: 1.2rem; }
    .hero-image video { height: 300px; }
}

 .newsletter-container {
            width: 100%;
            padding: 40px 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 200px;
            transition: opacity 0.8s ease-out;
        }

        .newsletter-inner {
            text-align: center;
            max-width: 500px;
            width: 100%;
        }

        .newsletter-toggle {
            cursor: pointer;
            font-size: 28px;
            color: var(--primary);
            margin: 0;
            padding: 15px;
            background-color: #f8f8f8;
            border-radius: 8px;
            transition: background-color 0.3s;
        }

            .newsletter-toggle:hover {
                background-color: #e8e8e8;
            }

        .newsletter-form-wrapper {
            margin-top: 20px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.6s ease, opacity 0.4s ease;
            opacity: 0;
        }

            .newsletter-form-wrapper.open {
                max-height: 400px; /* הגדלתי קצת בגלל השדה הנוסף */
                opacity: 1;
            }

        #newsletterForm {
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: center;
        }

            #newsletterForm input {
                padding: 12px;
                width: 80%;
                max-width: 350px;
                border: 1px solid #ccc;
                border-radius: 6px;
                font-size: 26px;
            }

            #newsletterForm button {
                padding: 12px 30px;
                background-color: #007bff;
                color: white;
                border: none;
                border-radius: 6px;
                cursor: pointer;
                font-size: 16px;
            }

                #newsletterForm button:hover {
                    background-color: #0056b3;
                }

        .thank-you-message {
            display: none;
            color: #28a745;
            font-weight: bold;
            font-size: 18px;
            margin-top: 20px;
        }

            .thank-you-message.show {
                display: block;
            }

           
    /* כפתורי סינון עליונים */
    .filter-buttons {
        text-align: center;
        margin: 40px 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    .filter-btn {
        padding: 12px 24px;
        background: #ffffff;
        color: #2b6cb0;
        border: 2px solid #2b6cb0;
        border-radius: 30px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(43, 108, 176, 0.1);
    }
    .filter-btn:hover {
        background: #2b6cb0;
        color: white;
        transform: translateY(-2px);
    }
    .filter-btn.active {
        background: #2b6cb0;
        color: white;
        box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
    }

    /* פעולות בתחתית כל מאמר */
    .article-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
        padding-top: 18px;
        border-top: 1px dashed #ddd;
        font-size: 15px;
    }
    .read-label {
        display: flex;
        align-items: center;
        cursor: pointer;
        color: #555;
        font-weight: 500;
    }
    .read-label input[type="checkbox"] {
        appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #2b6cb0;
        border-radius: 6px;
        margin-LEFT: 10px;
        cursor: pointer;
        position: relative;
        transition: all 0.3s;
    }
    .read-label input[type="checkbox"]:checked {
        background: #2b6cb0;
        border-color: #2b6cb0;
    }
    .read-label input[type="checkbox"]:checked::after {
        content: "✓";
        color: white;
        font-size: 14px;
        font-weight: bold;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* כפתור מועדפים - לב */
    .favorite-btn {
        background: none;
        border: none;
        font-size: 32px;
        cursor: pointer;
        color: #ddd;
        transition: all 0.4s ease;
        padding: 0;
    }
    .favorite-btn:hover {
        transform: scale(1.2);
        color: #e53e3e;
    }
    .favorite-btn.favorited {
        color: #e53e3e;
        animation: heartbeat 1.2s ease-in-out;
    }
    @keyframes heartbeat {
        0% { transform: scale(1); }
        20% { transform: scale(1.3); }
        40% { transform: scale(1); }
        60% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }

    /* הסתרה של מאמרים */
    .hidden {
        display: none !important;  }
