/* --- Global Header --- */

:root {
    --primary: #0a4275;
    --accent: #e11d48;
    --secondary: #1a5c96;
    --soft-bg: #f0f4f8;
    --white: #ffffff;
    --gold: #c5a059;
    --whatsapp: #25d366;
    --android: #7B61FF;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.website-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-height: 128px;
    height: auto;
}

.top-bar {
    background: #0a4275;
    color: white;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.nav-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
    position: relative;
    white-space: nowrap;
}

.result-button {
    background: #e11d48;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

.website-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.website-header .logo .logo-img {
    width: 125px;
    height: auto;
}

.website-header .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: max-content;
    flex-wrap: nowrap;
    gap: 12px;
    overflow: visible;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    z-index: 1040;
}

.header-login-link,
.header-register-link {
    color: #df0024;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.2s;
}

.header-login-link:hover,
.header-register-link:hover {
    opacity: 0.85;
    color: #df0024;
}

.header-register-link {
    background: #df0024;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 8px;
}

.header-register-link:hover {
    color: #fff !important;
    opacity: 0.9;
}

.header-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary, #0a4275);
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}

.header-profile-link:hover {
    color: var(--primary, #0a4275);
    opacity: 0.9;
}

/* Profile & Auth dropdowns */
.header-dropdown .dropdown-toggle::after {
    margin-right: 0.35em;
    margin-left: 0;
}

[dir="rtl"] .header-dropdown .dropdown-toggle::after {
    margin-left: 0.35em;
    margin-right: 0;
}

/* Ensure dropdown is above everything */
.header-dropdown {
    position: relative;
    z-index: 1050;
}

.header-dropdown-menu {
    min-width: 180px;
    padding: 8px 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-top: 8px;
    z-index: 1060 !important;
}

.header-dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
}

.header-dropdown-menu .dropdown-item:hover {
    background: rgba(10, 66, 117, 0.06);
    color: var(--primary, #0a4275);
}

.header-dropdown-menu .dropdown-item-form .dropdown-item {
    cursor: pointer;
    width: 100%;
}

.header-auth-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #df0024;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.header-auth-trigger:hover {
    color: #df0024;
    opacity: 0.9;
}

.header-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f0f0f0;
    border-radius: 50%;
    padding: 0;
    transition: background 0.2s;
}

.header-cart-btn:hover {
    background: #e11d48;
}

