:root {
    --header-footer-color: rgb(233,236,239);
    --accent-color: #28a745;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    min-height: 10vh;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
    height:100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.business-card {
    display: flex;
    flex-direction: column;
}

    .business-card .line {
        min-height: 1.5em; /* reserve space */
        margin-top:0.2em;
    }
main {
    flex: 1; /* content takes remaining height */
    padding-bottom: 3rem;
}

footer.footer {
    margin-top:auto;/* auto;  pushes footer to bottom */
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6; /* Bootstrap-like */
}
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}
.footer-line {
    margin: 0;
    padding: 0;
    line-height: 1.5; /* default is ~1.5 */
    font-size: 1.2rem; /* slightly smaller */
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

html[dir="ltr"] .auth-links {
    order: 1;
    margin-bottom: 1rem;
    margin-top:50px;
}
html[dir="rtl"] .auth-links {
    order: 2;
    margin-bottom: 1rem;
    margin-top: 50px;
}

.lang-links {
    margin-top: 0.3rem;
    margin-right: 0.3rem;
    display: grid;
    grid-template-columns: 70% 30%;
}
.lang-links-auth {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 25% 50% 25%;
}
/*html[dir="ltr"] .lang-links {
    order: 2;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 25% 50% 25%;
}
*/
/* Arabic (RTL) */

/*html[dir="rtl"] .lang-links {
    order: 1;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 25% 50% 25%;
}
*/

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
html[dir="rtl"] .form-check {
    flex-direction: row-reverse;
}

    html[dir="rtl"] .form-check .text-danger {
        margin-right: 1.5rem;
        margin-left: 1.5rem;
    }
.form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;  
}

 
html[dir="rtl"] .form-check-inline {
    flex-direction: row-reverse;
}
.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #000; /* stronger border */
    accent-color: #000;
    margin-top: 4px; /* aligns with Arabic text */
    flex-shrink: 0; /* prevents shrinking */
}
.search-icon {
    position: absolute;
    top: 50%;
    right: 15px; /* left: 15px for LTR */
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}
.search-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.marketing-text {
    font-size: 18px;
    font-weight: 600;
    color: navy;
    line-height: 1.5;
    min-height: 3em;
    text-align: center;
    transition: opacity 0.5s ease;
    background-color: aliceblue;
    margin-bottom:0.3rem;
    margin-top:0.3rem;
}
.search-result-text {
    font-size: 18px;
    font-weight: 600;
    color: #0d6efd;
    line-height:1.5;
    min-height: 3em;
    text-align: center;
    transition: opacity 0.5s ease;
    margin-top:1rem;
    margin-bottom:1rem;
}
.marketing-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.marketing-link {
    background: var(--header-footer-color);
    color: navy;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .marketing-link:hover {
        background: #0d6efd;
        color: #fff;
        transform: translateY(-2px);
    }
    .form-group-search{
        margin-top:1rem;
        margin-bottom:1rem;
    }
select option[data-level="0"] {
    font-weight: 600;
    font-size: 1rem;
}

select option[data-level="1"] {
    padding-left: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

select option[data-level="2"] {
    padding-left: 3rem;
    font-weight: 400;
    font-size: 0.9rem;
}
.site-footer {
    background-color: var(--header-footer-color);
    border-top: 1px solid #e5e5e5;
    padding-bottom:50px;
    padding-top:10px;
    text-align: center;
    direction: rtl;
}

    .site-footer .footer-item {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin: 10px 0;
        font-size: 0.95rem;
        color: #0d6efd; /* Bootstrap primary blue */
    }

        .site-footer .footer-item a {
            color: #0d6efd;
            text-decoration: none;
            font-weight: 500;
        }

            .site-footer .footer-item a:hover {
                text-decoration: underline;
            }

    .site-footer i {
        font-size: 1.1rem;
    }
.ltr-number {
    direction: ltr;
    unicode-bidi: bidi-override;
    display: inline-block;
}
.page-wrapper {
    min-height: 10vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
}

.site-logo {
    height: 75px;
}

@media (max-width: 768px) {
    .site-logo {
        height: 75px;
    }
}
.header {
    background-color: var(--header-footer-color);
    display: flex;
    flex-direction: column;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-bottom {
    display: flex;
    justify-content: flex-start; /* or space-between */
    gap: 0.5rem;
}
.detail-button
{
    margin-top:0.2em;
    width:100%;
}
.form-group-required {
    background-color: var(--header-footer-color);
    color: navy;
    font-weight: 600;
    padding: 0.3em;
}
.contact-us {
    background-color: var(--header-footer-color);
    color: navy;
    font-weight: 600;
    padding: 0.3em;
}
.form-group-optional {
    background-color: var(--header-footer-color);
    color: navy;
    font-weight: 600;
    padding: 0.3em;
}
h1
{
    font-size:24px;
}
h2
{
    font-size:21px;
}
h3
{
    font-size:18px;
}
h4
{
    font-size:16px;
}
/*.fb_iframe_widget > span,
.fb_iframe_widget iframe {
    width: 100% !important;
    max-width: 100% !important;
}
*//*.fb-container {
    width: 100%;
}*/

/*    .fb-container .fb-page,
    .fb-container .fb-page > span,
    .fb-container .fb-page iframe,
    .fb_iframe_widget,
    .fb_iframe_widget > span,
    .fb_iframe_widget iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
*//**/
