/* בסיס */
html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: "Segoe UI", sans-serif;
    background-color: #f5f5f5;
}

/* טופבר */
.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 72px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: none;
    border-radius: 0;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

/* לוגו וכותרות */
.topbar-brand {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.2;
}

.brand-title { font-size: 24px; font-weight: bold; color: #1976d2; }
.brand-subtitle { font-size: 13px; color: #666; }
.brand-phone { font-size: 12px; color: #999; }

/* תפריט ניווט */
.nav-buttons {
    display: flex;
    gap: 20px;
}

.nav-buttons a {
    text-decoration: none;
    color: black;
    font-weight: normal;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s, font-weight 0.3s;
}

.nav-buttons a:hover {
    background-color: #e0e0e0;
    color: black;
    font-weight: bold;
}


/* אזור ראשי במסך מלא */
.main-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 72px; /* כדי לא להסתיר ע"י ה-topbar */
}

/* אזורים נוספים בהמשך הדף */
.section {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-title {
    margin: 0 0 30px;
    color: #004aad;
    text-align: center;
    font-size: 32px;
}

/* תיבת התחברות */
.login-box {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    margin-top: 0;
    color: #004aad;
}

/* שדות טופס */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* כפתור התחברות */
button {
    background-color: #004aad;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button:hover { background-color: #003080; }

/* תיבת הסבר */
.info-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px;
    text-align: right;
    direction: rtl;
}

.main-section .info-box {
    max-width: 400px;
}

.about-section .info-box,
.price-section .info-box,
.join-section .info-box {
    max-width: 900px;
    margin: 0 auto;
}

.info-box h2 {
    margin-top: 0;
    color: #333;
}

.info-box ul {
    padding-right: 20px;
    line-height: 1.6;
}

.ad-box {
    margin-top: 20px;
    padding: 15px;
    background: #fff8e1;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* הודעות שגיאה */
.error {
    color: red;
}

/* התאמה לנייד */
@media (max-width: 768px) {
    .main-section,
    .section {
        flex-direction: column;
        padding: 80px 15px;
    }

    .topbar {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .login-box, .info-box {
        max-width: 100%;
    }
}
