:root {
    --lp-primary: #00337C;
    --lp-secondary: #1384E3;
    --lp-accent: #F4B41A;
    --lp-soft: #e6f0fa;
    --lp-ink: #0f172a;
    --lp-line: #dbe4f0;
}

.lp-container {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
}

.lp-topbar,
.lp-footer {
    font-family: 'Cairo', "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="ltr"] .lp-topbar,
html[dir="ltr"] .lp-footer {
    font-family: 'Outfit', system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lp-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    border-bottom: 1px solid rgba(219, 228, 240, .4);
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 10px 40px rgba(0, 51, 124, .05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all .3s ease;
}

.lp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 1.2vw, 18px);
    min-height: 72px;
}

.lp-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lp-logo img {
    width: 112px;
    height: auto;
    border-radius: 0;
}

.lp-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, .45vw, 7px);
    min-width: 0;
}

.lp-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 7px clamp(8px, .72vw, 12px);
    border-radius: 8px;
    color: #334155;
    font-size: clamp(13px, .82vw, 14px);
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: .16s ease;
}

.lp-links a:hover,
.lp-links a:focus,
.lp-links a.active-link {
    background: var(--lp-soft);
    color: var(--lp-primary);
}

.lp-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
}

.lp-lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 94px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #cbd9ea;
    border-radius: 8px;
    background: #fff;
    color: var(--lp-primary);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
    transition: .16s ease;
}

.lp-lang-toggle:hover,
.lp-lang-toggle:focus {
    border-color: #9fc3ea;
    background: var(--lp-soft);
    outline: 0;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    transition: .16s ease;
}

.lp-actions .lp-btn {
    min-width: max-content;
}

.lp-actions .lp-btn-accent {
    min-width: 96px;
}

.lp-btn-light {
    border-color: #cbd9ea;
    background: #fff;
    color: var(--lp-primary);
}

.lp-btn-light:hover,
.lp-btn-light:focus {
    border-color: #9fc3ea;
    background: var(--lp-soft);
    color: var(--lp-primary);
}

.lp-btn-accent {
    border-color: transparent;
    background: linear-gradient(135deg, var(--lp-accent) 0%, #fbd04b 100%);
    color: var(--lp-primary);
    box-shadow: 0 12px 24px rgba(244, 180, 26, .25), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.lp-btn-accent:hover,
.lp-btn-accent:focus {
    background: linear-gradient(135deg, #d99b05 0%, var(--lp-accent) 100%);
    color: var(--lp-primary);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(244, 180, 26, .3);
}

.lp-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #cbd9ea;
    border-radius: 8px;
    background: #fff;
    color: var(--lp-primary);
}

.lpf-en {
    display: none;
}

html[dir="ltr"] .lpf-en {
    display: inline;
}

html[dir="ltr"] .lpf-ar {
    display: none;
}

.lp-footer {
    position: static;
    padding: 42px 0 20px;
    overflow: visible;
    color: rgba(255, 255, 255, .72);
    background: #061b3e;
}

.lp-footer::before {
    content: none;
}

.lp-footer > .lp-container {
    position: static;
    z-index: auto;
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 24px;
    align-items: stretch;
}

.lp-footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #fff;
}

.lp-footer-logo {
    width: 118px;
    border-radius: 0;
}

.lp-footer h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 650;
}

.lp-footer p {
    margin: 0;
    max-width: 360px;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    line-height: 1.6;
}

.lp-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.lp-footer li + li {
    margin-top: 9px;
}

.lp-footer a {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.lp-footer a:hover,
.lp-footer a:focus {
    color: var(--lp-accent);
}

.lp-newsletter {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
}

.lp-newsletter input {
    min-width: 0;
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: var(--lp-ink);
    font-size: 13px;
}

.lp-newsletter input:focus {
    outline: 3px solid rgba(19, 132, 227, .22);
}

.lp-footer-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    text-align: center;
}

body.drosat-student-shell .nxl-container:has(.guest-subscriptions-page-space) {
    top: 72px;
    min-height: calc(100vh - 72px);
}

body.drosat-student-shell .nxl-container .nxl-content .main-content.guest-subscriptions-page-space {
    padding: 20px clamp(18px, 3vw, 44px) 22px;
}

body.drosat-student-shell .main-content.guest-subscriptions-page-space .student-page-container {
    padding-inline: 0;
}

