@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

body,
html {
    font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
    background: #f6f6f7;
    color: #232323;
    line-height: 1.9;
    direction: rtl;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #bfa76a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a88d4a;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to left, #bfa76a, #d4c08a);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
    font-weight: 900;
    color: #bfa76a;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link,
.navbar-brand,
.sicosal-media,
.link-footer,
.btn,
.feature-item,
.team-item,
.footer,
.copyright {
    font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„Ø£Ø²Ø±Ø§Ø± Ø¨ØªØ¯Ø±Ø¬ Ù„ÙˆÙ†ÙŠ ÙˆØªØ£Ø«ÙŠØ± */
.btn,
.btn-link {
    background: #ece6d9;
    color: #232323 !important;
    border: none;
    border-radius: 14px;
    font-size: 1.12em;
    font-weight: 700;
    padding: 10px 28px;
    box-shadow: 0 2px 8px rgba(191, 167, 106, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover,
.btn-link:hover {
    background: #bfa76a;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(191, 167, 106, 0.13);
    transform: translateY(-2px) scale(1.04);
}

/* Ø¸Ù„Ø§Ù„ Ø£Ø¹Ù…Ù‚ Ù„Ù„ÙƒØ±ÙˆØª ÙˆØ§Ù„Ø¨Ø·Ø§Ù‚Ø§Øª */
.mabutt,
.feature-item,
.team-item {
    background: #fff;
    border-radius: 20px !important;
    box-shadow: 0 4px 18px rgba(191, 167, 106, 0.07), 0 1.5px 6px rgba(0, 0, 0, 0.03);
    border: 1.5px solid #ece6d9;
    margin-bottom: 24px;
    transition: box-shadow 0.3s, transform 0.2s;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.mabutt:hover,
.feature-item:hover,
.team-item:hover {
    box-shadow: 0 8px 32px rgba(191, 167, 106, 0.13), 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px) scale(1.02);
}

/* ØªØ£Ø«ÙŠØ± Ø­Ø±ÙƒØ© Ø¹Ù†Ø¯ Ø§Ù„Ø¸Ù‡ÙˆØ± */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 5px 15px rgba(191, 167, 106, 0.1);
    }

    50% {
        box-shadow: 0 10px 25px rgba(191, 167, 106, 0.4);
    }

    100% {
        box-shadow: 0 5px 15px rgba(191, 167, 106, 0.1);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.mabutt,
.feature-item,
.team-item,
.feature-card {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Ø¥Ø¨Ø±Ø§Ø² Ø§Ù„Ø£ÙŠÙ‚ÙˆÙ†Ø§Øª Ø§Ù„Ø§Ø¬ØªÙ…Ø§Ø¹ÙŠØ© ÙÙ‚Ø· Ø¨Ø£Ù„ÙˆØ§Ù†Ù‡Ø§ Ø§Ù„Ø±Ø³Ù…ÙŠØ© */
.fa-facebook-f,
.fab.fa-facebook-f {
    color: #1877f3 !important;
    background: none;
}

.fa-whatsapp,
.fab.fa-whatsapp {
    color: #25d366 !important;
    background: none;
}

.fa-youtube,
.fab.fa-youtube {
    color: #ff0000 !important;
    background: none;
}

.fa-linkedin-in,
.fab.fa-linkedin-in {
    color: #0077b5 !important;
    background: none;
}

.fa-twitter,
.fab.fa-twitter {
    color: #1da1f2 !important;
    background: none;
}

/* Override for social icons in header */
.social-icon .fa-facebook-f,
.social-icon .fab.fa-facebook-f {
    color: white !important;
}

.social-icon .fa-whatsapp,
.social-icon .fab.fa-whatsapp {
    color: white !important;
}

.social-icon .fa-youtube,
.social-icon .fab.fa-youtube {
    color: white !important;
}

.social-icon .fa-linkedin-in,
.social-icon .fab.fa-linkedin-in {
    color: white !important;
}

.social-icon .fa-twitter,
.social-icon .fab.fa-twitter {
    color: white !important;
}

.fa-envelope {
    color: #bfa76a !important;
    background: none;
}

.fa-phone-alt {
    color: #bfa76a !important;
    background: none;
}

.fa,
.fab,
.bi {
    font-size: 1.25em;
    transition: color 0.2s, transform 0.2s;
}

.fa:hover,
.fab:hover,
.bi:hover {
    filter: brightness(1.2);
    transform: scale(1.12) rotate(-4deg);
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„Ù…Ø³Ø§Ø­Ø§Øª Ø§Ù„Ø¨ÙŠØ¶Ø§Ø¡ */
.container,
.container-xxl {
    padding-top: 40px;
    padding-bottom: 40px;
}

.row.g-0,
.row.g-4,
.feature-row {
    margin-bottom: 24px;
}

/* Glassmorphism Navbar */
.sticky-top {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(191, 167, 106, 0.2);
    border-radius: 0 0 20px 20px;
    transition: all 0.5s ease;
}

.navbar {
    background: transparent !important;
}

.navbar-nav .nav-link,
.navbar-brand {
    font-weight: 700;
    font-size: 1.1em;
    color: #232323 !important;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    background: #f9f7f2;
    color: #bfa76a !important;
    border-bottom: 2.5px solid #bfa76a;
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„ÙÙˆØªØ± */
.footer {
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
    background: linear-gradient(100deg, #bfa76a 0%, #232323 100%) !important;
    color: #fff;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -4px 32px rgba(191, 167, 106, 0.13), 0 -1.5px 8px rgba(0, 0, 0, 0.07);
    padding: 32px 0 16px 0;
    min-height: 64px;
    font-size: 1.08em;
    position: relative;
    overflow: hidden;
}

.footer .container {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0 32px;
}

.footer .footer-col {
    flex: 1 1 0;
    min-width: 220px;
    margin-bottom: 0;
    background: linear-gradient(90deg, #bfa76a11 0%, transparent 100%);
    border-radius: 18px;
    box-shadow: 0 2px 12px #bfa76a0a;
    padding: 0 12px 0 0;
}

.footer .footer-col:first-child {
    padding-right: 0;
}

.footer .footer-col:last-child {
    padding-left: 0;
}

.footer h4,
.footer .footer-title {
    direction: rtl;
    text-align: right !important;
    color: #fff !important;
    font-weight: 900;
    font-size: 1.18em;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer a,
.footer p,
.footer .footer-link {
    color: #fff !important;
    margin-bottom: 8px;
    font-size: 1em;
    transition: color 0.2s, text-shadow 0.2s;
    text-align: right;
    direction: rtl;
}

.footer a:hover,
.footer .footer-link:hover {
    color: #ffe7b0 !important;
    text-shadow: 0 2px 8px #bfa76a44;
    text-decoration: underline;
}

.footer .btn-square,
.footer .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    margin-right: 0;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(191, 167, 106, 0.10);
    transition: background 0.2s, transform 0.2s;
    font-size: 1.25em;
    border: 1.5px solid #fff2;
}

.footer .btn-square:hover,
.footer .social-icon:hover {
    background: #bfa76a;
    color: #fff !important;
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 6px 18px #bfa76a33;
}

.footer .footer-links-list,
.footer-services ul {
    direction: rtl;
    text-align: right !important;
    padding-right: 0;
    list-style: none;
    margin-bottom: 0;
}

.footer .footer-link {
    display: block;
    padding: 4px 0;
    border-radius: 8px;
    font-weight: 600;
    text-align: right !important;
    direction: rtl;
}

.footer .footer-link:before {
    content: '\2022';
    color: #ffe7b0;
    margin-left: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}

.footer .footer-link:hover:before {
    color: #fff;
}

.footer .footer-title {
    border-right: 4px solid #ffe7b0;
    padding-right: 10px;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(90deg, #bfa76a22 0%, transparent 100%);
}

.footer .copyright-text,
.footer .company-name {
    color: #ffe7b0 !important;
    font-weight: 700;
    text-align: right;
    letter-spacing: 0.5px;
}

.footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer .footer-logo-img {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    box-shadow: 0 2px 8px #bfa76a33;
    object-fit: contain;
    background: #fff;
}

.footer .footer-company-name {
    color: #ffe7b0 !important;
    font-size: 1.25em;
    font-weight: 900;
    margin: 0;
    text-align: right;
}

.footer .footer-social-icons {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0 0;
}

.footer .footer-description {
    color: #fff;
    font-size: 1.08em;
    margin-bottom: 0;
    text-align: right;
}

@media (max-width: 991.98px) {
    .footer .container {
        flex-direction: column;
        gap: 18px 0;
    }

    .footer .footer-col {
        min-width: 0;
        margin-bottom: 18px;
        padding: 0;
    }

    .footer .footer-social-icons {
        justify-content: center;
        margin: 16px 0 0 0;
    }

    .footer .footer-logo {
        justify-content: center;
        text-align: center;
    }

    .footer .footer-company-name {
        text-align: center;
        width: 100%;
    }

    .footer .footer-description {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding: 18px 0 8px 0;
        border-radius: 18px 18px 0 0;
        font-size: 0.98em;
    }

    .footer h4,
    .footer .footer-title {
        font-size: 1em;
        margin-bottom: 10px;
        padding-right: 6px;
    }

    .footer .btn-square,
    .footer .social-icon {
        width: 34px;
        height: 34px;
        font-size: 1em;
        margin-left: 4px;
    }
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„Ù…Ø¤Ø´Ø±Ø§Øª ÙÙŠ Ø§Ù„ÙƒØ§Ø±ÙˆØ³ÙŠÙ„ */
.carousel-indicators li {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #bfa76a;
    margin: 0 4px;
}

.carousel-indicators .active {
    background: #ece6d9;
    border-color: #bfa76a;
}

/* ØªØ­Ø³ÙŠÙ† Ø²Ø± Ø§Ù„Ø¹ÙˆØ¯Ø© Ù„Ù„Ø£Ø¹Ù„Ù‰ */
.back-to-top {
    background: #bfa76a;
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(191, 167, 106, 0.13);
    transition: background 0.2s, color 0.2s;
}

.back-to-top:hover {
    background: #8c7a4f;
    color: #fff;
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„Ø­ÙˆØ§Ù Ù„Ù„ØµÙˆØ± */
img,
.carousel-inner img {
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(191, 167, 106, 0.05);
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„Ø±ÙˆØ§Ø¨Ø· */
a {
    color: #bfa76a;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #8c7a4f;
    text-decoration: underline;
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„ÙÙˆØªØ± */
.footer a:hover {
    color: #bfa76a !important;
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„ÙƒØ§Ø±ÙˆØ³ÙŠÙ„ */
.carousel-caption {
    background: rgba(34, 34, 34, 0.45);
    border-radius: 18px;
    padding: 24px 32px;
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„Ø¨Ø·Ø§Ù‚Ø§Øª Ø§Ù„Ø´Ø®ØµÙŠØ© Ù„Ù„ÙØ±ÙŠÙ‚ */
.team-item {
    background: #fff;
    border: 1px solid #f6c27022;
    box-shadow: 0 2px 12px rgba(246, 194, 112, 0.09);
    transition: box-shadow 0.2s, transform 0.2s;
}

.team-item:hover {
    box-shadow: 0 8px 32px rgba(246, 194, 112, 0.18);
    transform: translateY(-6px) scale(1.03);
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„Ù…Ø³Ø§ÙØ§Øª */
.container,
.container-xxl {
    padding-top: 24px;
    padding-bottom: 24px;
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„Ø­ÙˆØ§Ù Ù„Ù„Ù†ØµÙˆØµ ÙˆØ§Ù„ØµÙˆØ± */
img,
.carousel-inner img {
    border-radius: 12px;
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„Ø±ÙˆØ§Ø¨Ø· ÙÙŠ Ø§Ù„ÙÙˆØªØ± */
.link-footer {
    color: #bfa76a !important;
    font-weight: 700;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.link-footer:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„Ù†ØµÙˆØµ Ø§Ù„ØµØºÙŠØ±Ø© */
small,
.fs-5,
.fs-4,
.fs-7 {
    font-family: 'Tajawal', Arial, Helvetica, sans-serif !important;
}

/* ØªØ­Ø³ÙŠÙ† ØªØ¨Ø§Ø¹Ø¯ Ø§Ù„ÙÙ‚Ø±Ø§Øª */
p {
    margin-bottom: 1.3em;
    font-size: 1.12em;
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„Ø¹Ù†Ø§ÙˆÙŠÙ† Ø§Ù„ÙØ±Ø¹ÙŠØ© */
h5 {
    font-size: 1.3em;
    color: #bfa76a;
    font-weight: 900;
    margin-bottom: 18px;
}

/* ØªØ­Ø³ÙŠÙ† Ø§Ù„Ù…Ø¤Ø´Ø±Ø§Øª */
.carousel-indicators li {
    background-color: #bfa76a;
}

/* ØªØ­Ø³ÙŠÙ† Ø®Ø·ÙˆØ· Ø§Ù„Ø¬Ø¯Ø§ÙˆÙ„ (Ø¥Ù† ÙˆØ¬Ø¯Øª) */
table {
    border-radius: 12px;
    overflow: hidden;
}

/* ØªØ­Ø³ÙŠÙ†Ø§Øª Ø¹Ø§Ù…Ø© */
::-webkit-scrollbar {
    width: 8px;
    background: #ece6d9;
}

::-webkit-scrollbar-thumb {
    background: #bfa76a;
    border-radius: 8px;
}

/********** Template CSS **********/
:root {
    --primary: #bfa76a;
    --secondary: #232323;
    --light: #F1F3FA;
    --dark: #1C2035;
    --gradient-primary: linear-gradient(135deg, #bfa76a 0%, #d4c08a 100%);
    --gradient-secondary: linear-gradient(135deg, #232323 0%, #3a3a3a 100%);
    --shadow-light: 0 5px 15px rgba(191, 167, 106, 0.1);
    --shadow-medium: 0 10px 30px rgba(191, 167, 106, 0.2);
    --shadow-heavy: 0 20px 60px rgba(191, 167, 106, 0.3);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 500;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
    margin-right: 0;
}

/* RTL specific dropdown arrow */
@media (min-width: 992px) {
    .navbar .dropdown-toggle::after {
        margin-left: 8px;
        margin-right: 0;
    }
}

/* Dropdown Menu Styles */
.navbar .nav-item .dropdown-menu {
    border: none;
    margin-top: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: #efeded !important;
    border: 1px solid #ece6d9;
    text-align: right;
    direction: rtl;
    min-width: 200px;
    z-index: 1000;
}

.navbar .dropdown-item {
    color: #232323;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0;
    text-align: right;
    direction: rtl;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
}

.navbar .dropdown-item:hover {
    background: var(--primary);
    color: #fff;
}

/* Desktop Dropdown (992px and above) */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: translateY(-10px);
        right: 0;
        left: auto;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar .nav-item.dropdown {
        position: relative;
    }

    .navbar .nav-item .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
    }
}

/* Mobile and Tablet Dropdown (below 992px) */
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }

    .navbar .nav-item .dropdown-menu {
        display: none;
        position: static;
        float: none;
        width: 100%;
        background: #f8f9fa;
        border: none;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        border-radius: 0;
    }

    .navbar .nav-item .dropdown-menu.show {
        display: block !important;
        animation: slideDown 0.3s ease;
        opacity: 1;
        visibility: visible;
    }

    .navbar .dropdown-item {
        padding: 12px 25px;
        margin: 0;
        border-radius: 0;
        border-bottom: 1px solid #e9ecef;
        background: #fff;
        font-size: 0.95em;
        transition: all 0.3s ease;
    }

    .navbar .dropdown-item:hover {
        background: var(--primary);
        color: #fff;
    }

    .navbar .dropdown-item.active {
        background: var(--primary);
        color: #fff;
    }

    /* Dropdown toggle arrow for mobile */
    .navbar .dropdown-toggle::after {
        float: left;
        margin-top: 8px;
        transition: transform 0.3s ease;
        margin-left: 8px;
    }

    .navbar .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

    /* Enhanced touch targets for mobile */
    .navbar .dropdown-toggle {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Better visual feedback */
    .navbar .nav-item.dropdown {
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar .nav-item.dropdown:last-child {
        border-bottom: none;
    }
}

/* Animation for mobile dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Touch feedback for mobile dropdown */
.navbar .dropdown-toggle.touch-active {
    background-color: rgba(191, 167, 106, 0.1);
    transform: scale(0.98);
}

/* Ensure dropdown works on all devices */
.navbar .dropdown-menu {
    z-index: 1000;
}

/* Fix for Bootstrap 5 compatibility */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu.show {
        display: block !important;
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        transform: none !important;
        text-align: right !important;
        direction: rtl !important;
    }
}

/* Additional RTL fixes */
.navbar .dropdown-menu {
    text-align: right !important;
    direction: rtl !important;
}

.navbar .dropdown-item {
    text-align: right !important;
    direction: rtl !important;
}

/* Ensure proper positioning for desktop */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown {
        position: relative;
    }

    .navbar .nav-item .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
        text-align: right;
        direction: rtl;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

/* Enhanced Carousel Styles */
.carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 20px 0;
}

.carousel-inner {
    border-radius: 20px;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    filter: none !important;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-caption {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px;
    margin: 20px;
    text-align: center;
    direction: rtl;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-caption h3 {
    font-size: 2.5em;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.6);
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    letter-spacing: 1px;
}

.carousel-caption p {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.6);
    font-family: 'Tajawal', Arial, sans-serif;
    line-height: 1.6;
    font-weight: 600;
}

/* Enhanced Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(191, 167, 106, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

/* Enhanced Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.carousel-indicators li {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: rgba(191, 167, 106, 0.7);
    margin: 0 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-indicators .active {
    background: var(--primary);
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(191, 167, 106, 0.4);
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
}

/* Responsive Carousel Styles */
@media (max-width: 1200px) {
    .carousel-item {
        height: 450px;
    }

    .carousel-caption h3 {
        font-size: 2.2em;
    }

    .carousel-caption p {
        font-size: 1.1em;
    }
}

@media (max-width: 992px) {
    .carousel-item {
        height: 400px;
    }

    .carousel-caption {
        padding: 25px;
        margin: 15px;
    }

    .carousel-caption h3 {
        font-size: 2em;
        margin-bottom: 12px;
    }

    .carousel-caption p {
        font-size: 1em;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
        margin: 0 15px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 768px) {
    .carousel {
        border-radius: 15px;
        margin: 15px 0;
    }

    .carousel-inner {
        border-radius: 15px;
    }

    .carousel-item {
        height: 350px;
    }

    .carousel-caption {
        padding: 20px;
        margin: 10px;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
        backdrop-filter: blur(3px);
    }

    .carousel-caption h3 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 0.95em;
        line-height: 1.5;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
        margin: 0 10px;
        border-width: 2px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .carousel-indicators li {
        width: 12px;
        height: 12px;
        margin: 0 4px;
        border-width: 2px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-caption {
        padding: 15px;
        margin: 8px;
        border-radius: 10px;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
        backdrop-filter: blur(2px);
    }

    .carousel-caption h3 {
        font-size: 1.5em;
        margin-bottom: 8px;
    }

    .carousel-caption p {
        font-size: 0.9em;
        line-height: 1.4;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 8px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }

    .carousel-indicators {
        bottom: 15px;
    }

    .carousel-indicators li {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

/* Special styles for very small screens */
@media (max-width: 480px) {
    .carousel-item {
        height: 250px;
    }

    .carousel-caption {
        padding: 12px;
        margin: 5px;
    }

    .carousel-caption h3 {
        font-size: 1.3em;
        margin-bottom: 6px;
    }

    .carousel-caption p {
        font-size: 0.85em;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

/* Carousel Animation Enhancements */
.carousel-item {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Carousel Loading */
.carousel-item img {
    filter: none !important;
}

.carousel-item.active img {
    filter: none !important;
}

/* Carousel Touch Improvements */
.carousel {
    touch-action: pan-y pinch-zoom;
}

/* Carousel Performance Optimizations */
.carousel-item img {
    will-change: transform;
    backface-visibility: hidden;
}

/* Carousel Accessibility */
.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.carousel-indicators li:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

/* Carousel Loading and Enhancement Effects */
.carousel-item img.loading {
    filter: none !important;
    transition: filter 0.3s ease;
}

.carousel-item img.enhanced {
    filter: none !important;
    transition: filter 0.5s ease;
}

.carousel-caption.animated {
    animation: captionSlideIn 0.6s ease-out;
}

@keyframes captionSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Touch Feedback */
.carousel.touch-active {
    transform: scale(0.98);
    transition: transform 0.2s ease;
}

/* Carousel Control Visibility */
.carousel-control-prev,
.carousel-control-next {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

/* Carousel Image Quality Improvements */
.carousel-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Enhanced visibility */
    filter: none !important;
    transition: filter 0.3s ease;
}

/* Ensure images are always visible */
.carousel-item.active img {
    filter: none !important;
}

/* Alternative caption style for better image visibility */
.carousel-caption.alternative {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Carousel Smooth Transitions */
.carousel-item {
    transition: all 0.6s ease-in-out;
}

.carousel-item.active {
    z-index: 2;
}

.carousel-item-next,
.carousel-item-prev {
    z-index: 1;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Features ***/
.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}


/*** About ***/
.about {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/about.jpg) left center no-repeat;
    background-size: cover;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 36px;
    height: 46px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: 3px;
    border-left: 30px solid #FFFFFF;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Service ***/
.service-item .service-text {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    transition: .5s;
    z-index: 2;
}

.service-item:hover .service-text {
    top: -1.5rem;
}

.service-item .service-text h5 {
    transition: .5s;
}

.service-item:hover .service-text h5 {
    color: var(--primary);
}

.service-item .service-btn {
    position: absolute;
    width: 80%;
    height: 3rem;
    left: 10%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: .5s;
    z-index: 1;
}

.service-item:hover .service-btn {
    bottom: -1.5rem;
}




/*** Project ***/
.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.project-item .project-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    padding-top: 60px;
    transition: .5s;
}

.project-item:hover .project-overlay {
    opacity: 1;
    padding-top: 0;
}




/*** Team ***/
.team-item {
    position: relative;
    text-align: center;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-social {
    position: absolute;
    padding: 0;
    top: 15px;
    left: 0;
    overflow: hidden;
}

.team-item .team-social li {
    list-style-type: none;
    margin-bottom: 10px;
    margin-left: -50px;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social li {
    margin-left: 15px;
    opacity: 1;
}

.team-item .team-social li .btn {
    background: #FFFFFF;
    color: var(--primary);
    border-radius: 40px;
    transition: .5s;
}

.team-item .team-social li .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item .team-social li:nth-child(1) {
    transition-delay: .1s;
}

.team-item .team-social li:nth-child(2) {
    transition-delay: .2s;
}

.team-item .team-social li:nth-child(3) {
    transition-delay: .3s;
}

.team-item .team-social li:nth-child(4) {
    transition-delay: .4s;
}

.team-item .team-social li:nth-child(5) {
    transition-delay: .5s;
}


/*** Testimonial ***/
.testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: .5s;
}

.owl-item .testimonial-item,
.testimonial-item * {
    transition: .5s;
}

.owl-item.center .testimonial-item,
.testimonial-item:hover {
    background: var(--primary);
}

.owl-item.center .testimonial-item *,
.testimonial-item:hover * {
    color: #FFFFFF !important;
}

.testimonial-item img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 100px;
}




/*** Footer ***/
.copyright {
    color: #B0B9AE;
}

.copyright {
    background: #111111;
}

.copyright a:hover {
    color: var(--primary) !important;
}

/* Responsive Design */
@media (max-width: 1200px) {

    .container,
    .container-xxl {
        padding-left: 18px;
        padding-right: 18px;
    }

    .navbar-nav .nav-link,
    .navbar-brand {
        font-size: 1em;
        padding: 8px 12px;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        text-align: right;
    }

    .mabutt,
    .feature-item,
    .team-item {
        margin-bottom: 18px;
    }

    .container,
    .container-xxl {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .footer {
        padding: 12px 0 4px 0;
        border-radius: 14px 14px 0 0;
        font-size: 0.97em;
    }

    .footer h4 {
        font-size: 1em;
    }

    .footer .btn-square {
        width: 32px;
        height: 32px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 1.1em;
    }

    .btn,
    .btn-link {
        font-size: 1em;
        padding: 8px 16px;
    }

    .mabutt,
    .feature-item,
    .team-item {
        padding: 12px 8px;
        font-size: 0.98em;
    }

    .footer {
        padding: 8px 0 2px 0;
        border-radius: 8px 8px 0 0;
        font-size: 0.95em;
    }

    .footer h4 {
        font-size: 0.98em;
    }

    .footer .btn-square {
        width: 28px;
        height: 28px;
        font-size: 0.95em;
    }
}

@media (max-width: 576px) {

    .navbar,
    .sticky-top {
        border-radius: 0;
        padding: 0 2px;
    }

    .container,
    .container-xxl {
        padding-left: 4px;
        padding-right: 4px;
    }

    .mabutt,
    .feature-item,
    .team-item {
        border-radius: 10px !important;
        font-size: 0.93em;
    }

    img,
    .carousel-inner img {
        border-radius: 8px;
    }

    .footer {
        border-radius: 8px 8px 0 0;
    }
}

/* ===== NEW ENHANCED STYLES ===== */

/* Social Media Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon i {
    font-size: 18px;
    color: white !important;
    transition: all 0.3s ease;
}

.facebook-icon {
    background: #1877f3;
}

.twitter-icon {
    background: #1da1f2;
}

.linkedin-icon {
    background: #0077b5;
}

.whatsapp-icon {
    background: #25d366;
}

.youtube-icon {
    background: #ff0000;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.social-icon:hover i {
    color: white !important;
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23bfa76a" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.section-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    font-family: 'Cairo', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-family: 'Tajawal', sans-serif;
}

.service-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Cairo', sans-serif;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-family: 'Tajawal', sans-serif;
}

/* Statistics Section */
.statistics-section {
    background: var(--gradient-secondary);
    color: #fff;
    position: relative;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23fff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Cairo', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    font-family: 'Tajawal', sans-serif;
}

/* Enhanced Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: #fff;
}

/* Enhanced Typography */
body {
    font-family: 'Tajawal', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', sans-serif;
}

/* Enhanced Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Enhanced Cards */
.feature-item {
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Certificates Section */
.certificates-section {
    background: #fff;
    position: relative;
}

.certificate-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 2px solid transparent;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.certificate-card:hover::before {
    opacity: 0.05;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary);
}

.certificate-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.certificate-icon i {
    font-size: 1.5rem;
    color: white;
}

.certificate-card h5 {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.certificate-card p {
    color: #666;
    font-size: 0.9rem;
    font-family: 'Tajawal', sans-serif;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .certificate-card {
        padding: 1.5rem 1rem;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    .social-icon i {
        font-size: 16px;
    }
}

/* Footer Social Icons - New Style */
.footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    margin-right: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer .social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.footer .social-icon:hover::before {
    left: 100%;
}

.footer .social-icon i {
    color: white !important;
    font-size: 18px;
    z-index: 1;
    position: relative;
}

.footer .social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.footer .social-icon.twitter-icon:hover {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.footer .social-icon.facebook-icon:hover {
    background: linear-gradient(135deg, #1877f3, #0d6efd);
}

.footer .social-icon.youtube-icon:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.footer .social-icon.whatsapp-icon:hover {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.footer .social-icon.linkedin-icon:hover {
    background: linear-gradient(135deg, #0077b5, #005885);
}

/* ==== Footer Modern Styles ==== */
.footer-section {
    background: var(--gradient-secondary);
    color: #fff;
    padding: 0;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -2px 24px rgba(191, 167, 106, 0.09);
    margin-top: 32px;
}

.footer-main {
    background: transparent;
    border-radius: 32px 32px 0 0;
}

.footer-logo-img {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(191, 167, 106, 0.13);
    background: #fff;
    padding: 4px;
}

.footer-company-name {
    display: inline-block;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    font-size: 1.5em;
    font-weight: 900;
    color: var(--primary);
    margin: 0 0 0 8px;
    vertical-align: middle;
}

.footer-description {
    font-size: 1.08em;
    color: #ece6d9;
    margin-bottom: 18px;
    margin-top: 8px;
}

.footer-social-icons {
    margin-top: 12px;
}

.footer-title {
    color: var(--primary);
    font-size: 1.18em;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.footer-links-list,
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: #fff;
    display: block;
    margin-bottom: 8px;
    font-size: 1.08em;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
}

.footer-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-contact .contact-info {
    margin-top: 8px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(191, 167, 106, 0.13);
}

.contact-details h6 {
    margin: 0 0 2px 0;
    font-size: 1em;
    color: var(--primary);
    font-weight: 700;
}

.contact-details a,
.contact-details p {
    color: #ece6d9;
    font-size: 1em;
    margin: 0;
    text-decoration: none;
}

.contact-details a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Newsletter */
.footer-newsletter {
    margin: 0 auto;
    max-width: 320px;
}

.newsletter-text {
    color: #fff;
    font-size: 1.08em;
    margin-bottom: 8px;
    font-weight: 700;
}

.newsletter-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(191, 167, 106, 0.10);
}

.newsletter-input {
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 1em;
    flex: 1;
    border-radius: 24px 0 0 24px;
}

.newsletter-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 18px;
    font-size: 1.2em;
    border-radius: 0 24px 24px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-btn:hover {
    background: #8c7a4f;
}

/* Copyright Section */
.copyright-section {
    background: #181818;
    color: #ece6d9;
    padding: 18px 0 8px 0;
    font-size: 1.08em;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 -2px 24px rgba(191, 167, 106, 0.09);
}

.copyright-text {
    margin: 0;
    font-size: 1em;
    color: #ece6d9;
}

.company-name {
    color: var(--primary);
    font-weight: 800;
}

.footer-credits {
    font-size: 1em;
    color: #ece6d9;
}

.designer-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.designer-link:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .footer-section .row>div {
        margin-bottom: 32px;
    }

    .footer-main,
    .footer-section {
        padding: 0 0 24px 0;
    }
}

@media (max-width: 767px) {

    .footer-section,
    .footer-main {
        border-radius: 18px 18px 0 0;
    }

    .footer-logo-img {
        width: 40px;
        height: 40px;
    }

    .footer-company-name {
        font-size: 1.1em;
    }

    .footer-title {
        font-size: 1em;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 18px;
    }

    .newsletter-input,
    .newsletter-btn {
        border-radius: 18px !important;
        width: 100%;
        margin-bottom: 6px;
    }
}

@media (max-width: 600px) {

    .carousel,
    .carousel-inner,
    .carousel-item,
    .carousel-item img {
        margin: 0 !important;
        padding: 0 !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        box-sizing: border-box;
    }
}

.navbar .dropdown-item.active {
    background: transparent !important;
    color: #232323 !important;
}

.footer .footer-links-list li,
.footer .footer-links-list a {
    direction: rtl !important;
    text-align: right !important;
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, #18191b 0%, #232529 100%);
    color: #fff;
    border-radius: 40px;
    margin: 40px 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.stat-item {
    padding: 40px 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    border: 1px solid rgba(191, 167, 106, 0.1);
    height: 100%;
}

.stat-item:hover {
    transform: translateY(-12px) scale(1.05);
    background: rgba(191, 167, 106, 0.05);
    border-color: rgba(191, 167, 106, 0.3);
}

.stat-counter-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.text-gold {
    color: #bfa76a;
}

.stat-number {
    font-size: 3.8rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.plus-sign {
    font-size: 2.2rem;
    color: #bfa76a;
    font-weight: 700;
    margin-top: 5px;
}

.stat-label {
    font-size: 1.25rem;
    color: #d1d1d1;
    margin-top: 15px;
    font-weight: 600;
    text-align: center !important;
}

/* Testimonial Section Redesign */
.testimonial-section {
    padding: 100px 0;
    background: radial-gradient(circle at top right, rgba(191, 167, 106, 0.05) 0%, transparent 70%);
    position: relative;
    height: auto !important;
}

#testimonialCarousel,
#testimonialCarousel .carousel-inner,
#testimonialCarousel .carousel-item {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.testimonial-card {
    background: #fff;
    border-radius: 30px;
    padding: 60px;
    margin: 20px auto;
    max-width: 900px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(191, 167, 106, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(191, 167, 106, 0.12);
}

.quote-decoration {
    position: absolute;
    top: -20px;
    right: 40px;
    font-size: 120px;
    color: rgba(191, 167, 106, 0.1);
    z-index: 1;
    font-family: serif;
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.testimonial-text {
    font-size: 1.6rem;
    color: #333;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 40px;
    font-style: normal;
    text-align: right;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.author-info {
    text-align: right;
    flex: 1;
}

.author-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #232323;
    margin-bottom: 5px;
}

.author-position {
    display: block;
    color: #bfa76a;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 5px;
}

/* Custom Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    gap: 30px;
}

.control-prev,
.control-next {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid #bfa76a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bfa76a;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.control-prev:hover,
.control-next:hover {
    background: #bfa76a;
    color: #fff;
    box-shadow: 0 10px 20px rgba(191, 167, 106, 0.3);
}

.carousel-indicators-custom {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.carousel-indicators-custom li {
    width: 12px;
    height: 12px;
    background: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators-custom li.active {
    background: #bfa76a;
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 30px 20px;
        overflow: visible;
    }

    .testimonial-text {
        font-size: 1.2rem;
    }

    .quote-decoration {
        font-size: 80px;
        top: -10px;
        right: 20px;
    }

    .testimonial-author {
        display: block;
        text-align: center;
    }

    .author-info {
        text-align: center;
        width: 100%;
    }

    .author-position {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }
}

/* --- RayzenSoft Premium FAQ --- */
.faq-section {
    background-color: #f6f6f7;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.faq-section::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(191, 167, 106, 0.05) 0%, transparent 70%);
    z-index: 0;
}

/* --- Premium Unified FAQ Styles --- */
.faq-section {
    background: #fdfdfd;
    position: relative;
    overflow: hidden;
}

.gold-divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #bfa76a, transparent);
    margin: 0 auto;
}

.text-gold {
    color: #bfa76a !important;
    font-weight: 700;
}

.premium-accordion .accordion-item {
    border: 1px solid rgba(191, 167, 106, 0.1) !important;
    background: #fff !important;
    margin-bottom: 20px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s ease;
    overflow: hidden;
}

.premium-accordion .accordion-item:hover {
    border-color: rgba(191, 167, 106, 0.3) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(191, 167, 106, 0.08) !important;
}

.premium-accordion .accordion-button {
    padding: 24px 30px !important;
    background: #fff !important;
    color: #232323 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    /* Unified Bold */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: right !important;
    direction: rtl !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.premium-accordion .accordion-button:not(.collapsed) {
    color: #bfa76a !important;
    background: linear-gradient(to left, rgba(191, 167, 106, 0.03), #fff) !important;
}

.faq-number {
    width: 34px;
    height: 34px;
    background: rgba(191, 167, 106, 0.1);
    color: #bfa76a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.9rem;
    margin-left: 20px !important;
    margin-right: 0 !important;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.premium-accordion .accordion-button:not(.collapsed) .faq-number {
    background: #bfa76a !important;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(191, 167, 106, 0.3) !important;
}

.faq-question {
    flex-grow: 1;
    line-height: 1.4;
}

/* Custom Collapse Icon for BS4 */
.premium-accordion .accordion-button::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: auto !important;
    margin-left: 0 !important;
    transition: transform 0.4s ease;
    font-size: 1.2rem;
    color: #bfa76a;
    background-image: none !important;
    /* Remove BS default */
    width: auto;
    height: auto;
}

.premium-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.premium-accordion .accordion-body {
    padding: 10px 84px 30px 30px !important;
    color: #666 !important;
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    text-align: right !important;
    direction: rtl !important;
    background: #fff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.03) !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .premium-accordion .accordion-button {
        padding: 20px !important;
        font-size: 1.05rem !important;
    }

    .faq-number {
        width: 30px;
        height: 30px;
        margin-left: 15px !important;
        font-size: 0.8rem;
    }

    .premium-accordion .accordion-body {
        padding: 10px 20px 25px !important;
        font-size: 0.95rem !important;
    }
}

/* --- Welcome Modal Premium Styles --- */
.welcome-modal-premium .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(191, 167, 106, 0.2) !important;
}

.welcome-modal-wrapper {
    position: relative;
    padding: 50px 40px;
    background-image: radial-gradient(circle at top right, rgba(191, 167, 106, 0.05) 0%, transparent 40%);
}

.close-welcome-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.close-welcome-btn:hover {
    background: #bfa76a;
    color: #fff;
    transform: rotate(90deg);
}

.welcome-content-top {
    margin-bottom: 40px;
}

.welcome-logo-icon {
    animation: bounceIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.welcome-title {
    font-size: 2rem;
    font-weight: 900;
    color: #232323;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.welcome-options-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.welcome-option-card {
    background: #fff;
    border: 1px solid rgba(191, 167, 106, 0.15);
    padding: 25px 20px;
    border-radius: 20px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.welcome-option-card:hover {
    transform: translateY(-8px);
    border-color: #bfa76a;
    background: linear-gradient(135deg, #fff 0%, rgba(191, 167, 106, 0.02) 100%);
    box-shadow: 0 15px 30px rgba(191, 167, 106, 0.15);
}

.option-icon {
    width: 50px;
    height: 50px;
    background: rgba(191, 167, 106, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #bfa76a;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.welcome-option-card:hover .option-icon {
    background: #bfa76a;
    color: #fff;
    transform: scale(1.1);
}

.option-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #232323;
    line-height: 1.5;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .welcome-modal-wrapper {
        padding: 40px 20px;
    }

    .welcome-options-list {
        grid-template-columns: 1fr;
    }

    .welcome-title {
        font-size: 1.5rem;
    }
}