/* 1. استيراد خط Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* --- 1. الألوان الأساسية لشركة Hold Time Foods --- */
:root {
    --primary-gold: #CFA935; /* اللون الذهبي المستوحى من الشعار */
    --primary-dark: #111111; /* الأسود الداكن */
    --text-dark: #333333;    /* الرمادي الداكن للنصوص العادية */
    --bg-light: #F8F9FA;     /* خلفية رمادية فاتحة جداً للمقاطع */
}

body { 
    font-family: 'Cairo', sans-serif; 
    direction: rtl; 
    text-align: right; 
    background-color: #fcfcfc; 
    color: #333;
    margin: 0;
	padding-top: 100px;
}

/* --- 2. الهيدر (الناف بار) --- */
.main-nav { 
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; 
    border-bottom: 3px solid var(--primary-gold); /* خط ذهبي سفلي يربط الهيدر بالشعار */
    padding: 10px 0;
}

.main-nav .nav-link { 
    color: var(--primary-dark) !important; 
    font-weight: 700; 
    transition: all 0.3s ease; 
    padding: 10px 15px !important;
    font-size: 15px;
}

.main-nav .nav-link i {
    color: var(--primary-gold) !important; /* الأيقونات باللون الذهبي */
    transition: all 0.3s ease;
}

/* حالة المرور (Hover) */
.main-nav .nav-link:hover, 
.main-nav .nav-link:focus,
.main-nav .nav-item.active .nav-link { 
    color: var(--primary-gold) !important; 
}

/* --- 3. أزرار التواصل والدعوة لاتخاذ إجراء (Call to Action) --- */
.auth-btns .btn-primary {
    background-color: var(--primary-gold);
    color: var(--primary-dark) !important; /* نص أسود على زر ذهبي لتباين ممتاز */
    border: none;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(207, 169, 53, 0.3);
    transition: all 0.3s ease;
}

.auth-btns .btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--primary-gold) !important; /* انعكاس الألوان عند المرور */
    transform: translateY(-2px);
}

.auth-btns .btn-primary i {
    color: inherit; /* لضمان وراثة لون الأيقونة من الزر */
}

/* --- 5. تحسين القوائم المنسدلة للموبايل --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #ffffff !important;
        border-top: 2px solid var(--primary-gold);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .navbar-nav .nav-link {
        color: var(--primary-dark) !important;
        border-bottom: 1px solid #f1f1f1;
    }
    .navbar-collapse .dropdown-menu {
        background-color: var(--bg-light) !important;
        border: none !important;
        border-right: 2px solid var(--primary-gold) !important; /* تمييز القائمة الفرعية */
    }
    .navbar-collapse .dropdown-item {
        color: var(--text-dark) !important;
    }
}

/* تنسيق حجم اللوجو في الهيدر */
.site-logo {
    max-height: 55px;    /* يمكنك زيادة أو تقليل هذا الرقم حسب رغبتك */
    width: auto;         /* يحافظ على أبعاد الصورة الصحيحة */
    object-fit: contain; /* يضمن عدم تمدد الصورة بشكل مشوه */
    transition: all 0.3s ease; /* إضافة حركة ناعمة عند التحميل */
}

/* ضبط إضافي للهواتف المحمولة */
@media (max-width: 768px) {
    .site-logo {
        max-height: 45px; /* تصغير اللوجو قليلاً في الشاشات الصغيرة */
    }
}

/* --- ضبط محاذاة القائمة في الجوال --- */
@media (max-width: 991px) {
    
    .navbar-nav {
        text-align: right !important; /* محاذاة حاوية القائمة لليمين */
        padding-right: 0; 
    }

    .navbar-nav .nav-item {
        width: 100%; /* جعل العنصر يأخذ كامل العرض لضمان المحاذاة */
    }

    .navbar-nav .nav-link {
        display: flex !important; /* استخدام Flex لترتيب الأيقونة والنص */
        align-items: center;
        justify-content: flex-start; /* البدء من جهة اليمين (في وضع RTL) */
        text-align: right !important;
        padding: 12px 20px !important; /* إضافة مسافة داخلية مريحة */
        color: var(--primary-dark) !important;
    }

    /* ضبط اتجاه الأيقونات داخل الروابط */
    .navbar-nav .nav-link i {
        margin-left: 10px; /* مسافة بين الأيقونة والنص من جهة اليسار */
        margin-right: 0 !important;
        width: 20px;
        text-align: center;
    }

    /* محاذاة القائمة المنسدلة الفرعية في الجوال */
    .navbar-collapse .dropdown-menu {
        text-align: right !important;
        border-right: 3px solid var(--primary-gold) !important; /* تمييز القائمة الفرعية بخط ذهبي */
        margin-right: 15px; /* إزاحة بسيطة لليمين لتمييزها عن القائمة الأساسية */
        background-color: #f9f9f9 !important;
    }
}

