:root {
    --bd-dark: rgba(255, 255, 255, 0.08);
}

.line_head {
    clear: both;
    width: 100%;
    height: 5px;
    background: #191e2c;
    background: linear-gradient(top, #191e2c 60%, #191e2c 100%);
    border-top: 1px dashed #333333;
    border-bottom: 1px dashed #333333;
    position: relative;
}

.footer_head {
    padding: 0px 28px 0 0;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
    height: 100px;
    margin: auto;
    overflow: visible;
    background: radial-gradient(50% 80%, circle, #0077ff, #003f86);
    background: -moz-radial-gradient(50% 80%, circle, #0077ff, #003f86);
    background: -webkit-radial-gradient(50% 80%, circle, #0077ff, #003f86);
    color: #ffffff;
    position: relative;
    animation: colIn .5s .04s cubic-bezier(.22, 1, .36, 1) forwards;
}

.footer_head .right {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--tx-dark);
    overflow: visible;
    font-size: 50px;
}

.footer_head .right i {
    font-size: 70px;
    position: absolute;
    top: -30px;
    left: 40px;
    z-index: 99;
    color: rgb(255, 255, 255);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    animation: planeDrift 3s ease-in-out infinite;
    transition: transform var(--tr), filter var(--tr);
}

.footer_head .right i:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 200, 255, 0.9));
}

@keyframes planeDrift {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.footer_head .left form p {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 7px 0 0 15px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--bg-white);
    white-space: nowrap;
}

.footer_head .right p::after {
    content: attr(data-sub);
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--bg-white);
    letter-spacing: .5px;
    margin-top: 2px;
}

.footer_head .left {
    flex: 1;
    min-width: 280px;
    height: 100%;
    display: flex;
    align-items: center;
}

.footer_head .left form {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: rgba(0, 0, 0, .35);
    border: 2px solid var(--bg-white);
    border-radius: 5px;
    overflow: hidden;
    transition: border-color var(--tr), box-shadow var(--tr);
}

.footer_head .left form:focus-within {
    border-color: var(--cta);
    box-shadow: 0 0 0 4px rgba(255, 153, 0, .1), 0 8px 32px rgba(255, 153, 0, .12);
}

.footer_head .left form input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 16px;
    color: var(--tx-dark);
    font-size: 14px;

}

.footer_head .left form input::placeholder {
    color: var(--tx-muted);
}

.footer_head .left .submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-inline-start: 3px solid #fff;
    border-radius: 0;
    padding: 12px 28px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: .3px;
    background: rgba(255, 153, 0, .25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -2px 0 rgba(0, 0, 0, .15);
    transition: background .25s, box-shadow .25s, transform .15s;
    transform: translateY(0);
}

.footer_head .left .submit i {
    font-size: 18px;
}

.footer_head .left .submit span {
    font-size: 16px;
}

.footer_head .left .submit:hover {
    background: rgba(255, 153, 0, .35);
    box-shadow: 0 6px 20px rgba(255, 153, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .15);
    transform: translateY(-1px);
}

.footer_head .left .submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(255, 153, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -1px 0 rgba(0, 0, 0, .1);
}

.footer_head .left .submit i {
    font-size: 16px;
}

.footer_head .left .submit span {
    font-size: 14px;
}

.footer_head .left .submit:hover {
    background: var(--cta-h);
    box-shadow: 0 8px 25px rgba(255, 153, 0, .5);
}

.footer_head .left .submit:active {
    box-shadow: 0 2px 8px rgba(255, 153, 0, .3);
}

.footer_head .left .submit i {
    font-size: 16px;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.footer_head .left .submit:hover i {
    transform: translateX(4px) scale(1.1);
}

.footer_head .left .submit span {
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.footer_head .left .submit:hover span {
    transform: scale(1.05);
}

.footer {
    background: var(--navy, #010F1C);
    color: var(--tx-muted);
}

.footer .col-lg-3 {
    padding: 32px 28px !important;
    border-inline-end: 1px solid var(--bd-dark);
    transition: background var(--tr);
}

.footer .col-lg-3:last-child {
    border-inline-end: none;
}

.footer .col-lg-3:hover {
    background: rgba(255, 255, 255, .02);
}

.footer h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer h4::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--cta), #ffbb33);
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255, 153, 0, .4);
}

