/* Neo Sans Arabic for Arabic Pages */
@font-face {
    font-family: 'Neo Sans Arabic';
    src: url('../fonts/neo-sans-arabic/NeoSansArabic.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neo Sans Arabic';
    src: url('../fonts/neo-sans-arabic/NeoSansArabicLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neo Sans Arabic';
    src: url('../fonts/neo-sans-arabic/NeoSansArabicMedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neo Sans Arabic';
    src: url('../fonts/neo-sans-arabic/NeoSansArabicBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neo Sans Arabic';
    src: url('../fonts/neo-sans-arabic/NeoSansArabicBlack.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neo Sans Arabic';
    src: url('../fonts/neo-sans-arabic/NeoSansArabicUltra.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Uni Sans for English Pages */
@font-face {
    font-family: 'Uni Sans';
    src: url('../fonts/uni-sans/Uni Sans Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Uni Sans';
    src: url('../fonts/uni-sans/Uni Sans Thin Italic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Uni Sans';
    src: url('../fonts/uni-sans/Uni Sans Heavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Uni Sans';
    src: url('../fonts/uni-sans/Uni Sans Heavy Italic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* Global Font Application */

/* Arabic Rules */
[lang="ar"] {
    --tecture-font: 'Neo Sans Arabic', sans-serif;
    --tecture-font-2: 'Neo Sans Arabic', sans-serif;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4,
[lang="ar"] h5,
[lang="ar"] h6 {
    font-family: 'Neo Sans Arabic', sans-serif !important;
    font-weight: 500 !important;
}

[lang="ar"] p,
[lang="ar"] span,
[lang="ar"] a,
[lang="ar"] li,
[lang="ar"] div,
[lang="ar"] input,
[lang="ar"] textarea,
[lang="ar"] select,
[lang="ar"] button,
body.rtl,
.rtl body {
    font-family: 'Neo Sans Arabic', sans-serif !important;
}

/* Fix for icons */
[lang="ar"] .fa,
[lang="ar"] .fas,
[lang="ar"] .far,
[lang="ar"] .fab,
[lang="ar"] .fal,
[lang="ar"] [class^="flaticon-"],
[lang="ar"] [class*=" flaticon-"],
[lang="ar"] [class^="icon-"],
[lang="ar"] [class*=" icon-"] {
    font-family: inherit !important;
    /* Or specific font families if needed, but usually inherit works if the class sets it */
}

/* Specific fix for Custom Icons (icomoon) */
[lang="ar"] [class^="icon-"]::before,
[lang="ar"] [class*=" icon-"]::before {
    font-family: 'icomoon' !important;
}

/* Specific fix for Flaticon */
[lang="ar"] [class^="flaticon-"]::before,
[lang="ar"] [class*=" flaticon-"]::before {
    font-family: "flaticon" !important;
}

/* Specific fix for Font Awesome */
[lang="ar"] .fas::before,
[lang="ar"] .fa::before {
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900;
}

[lang="ar"] .far::before {
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 400;
}

[lang="ar"] .fal::before {
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 300;
}

[lang="ar"] .fab::before {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400;
}

/* --- Footer Refinements --- */

/* 1. Spacing between Logo and Text/Links */
.footer-widget__logo {
    margin-bottom: 25px;
    /* Increased spacing */
}

/* 2. Spacing between Links */
.footer-widget__link li {
    margin-bottom: 12px;
    /* Increased spacing */
    transition: all 0.3s ease;
}

.footer-widget__link li a:hover {
    padding-right: 5px;
    /* Subtle movement on hover */
    color: var(--tecture-base);
}

/* 3. Bottom Menu Professional Look */
.site-footer__bottom-menu {
    display: flex;
    justify-content: center;
    /* Center align like the copyright text */
    flex-wrap: wrap;
    gap: 5px;
}

.site-footer__bottom-menu li {
    display: inline-flex;
    align-items: center;
}

/* Add separator line between items */
.site-footer__bottom-menu li:not(:last-child)::after {
    content: "";
    /* Using a border instead of text pipe for cleaner look */
    display: inline-block;
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 15px;
}

.site-footer__bottom-menu li a {
    color: #9ba4b5;
    /* Softer text color */
    font-size: 14px;
    transition: color 0.3s ease;
}

.site-footer__bottom-menu li a:hover {
    color: var(--tecture-base);
}

/* Adjust Social Icons in Footer */
.site-footer__social a {
    background-color: rgba(255, 255, 255, 0.05);
    /* Slight background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.site-footer__social a:hover {
    background-color: var(--tecture-base);
    border-color: var(--tecture-base);
    color: #fff;
    transform: translateY(-3px);
    /* Lift effect */
}

/* 4. Increase spacing between Logo column and Quick Links column */
@media (min-width: 1200px) {
    [dir="rtl"] .footer-widget__links {
        padding-right: 50px;
        /* Push content away from the logo column (on the right) */
    }

    [lang="en"] .footer-widget__links {
        padding-left: 50px;
        /* Push content away from the logo column (on the left) */
    }
    [lang="en"] .footer-widget__links {
        padding-left: 50px;
        /* Push content away from the logo column (on the left) */
    }
}

/* 5. Reduce font size of footer description text */
.footer-widget__text p {
    font-size: 14px !important; /* Smaller font size */
    line-height: 1.8 !important; /* Good readability */
    margin-bottom: 20px; /* Space below text */
    max-width: 90%; /* Prevent it from stretching too wide */
}

/* English Rules */
[lang="en"] {
    --tecture-font: 'Uni Sans', sans-serif;
    --tecture-font-2: 'Uni Sans', sans-serif;
}

[lang="en"] body,
[lang="en"] h1,
[lang="en"] h2,
[lang="en"] h3,
[lang="en"] h4,
[lang="en"] h5,
[lang="en"] h6,
[lang="en"] p,
[lang="en"] span,
[lang="en"] a,
[lang="en"] li,
[lang="en"] div,
[lang="en"] input,
[lang="en"] textarea,
[lang="en"] select,
[lang="en"] button {
    font-family: 'Uni Sans', sans-serif !important;
    font-weight: 100 !important;
    /* Thin (Uni Sans Thin) - The only other option available */
}

/* Fix for icons in English */
[lang="en"] .fa,
[lang="en"] .fas,
[lang="en"] .far,
[lang="en"] .fab,
[lang="en"] .fal,
[lang="en"] [class^="flaticon-"],
[lang="en"] [class*=" flaticon-"],
[lang="en"] [class^="icon-"],
[lang="en"] [class*=" icon-"] {
    font-family: inherit !important;
}

/* Specific fix for Custom Icons (icomoon) */
[lang="en"] [class^="icon-"]::before,
[lang="en"] [class*=" icon-"]::before {
    font-family: 'icomoon' !important;
}

/* Specific fix for Flaticon */
[lang="en"] [class^="flaticon-"]::before,
[lang="en"] [class*=" flaticon-"]::before {
    font-family: "flaticon" !important;
}

/* Specific fix for Font Awesome */
[lang="en"] .fas::before,
[lang="en"] .fa::before {
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 900;
}

[lang="en"] .far::before {
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 400;
}

[lang="en"] .fal::before {
    font-family: "Font Awesome 5 Pro" !important;
    font-weight: 300;
}

[lang="en"] .fab::before {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400;
}