/* ضبط محاذاة القائمة المنسدلة جهة اليمين */
.dropdown-menu {
    text-align: right !important; /* محاذاة النص داخل الحاوية */
    right: 0; /* ضمان بدء القائمة من جهة اليمين */
    left: auto !important;
}

.dropdown-item {
    display: flex; /* استخدام الفليكس لترتيب الأيقونة والنص */
    align-items: center;
    justify-content: flex-start; /* البدء من اليمين في وضع RTL */
    padding: 0.5rem 1.5rem;
    text-align: right !important;
}

/* ضبط المسافة بين الأيقونة والنص في القائمة المنسدلة */
.dropdown-item i {
    margin-left: 10px !important; /* مسافة على يسار الأيقونة لتبعد عن النص */
    margin-right: 0 !important;   /* إلغاء أي مسافة جهة اليمين */
    width: 20px; /* توحيد عرض الأيقونات لتنسيق النصوص عمودياً */
    text-align: center;
}
/* ==========================================================================
   6. الهيرو سلايدر (Hero Slider) - Hold Time Foods
   ========================================================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    /* بما أننا نستخدم padding-top: 100px في الـ body، لا نحتاج لمارجن هنا */
    margin-top: 0; 
}

/* جعل الشريحة بالكامل قابلة للضغط */
.slider-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
}

.slider-link:hover h1 {
    color: var(--primary-gold) !important;
    transition: color 0.3s ease;
}

.slider-bg {
    position: relative;
    height: 75vh;
    min-height: 500px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* تدرج لوني داكن من الأسفل للأعلى (لإظهار تفاصيل الصورة في الأعلى ووضوح النص بالأسفل) */
.slider-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.5) 40%, rgba(17, 17, 17, 0.0) 100%);
    z-index: 1;
}

.slider-bg .container {
    position: relative;
    z-index: 2;
}

/* تنسيق المؤشرات (الشرطات) السفلية */
.custom-slider-indicators {
    bottom: 30px;
    z-index: 15;
    margin-bottom: 0;
    justify-content: center;
}

.custom-slider-indicators li {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 4px;
}

.custom-slider-indicators li.active {
    width: 50px;
    background-color: var(--primary-gold) !important; /* اللون الذهبي للشعار */
}

/* التجاوب مع الجوال والأجهزة اللوحية (Responsive) */
@media (max-width: 991px) {
    .slider-bg {
        height: 60vh;
        min-height: 450px;
    }
    .hero-slider h1.display-4 {
        font-size: 2.2rem !important;
        line-height: 1.4;
    }
}

@media (max-width: 767px) {
    .slider-bg {
        height: 55vh;
        min-height: 400px;
    }
    /* رفع النص قليلاً عن المؤشرات في الجوال */
    .slider-bg .row {
        padding-bottom: 2rem !important; 
    }
    .hero-slider h1.display-4 {
        font-size: 1.6rem !important;
    }
    .hero-slider .lead {
        font-size: 1rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .custom-slider-indicators {
        bottom: 15px;
    }
    .custom-slider-indicators li {
        width: 20px;
    }
    .custom-slider-indicators li.active {
        width: 35px;
    }
}

/* ==========================================================================
   7. تعديل ألوان البطاقات والأقسام (Home Page)
   ========================================================================== */
.title-line {
    background-color: var(--primary-gold) !important;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(207, 169, 53, 0.15) !important; /* ظل ذهبي خفيف */
}

/* خلفيات الأيقونات بالألوان الجديدة */
.bg-light-gold { background-color: rgba(207, 169, 53, 0.1); }
.text-gold { color: var(--primary-gold) !important; }

/* أزرار مخصصة للهوية */
.btn-outline-gold {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    font-weight: 700;
}
.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    color: var(--primary-dark) !important;
}

