﻿/* ============================================================
   MYDIRA 2025 - FULL STYLE SHEET (v4.0 - Final Optimized)
   ============================================================ */

/* --- משתני צבעים --- */
:root {
    --primary-green: #059669;  /* ירוק מותג */
    --hover-green: #047857;    /* ירוק כהה */
    --dark-green: #064e3b;     /* ירוק סמכותי לכותרות */
    --accent-orange: #d97706;  /* כתום חרדל */
    --hover-orange: #b45309;   /* כתום כהה */
    --light-bg-green: #f0fdf4; /* רקע מנטה עדין */
    --bg-gray: #f9fafb;        /* רקע כללי */
}

/* --- הגדרות בסיס ומניעת גלישה רוחבית --- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    direction: rtl;
    font-family: 'Heebo', 'Segoe UI', Arial, sans-serif !important;
    background-color: var(--bg-gray);
    color: #1f2937;
    line-height: 1.6;
}

/* --- קונטיינר גמיש --- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- כותרות (מעודכן לאחידות בכל האתר) --- */
h1, h2, h3, h4 {
    color: var(--dark-green) !important;
    font-weight: 800 !important;
}

/* כותרת ראשית אחידה (כמו בעמוד הבית) */
h1 { 
    font-size: 2rem !important; /* גודל לנייד */
    line-height: 1.1 !important;
    margin-bottom: 2rem !important;
    display: block !important;
}

@media (min-width: 768px) {
    h1 { 
        font-size: 2rem !important; /* גודל למחשב */
    }
     }

}
h2 { 
    font-size: 2rem; 
    position: relative; 
    padding-bottom: 10px; 
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--accent-orange);
    margin-top: 8px;
    border-radius: 2px;
}

/* --- הגדרת קישורים גלובלית (Hover כתום עם קו) --- */
a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-orange) !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

/* --- כפתורים --- */
.hero-btn, .hero-btn-outline {
    box-sizing: border-box !important;
    height: 54px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease !important;
    vertical-align: middle;
    padding: 0 !important;
    text-align: center;
}

.hero-btn {
    background-color: var(--accent-orange) !important;
    border: 2px solid var(--accent-orange) !important;
}

.hero-btn a {
    color: white !important;
    padding: 0 32px;
    line-height: 50px;
    display: block;
    width: 100%;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 1.1rem;
}

.hero-btn-outline {
    background-color: white !important;
    border: 2px solid var(--accent-orange) !important;
}

.hero-btn-outline a {
    color: var(--accent-orange) !important;
    padding: 0 32px;
    line-height: 50px;
    display: block;
    width: 100%;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 1.1rem;
}

.hero-btn:hover, .hero-btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.hero-btn:hover { background-color: var(--hover-orange) !important; border-color: var(--hover-orange) !important; }
.hero-btn-outline:hover { background-color: var(--accent-orange) !important; }
.hero-btn-outline:hover a { color: white !important; }

/* --- גריד ותיבות (Cards) - מעודכן למרכוז מלא --- */
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.card {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--primary-green);
    transition: 0.3s;
    /* מרכוז תוכן התיבה */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    border-top-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--light-bg-green);
    object-fit: cover;
    display: block; /* מבטיח מרכוז */
}

/* --- תיקון גריד הקישורים התחתון --- */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.links-column {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.column-title {
    font-weight: bold;
    color: var(--dark-green);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: block;
}

.links-column li {
    margin-bottom: 10px;
}

.links-column a {
    color: #4b5563 !important;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
}

.links-column a:hover {
    color: var(--accent-orange) !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    transform: translateX(-3px);
}

/* --- התאמה לנייד --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.7rem !important; }

    .grid-wrapper, .links-grid {
        grid-template-columns: 1fr;
    }
}

/* --- בלוק אמינות --- */
.editor-trust-block {
    background-color: var(--light-bg-green);
    border-top: 4px solid var(--primary-green);
    padding: 40px 20px;
    border-radius: 12px;
    margin: 40px 0;
}