/* Sanad Gold public multilingual interface — v1.0.0 */
.sg-language-switcher {
    position: relative;
    min-width: 112px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, .3);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}

/* Compact desktop language control: the native select remains clickable over
   the globe icon without consuming navigation space. */
.sg-header-actions .sg-language-switcher {
    min-width: 44px;
    width: 44px;
    flex: 0 0 44px;
    overflow: hidden;
}

.sg-header-actions .sg-language-switcher > i {
    right: 50%;
    transform: translateX(50%);
}

.sg-header-actions .sg-language-switcher::after { display: none; }

.sg-header-actions .sg-language-select {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 0;
    color: transparent;
    opacity: 0;
}

body.sg-site .sg-header .sg-logo {
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
}

body.sg-site .sg-desktop-nav {
    min-width: 0;
    flex: 1 1 auto;
}

body.sg-site .sg-desktop-nav .theNavbar {
    justify-content: center;
    gap: clamp(12px, 1.5vw, 28px);
}

body.sg-site .sg-desktop-nav .theNavbar a {
    white-space: nowrap;
}

body.sg-site .sg-header-actions {
    flex: 0 0 auto;
    gap: 8px;
    position: relative;
    z-index: 20;
    isolation: isolate;
    white-space: nowrap;
}

body.sg-site .sg-header-actions > * {
    position: relative;
    flex: 0 0 auto;
    margin: 0 !important;
}

body.sg-site .sg-desktop-nav .theNavbar > li { flex: 0 0 auto; }

body.sg-site .sg-hero-actions .sg-btn {
    position: relative;
    z-index: 8;
    pointer-events: auto !important;
}

body.sg-site #subscription { scroll-margin-top: 110px; }

body.sg-site .sg-hero-bg,
body.sg-site .sg-hero-orb,
body.sg-site .sg-card-halo { pointer-events: none !important; }

/* Statistics layout lock: legacy flex/float rules and cached reveal effects
   must not move the fourth statistic to another row on desktop. */
body.sg-site .sg-stats .sg-stats-grid {
    width: 100% !important;
    min-height: 128px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
}

body.sg-site .sg-stats .sg-stat,
body.sg-site .sg-stats .sg-stat:nth-child(4) {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    float: none !important;
    position: relative !important;
    inset: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: stretch !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    animation: none !important;
}

body.sg-site .sg-stats .sg-stat > div { min-width: 0 !important; }
body.sg-site .sg-stats .sg-stat strong,
body.sg-site .sg-stats .sg-stat span { white-space: normal; }

.sg-language-switcher > i {
    position: absolute;
    right: 12px;
    z-index: 1;
    pointer-events: none;
}