.badge-gold {
    background-color: var(--primary-gold);
    color: var(--primary-dark);
    font-weight: 700;
}

/* حاوية عنوان السلايدر - التمركز أعلى مؤشرات التنقل */
.slider-title-wrapper {
    position: absolute;
    bottom: 75px; /* موضع مناسب أعلى أزرار التنقل */
    left: 10%;
    right: 10%;
    text-align: center;
    z-index: 10;
}

.slider-single-line {
    font-size: 2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9); /* ظل قوي لبروز الخط الذهبي والأبيض */
}

/* تجاوب العنوان مع الشاشات اللوحية والجوال لضمان بقائه في سطر واحد */
@media (max-width: 991px) {
.slider-title-wrapper {
        bottom: 65px;
        left: 5%;
        right: 5%;
    }
    .slider-single-line {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
.slider-title-wrapper {
        bottom: 55px;
    }
    .slider-single-line {
        font-size: 1.25rem; /* تصغير الخط ليتسع لأكبر قدر من العنوان في الجوال */
    }
}

/* ==========================================================================
   8. صفحة الأقسام والأخبار (Category & News Pages)
   ========================================================================== */

.bg-gold { background-color: var(--primary-gold) !important; }

/* أزرار الهوية الجديدة الصلبة */
.btn-gold { 
    background-color: var(--primary-gold); 
    color: var(--primary-dark) !important; 
    border: none; 
    font-weight: 700; 
    transition: all 0.3s ease;
}
.btn-gold:hover { 
    background-color: var(--primary-dark); 
    color: var(--primary-gold) !important; 
    transform: translateY(-2px);
}

/* مربع التاريخ فوق الصورة */
.date-badge {
    background-color: var(--primary-dark) !important;
    color: #ffffff !important;
    border-bottom: 3px solid var(--primary-gold);
    transition: all 0.3s ease;
}
.date-badge .day-name { 
    color: var(--primary-gold);
}

/* تأثيرات كروت الأخبار/المنتجات */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(207, 169, 53, 0.15) !important;
    border-bottom: 3px solid var(--primary-gold);
}
.news-card:hover .card-title {
    color: var(--primary-gold) !important;
    transition: color 0.3s ease;
}

/* تخصيص حقل البحث */
.search-form .form-control:focus {
    box-shadow: none;
    border: 1px solid var(--primary-gold) !important;
}

/* تخصيص ألوان أرقام الصفحات (Pagination) */
.pagination .page-item.active .page-link {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-dark);
    font-weight: bold;
}
.pagination .page-link {
    color: var(--primary-dark);
}
.pagination .page-link:hover {
    color: var(--primary-gold);
    background-color: var(--primary-dark);
}

/* ==========================================================================
   9. تفاصيل الصفحات، الأخبار، واتصل بنا (Details & Contact Pages)
   ========================================================================== */

/* تخصيص الحدود الجانبية للمرفقات والعناوين */
.border-right-gold {
    border-right: 5px solid var(--primary-gold) !important;
}

/* تنسيق الأيقونات الدائرية في صفحة اتصل بنا */
.icon-circle-gold {
    background-color: rgba(207, 169, 53, 0.1) !important;
    color: var(--primary-gold) !important;
    transition: all 0.3s ease;
}
.contact-item:hover .icon-circle-gold {
    background-color: var(--primary-gold) !important;
    color: var(--primary-dark) !important;
    transform: scale(1.1);
}

/* تنسيق روابط التواصل عند المرور عليها */
.hover-gold:hover {
    color: var(--primary-gold) !important;
    transition: color 0.3s ease;
}

/* تخصيص حقول الإدخال (Inputs) في نموذج الاتصال عند التحديد (Focus) */
.needs-validation .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(207, 169, 53, 0.25) !important;
    border-color: var(--primary-gold) !important;
}

/* تنسيق خاص للروابط داخل محتوى الأخبار والصفحات */
.content-text a, .content-body a {
    color: var(--primary-gold);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-gold);
}
.content-text a:hover, .content-body a:hover {
    color: var(--primary-dark);
    border-bottom-style: solid;
}
/* ضبط المسافات في قنوات الاتصال */

