/* ========================================
   GHAZALL BEAUTY - Custom Brand Styles
   ======================================== */

/* ========================================
   0. SAFARI / iPhone Arabic Text Fix
   ------------------------------------------
   المشكلة: النصوص العربية تظهر مقطعة أو متداخلة
   في متصفح Safari على أجهزة iPhone بسبب:
   1. letter-spacing: يقطع الحروف المشبكة في العربية
   2. word-spacing: يفصل الكلمات بشكل غير طبيعي
   3. عدم وجود text-rendering: optimizeLegibility
   4. عدم وجود -webkit-font-smoothing: antialiased
   5. استخدام أوزان خط غير متوفرة (مثل 800 لخط Aref Ruqaa)
   ======================================== */

/* [Safari Fix] تطبيق خصائص الرندر العربي على جميع العناصر */
*,
*::before,
*::after {
    text-rendering: optimizeLegibility; /* يضمن رسم الحروف المشبكة بشكل صحيح */
    -webkit-font-smoothing: antialiased; /* يمنع التشويش على شاشات Retina */
    -moz-osx-font-smoothing: grayscale;
}

/* [Safari Fix] منع أي letter-spacing أو word-spacing على العناصر العربية */
/* هذه هي القاعدة الأهم - letter-spacing هو المسبب الأول لتقطيع الحروف في سفاري */
[lang="ar"] *,
[dir="rtl"] * {
    letter-spacing: 0 !important;
    word-spacing: normal !important;
}

/* ========================================
   1. CSS Variables - Color System
   ======================================== */
:root {
    /* Primary Colors */
    --color-primary: #b76e79; /* Rose Gold - Main brand color */
    --color-primary-dark: #9f5a64; /* Darker shade for hover states */
    --color-primary-light: #c98a94; /* Lighter shade for backgrounds */

    /* Bootstrap Override */
    --bs-primary: #b76e79;
    --bs-secondary: #f5e1d2;
    --bs-dark: #2d2d2d;
    --bs-light: #faf9f6;

    /* Secondary Colors */
    --color-secondary: #f5e1d2; /* Soft Nude - Cards & borders */
    --color-secondary-dark: #e8d0be; /* Darker nude for contrast */

    /* Background Colors */
    --color-background: #faf9f6; /* Off-White - Main background */
    --color-background-alt: #ffffff; /* Pure white for cards */

    /* Typography Colors */
    --color-text-primary: #2d2d2d; /* Charcoal - Main text */
    --color-text-secondary: #5a5a5a; /* Gray - Secondary text */
    --color-text-light: #8a8a8a; /* Light gray - Muted text */

    /* Accent Colors */
    --color-accent: #d8a7b1; /* Dusty Pink - Hover & alerts */
    --color-accent-light: #e5c0c9; /* Light dusty pink */

    /* Utility Colors */
    --color-success: #7fb069; /* Soft green for success */
    --color-warning: #f4a261; /* Soft orange for warnings */
    --color-error: #e76f51; /* Soft red for errors */
    --color-info: #a8dadc; /* Soft blue for info */

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(183, 110, 121, 0.08);
    --shadow-md: 0 4px 16px rgba(183, 110, 121, 0.12);
    --shadow-lg: 0 8px 24px rgba(183, 110, 121, 0.16);
    --shadow-hover: 0 12px 32px rgba(183, 110, 121, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Force override any lingering blue lines from style.css */
.navbar .navbar-nav .nav-item::before,
.navbar .navbar-nav .nav-item::after {
    display: none !important; /* Hide the template's default blue lines */
}

html {
    background-color: var(--color-background);
    min-height: 100%;
    position: relative;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Global Font Override - ensures ALL elements use Almarai by default */
*:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.bi):not([class^="bi-"]) {
    font-family: "Almarai", "Roboto", "Open Sans", sans-serif !important;
}

body {
    background-color: transparent !important;
    color: var(--color-text-primary);
    font-family: "Almarai", "Roboto", "Open Sans", sans-serif !important;
    font-weight: 400;
    line-height: 1.8;
    transition: background-color var(--transition-normal);
    position: relative;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100%;
}

p,
span,
a,
li,
td,
th,
label,
input,
textarea,
select,
button,
.text,
.description,
.btn,
.nav-link,
.dropdown-item,
.form-control {
    font-family: "Almarai", "Roboto", sans-serif !important;
    font-weight: 400;
    line-height: 1.8;
}

/* Immersive Top Background System - New Implementation */
.luxury-global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("../img/settings/about/QSOaZ3Mj0WrB784nTqPA.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    z-index: -999;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    pointer-events: none;
}

.luxury-global-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0) 80%,
        var(--color-background) 100%
    );
    z-index: -998;
    pointer-events: none;
}