.header-cart-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.header-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.header-lang-link {
    color: var(--primary, #0a4275);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    padding: 6px 10px;
    border: 1px solid currentColor;
    border-radius: 6px;
}

.header-lang-link:hover {
    color: var(--primary, #0a4275);
    background: rgba(10, 66, 117, 0.08);
}

.website-header .nav-menu a.active {
    color: #e11d48;
}

.social-links a {
    color: white;
    font-size: 18px;
    transition: 0.3s;
    text-decoration: none;
    margin: 5px;
}

/* --- Navbar Toggler (mobile) --- */
.website-header .navbar-toggler {
    display: none;
    border: 1px solid rgba(10, 66, 117, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
}

.website-header .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(10, 66, 117, 0.25);
}

.website-header .navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(10, 66, 117, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* Mobile header actions (cart, login, language) next to burger */
.header-mobile-actions {
    order: 2;
    flex-shrink: 0;
    gap: 6px;
}

.header-mobile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--primary, #0a4275);
    font-size: 18px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.header-mobile-icon:hover {
    background: rgba(10, 66, 117, 0.08);
    color: var(--primary, #0a4275);
}

.header-mobile-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    color: var(--primary, #0a4275);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(10, 66, 117, 0.3);
    transition: background 0.2s;
}

.header-mobile-lang:hover {
    background: rgba(10, 66, 117, 0.08);
    color: var(--primary, #0a4275);
}

.header-cart-mobile .header-cart-btn {
    width: 36px;
    height: 36px;
}

.header-cart-mobile .header-cart-btn img {
    width: 20px;
    height: 20px;
    filter: invert(27%) sepia(95%) saturate(5000%) hue-rotate(340deg) brightness(95%) contrast(101%);
}

.header-cart-mobile .header-cart-count {
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    top: -2px;
    right: -2px;
}

/* --- Responsive: Mobile & Tablet --- */
@media (max-width: 991px) {
    .website-header .navbar {
        flex-wrap: wrap;
        overflow: visible;
        padding: 10px 12px;
    }

    .website-header .navbar .container {
        flex-wrap: wrap;
        min-width: 0;
        gap: 10px;
        align-items: center;
    }

    .website-header .logo {
        flex: 1;
        min-width: 0;
    }

    .website-header .logo .logo-img {
        max-height: 32px;
        max-width: 90px;
        width: auto !important;
        height: auto;
        object-fit: contain;
    }

    .website-header .header-mobile-actions {
        order: 2;
        margin-inline-end: 4px;
    }

    .website-header .navbar-toggler {
        display: inline-flex;
        order: 3;
        padding: 6px 10px;
    }

    .website-header .navbar-collapse {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .website-header .navbar-collapse.collapsing,
    .website-header .navbar-collapse.show {
        display: block;
    }

    .website-header .nav-menu {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;
    }

    .website-header .nav-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .website-header .nav-menu a {
        display: block;
        padding: 12px 0;
        font-size: 15px;
        white-space: normal;
    }

    .website-header .header-actions {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        justify-content: flex-start;
    }

    .website-header .result-button {
        padding: 10px 18px;
        font-size: 14px;
    }

    .top-bar {
        padding: 10px 15px;
        font-size: 12px;
    }

    .top-bar>div:first-child {
        max-width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .social-links a {
        font-size: 16px;
        margin-left: 8px;
    }
}

/* --- Desktop: hide toggler, keep menu in one line --- */
@media (min-width: 992px) {
    .website-header .navbar-toggler {
        display: none;
    }

    .website-header .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        width: auto;
        margin: 0;
        padding: 0;
        border: none;
        flex: 1;
        justify-content: space-between;
        align-items: center;
        min-width: 0;
    }

    .website-header .navbar-collapse.collapse {
        display: flex !important;
    }
}

.top-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    padding-top: 150px;
}

@media screen and (max-width: 992px) {
    header {
        height: auto;
        padding-bottom: 50px;
        box-shadow: none !important;
    }
}

/* --- FAB Menu (Floating Action Button) --- */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

[dir="rtl"] .fab-container {
    right: auto;
    left: 30px;
}

.fab-main {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent, #e11d48);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4);
    transition: 0.4s;
}

.fab-main:hover {
    background: var(--accent, #e11d48);
    color: white;
    transform: scale(1.05);
}

.fab-options {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s ease;
}

.fab-container.active .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-container.active .fab-main {
    transform: rotate(45deg);
    background: #334155;
}

.fab-container.active .fab-main:hover {
    background: #334155;
}

.f-item {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.f-item:hover {
    color: white;
    transform: scale(1.1);
}

.f-apple {
    background: #000;
}

.f-android {
    background: #7B61FF;
}

.f-whatsapp {
    background: #25d366;
}

.f-call {
    background: var(--primary, #0a4275);
}

/* --- Footer placement (stick to bottom) --- */
.site-section {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main-wrap {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.site-footer {
    margin-top: auto;
    flex-shrink: 0;
}

.top-slider {

    height: 100vh !important;
}

.Offers header .content .row p {
    background: none;
    color: #e11d48;
    border-radius: 100px 0px 100px 0px;
    width: 50%;
    margin: auto;
}

/* --- Package Card Actions (buttons row) --- */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    margin-top: 12px;
}

.actions a {
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    transition: 0.3s;
    border: none;
    position: relative;
    z-index: 1;
}

.actions a.whatsapp {
    background: #25d366;
    color: #fff;
}

.actions a.whatsapp:hover {
    background: #20bd5a;
    color: #fff;
}

.actions a.call {
    background: #0a4275;
    color: #fff;
}

.actions a.call:hover {
    background: #083a66;
    color: #fff;
}

.actions form {
    flex: 1;
    min-width: 0;
    display: flex;
}

.actions .btn-main {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border-radius: 12px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    height: 44px;
    width: 100%;
    margin: 0;
    background: white;
    border: 1px solid rgba(223, 0, 36, 1);
    color: rgba(223, 0, 36, 1);
    cursor: pointer;
}

.actions .btn-main:hover {
    background: rgba(223, 0, 36, 1);
    color: white;
    border-color: rgba(223, 0, 36, 1);
}

/* --- Package Actions Responsive (icon-only) --- */
@media (max-width: 576px) {
    .actions {
        gap: 8px;
        justify-content: center;
    }

    .actions a {
        width: 44px;
        height: 44px;
    }

    .actions form {
        flex: 1 1 100%;
        min-width: 0;
    }
}

footer {
    background: #051e36;
    color: white !important;
    padding: 80px 5% 40px;
}

footer p {
    color: white !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-grid h4 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--gold);
}

.footer-grid a {
    display: block;
    color: white;
    opacity: 0.8;
    margin-bottom: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-grid a:hover {
    opacity: 1;
    color: var(--accent);
}

body {
    font-family: 'Tajawal', sans-serif;
    background: #f0f4f8;
    color: #2d3748;
    line-height: 1.8;
}

.test-header {
    height: fit-content !important;
    margin-top: 100px;

}

.test-header h1 {
    font-size: 64px;
    padding-top: 0;
    line-height: 70px;
    font-weight: 500;
}

.test-header .content .row h1 {
    font-size: 64px;
    padding-top: 0;
    line-height: normal;
    font-weight: 500;
}

.test-header .content .row h1 {
    font-size: 64px;
    font-weight: 200 !important;
    margin-bottom: 0 !important;
    font-family: 'Cairo';
}

/* --- Hero Section --- */
.hero-premium {
    height: 85vh;
    background: linear-gradient(270deg, rgba(10, 66, 117, 0.7), rgba(10, 66, 117, 0.9)), url('A.jpg') center/cover;
    display: flex;
    align-items: center;
    padding: 140px 5% 0;
    color: white;
}

.hero-text {
    max-width: 700px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .nav-menu {
        gap: 10px;
        margin: 10px 0;
    }

    .segment-grid,
    .stats-grid,
    .footer-grid,
    .digital-container,
    .rich-feature,
    .quality-benchmarks {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-premium {
        padding-top: 250px;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .hero-text a {
        padding: 0px 22px !important;
        line-height: 50px;
        height: 51px;

    }
}