/* עיצוב דף רפואה ומשפט */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eaeaea;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 2.5rem;
    color: #5271ff;
    margin-bottom: 15px;
}

.card h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-btn {
    display: inline-block;
    background: #5271ff;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.card-btn:hover {
    background: #3a5afd;
}

.intro-text {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-right: 4px solid #5271ff;
}

.intro-text p {
    margin: 0;
    color: #555;
    font-size: 1.1rem;


/* עיצוב כללי לדפי התוכן */
.content-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-section h2 {
    color: #5271ff;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 0;
}

/* טבלאות */
.law-table, .consequences-table, .special-cases, .comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.law-table th, .consequences-table th, .special-cases th, .comparison-table th {
    background: #5271ff;
    color: white;
    padding: 12px;
    text-align: right;
}

.law-table td, .consequences-table td, .special-cases td, .comparison-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.law-table tr:hover, .consequences-table tr:hover {
    background: #f8f9ff;
}

/* אזהרות וטיפים */
.warning-box {
    background: #fff8e1;
    border-right: 4px solid #ff9800;
}

.tips-box {
    background: #f1f8e9;
    border-right: 4px solid #8BC34A;
}

.warning-box h3, .tips-box h3 {
    color: #333;
    margin-top: 0;
}

/* כפתור חזרה */
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #5271ff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #5271ff;
    border-radius: 6px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #5271ff;
    color: white;
    text-decoration: none;
}

.back-btn i {
    margin-right: 8px;
}

/* פוטר */
.site-footer {
    background: #333;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* עיצובים ספציפיים לדפים */
.pillars-grid, .duty-levels, .consent-types, .power-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.pillar, .duty-level, .consent-type, .power-type {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.pillar-number {
    background: #5271ff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.steps, .role-steps, .interaction-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.step {
    flex: 1;
    min-width: 200px;
    background: #f8f9ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #5271ff;
}

.step-number {
    background: #5271ff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
}

/* עיצוב עבור ציטוטי חוק */
.law-quote {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid #9C27B0;
    font-style: italic;
}

.quote-source {
    text-align: left;
    color: #666;
    margin-top: 10px;
    font-style: normal;
}

/* עיצוב עבור רשימות מיוחדות */
.checklist {
    margin: 15px 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.checklist-item i {
    color: #4CAF50;
    margin-top: 3px;
}

/* עיצוב עבור טופס מתווה */
.form-template {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Courier New', monospace;
}

.form-section {
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #eee;
}

.form-note {
    background: #fff8e1;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9em;
}