.footer ul.list-unstyled {
    margin: 0;
}

.footer ul.list-unstyled li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bd-dark);
    font-size: 13.5px;
    color: var(--tx-muted);
    transition: color var(--tr);
}

.footer ul.list-unstyled li:last-child {
    border-bottom: none;
}

.footer ul.list-unstyled li:hover {
    color: #fff;
}

.footer ul.list-unstyled li i {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--bd-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
    transition: all var(--tr);
}

.footer ul.list-unstyled li:hover i {
    background: rgba(255, 153, 0, .15);
    border-color: var(--cta);
    box-shadow: 0 0 12px rgba(255, 153, 0, .25);
    transform: scale(1.08);
}

.footer .social_icon {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer .social_icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--bd-dark);
    color: var(--tx-muted);
    font-size: 16px;
    text-decoration: none;
    transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
    position: relative;
    overflow: hidden;
}

.footer .social_icon a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    transition: opacity var(--tr);
}

.footer .social_icon a:hover {
    transform: translateY(-4px) scale(1.1);
    color: #fff;
    border-color: transparent;
}

.footer .social_icon a.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    box-shadow: 0 6px 20px rgba(29, 161, 242, .35);
}

.footer .social_icon a.facebook:hover {
    background: #4267B2;
    border-color: #4267B2;
    box-shadow: 0 6px 20px rgba(66, 103, 178, .35);
}

.footer .social_icon a.instagram:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #e1306c;
    box-shadow: 0 6px 20px rgba(225, 48, 108, .35);
}

.footer .social_icon a.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    box-shadow: 0 6px 20px rgba(10, 102, 194, .35);
}

.footer .social_icon a.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, .35);
}

.footer .link {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 0;
    color: var(--tx-muted);
    text-decoration: none;
    font-size: 13.5px;
    border-bottom: 1px solid var(--bd-dark);
    transition: all var(--tr);
    position: relative;
    overflow: hidden;
}

.footer .link:last-of-type {
    border-bottom: none;
}

.footer .link::before {
    content: '→';
    font-size: 14px;
    color: var(--cta);
    opacity: 0;
    transform: translateX(-6px);
    transition: all var(--tr);
    margin-inline-end: 0;
    display: inline-block;
    line-height: 1;
    flex-shrink: 0;
    width: 0;
    overflow: hidden;
}

.footer .link:hover::before {
    opacity: 1;
    transform: translateX(0);
    width: 18px;
    margin-inline-end: 6px;
}

.footer .link:hover {
    color: #fff;
    padding-inline-start: 4px;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.footer-tags a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--bd-dark);
    border-radius: var(--rad);
    color: var(--tx-muted);
    font-size: 12px;
    text-decoration: none;
    transition: all .28s cubic-bezier(.34, 1.2, .64, 1);
}

.footer-tags a:hover {
    color: #fff;
    border-color: var(--cta);
    background: rgba(255, 153, 0, .1);
    box-shadow: 0 4px 12px rgba(255, 153, 0, .12);
}

.footer-tags a i {
    font-size: 9px;
    color: var(--cta);
}

.foot {
    background: var(--navy, #010F1C);
    border-top: 1px solid var(--bd-dark);
    padding: 20px 28px;
    position: relative;
}

.foot::before {
    display: none;
}

.foot .row {
    align-items: center;
}

.foot [class*="col"] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--tx-muted);
    font-size: 13px;
    text-align: center;
}

.foot [class*="col"]> :first-child {
    color: var(--tx-muted);
    font-size: 13px;
}

