﻿/* ===================================================
   site.rtl.css — النسخة النهائية النظيفة
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

/* ── Variables ── */
:root {
    --bs-primary: #FD5D14;
    --bs-secondary: #FDBE33;
    --bs-light: #F4F6F8;
    --bs-dark: #040F28;
    --bs-font-sans-serif: 'Cairo', sans-serif;
}

/* ── Body ── */
body {
    color: #777;
    font-family: 'Cairo', sans-serif;
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3,
.display-4, .display-5, .display-6 {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    color: #040F28;
    line-height: 1.5;
}

/* ── Links (غير الأزرار) ── */
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) {
    color: #FD5D14;
    text-decoration: none;
}

    a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand):hover {
        color: #ca4a10;
        text-decoration: none;
    }

/* ── Buttons ── */
.btn {
    text-decoration: none !important;
}

.btn-primary {
    color: #FFFFFF !important;
    background-color: #FD5D14;
    border-color: #FD5D14;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active,
    .btn-primary.active,
    .show > .btn-primary.dropdown-toggle {
        color: #FFFFFF !important;
        background-color: #fd7537;
        border-color: #fd6d2c;
    }

    .btn-primary:disabled,
    .btn-primary.disabled {
        color: #FFFFFF !important;
        background-color: #FD5D14;
        border-color: #FD5D14;
    }

.btn-outline-primary {
    color: #FD5D14;
    border-color: #FD5D14;
    background-color: transparent;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:active,
    .btn-outline-primary.active {
        color: #FFFFFF !important;
        background-color: #FD5D14;
        border-color: #FD5D14;
    }

/* btn-primary underline animation */
.btn::after {
    left: auto;
    right: 50%;
}

.btn:hover::after,
.btn.active::after {
    right: 25%;
    left: auto;
    width: 50%;
}

.btn.btn-primary::after {
    background: #040F28;
}

/* btn text-primary (Read More) */
.btn.text-primary {
    color: #FD5D14 !important;
}

    .btn.text-primary:hover {
        color: #ca4a10 !important;
    }

/* ── Text Helpers ── */
.text-primary {
    color: #FD5D14 !important;
}

.text-secondary {
    color: #FDBE33 !important;
}

.text-dark {
    color: #040F28 !important;
}

.text-light {
    color: #F4F6F8 !important;
}

.text-body {
    color: #777 !important;
}

/* ── Background Helpers ── */
.bg-primary {
    background-color: #FD5D14 !important;
}

.bg-secondary {
    background-color: #FDBE33 !important;
}

.bg-dark {
    background-color: #040F28 !important;
}

.bg-light {
    background-color: #F4F6F8 !important;
}

/* ── Border ── */
.border-primary {
    border-color: #FD5D14 !important;
}

/* ── Navbar ── */
.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: #F4F6F8;
    outline: none;
    transition: .5s;
    text-decoration: none;
}

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: #FD5D14;
    }

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        margin: 0;
    }
}

/* ── Dropdown ── */
.dropdown-item {
    text-decoration: none;
}

    .dropdown-item.active,
    .dropdown-item:active {
        background-color: #FD5D14;
        color: #fff;
    }

/* ── Forms ── */
.form-control:focus {
    border-color: #feae8a;
    box-shadow: 0 0 0 .25rem rgba(253,93,20,0.25);
}

.form-check-input:checked {
    background-color: #FD5D14;
    border-color: #FD5D14;
}

/* ── Pagination ── */
.page-link {
    color: #FD5D14;
}

.page-item.active .page-link {
    background-color: #FD5D14;
    border-color: #FD5D14;
    color: #fff;
}

/* ── List Group ── */
.list-group-item.active {
    background-color: #FD5D14;
    border-color: #FD5D14;
}

/* ── Back to Top ── */
.back-to-top {
    left: auto;
    right: 50%;
    margin-left: 0;
    margin-right: -22px;
}

/* ── Testimonial ── */
@media (min-width: 992px) {
    .testimonial, .contact-form {
        margin-left: 0;
        margin-right: -90px;
    }
}

/* ── Footer ── */
@media (min-width: 992px) {
    .footer::after {
        left: auto;
        right: 50%;
    }
}

.footer-shape::before {
    left: auto;
    right: -40px;
    transform: skew(-40deg);
}

/* ── Portfolio ── */
.portfolio-btn {
    left: auto;
    right: 50%;
    margin-left: 0;
    margin-right: -60px;
}

.portfolio-box::before {
    left: auto;
    right: 0;
}

.portfolio-box::after {
    right: auto;
    left: 0;
}

.portfolio-item:hover .portfolio-box::before {
    right: 0;
    left: auto;
    width: 50%;
}

.portfolio-item:hover .portfolio-box::after {
    left: 0;
    right: auto;
    width: 50%;
}

/* ── Carousel ── */
.carousel-control-prev {
    left: auto;
    right: 0;
}

.carousel-control-next {
    right: auto;
    left: 0;
}

/* ── Page Header ── */
.page-header {
    background-position: center center;
}
