:root {
    --primary-color: #2c3e50;
    --accent-color: #b8977e;
    --bg-color: #faf8f5;
    --card-bg: #ffffff;
    --text-color: #333333;
    --muted-text: #666666;
    --border-color: #eae5df;
}

body {
    font-family: 'Assistant', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

/* index.css's sitewide body rule (display:flex; justify-content:center;
   align-items:center;) is meant for the small homepage landing box. Without
   these overrides, .main-header / .container / footer inherit that flex
   context and get laid out as centered row items instead of stacking full
   width down the page - matching the fix already applied in Schedule.css. */
.main-header,
.container,
footer {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
}

.main-header {
    /* This is a <div>, not a <header> element, so it doesn't collide with
       index.css's sitewide fixed/floating header rule (which targets the
       real site nav via the bare "header" tag). No positioning overrides
       needed. */
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 50px 20px;
    border-bottom: 4px solid var(--accent-color);
}

.main-header h1 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 700;
}

.container {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
}

/* מלבן לבן (Card) */
.box-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* כותרת פנימית */
.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 700;
}

/* סגנון המשימות */
.task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    cursor: pointer;
}

.task-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
}

/* סימון V כשמשימה הושלמה */
.task-item.completed .task-checkbox::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-color);
    font-weight: bold;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: #999 !important;
}

.task-text {
    font-size: 1.1rem;
    flex: 1;
    color: var(--text-color);
}

.task-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* נוסחת תקציב */
.formula-box {
    background-color: #fdfaf4;
    border: 1px solid var(--border-color);
    border-right: 6px solid var(--accent-color);
    padding: 20px;
    margin: 0 0 25px 0;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* סימן הכפל X */
.multiply-sign {
    display: inline-block;
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 800;
    line-height: 1;
    margin: 0 8px;
    vertical-align: -0.22ex;
}

/* תיבות טיפ */
.tip-box {
    background-color: #fdfaf4;
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--accent-color);
    padding: 12px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
    font-size: 1.1rem;
}

/* קישורים */
.guide-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.guide-link:hover {
    text-decoration: underline;
}

.cta-box {
    text-align: center;
    padding: 30px 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border-color);
    color: #888;
    font-size: 0.9rem;
    margin-top: auto !important;
}

/* התאמה לנייד */
@media (max-width: 600px) {
    .main-header h1 { font-size: 1.7rem; }
    .box-section { padding: 20px; }
    .task-text, .formula-box, .tip-box { font-size: 1rem; }
    .multiply-sign { font-size: 1.4rem; }
}
