/* أنماط قسم الاستشارات */
.consultation-section {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.0) 0%, 
        rgba(17, 17, 17, 0.0) 50%, 
        rgba(0, 0, 0, 0.0) 100%),
        url('/static/image/hero-bg.jpg') center/cover no-repeat;    
    padding: 3rem 0;
    margin-top: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.consultation-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    animation: heroShine 8s linear infinite;
}

.consultation-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.consultation-subtitle {
    color: var(--gray-300);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.consultation-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.consultation-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.consultation-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.consultation-btn:hover::before {
    left: 100%;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-white), var(--gray-200));
    color: var(--primary-black);
    border-color: var(--gray-300);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--gray-100), var(--primary-white));
}

.secondary-btn {
    background: transparent;
    color: var(--primary-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-white);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

/* الفاصل المزخرف */
.decorative-divider {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--gray-400) 20%, 
        var(--gray-600) 50%, 
        var(--gray-400) 80%, 
        transparent 100%);
    margin: 3rem 0;
    position: relative;
}

.decorative-divider::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--gray-600) 30%, transparent 30%);
    background-size: 4px 4px;
    border-radius: 50%;
}

/* قسم البطل الرئيسي */
.main-hero {
    margin: 2rem 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 60vh;
}

.hero-background {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.0) 0%, 
        rgba(17, 17, 17, 0.0) 50%, 
        rgba(0, 0, 0, 0.0) 100%),
        url('{% static "image/Saber-Profile.png" %}') center/cover no-repeat;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(0,0,0,0.7) 0%, 
        rgba(0,0,0,0.3) 50%, 
        rgba(0,0,0,0.7) 100%);
    animation: overlayPulse 6s ease-in-out infinite alternate;
}

@keyframes overlayPulse {
    0% { opacity: 0.7; }
    100% { opacity: 0.9; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-logo {
    margin-bottom: 2rem;
}

.logo-image {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(255, 255, 255, 0.1));
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 30px rgba(255, 255, 255, 0.2));
}

.hero-main-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-white);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-white), var(--gray-300));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.5); }
}

.hero-description {
    font-size: 1.3rem;
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary-white), var(--gray-200));
    color: var(--primary-black);
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-top: 2rem;
}
.hero-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--gray-100), var(--primary-white));
}

/* قسم الشراكات */
.partners-section {
    background: var(--primary-white);
    padding: 4rem 0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    margin: 2rem 0;
}

.partners-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: bold;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.partner-card {
    background: var(--primary-white);
    border: 1px solid var(--gray-200);
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--gray-400);
}

.partner-logo {
    flex-shrink: 0;
}

.partner-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.partner-info h3 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.partner-info p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* قسم مكاتب المحاماة */
.law-offices-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-200);
}

.subsection-title {
    text-align: center;
    color: var(--gray-900);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.law-offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.law-office-card {
    background: linear-gradient(135deg, var(--gray-50), var(--primary-white));
    border: 1px solid var(--gray-300);
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.law-office-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--primary-white), var(--gray-100));
}

.office-avatar {
    margin-bottom: 1.5rem;
}

.office-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gray-300);
    transition: all 0.3s ease;
}

.law-office-card:hover .office-avatar img {
    border-color: var(--gray-500);
    transform: scale(1.1);
}

.office-details h4 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.office-details p {
    color: var(--gray-700);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.specialization {
    display: inline-block;
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .consultation-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .consultation-btn {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-card {
        flex-direction: column;
        text-align: center;
    }
    
    .law-offices-grid {
        grid-template-columns: 1fr;
    }
}
