/* ===== Layout ===== */
body {
    margin: 0;
    font-family: "Cairo", serif;
    height: 100%;
}

main {
    min-height: 100%;
    padding-bottom: 50px;
}

footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

/* ===== Navbar ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar {
    background: #0072ce;
    padding: 20px 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    max-width: 150px;
    transition: max-width 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    max-width: 105px;
}

/* ===== Offcanvas Mobile Menu ===== */
.offcanvas-lg.navbar-offcanvas {
    --bs-offcanvas-bg: #262626;
}

@media (max-width: 991.98px) {
    .navbar-offcanvas .navbar-nav {
        flex-direction: column !important;
    }

    .offcanvas-logo {
        display: block;
        margin: 0 auto 1.5rem;
        max-width: 160px;
    }

    .offcanvas-nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .offcanvas-nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* ===== Page Titles ===== */
.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #0072ce;
    text-align: center;
    margin-bottom: 1.5rem;
}

.title-underline {
    height: 2px;
    background-color: red;
    width: fit-content;
    margin: 0 auto;
}

.page-description {
    font-size: 0.9rem;
    color: #2f3640;
    text-align: center;
    margin-top: 1.5rem;
}

.page-details {
    font-size: 0.9rem;
    color: #2f3640;
    margin-top: 1.5rem;
}

/* ===== Services ===== */
.service-card {
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-content {
    display: flex;
    align-items: center;
    justify-content: start;
}

.icon-container {
    margin-right: 30px;
    margin-left: 30px;
}

html[lang="ar"] .icon-container {
    margin-right: 0;
    margin-left: 30px;
}

.service-icon {
    width: 60px;
    height: 60px;
}

.service-info {
    text-align: start;
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    color: #e51937;
}

.service-description {
    color: #2f3640;
    font-size: 0.9rem;
    margin-top: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* ===== Offers ===== */
.offers {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.offer {
    flex: 0 0 30%;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.offer img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.offer h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.offer p {
    font-size: 16px;
    color: #555;
}

.offer p.date {
    font-weight: bold;
    color: #333;
}

.offer a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.offer a:hover {
    background-color: #0056b3;
}

.offer-details {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.offer-details img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
}

.offer-details h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.offer-details p {
    font-size: 16px;
    color: #555;
}

.offer-details .date {
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

/* ===== Vouchers ===== */
.voucher-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    backdrop-filter: brightness(0.6);
    color: white;
    z-index: 2;
    padding: 1.25rem;
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.card-img-top {
    position: relative;
    z-index: 1;
}

.list-group-item.bg-transparent {
    background-color: transparent !important;
}

/* ===== Accordion ===== */
.accordion {
    --bs-accordion-color: #0056b3;
    --bs-accordion-bg: var(--bs-body-bg);
    --bs-accordion-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
    --bs-accordion-border-color: var(--bs-border-color);
    --bs-accordion-border-width: var(--bs-border-width);
    --bs-accordion-border-radius: var(--bs-border-radius);
    --bs-accordion-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
    --bs-accordion-btn-padding-x: 1.25rem;
    --bs-accordion-btn-padding-y: 1rem;
    --bs-accordion-btn-color: var(--bs-body-color);
    --bs-accordion-btn-bg: var(--bs-accordion-bg);
    --bs-accordion-btn-icon: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e);
    --bs-accordion-btn-icon-width: 1.25rem;
    --bs-accordion-btn-icon-transform: rotate(-180deg);
    --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
    --bs-accordion-btn-active-icon: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2020/svg' viewBox='0 0 16 16' fill='%23052c65'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e);
    --bs-accordion-btn-focus-border-color: #0056b3;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-accordion-body-padding-x: 1.25rem;
    --bs-accordion-body-padding-y: 1rem;
    --bs-accordion-active-color: var(--bs-primary-text-emphasis);
    --bs-accordion-active-bg: #0056b3;
}

.accordion-button:not(.collapsed) {
    color: #fff;
}