.sg-language-select {
    width: 100%;
    height: 100%;
    padding: 0 35px 0 25px;
    color: inherit;
    border: 0;
    outline: 0;
    appearance: none;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.sg-language-select option {
    color: #071b33;
    background: #fff;
}

.sg-language-switcher::after {
    content: "▾";
    position: absolute;
    left: 10px;
    color: currentColor;
    font-size: 11px;
    pointer-events: none;
}

.sg-language-switcher-mobile {
    width: calc(100% - 36px);
    margin: 18px;
    color: #071b33;
    border-color: rgba(7, 27, 51, .14);
    background: #f6f8fb;
}

html[dir="ltr"] body.sg-site { direction: ltr; text-align: left; }
html[dir="ltr"] body.sg-site .sg-header-inner,
html[dir="ltr"] body.sg-site .sg-hero-grid,
html[dir="ltr"] body.sg-site .sg-stats-grid,
html[dir="ltr"] body.sg-site .sg-feature-grid,
html[dir="ltr"] body.sg-site .sg-footer-grid,
html[dir="ltr"] body.sg-site .sg-footer-bottom,
html[dir="ltr"] body.sg-site .sg-form-shell,
html[dir="ltr"] body.sg-site .row { direction: ltr; }

html[dir="ltr"] body.sg-site .sg-hero-copy,
html[dir="ltr"] body.sg-site .sg-section-heading,
html[dir="ltr"] body.sg-site .sg-feature-card,
html[dir="ltr"] body.sg-site .sg-form-card,
html[dir="ltr"] body.sg-site .sg-form-intro,
html[dir="ltr"] body.sg-site .sg-footer,
html[dir="ltr"] body.sg-site .cardInfo,
html[dir="ltr"] body.sg-site .analytics-dea { text-align: left; }

html[dir="ltr"] body.sg-site .sg-input-wrap > i { right: auto; left: 16px; }
html[dir="ltr"] body.sg-site .sg-input-wrap input { padding-right: 15px !important; padding-left: 46px !important; }
html[dir="ltr"] body.sg-site .sg-field select { padding-right: 40px !important; padding-left: 15px !important; }
html[dir="ltr"] body.sg-site .sg-field-select > i { right: 17px; left: auto; }
html[dir="ltr"] body.sg-site .sg-offer-select > i { right: 33px; left: auto; }
html[dir="ltr"] body.sg-site .sg-language-switcher > i { right: auto; left: 12px; }
html[dir="ltr"] body.sg-site .sg-header-actions .sg-language-switcher > i {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}
html[dir="ltr"] body.sg-site .sg-language-switcher::after { right: 10px; left: auto; }
html[dir="ltr"] body.sg-site .sg-language-select { padding: 0 25px 0 35px; }
html[dir="ltr"] body.sg-site .sg-whatsapp-float { right: 22px; left: auto; }
html[dir="ltr"] body.sg-site .sg-go-top { right: auto !important; left: 22px !important; }
html[dir="ltr"] body.sg-site .fa-arrow-left::before { content: "\f061"; }

@media (min-width: 768px) {
    html[dir="ltr"] body.sg-site .col-sm-1,
    html[dir="ltr"] body.sg-site .col-sm-2,
    html[dir="ltr"] body.sg-site .col-sm-3,
    html[dir="ltr"] body.sg-site .col-sm-4,
    html[dir="ltr"] body.sg-site .col-sm-5,
    html[dir="ltr"] body.sg-site .col-sm-6,
    html[dir="ltr"] body.sg-site .col-sm-7,
    html[dir="ltr"] body.sg-site .col-sm-8,
    html[dir="ltr"] body.sg-site .col-sm-9,
    html[dir="ltr"] body.sg-site .col-sm-10,
    html[dir="ltr"] body.sg-site .col-sm-11,
    html[dir="ltr"] body.sg-site .col-sm-12 { float: left; }
}

@media (min-width: 992px) {
    html[dir="ltr"] body.sg-site .col-md-1,
    html[dir="ltr"] body.sg-site .col-md-2,
    html[dir="ltr"] body.sg-site .col-md-3,
    html[dir="ltr"] body.sg-site .col-md-4,
    html[dir="ltr"] body.sg-site .col-md-5,
    html[dir="ltr"] body.sg-site .col-md-6,
    html[dir="ltr"] body.sg-site .col-md-7,
    html[dir="ltr"] body.sg-site .col-md-8,
    html[dir="ltr"] body.sg-site .col-md-9,
    html[dir="ltr"] body.sg-site .col-md-10,
    html[dir="ltr"] body.sg-site .col-md-11,
    html[dir="ltr"] body.sg-site .col-md-12 { float: left; }
}

@media (max-width: 1199px) {
    .sg-language-switcher:not(.sg-language-switcher-mobile) { min-width: 44px; width: 44px; }
    .sg-language-switcher:not(.sg-language-switcher-mobile) .sg-language-select { color: transparent; padding: 0; }
    .sg-language-switcher:not(.sg-language-switcher-mobile)::after { display: none; }
}

@media (max-width: 991px) {
    body.sg-site .sg-stats .sg-stats-grid {
        min-height: auto !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 479px) {
    body.sg-site .sg-stats .sg-stats-grid {
        grid-template-columns: 1fr !important;
    }
    body.sg-site .sg-stats .sg-stat { border-left: 0 !important; border-bottom: 1px solid var(--sg-border); }
    body.sg-site .sg-stats .sg-stat:last-child { border-bottom: 0; }
}

@media (min-width: 992px) and (max-width: 1399px) {
    body.sg-site .sg-header .sg-logo { width: 190px !important; }
    body.sg-site .sg-desktop-nav .theNavbar { gap: 12px; }
    body.sg-site .sg-desktop-nav .theNavbar a { font-size: 12px !important; }
    body.sg-site .sg-header-cta { padding-right: 15px !important; padding-left: 15px !important; font-size: 12px !important; }
    body.sg-site .sg-employee-link span { display: none; }
}

/* Inner pages add a Home item to the navigation. Reserve enough real width
   for it so the Join link can never slide underneath the language/staff area. */
@media (min-width: 992px) and (max-width: 1650px) {
    body.sg-site .sg-header-inner { gap: 10px; }
    body.sg-site .sg-header .sg-logo,
    body.sg-site .sg-header .logo {
        width: clamp(175px, 13.5vw, 215px) !important;
        height: 60px !important;
    }
    body.sg-site .sg-desktop-nav .theNavbar { gap: 0 !important; }
    body.sg-site .sg-desktop-nav .theNavbar a {
        padding-right: 7px !important;
        padding-left: 7px !important;
        font-size: 12px !important;
    }
    body.sg-site .sg-header-actions { gap: 6px; }
    body.sg-site .sg-header-cta {
        padding-right: 13px !important;
        padding-left: 13px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 767px) {
    html[dir="ltr"] body.sg-site .sg-whatsapp-float { right: 15px; left: auto; }
    html[dir="ltr"] body.sg-site .sg-go-top { right: auto !important; left: 15px !important; }
}
