/* Lightweight Bootstrap fallback for offline/local menu usage. */
@font-face {
    font-family: CairoLocal;
    src: local("Cairo");
    font-display: swap;
}

:root {
    --bs-primary: #000;
    --bs-primary-rgb: 0, 0, 0;
}

.container {
    width: min(100% - 24px, 1140px);
    margin-inline: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -12px;
}

.row > * {
    width: 100%;
    padding-inline: 12px;
}

.g-3 { row-gap: 1rem; }
.g-4 { row-gap: 1.5rem; }

.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

.d-none { display: none !important; }
.d-flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.text-center { text-align: center !important; }
.text-start { text-align: start !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.sticky-top { position: sticky; top: 0; }
.top-0 { top: 0 !important; }
.start-0 { inset-inline-start: 0 !important; }
.start-100 { inset-inline-start: 100% !important; }
.end-0 { inset-inline-end: 0 !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-y-auto { overflow-y: auto !important; }
.object-fit-cover { object-fit: cover !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid #e9ecef !important; }
.border-bottom { border-bottom: 1px solid #e9ecef !important; }
.rounded { border-radius: .375rem !important; }
.rounded-pill { border-radius: 999px !important; }
.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }
.bg-white { background: #fff !important; }
.bg-light { background: #f8f9fa !important; }
.bg-primary { background: #000 !important; }
.bg-danger { background: #dc3545 !important; }
.bg-warning { background: #ffc107 !important; }
.bg-secondary { background: #6c757d !important; }
.bg-transparent { background: transparent !important; }
.text-white { color: #fff !important; }
.text-dark { color: #212529 !important; }
.text-muted { color: #6c757d !important; }
.text-primary { color: #000 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-normal { font-weight: 400 !important; }
.small { font-size: .875em !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }
.h3 { font-size: 1.75rem !important; }
.h4 { font-size: 1.5rem !important; }
.h5 { font-size: 1.25rem !important; }
.h6 { font-size: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.m-0 { margin: 0 !important; }
.m-2 { margin: .5rem !important; }
.me-1 { margin-inline-end: .25rem !important; }
.me-2 { margin-inline-end: .5rem !important; }
.me-3 { margin-inline-end: 1rem !important; }
.ms-1 { margin-inline-start: .25rem !important; }
.ms-2 { margin-inline-start: .5rem !important; }
.ms-md-4 { margin-inline-start: 1.5rem !important; }
.mx-auto { margin-inline: auto !important; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.px-2 { padding-inline: .5rem !important; }
.px-3 { padding-inline: 1rem !important; }
.px-4 { padding-inline: 1.5rem !important; }
.px-5 { padding-inline: 3rem !important; }
.py-1 { padding-block: .25rem !important; }
.py-2 { padding-block: .5rem !important; }
.py-3 { padding-block: 1rem !important; }
.py-5 { padding-block: 3rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-2 { padding-bottom: .5rem !important; }
.gap-2 { gap: .5rem !important; }
.z-1 { z-index: 1 !important; }
.translate-middle { transform: translate(-50%, -50%) !important; }

@media (min-width: 576px) {
    .d-sm-block { display: block !important; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    border: 1px solid transparent;
    border-radius: .375rem;
    padding: .5rem .75rem;
    color: #212529;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
}

.btn-sm {
    padding: .25rem .5rem;
    font-size: .875rem;
}

.btn-primary {
    color: #fff;
    background: #000;
    border-color: #000;
}

.btn-light {
    color: #000;
    background: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-close {
    width: 1em;
    height: 1em;
    padding: .25em;
    border: 0;
    background: transparent;
    color: currentColor;
    cursor: pointer;
}

.btn-close::before { content: "×"; font-size: 1.5rem; line-height: 1; }
.btn:disabled { opacity: .65; cursor: not-allowed; }

.form-control {
    display: block;
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    background: #fff;
    color: #212529;
}

.form-label {
    display: inline-block;
    margin-bottom: .5rem;
}

.form-text { font-size: .875em; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .375rem;
}

.card-body { flex: 1 1 auto; }
.card-img-top { width: 100%; }
.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
}

.progress {
    display: flex;
    overflow: hidden;
    background: #e9ecef;
}

.progress-bar {
    background: #000;
}

.pagination {
    display: flex;
    gap: .25rem;
    padding-inline-start: 0;
    list-style: none;
}

.page-link {
    display: block;
    padding: .375rem .75rem;
    border: 1px solid #dee2e6;
    color: #000;
    text-decoration: none;
    background: #fff;
}

.page-item.active .page-link {
    color: #fff;
    background: #000;
    border-color: #000;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background: #fff;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show { display: block; }
.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
}

.modal-lg { max-width: 800px; }
.modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
    display: flex;
    align-items: center;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: .5rem;
    outline: 0;
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body { position: relative; flex: 1 1 auto; }
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0,0,0,.5);
}

.carousel { position: relative; }
.carousel-inner { position: relative; overflow: hidden; }
.carousel-item { display: none; }
.carousel-item.active { display: block; }
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.carousel-control-prev { inset-inline-start: 0; }
.carousel-control-next { inset-inline-end: 0; }
.carousel-control-prev-icon::before { content: "‹"; font-size: 2rem; }
.carousel-control-next-icon::before { content: "›"; font-size: 2rem; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: .2em solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: bs-spin .75s linear infinite;
}

@keyframes bs-spin { to { transform: rotate(360deg); } }
