/* General page styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

/* RTL support for Arabic */
body.rtl {
    direction: rtl;
    text-align: right;
}
body.rtl .login-form,
body.rtl label,
body.rtl .contact {
    text-align: right;
}
body.rtl .lang-switch {
    text-align: center; /* keep language switch centered */
}

/* Top bar with language switch */
.topbar {
    background: #0078d7;
    color: #fff;
    padding: 10px;
    text-align: center; /* switched to center */
}
.lang-switch a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    font-weight: bold;
}
.lang-switch a:hover {
    text-decoration: underline;
}

/* Main container */
.container {
    max-width: 400px;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* Logo */
.logo {
    max-width: 150px;
    margin-bottom: 20px;
}

/* Headings */
h1 {
    margin-bottom: 20px;
    color: #0078d7;
}

/* Login form */
.login-form {
    margin-top: 20px;
    text-align: left;
}
.login-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}
.login-form input {
    width: 90%;              /* narrower than full width */
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.btn {
    background: #0078d7;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    display: block;
    margin: 0 auto;
}
.btn:hover {
    background: #005a9e;
}

/* Contact section */
.contact {
    margin-top: 30px;
    text-align: left;
}
.contact h2 {
    color: #0078d7;
    margin-bottom: 10px;
}
.contact ul {
    list-style: none;
    padding: 0;
}
.contact li {
    margin: 8px 0;
}
.contact a {
    color: #0078d7;
    text-decoration: none;
    font-weight: bold;
}
.contact a:hover {
    text-decoration: underline;
}
.contact a span {
    direction: rtl;
    unicode-bidi: embed;
}

/* WhatsApp icon */
.icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

/* Scrolling services bar */
.scrolling-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #0078d7;
    color: #fff;
    padding: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    font-weight: bold;
}
.scrolling-bar a {
    color: #fff;
    text-decoration: none;
}
.scrolling-bar a:hover {
    text-decoration: underline;
}
.scrolling-bar span {
    display: inline-block;
    margin: 0 30px;
    animation: scroll 25s linear infinite;
}
@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: #f4f4f4;
    color: #666;
    font-size: 12px;
    margin-top: 40px;
}
footer a {
    color: #666;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Force phone number to render LTR even in RTL pages */
.ltr-number {
    direction: ltr;
    unicode-bidi: bidi-override;
    display: inline-block;
}
