/* تنسيقات متقدمة للقوائم والنقاط */

/* قائمة الميزات المتقدمة */
.advanced-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.dark-mode .feature-item {
    background-color: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.7;
}

.feature-item .feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.dark-mode .feature-item h4 {
    color: #e0e0e0;
}

.feature-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.dark-mode .feature-item p {
    color: #aaa;
}

/* قائمة الخطوات المتقدمة */
.advanced-steps {
    margin: 30px 0;
    position: relative;
}

.advanced-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 25px;
    width: 3px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.step-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.dark-mode .step-number {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.step-content {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dark-mode .step-content {
    background-color: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.step-item:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-content h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.dark-mode .step-content h4 {
    color: #e0e0e0;
}

.step-content p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.dark-mode .step-content p {
    color: #aaa;
}

/* قائمة الأنواع المتقدمة */
.advanced-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.type-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.dark-mode .type-item {
    background-color: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.type-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.type-item h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.dark-mode .type-item h4 {
    color: #e0e0e0;
}

.type-item ul {
    padding-right: 20px;
    margin: 0;
}

.type-item ul li {
    margin-bottom: 10px;
    color: #666;
    position: relative;
    padding-right: 25px;
}

.dark-mode .type-item ul li {
    color: #aaa;
}

.type-item ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--primary-color);
}

/* تعديلات إضافية للغة الإنجليزية */
html[lang="en"] .advanced-steps::before {
    right: auto;
    left: 25px;
}

html[lang="en"] .step-number {
    margin-left: 0;
    margin-right: 15px;
}

html[lang="en"] .type-item ul {
    padding-right: 0;
    padding-left: 20px;
}

html[lang="en"] .type-item ul li {
    padding-right: 0;
    padding-left: 25px;
}

html[lang="en"] .type-item ul li::before {
    right: auto;
    left: 0;
}

@media (max-width: 768px) {
    .advanced-features,
    .advanced-types {
        grid-template-columns: 1fr;
    }
    
    .advanced-steps::before {
        right: 24px;
    }
    
    html[lang="en"] .advanced-steps::before {
        left: 24px;
    }
}