@media (min-width: 992px) and (max-width: 1599.98px) {
    .lp-container {
        width: min(1280px, calc(100% - 32px));
    }

    .lp-nav {
        gap: 10px;
        min-height: 68px;
    }

    .lp-logo img {
        width: 104px;
    }

    .lp-links {
        gap: 3px;
    }

    .lp-links a {
        min-height: 40px;
        padding: 7px 8px;
        font-size: 13px;
    }

    .lp-actions {
        gap: 7px;
    }

    .lp-lang-toggle,
    .lp-btn {
        min-height: 40px;
        padding: 7px 13px;
        font-size: 13px;
    }

    .lp-actions .lp-btn-accent {
        min-width: 94px;
    }

    .lp-footer {
        padding: 34px 0 18px;
    }
}

@media (max-width: 1199.98px) {
    body.lp-mobile-nav-open {
        overflow: hidden;
    }

    body.lp-mobile-nav-open::before {
        content: "";
        position: fixed;
        inset: 68px 0 0;
        z-index: 1030;
        background: rgba(3, 23, 55, .38);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .lp-menu-btn {
        display: inline-flex;
        flex: 0 0 42px;
        position: relative;
        z-index: 4;
    }

    .lp-links,
    .lp-actions {
        display: none;
    }

    .lp-topbar.is-open .lp-links {
        position: fixed;
        z-index: 2;
        top: 82px;
        right: 20px;
        bottom: auto;
        left: 20px;
        height: auto;
        max-height: calc(100vh - 176px);
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 50px;
        align-content: start;
        gap: 10px;
        padding: 18px;
        overflow-y: auto;
        border: 1px solid var(--lp-line);
        border-radius: 20px;
        background: linear-gradient(160deg, rgba(255, 255, 255, .995), rgba(245, 250, 255, .99));
        box-shadow: 0 24px 60px rgba(3, 30, 69, .2);
        overscroll-behavior: contain;
    }

    .lp-topbar.is-open .lp-links a {
        width: 100%;
        min-height: 50px;
        padding: 9px 12px;
        border: 1px solid #e6eef8;
        border-radius: 13px;
        background: #fff;
        color: #31445f;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 5px 14px rgba(0, 51, 124, .035);
    }

    .lp-topbar.is-open .lp-links a:hover,
    .lp-topbar.is-open .lp-links a:focus,
    .lp-topbar.is-open .lp-links a.active-link {
        border-color: #b9d5f3;
        background: #eaf4ff;
        color: var(--lp-primary);
    }

    .lp-topbar.is-open .lp-links a:nth-last-child(2) {
        border-color: #f6d37b;
        background: #fff8df;
        color: #805900;
    }

    .lp-topbar.is-open .lp-links a:last-child {
        border-color: #bdd7f3;
        background: #f0f7ff;
        color: #0b4f9e;
    }

    .lp-topbar.is-open .lp-actions {
        position: fixed;
        z-index: 3;
        top: 242px;
        right: 20px;
        bottom: auto;
        left: 20px;
        height: auto;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 9px;
        border: 1px solid #d9e5f3;
        border-radius: 18px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 18px 42px rgba(3, 30, 69, .2);
    }

    .lp-topbar.is-open .lp-actions .lp-btn,
    .lp-topbar.is-open .lp-actions .lp-lang-toggle {
        width: 100%;
        min-height: 44px;
        min-width: 0;
        padding: 7px 10px;
        justify-content: center;
        text-align: center;
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-width: 991.98px) {

    .lp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.drosat-student-shell .nxl-container .nxl-content .main-content.guest-subscriptions-page-space {
        padding-inline: 10px;
    }
}

@media (max-width: 575.98px) {
    .lp-container {
        width: min(100% - 24px, 1440px);
    }

    body.lp-mobile-nav-open::before {
        inset-block-start: 72px;
    }

    .lp-topbar.is-open .lp-links {
        top: 82px;
        right: 12px;
        bottom: auto;
        left: 12px;
        height: auto;
        max-height: calc(100vh - 170px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 48px;
        gap: 8px;
        padding: 14px;
        border-radius: 18px;
    }

    .lp-topbar.is-open .lp-links a {
        min-height: 48px;
        padding: 8px 6px;
        font-size: 13px;
    }

    .lp-topbar.is-open .lp-actions {
        top: 340px;
        right: 12px;
        bottom: auto;
        left: 12px;
        height: auto;
        gap: 6px;
        padding: 7px;
        border-radius: 16px;
    }

    .lp-topbar.is-open .lp-actions .lp-btn,
    .lp-topbar.is-open .lp-actions .lp-lang-toggle {
        min-height: 43px;
        padding: 6px 4px;
        font-size: 12.5px;
    }

    .lp-footer-grid {
        grid-template-columns: 1fr;
    }

    .lp-newsletter {
        flex-direction: column;
    }

    .lp-newsletter input,
    .lp-newsletter .lp-btn {
        min-height: 42px;
        width: 100%;
    }
}