/* ========================================
   3. Typography Enhancements
   ------------------------------------------
   [Safari Fix] تم حذف letter-spacing من العناوين
   لأنه يقطع الحروف المشبكة في اللغة العربية.
   تم ضبط line-height بين 1.5 - 1.6 لمنع قطع
   النقاط والهمزات في خط Aref Ruqaa.
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6,
.heading,
.title,
.section-title,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.editorial-title,
.editorial-title-white,
.editorial-subtitle {
    font-family: "Aref Ruqaa", serif !important;
    color: var(--color-text-primary);
    /* [Feminine Touch] وزن 700 ناعم للعناوين - لا نستخدم 800 أو 900 الحاد */
    font-weight: 700;
    /* [Safari Fix] إزالة letter-spacing تماماً - المسبب الأول للتقطيع */
    letter-spacing: 0;
    /* [Safari Fix] line-height 1.55 يمنع قطع النقاط والهمزات العربية */
    line-height: 1.55;
    /* [Safari Fix] ضمان رندر سليم للحروف المشبكة */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* [Safari Fix] عدم إضافة أي تباعد */
    word-spacing: normal;
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-text-secondary) !important;
}

/* ========================================
   4. Button Styles - Rose Gold Theme
   ======================================== */
.btn-primary {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    ) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        var(--color-primary-dark) 0%,
        #8b4a54 100%
    ) !important;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Back to Top Customization */
.back-to-top {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    ) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: var(--shadow-md) !important;
}

.back-to-top:hover {
    background: linear-gradient(
        135deg,
        var(--color-primary-dark) 0%,
        #8b4a54 100%
    ) !important;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover) !important;
}

.btn-secondary {
    background-color: var(--color-secondary) !important;
    border: 2px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    transition: all var(--transition-normal);
    border-radius: var(--radius-md);
}

.btn-secondary:hover {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background-color: var(--color-background-alt) !important;
    border: 1px solid var(--color-secondary) !important;
    color: var(--color-primary) !important;
    transition: all var(--transition-normal);
}

.btn-light:hover {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-2px);
}

/* ========================================
   5. Luxury Navbar Dropdowns
   ======================================== */
.luxury-dropdown {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(183, 110, 121, 0.1) !important;
    border-radius: 18px !important;
    padding: 1rem !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
    min-width: 220px;
}

.luxury-dropdown .dropdown-item {
    margin: 4px 0;
    padding: 10px 18px !important;
    border-radius: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.luxury-dropdown .dropdown-item i {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-right: 10px;
}

[dir="rtl"] .luxury-dropdown .dropdown-item i {
    margin-right: 0;
    margin-left: 10px;
}

.luxury-dropdown .dropdown-item:hover,
.luxury-dropdown .dropdown-item.active {
    background: rgba(183, 110, 121, 0.08) !important;
    color: var(--color-primary) !important;
}

.luxury-tabs-group .dropdown-toggle::after {
    vertical-align: middle;
    border-top: 0.4em solid var(--color-primary);
}

.luxury-tab {
    position: relative;
    padding: 10px 20px !important;
    margin: 0 5px;
    border-radius: 50px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.luxury-tab:hover {
    background: rgba(183, 110, 121, 0.05);
    color: var(--color-primary) !important;
}

.luxury-tab.active {
    background: rgba(183, 110, 121, 0.1) !important;
    color: var(--color-primary) !important;
    font-weight: 700;
}

.luxury-tab.active::after {
    display: none !important; /* Remove any default underline if exists */
}

/* Rounded Pills */
.rounded-pill {
    border-radius: var(--radius-full) !important;
}

/* ========================================
   5. Card Styles - Elegant & Soft
   ======================================== */
.card,
.service-item,
.project-item {
    background-color: var(--color-background-alt);
    border: 1px solid var(--color-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover,
.service-item:hover,
.project-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px) scale(1.02);
    border-color: var(--color-accent);
}

.card img,
.service-item img,
.project-item img {
    transition: transform var(--transition-slow);
}

.card:hover img,
.service-item:hover img,
.project-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   6. Navbar Customization
   ======================================== */
.navbar {
    background-color: var(--color-background-alt) !important;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-radius: var(--radius-xl) !important;
    overflow: visible;
}

.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important;
    transition: all 0.3s ease;
}

/* Ensure the container inside sticky-top doesn't disappear */
.sticky-top .container {
    transition: all 0.3s ease;
}

/* Ensure dropdown menus appear above all content */
.navbar .dropdown-menu {
    z-index: 1060 !important;
}

.navbar-brand {
    color: var(--color-primary) !important;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--color-primary-dark) !important;
    transform: scale(1.05);
}

