/* ==========================================
   الستايلات العامة والهيرو سيكشن
========================================== */
.page-header {
    position: relative; 
    height: 350px; 
    width: 100%;
    /* تم نقل صورة الخلفية والـ direction للـ HTML */
    background-size: cover; 
    background-position: center;
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    color: white;
}

.page-header::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.7); 
}

.page-header-content { 
    position: relative; 
    z-index: 2; 
    padding-top: 70px; 
}

/* لون خلفية قسم الأدوات */
.tools-section-bg {
    background-color: #fafbfc;
}

/* ==========================================
   أقسام الأدوات (Categories)
========================================== */
.category-wrapper {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid var(--cat-color); /* الخط يأخذ لون المجموعة */
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background-color: var(--cat-bg);
    color: var(--cat-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    /* لتتوافق مع الـ RTL والـ LTR بشكل طبيعي */
    margin-inline-end: 15px; 
    margin-bottom: 0;
}

.category-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color, #2d3748);
    margin: 0;
}

/* ==========================================
   كروت الأدوات (Tools Cards)
========================================== */
.tool-card {
    background: #fff; 
    border-radius: 15px; 
    padding: 30px;
    border: 1px solid #eee; 
    transition: all 0.3s ease;
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
    position: relative;
}

/* تأثير الكارت بأخذ لون المجموعة الديناميكي */
.tool-card:hover { 
    transform: translateY(-7px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    border-color: var(--cat-color); 
}

.tool-icon-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

.tool-icon {
    width: 60px; 
    height: 60px; 
    background: var(--cat-bg);
    color: var(--cat-color); 
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.5rem; 
    transition: 0.3s;
}

.tool-card:hover .tool-icon { 
    background: var(--cat-color); 
    color: #fff; 
}

/* ==========================================
   بادج الإصدار، العناوين، والأزرار
========================================== */
.tool-version {
    font-size: 0.8rem; 
    font-weight: 700;
    padding: 5px 12px;
    background-color: #f8f9fa; 
    color: #6c757d; 
    border-radius: 50px;
    letter-spacing: 0.5px;
    border: 1px solid #e9ecef;
}

.tool-title { 
    font-weight: 700; 
    font-size: 1.15rem; 
    margin-bottom: 10px; 
    color: var(--dark-color, #333); 
    width: 100%; 
}

.tool-desc { 
    color: #666; 
    font-size: 0.95rem; 
    line-height: 1.6; 
    margin-bottom: 20px; 
    flex-grow: 1; 
}

.tool-btn {
    background: transparent; 
    color: var(--cat-color);
    border: 1px solid var(--cat-color); 
    padding: 8px 20px;
    border-radius: 50px; 
    font-weight: 600; 
    text-decoration: none;
    transition: 0.3s; 
    width: 100%; 
    text-align: center;
}

.tool-card:hover .tool-btn { 
    background: var(--cat-color); 
    color: #fff; 
}

.breadcrumb {
  display: none;
}