/* 1. صفحة اتصل بنا (Contact View) */
.contact-item .icon-circle-gold {
    margin-left: 15px !important; /* مسافة بين الدائرة الذهبية والنص من جهة اليمين */
}

.contact-item .contact-details {
    text-align: right; /* ضمان محاذاة النص لليمين */
}
/* ==========================================================================
   10. خريطة جوجل (Google Maps) في صفحة اتصل بنا
   ========================================================================== */
.map-container-wrapper {
    border-color: rgba(207, 169, 53, 0.5) !important; /* إطار ذهبي خفيف */
}

.responsive-map {
    position: relative;
    padding-bottom: 35%; /* نسبة العرض إلى الارتفاع في الشاشات الكبيرة */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.responsive-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* التجاوب مع الأجهزة اللوحية والجوال */
@media (max-width: 991px) {
    .responsive-map {
        padding-bottom: 50%; /* زيادة الارتفاع في التابلت */
    }
}

@media (max-width: 767px) {
    .responsive-map {
        padding-bottom: 75%; /* زيادة الارتفاع في الجوال لتكون الخريطة واضحة للمس */
    }
}
/* ألوان وسائل التواصل الاجتماعي */
.btn-facebook { background: #3b5998; color: #fff !important; }
.btn-whatsapp { background: #25d366; color: #fff !important; }
.btn-x { background: #000000; color: #fff !important; }
.btn-telegram { background: #0088cc; color: #fff !important; }

/* ألوان إضافية لوسائل التواصل الاجتماعي */
.btn-linkedin { 
    background: #0077b5 !important; 
    color: #fff !important; 
}

.btn-pinterest { 
    background: #bd081c !important; /* خلفية حمراء */
    color: #fff !important; /* لون الخط والأيقونة أبيض */
}

/* تأثير المرور (Hover) */
.btn-linkedin:hover, .btn-pinterest:hover {
    opacity: 0.9;
    color: #fff !important;
}

/* ==========================================================================
   11. أيقونة واتس آب العائمة (Floating WhatsApp)
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px; /* الموضع أسفل يسار الصفحة كما طلبت */
    background-color: #25d366; /* لون واتس آب الرسمي */
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

/* تأثير النبض والجذب */
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
}

/* التجاوب مع الجوال */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 25px;
    }
}

/* أيقونات السوشيال ميديا (مستديرة) */
    .light-footer .social-links .social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: #ffffff;
        border: 1px solid #dee2e6;
        color: var(--primary-dark) !important;
        border-radius: 50%; /* هذا السطر يضمن أن تكون الأيقونة دائرية 100% */
        margin-left: 10px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    /* ألوان المنصات عند المرور عليها (Hover) */
    /* فيسبوك */
    .light-footer .social-links .social-icon.fb-icon:hover {
        background-color: #1877F2 !important;
        border-color: #1877F2 !important;
        color: #ffffff !important;
        transform: translateY(-3px);
    }
    /* يوتيوب */
    .light-footer .social-links .social-icon.yt-icon:hover {
        background-color: #FF0000 !important;
        border-color: #FF0000 !important;
        color: #ffffff !important;
        transform: translateY(-3px);
    }
    /* تويتر / منصة X */
    .light-footer .social-links .social-icon.tw-icon:hover {
        background-color: #000000 !important;
        border-color: #000000 !important;
        color: #ffffff !important;
        transform: translateY(-3px);
    }
    /* لينكد إن */
    .light-footer .social-links .social-icon.in-icon:hover {
        background-color: #0A66C2 !important;
        border-color: #0A66C2 !important;
        color: #ffffff !important;
        transform: translateY(-3px);
    }
    /* بينترست */
    .light-footer .social-links .social-icon.pi-icon:hover {
        background-color: #E60023 !important;
        border-color: #E60023 !important;
        color: #ffffff !important;
        transform: translateY(-3px);
    }
    /* تليجرام */
    .light-footer .social-links .social-icon.tg-icon:hover {
        background-color: #26A5E4 !important;
        border-color: #26A5E4 !important;
        color: #ffffff !important;
        transform: translateY(-3px);
    }