.navbar-brand img {
    transition: transform var(--transition-fast);
}

.navbar-brand:hover img {
    transform: scale(1.1) rotate(5deg);
}

.nav-link {
    color: var(--color-text-primary) !important;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-accent)
    );
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
}

.navbar-toggler {
    padding: 8px 12px;
    background: var(--color-primary) !important;
    border: none !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(183, 110, 121, 0.2);
}

.navbar-toggler:hover {
    transform: scale(1.05);
    background: var(--color-primary-dark) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ========================================
   6.1 Hero Carousel Fixes
   ======================================== */
.header-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.header-carousel .header-carousel-item {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .header-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-carousel-item-img-1,
.header-carousel-item-img-2,
.header-carousel-item-img-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-carousel .carousel-caption {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .carousel-caption-inner {
    max-width: 800px;
    padding: 2rem;
}

/* Owl Carousel Overrides */
.owl-carousel .owl-item img {
    display: block;
    width: 100%;
    height: auto;
}

.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

@media (max-width: 768px) {
    .header-carousel .header-carousel-item {
        min-height: 400px;
    }

    .header-carousel .carousel-caption-inner {
        padding: 1rem;
    }
}

/* ========================================
   7. Topbar Customization
   ======================================== */
.topbar {
    background: transparent !important;
    position: relative;
    z-index: 5;
}

.topbar a {
    color: #2d2d2d !important;
    transition: all var(--transition-fast);
}

.topbar a:hover {
    color: #b76e79 !important;
    transform: translateX(2px);
}

/* ========================================
   8. Footer Customization
   ======================================== */
.footer {
    background: radial-gradient(
        circle at center,
        rgb(146 43 58 / 76%) 0%,
        rgb(0 0 0 / 89%) 100%
    ) !important;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

.footer h4 {
    color: #ffffff !important;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ffffff;
}

@media (max-width: 991px) {
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    /* Navbar padding and center fix for small screens */
    .navbar {
        padding-left: 15px !important;
        padding-right: 15px !important;
        position: relative !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .logo-img {
        height: 55px !important;
        margin-inline-end: 0 !important;
        position: relative;
        z-index: 101;
    }
    /* Mobile auth button centering handled inline */
}

.footer-item a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.footer-item a:hover {
    color: #ffffff !important;
    padding-left: 8px;
}

.copyright {
    background: #2d2d2d !important;
}

.copyright a {
    color: #ffffff !important;
    transition: all var(--transition-fast);
}

.copyright a:hover {
    color: var(--color-accent) !important;
}

/* ========================================
   9. Breadcrumb Customization
   ======================================== */
.bg-breadcrumb {
    background:
        linear-gradient(
            135deg,
            rgba(183, 110, 121, 0.9) 0%,
            rgba(159, 90, 100, 0.9) 100%
        ),
        url(../img/carousel-1.jpg) !important;
    background-position: center center !important;
    background-size: cover !important;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--color-secondary) !important;
}

/* ========================================
   10. Form Elements - Elegant Style
   ======================================== */
.form-control,
.form-select {
    border: 2px solid var(--color-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    background-color: var(--color-background-alt);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(183, 110, 121, 0.15);
    background-color: #ffffff;
}

.form-floating > label {
    color: var(--color-text-secondary);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--color-primary);
}

/* ========================================
   11. Loading Spinner - Rose Gold
   ======================================== */
.spinner-border {
    border-color: var(--color-secondary);
    border-right-color: var(--color-primary);
}

#spinner {
    background-color: rgba(250, 249, 246, 0.95);
}

#spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* ========================================
   12. Progress Bar - Smooth Animation
   ======================================== */
.progress {
    background-color: var(--color-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        var(--color-accent) 100%
    );
    transition: width var(--transition-slow);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ========================================
   13. Smooth Animations
   ======================================== */
.fadeIn {
    animation: fadeIn var(--transition-slow) ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slideInLeft {
    animation: slideInLeft var(--transition-slow) ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slideInRight {
    animation: slideInRight var(--transition-slow) ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   14. Hover Effects - Elegant
   ======================================== */
.hover-lift {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.hover-glow {
    transition: all var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(183, 110, 121, 0.3);
}

/* ========================================
   15. Background Patterns
   ======================================== */
.bg-light {
    background-color: var(--color-background) !important;
}

.bg-primary {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    ) !important;
}

.bg-secondary {
    background-color: var(--color-secondary) !important;
}

/* ========================================
   16. Icon Styles
   ======================================== */
.icon-primary {
    color: var(--color-primary);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-accent) 100%
    );
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.icon-wrapper:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* ========================================
   17. Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    :root {
        --shadow-hover: 0 8px 20px rgba(183, 110, 121, 0.15);
    }

    .card:hover,
    .service-item:hover,
    .project-item:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

/* ========================================
   18. Utility Classes
   ======================================== */
.text-rose-gold {
    color: var(--color-primary) !important;
}

.bg-rose-gold {
    background-color: var(--color-primary) !important;
}

.border-rose-gold {
    border-color: var(--color-primary) !important;
}

.text-nude {
    color: var(--color-secondary) !important;
}

.bg-nude {
    background-color: var(--color-secondary) !important;
}

/* ========================================
   19. Smooth Scroll
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
   20. Selection Color
   ======================================== */
::selection {
    background-color: var(--color-primary);
    color: #ffffff;
}

::-moz-selection {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* ========================================
   21. Avant-Garde Luxury Theme Extension
   ======================================== */

/* [تنظيف] تم حذف استيراد Playfair Display لأنه غير مستخدم في الموقع العربي */
/* الخطوط المعتمدة: Aref Ruqaa (عناوين) + Almarai (نصوص) */

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5 {
    font-family: "Aref Ruqaa", serif !important;
    /* [Safari Fix] تأكيد إزالة letter-spacing هنا أيضاً */
    letter-spacing: 0 !important;
    line-height: 1.55;
}

/* Page Header Luxury (Mini Hero) */
.page-header-luxury {
    position: relative;
    height: 25vh;
    min-height: 200px;
    background: transparent !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 0;
}

/* Cinematic Background Layers Clipping */
.hero-bg-master {
    display: none; /* Local background hidden to show global immersive background */
}

.hero-overlay {
    display: none;
}

/* Rotating Light Leak Effect */
.light-leak {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent,
        rgba(183, 110, 121, 0.05),
        transparent
    );
    animation: rotateLeak 20s linear infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes rotateLeak {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Luxury Titles */
/* [Safari Fix] تم تغيير font-weight من 800 إلى 700 لأن Aref Ruqaa يدعم 400 و 700 فقط */
/* [Safari Fix] تم حذف letter-spacing و text-transform لأنهما يقطعان الحروف العربية */
.hero-title-small {
    font-family: "Aref Ruqaa", serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700; /* أقصى وزن متوفر في Aref Ruqaa */
    color: #2d2d2d;
    line-height: 1.4; /* [Safari Fix] ارتفاع سطر مناسب للعربية */
    margin-bottom: 1.5rem;
    /* text-transform محذوف - لا يعمل مع العربية */
    letter-spacing: 0; /* [Safari Fix] حذف letter-spacing */
    position: relative;
    z-index: 10;
}

/* Journey Label */
/* [Safari Fix] تم حذف letter-spacing و text-transform */
.journey-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1.5rem;
    background: rgba(183, 110, 121, 0.05);
    border: 1px solid rgba(183, 110, 121, 0.4);
    color: #b76e79;
    font-family: "Aref Ruqaa", serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0; /* [Safari Fix] حذف letter-spacing */
    /* text-transform محذوف - لا يعمل مع العربية */
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.journey-label::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: labelShine 3s infinite;
}

@keyframes labelShine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* 3D Luxury Button (Global) */
/* [Safari Fix] تم حذف letter-spacing و text-transform */
.btn-3d-luxury {
    position: relative;
    padding: 1.2rem 4rem;
    background: #b76e79;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700; /* [Feminine Touch] وزن ناعم بدلاً من 800 الحاد */
    /* text-transform محذوف - لا يعمل مع العربية */
    letter-spacing: 0; /* [Safari Fix] حذف letter-spacing */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow:
        0 8px 0 #8e4f58,
        0 15px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: inline-block;
    transform-style: preserve-3d;
    z-index: 10;
}

.btn-3d-luxury:hover {
    transform: translateY(2px);
    box-shadow:
        0 6px 0 #8e4f58,
        0 10px 20px rgba(0, 0, 0, 0.3);
    background: #c27e88;
    color: #ffffff;
}

.btn-3d-luxury:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 #8e4f58;
}

/* [Safari Fix] تم حذف letter-spacing و text-transform من عناصر Breadcrumb */
.breadcrumb-luxury .breadcrumb-item a {
    color: #555555 !important;
    /* text-transform محذوف - لا يعمل مع العربية */
    font-size: 0.9rem;
    letter-spacing: 0; /* [Safari Fix] */
    font-weight: 600;
}

.breadcrumb-luxury .breadcrumb-item a:hover {
    color: #b76e79 !important;
}

.breadcrumb-luxury .breadcrumb-item.active {
    color: #b76e79 !important;
    font-weight: 700;
}

.breadcrumb-luxury .breadcrumb-item + .breadcrumb-item::before {
    color: #2d2d2d;
}

/* Luxury Content Cards */
.card-luxury {
    background: #ffffff;
    border: 1px solid rgba(183, 110, 121, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    overflow: hidden;
}

.card-luxury:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(183, 110, 121, 0.15);
    border-color: #b76e79;
}

.section-luxury-bg {
    background-color: transparent;
}

/* ========================================
   22. Mobile Menu Fixes
   ======================================== */
@media (max-width: 1200px) {
    /* Force white text on ALL children of active menu items in mobile */

    /* 1. Top Level Items */
    #main-menu-navigation > li.nav-item.active > a,
    #main-menu-navigation > li.nav-item.active > a *,
    #main-menu-navigation > li.nav-item.sidebar-group-active > a,
    #main-menu-navigation > li.nav-item.sidebar-group-active > a * {
        color: #ffffff !important;
    }

    /* 2. Dropdown/Submenu Items */
    #main-menu-navigation .dropdown-menu li.active > a,
    #main-menu-navigation .dropdown-menu li.active > a * {
        color: #ffffff !important;
    }

    /* 3. Specific override for open dropdowns backgrounds if needed */
    #main-menu-navigation li.open > a {
        color: #ffffff !important;
    }

    /* 4. Fix for the specific 'light' colored item in the screenshot if it uses specific class */
    .header-navbar .navbar-container ul.nav li.active > a.nav-link {
        color: #ffffff !important;
    }
}

/* ========================================
   23. Advanced Premium Animations
   ======================================== */

/* --- 1. Continuous Levitation (For Floating Cards) --- */
@keyframes levitate {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.anim-levitate {
    animation: levitate 4s ease-in-out infinite;
}

.anim-levitate-delay-1 {
    animation-delay: 0.5s;
}
.anim-levitate-delay-2 {
    animation-delay: 1s;
}

/* --- 2. Soft Scale Pulse (For Hero Images) --- */
@keyframes softPulse {
    0% {
        transform: scale(1);
        filter: brightness(100%);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(105%);
    }
    100% {
        transform: scale(1);
        filter: brightness(100%);
    }
}

.anim-soft-pulse {
    animation: softPulse 6s ease-in-out infinite;
}

/* --- 3. Text Reveal (Slide Up + Blur + Skew) for AOS --- */
/* Customizing AOS default fade-up for a richer effect */
[data-aos="premium-fade-up"] {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
    transition-property: transform, opacity, filter;
}

[data-aos="premium-fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* --- 4. Elastic Zoom In --- */
[data-aos="premium-zoom-in"] {
    opacity: 0;
    transform: scale(0.8);
    transition-property: transform, opacity;
    transition-timing-function: cubic-bezier(
        0.175,
        0.885,
        0.32,
        1.275
    ); /* Elastic bounce */
}

[data-aos="premium-zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* --- 5. Glassmorphism for Cards (Premium Look) --- */
.floating-cards .course-card {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.4s ease;
}

.floating-cards .course-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(183, 110, 121, 0.2);
    border-color: #b76e79;
}

/* ========================================
   24. Guaranteed Hero Animations (Load Immediately)
   ======================================== */

.hero-animate-fade-in-up {
    animation: heroFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0; /* Start hidden to prevent flash */
    will-change: transform, opacity;
}

.hero-animate-pop-in {
    animation: heroPopIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes heroFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Stagger Delays */
.delay-100 {
    animation-delay: 0.1s;
}
.delay-200 {
    animation-delay: 0.2s;
}
.delay-300 {
    animation-delay: 0.3s;
}
.delay-400 {
    animation-delay: 0.4s;
}
.delay-500 {
    animation-delay: 0.5s;
}
.delay-600 {
    animation-delay: 0.6s;
}
.delay-800 {
    animation-delay: 0.8s;
}
.delay-1000 {
    animation-delay: 1s;
}

/* Ensure cards are visible for interaction if animation fails (safety) */
@media (prefers-reduced-motion: reduce) {
    .hero-animate-fade-in-up,
    .hero-animate-pop-in {
        animation: none;
        opacity: 1;
    }
}