.foot .payment {
    height: 24px;
    object-fit: contain;
    opacity: .6;
    filter: grayscale(30%);
    transition: opacity var(--tr), filter var(--tr), transform var(--tr);
}

.foot .payment:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}

.footer .col-lg-3 {
    animation: colIn .55s cubic-bezier(.22, 1, .36, 1) forwards;
}

.footer .col-lg-3:nth-child(1) {
    animation-delay: .05s;
}

.footer .col-lg-3:nth-child(2) {
    animation-delay: .14s;
}

.footer .col-lg-3:nth-child(3) {
    animation-delay: .23s;
}

.footer .col-lg-3:nth-child(4) {
    animation-delay: .32s;
}


/* =====================================================================
   RTL Fixes
======================================================================== */
[dir="rtl"] .footer_head {
    padding: 0 0 0 28px;
}

[dir="rtl"] .footer_head .left form p {
    margin: 7px 15px 0 0;
}

/* أيقونة الطائرة — تنقل من left إلى right */
[dir="rtl"] .footer_head .right i {
    left: auto;
    right: 40px;
    transform: scaleX(-1);
    /* عكس اتجاه الطائرة */
}

/* إصلاح animation الطائرة في RTL */
[dir="rtl"] .footer_head .right i:hover {
    transform: scaleX(-1) scale(1.1);
}

/* ---- إصلاح روابط الـ footer ---- */
[dir="rtl"] .footer .link {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .footer .link::before {
    content: '←';
    transform: translateX(6px);
}

[dir="rtl"] .footer .link:hover::before {
    transform: translateX(0);
    margin-inline-end: 0;
    margin-inline-start: 6px;
}

[dir="rtl"] .footer .link:hover {
    padding-inline-start: 0;
    padding-inline-end: 4px;
}

/* ---- footer-tags إذا فيها أيقونات ---- */
[dir="rtl"] .footer-tags a {
    flex-direction: row-reverse;
}

/* =====================================================================
   ≤ 600px
======================================================================= */
@media screen and (max-width: 600px) {
    .footer_head .left form {
        border-radius: 0;
    }

    .footer_head .left form p {
        display: none;
    }

    .footer_head .left .submit,
    [dir="rtl"] .footer_head .left .submit {
        border-radius: 0 !important;
    }
}

/* أيقونة الطائرة — تنقل من left إلى right */
[dir="rtl"] .footer_head .right i {
    left: auto;
    right: 40px;
    transform: scaleX(-1);
    /* عكس اتجاه الطائرة */
}

/* إصلاح animation الطائرة في RTL */
[dir="rtl"] .footer_head .right i:hover {
    transform: scaleX(-1) scale(1.1);
}

/* زر الـ submit */
[dir="rtl"] .footer_head .left .submit:hover i {
    transform: translateX(-4px) scale(1.1);
}

/* ---- إصلاح روابط الـ footer ---- */
[dir="rtl"] .footer .link {
    flex-direction: row-reverse;
    /* نص يمين، سهم يسار */
    justify-content: flex-end;
}

[dir="rtl"] .footer .link::before {
    content: '←';
    /* سهم عكسي */
    transform: translateX(6px);
    /* يبدأ من اليمين شوية */
}

[dir="rtl"] .footer .link:hover::before {
    transform: translateX(0);
    margin-inline-end: 0;
    margin-inline-start: 6px;
}

[dir="rtl"] .footer .link:hover {
    padding-inline-start: 0;
    padding-inline-end: 4px;
}

/* ---- footer-tags إذا فيها أيقونات ---- */
[dir="rtl"] .footer-tags a {
    flex-direction: row-reverse;
}

/* ---- الخط العلوي لـ foot ---- */
[dir="rtl"] .foot::before {
    background: linear-gradient(270deg,
            transparent,
            rgba(255, 153, 0, .2),
            transparent);
}

/* =====================================================================
   ≤ 360px
======================================================================== */
@media screen and (max-width: 600px) {
    .footer_head p {
        display: none;
    }
}