/* استيراد الخطوط العربية */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
    /* ألوان الهوية البصرية */
    --diwan-1: #701211; /* primary */
    --diwan-2: #982B2A; /* brand */
    --diwan-3: #FFE3E0; /* base-rose */
    --diwan-4: #410B13; /* ink */
    --diwan-5: #280000; /* base-deep */
    
    /* ألوان الخلفية والنصوص */
    --bg-color: #FCFCFC;
    --text-color: #410B13;
    --border-color: #E5E5E5;
    
    /* الخطوط */
    --font-heading: 'IBM Plex Sans Arabic', sans-serif;
    --font-body: 'Noto Naskh Arabic', serif;
          --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* الهيدر العلوي */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--diwan-3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(112,18,17,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-placeholder {
    height: 50px;
    /* يمكنك استبدال هذا برابط الصورة الفعلي */
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--diwan-1);
}

.logo-img {
    max-height: 50px;
    width: auto;
}

/* التنقل العلوي */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--diwan-4);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--diwan-2);
}

.main-nav a.active {
    color: var(--diwan-1);
    font-weight: 700;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--diwan-2);
    border-radius: 2px;
}

/* المحتوى الرئيسي */
.main-content {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

  
/* تنسيقات النصوص الداخلية */
h1.page-title {
    font-family: var(--font-heading);
    color: var(--diwan-1);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

p.page-subtitle {
    text-align: center;
    color: var(--diwan-4);
    opacity: 0.8;
    font-size: 1.25rem;
    margin-bottom: 4rem;
}

section {
    margin-bottom: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(229, 229, 229, 0.5);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

h2 {
    font-family: var(--font-heading);
    color: var(--diwan-2);
    font-size: 1.75rem;
    border-bottom: 1px solid var(--diwan-3);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-family: var(--font-heading);
    color: var(--diwan-1);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: rgba(65, 11, 19, 0.9);
}

ul {
    list-style-type: disc;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* البطاقات */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.card {
    background-color: rgba(255, 227, 224, 0.15);
    border: 1px solid rgba(255, 227, 224, 0.5);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--diwan-1);
    transition: all 0.3s;
    font-family: var(--font-heading);
}

.card:hover {
    background-color: rgba(255, 227, 224, 0.3);
    transform: translateY(-2px);
}

.info-box {
    background-color: rgba(255, 227, 224, 0.3);
    border: 1px solid var(--diwan-3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    color: var(--diwan-5);
    font-weight: 500;
}

.nested-section {
    padding-right: 0;
}

.separator {
    height: 1px;
    background-color: rgba(255, 227, 224, 0.5);
    margin: 2rem 0;
}

/* التجاوب مع الجوال */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .main-nav ul {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    h1.page-title {
        font-size: 2rem;
    }

    section {
        padding: 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h4 {
        margin-top: 1.5rem;
    }
}



/* الفوتر */
        footer {
            background: linear-gradient(135deg, var(--diwan-4));
            color: white;
            padding: 70px 0 20px;
            
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            /* margin-bottom: 50px; */
           

        }

        .footer-section {
            margin-right: 30px;
            
        }
        .footer-section h3 {
            font-size: 1.3rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
            /* margin-right: 10px; */
            color: var(--diwan-3);
            
        }

    .footer-section h3::after {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 50px;
      height: 3px;
      background: var(--diwan-1);
        /* margin-right: 10px; */
    }
    
        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #b0b0b0;
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
        }

        .footer-links a:hover {
            color: white;
            transform: translateX(5px);
        }

        .footer-links a i {
            margin-left: 8px;
            font-size: 0.8rem;
        }

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;  /* ✅ المحاذاة لليمين */
    gap: 15px;
    margin-top: 20px;
    max-width: 160px;
    margin-right: -10PX;            /* ✅ يزيل أي مسافة من اليمين */
    margin-left: auto;          /* ✅ يضمن دفعها بالكامل لليمين */
}


.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    flex: 0 1 calc(33.33% - 15px); /* ✅ يجعل كل صف يحتوي 3 أيقونات */
    box-sizing: border-box;
}


        .social-icon:hover {
            background: linear-gradient(135deg, var(--diwan-2));
            transform: translateY(-3px);
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #b0b0b0;
            font-size: 0.9rem;
            margin-top: 50px;
        }

        .copyright p{
            /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
            color: #b0b0b0;
            font-size: 0.9rem;
        }

        .btn{
            background-color: var(--diwan-2);
            color: var(--diwan-3);
            display: inline-block;
            padding: 12px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            font-size: 1rem;
            margin-right: 15px;
        }
        .btn:hover{
            background-color: var(--diwan-1);
            /* color: var(--diwan-3); */
        }
        /* سناب معطل */
.snap-disabled {           /* اللون الأحمر */
  cursor: not-allowed;         /* شكل الممنوع بالماوس */
  touch-action: manipulation;  /* يسمح باللمس بدون منع التفاعل */
}


#f2 h3{
     margin-right: 20px;
}


        .footer-logos.vertical {
  display: flex;
  flex-direction: column;   /* ⬇️ تحت بعض */
  align-items: start;
  gap: 12px;
}

.footer-logos.vertical img {
  height: 105px;
  width: auto;
}

.footer-logos.vertical .logo-separator {
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  line-height: 1;
}

  /* Testimonials Styles (New Code) */
        .testimonials-section {
            padding: 4rem 1rem;
            background-color: var(--diwan-5); /* Matching background */
            position: relative;
            overflow: hidden;
        }

        .testimonials-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            padding: 0 2rem;
        }

        .testimonials-track {
            display: flex;
            gap: 2rem;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 2rem 0;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none;  /* IE and Edge */
        }

        .testimonials-track::-webkit-scrollbar {
            display: none;
        }

        .testimonial-card {
            min-width: 300px;
            max-width: 350px;
            background: rgba(65, 11, 19, 0.4);
            border: 1px solid rgba(255, 227, 224, 0.1);
            border-radius: 1rem;
            padding: 2rem;
            flex-shrink: 0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .testimonial-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            border-color: rgba(152, 43, 42, 0.5);
        }

        .testimonial-content {
            color: rgba(255, 227, 224, 0.9);
            line-height: 1.6;
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
        }
        
        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 1rem;
            border-top: 1px solid rgba(255, 227, 224, 0.1);
            padding-top: 1rem;
        }
        
        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #982B2A;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: white;
        }
        
        .author-info h4 {
            color: #FFE3E0;
            font-weight: bold;
            margin: 0;
            font-size: 1rem;
        }
        
        .author-info p {
            color: rgba(255, 227, 224, 0.6);
            font-size: 0.85rem;
            margin: 0;
        }

        .testimonials-navigation {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 2rem;
        }

        .testimonials-nav-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(152, 43, 42, 0.2);
            border: 1px solid #982B2A;
            color: #FFE3E0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .testimonials-nav-btn:hover {
            background: #982B2A;
            transform: scale(1.1);
        }
        
        .testimonials-nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }
