:root {
    --primary-color: #8e44ad !important;     /* بنفش اصلی */
    --secondary-color: #9b59b6 !important;   /* بنفش روشن‌تر */
    --accent-color: #673ab7;
    --text-color: #333333;
    --text-light: #666666;
    --text-dark: #222222;
    --text-muted: #777777;
    --bg-light: #f5eef8 !important;          /* پس‌زمینه روشن بنفش */
    --bg-grey: #f0f2f5;
    --white: #ffffff;
    --black: #000000;
    --border-radius: 12px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --primary-gradient: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%) !important;
    --bg-gradient: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(142, 68, 173, 0.1) 100%);
    --font-family: 'Vazirmatn', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* بخش هیرو جدید */
.sp-hero {
    position: relative;
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%) !important;
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 70px 0 80px !important;
    min-height: 80vh;
}

.sp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/succession management/pattern.png');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.sp-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 50px;
    margin-top: -20px;
}

.sp-hero-text {
    flex: 1;
    max-width: 600px;
}

/* بهبود فونت عنوان مدیریت جانشین‌پروری */
.sp-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    position: relative;
    color: #fff;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    -webkit-text-fill-color: #fff;
    line-height: 1.2;
    letter-spacing: -1px;
    font-family: 'Vazirmatn', sans-serif;
}

.sp-hero-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 5px;
    background: #fff;
    bottom: -15px;
    right: 0;
    border-radius: 3px;
}

.sp-hero-subtitle {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.8;
}

.sp-cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 2.5rem;
}

.sp-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    text-decoration: none;
}

.sp-cta-primary {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sp-cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.sp-cta-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.sp-cta-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.sp-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 50px;
}

.sp-circle-container {
    position: relative;
    width: 450px;
    height: 450px;
}

.sp-central-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 10px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.sp-central-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-floating-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatEffect 4s ease-in-out infinite;
}

.sp-floating-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sp-floating-item span {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sp-floating-item:hover .sp-floating-icon {
    transform: scale(1.2);
    background: var(--primary-color);
    color: var(--white);
}

.sp-item-1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.sp-item-2 {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.sp-item-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.sp-item-4 {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

@keyframes floatEffect {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.sp-wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* بخش تعریف - اصلاح شده و کوچکتر */
.sp-definition {
    padding: 6rem 0;
    background-color: #ffffff !important;
}

.sp-definition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 3rem;
}

.sp-definition-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 400px; /* افزایش ارتفاع */
    display: flex;
    flex-direction: column;
}

.sp-definition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.sp-definition-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(142, 68, 173, 0.15);
}

.sp-definition-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.sp-card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.sp-definition-card:hover .sp-card-icon {
    background: var(--primary-gradient);
    color: var(--white);
    transform: rotateY(180deg);
}

.sp-card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.sp-card-text {
    color: var(--text-color);
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 1.2rem;
    font-size: 0.92rem;
    overflow-y: auto;
    flex-grow: 1;
    /* اضافه کردن اسکرول‌بار زیبا */
    scrollbar-width: thin;
    scrollbar-color: #9b59b6 #f1f1f1;
}

.sp-card-text::-webkit-scrollbar {
    width: 5px;
}

.sp-card-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sp-card-text::-webkit-scrollbar-thumb {
    background: #9b59b6;
    border-radius: 10px;
}

.sp-card-source, 
.sp-importance-source, 
.sp-source-citation,
cite {
    direction: ltr;
    text-align: left;
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: auto; /* منابع همیشه پایین باشند */
}

/* بخش اهمیت و ضرورت - طراحی کاملاً متفاوت */
.sp-importance {
    padding: 6rem 0;
    background-color: #f8f8ff; /* رنگ متفاوت از بخش تعریف */
    position: relative;
}

.sp-importance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./images/succession management/dots-pattern.png');
    opacity: 0.05;
    z-index: 0;
}

.sp-importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    row-gap: 50px;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.sp-importance-card {
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    background: var(--white);
    position: relative;
}

.sp-importance-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(142, 68, 173, 0.15);
}

.sp-importance-header {
    background: var(--primary-gradient);
    padding: 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.sp-importance-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./images/succession management/pattern-light.png');
    opacity: 0.1;
    z-index: -1;
}

.sp-importance-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.sp-importance-title {
    font-size: 1.4rem;
    text-align: center;
    margin: 0;
}

.sp-importance-body {
    padding: 1.8rem;
}

.sp-importance-text {
    color: var(--text-color);
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.sp-importance-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.sp-importance-source {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: left;
    display: block;
    border-top: 1px dashed #e0e0e0;
    padding-top: 1rem;
}

/* بخش فرآیند مدیریت جانشین‌پروری - طراحی جدید */
.sp-process {
    padding: 5rem 0;
    background: var(--bg-light) !important;
    position: relative;
}

.sp-process-flow {
    margin-top: 4rem;
    position: relative;
}

.sp-process-steps-container {
    padding: 20px 0;
    margin: 2rem 0 3rem;
    overflow: visible;
}

.sp-process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0 30px;
    overflow-x: auto;
    gap: 0;
}

.sp-process-steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 5%;
    right: 5%;
    height: 6px;
    background: linear-gradient(90deg, #6a11cb, #9b59b6);
    border-radius: 3px;
    z-index: 1;
}

.sp-step {
    flex: 0 0 auto;
    width: 150px;
    max-width: 150px;
    text-align: center;
    padding: 0 5px;
    margin-bottom: 30px;
}

.sp-process-step {
    position: relative;
    padding: 0;
    min-width: 140px;
    text-align: center;
    z-index: 2;
    margin: 0 5px;
}

.sp-step-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    position: relative;
    color: #6a11cb;
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.2);
    border: 5px solid #f9f5ff;
    transition: all 0.3s ease;
}

.sp-process-step:hover .sp-step-icon {
    transform: translateY(-10px);
    background: linear-gradient(135deg, #6a11cb, #9b59b6);
    color: white;
}

.sp-step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #6a11cb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
    z-index: 10;
    border: 3px solid white;
}

.sp-step-title {
    font-size: 1.2rem;
    color: #333;
    margin: 15px 0 10px;
    font-weight: 700;
}

.sp-step-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.sp-process-details {
    margin-top: 60px;
}

.sp-process-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    margin: 0 auto 30px;
    max-width: 900px;
    justify-content: center;
}

.sp-process-tab {
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 10px;
}

.sp-process-tab.active {
    color: #6a11cb;
    border-bottom-color: #6a11cb;
}

.sp-process-tab:hover {
    color: #6a11cb;
}

.sp-process-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    display: none;
    animation: fadeIn 0.5s ease;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.sp-process-content.active {
    display: block;
}

.sp-process-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sp-process-content h3::before {
    content: '';
    width: 6px;
    height: 30px;
    background: var(--primary-gradient);
    border-radius: 3px;
    display: inline-block;
}

.sp-process-content p {
    color: var(--text-color);
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 25px;
    font-size: 1rem;
}

.sp-detail-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.sp-detail-features div {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.sp-detail-features div:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
}

.sp-detail-features i {
    color: var(--primary-color);
}

.sp-detail-features div:hover i {
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* بخش مزایای همکاری با ما - در وسط صفحه */
.sp-benefits {
    padding: 6rem 0;
    background-color: #f8f8ff;
    position: relative;
}

.sp-benefits-container {
    max-width: 900px;
    margin: 0 auto;
}

.sp-hexagrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 4rem;
}

.sp-hexagon-item {
    display: flex;
    justify-content: center;
}

.sp-hexagon {
    width: 250px;
    height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    z-index: 1;
}

.sp-hexagon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--primary-gradient);
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.sp-hexagon:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(142, 68, 173, 0.2);
}

.sp-hexagon:hover::before {
    opacity: 1;
}

.sp-hexagon-content {
    text-align: center;
    padding: 20px;
    transition: all 0.4s ease;
}

.sp-hex-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.sp-hex-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.sp-hex-text {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    transition: all 0.4s ease;
}

.sp-hexagon:hover .sp-hex-icon,
.sp-hexagon:hover .sp-hex-title,
.sp-hexagon:hover .sp-hex-text {
    color: white;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .sp-process-steps {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 15px;
        max-width: 100%;
    }
    
    .sp-process-steps::-webkit-scrollbar {
        height: 5px;
    }
    
    .sp-process-steps::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    
    .sp-process-steps::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    .sp-step {
        width: 120px;
        max-width: 120px;
    }
    
    .sp-hexagrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sp-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .sp-hero-text {
        max-width: 100%;
        margin-bottom: 60px;
    }
    
    .sp-cta-buttons {
        justify-content: center;
    }
    
    .sp-hero-visual {
        padding-left: 0;
    }
    
    .sp-circle-container {
        width: 350px;
        height: 350px;
    }
    
    .sp-central-image {
        width: 200px;
        height: 200px;
    }
    
    .sp-definition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sp-step {
        width: 33.333%;
    }
}

@media (max-width: 768px) {
    .sp-hero-title {
        font-size: 2.5rem;
    }
    
    .sp-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .sp-definition-grid {
        grid-template-columns: 1fr;
    }
    
    .sp-importance-grid {
        grid-template-columns: 1fr;
    }
    
    .sp-step {
        width: 50%;
    }
    
    .sp-hexagrid {
        grid-template-columns: 1fr;
    }
    
    .sp-process-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    
    .sp-process-tab {
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .sp-circle-container {
        width: 300px;
        height: 300px;
    }
    
    .sp-central-image {
        width: 150px;
        height: 150px;
    }
    
    .sp-floating-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .sp-step {
        width: 100%;
    }
    
    .sp-cta-buttons {
        flex-direction: column;
    }
    
    .sp-cta-button {
        width: 100%;
    }
}

/* انیمیشن جدید هیرو */
.sp-succession-animation {
    width: 500px;
    height: 400px;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    margin-left: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 30px;
    overflow: hidden;
}

.sp-org-chart {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.sp-position {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
    width: 130px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sp-position:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.sp-position-ceo {
    align-self: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.sp-positions-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.sp-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sp-position-ceo .sp-avatar {
    background: #e67e22;
    width: 70px;
    height: 70px;
    font-size: 30px;
}

.sp-position-title {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    z-index: 2;
}

.sp-position-ceo .sp-position-title {
    font-size: 16px;
}

.sp-succession-arrow {
    position: absolute;
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.5);
    bottom: -30px;
    z-index: 1;
}

.sp-successor {
    position: absolute;
    bottom: -40px;
    opacity: 0;
    transform: translateY(20px);
    z-index: 1;
}

.sp-avatar-successor {
    width: 50px;
    height: 50px;
    background: #27ae60;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sp-successor-1 {
    animation: moveSuccessor 10s infinite;
    animation-delay: 0s;
}

.sp-successor-2 {
    animation: moveSuccessor 10s infinite;
    animation-delay: 3.3s;
}

.sp-successor-3 {
    animation: moveSuccessor 10s infinite;
    animation-delay: 6.6s;
}

@keyframes moveSuccessor {
    0%, 10% {
        opacity: 0;
        transform: translateY(20px);
    }
    15%, 25% {
        opacity: 1;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-60px);
    }
    35%, 100% {
        opacity: 0;
        transform: translateY(-60px);
    }
}

.sp-succession-phases {
    display: flex;
    justify-content: space-between;
}

.sp-phase {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.7;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.sp-phase:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.sp-phase-1 {
    animation: highlightPhase 10s infinite;
    animation-delay: 0s;
}

.sp-phase-2 {
    animation: highlightPhase 10s infinite;
    animation-delay: 2.5s;
}

.sp-phase-3 {
    animation: highlightPhase 10s infinite;
    animation-delay: 5s;
}

.sp-phase-4 {
    animation: highlightPhase 10s infinite;
    animation-delay: 7.5s;
}

@keyframes highlightPhase {
    0%, 20% {
        background: rgba(255, 255, 255, 0.15);
        opacity: 0.7;
        transform: scale(1);
    }
    25%, 45% {
        background: rgba(255, 255, 255, 0.4);
        opacity: 1;
        transform: scale(1.1);
    }
    50%, 100% {
        background: rgba(255, 255, 255, 0.15);
        opacity: 0.7;
        transform: scale(1);
    }
}

/* افزایش ارتفاع کارت‌های تعریف */
.sp-definition-card {
    height: 400px; /* افزایش ارتفاع */
}

/* اصلاح فاصله بین کارت‌های اهمیت و ضرورت */
.sp-importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    row-gap: 50px;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* اضافه کردن یک کلاس جدید برای تشخیص ردیف دوم */
.sp-importance-card:nth-child(n+4) {
    margin-top: 20px; /* افزایش فاصله اضافی برای ردیف دوم */
}

/* اصلاح نمایش مراحل فرآیند */
.sp-process-steps {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 20px;
    justify-content: flex-start;
    gap: 15px;
}

.sp-process-steps::-webkit-scrollbar {
    height: 5px;
}

.sp-process-steps::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sp-process-steps::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.sp-step {
    flex: 0 0 auto;
    width: 130px;
}

.sp-process-steps::before {
    height: 3px;
    top: 38px;
}

/* بازسازی کامل استایل فرم درخواست */
.sp-service-request {
    padding: 6rem 0;
    background-color: var(--bg-light) !important;
    position: relative;
    z-index: 1;
}

.sp-service-request .sp-section-title,
.sp-service-request .sp-section-subtitle {
    text-align: center;
}

.sp-request-form-wrapper {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 40px !important;
    box-shadow: 0 15px 50px rgba(142, 68, 173, 0.1) !important;
    max-width: 900px !important;
    margin: 3rem auto 0 !important;
}

.sp-form-description {
    margin-bottom: 40px !important;
    padding: 25px !important;
    background: rgba(142, 68, 173, 0.05) !important;
    border-radius: 15px !important;
    border-right: 4px solid #8e44ad !important;
    color: #333 !important;
}

.sp-form-description p {
    margin: 0;
    line-height: 1.8;
    font-size: 1.05rem;
}

.sp-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px !important; /* افزایش فاصله بین تمام فیلدها */
    margin-bottom: 40px !important;
}

.sp-form-group {
    position: relative !important;
    margin-bottom: 0 !important;
}

.sp-form-group label {
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 1rem !important;
}

.sp-form-group input,
.sp-form-group textarea {
    width: 100% !important;
    padding: 15px 20px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background-color: #ffffff !important; /* تغییر به سفید خالص */
    font-family: 'Vazirmatn', sans-serif !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03) !important;
}

.sp-form-group input:focus,
.sp-form-group textarea:focus {
    border-color: #8e44ad !important;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.15) !important;
    outline: none !important;
}

.sp-full-width {
    grid-column: 1 / -1 !important;
    margin-bottom: 10px !important;
}

.sp-form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.sp-center-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 30px !important;
}

.sp-submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    padding: 16px 50px !important;
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 20px rgba(142, 68, 173, 0.2) !important;
    min-width: 280px !important;
    position: relative !important;
    overflow: hidden !important;
}

.sp-submit-btn::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0)) !important;
    transition: all 0.4s ease !important;
}

.sp-submit-btn:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(142, 68, 173, 0.3) !important;
}

.sp-submit-btn:hover::before {
    left: 100% !important;
}

.sp-submit-btn i {
    font-size: 1.2rem !important;
}

/* اصلاح تایتل و زیرتایتل بخش درخواست خدمات */
.sp-service-request .sp-section-title {
    text-align: center !important;
    margin-bottom: 15px !important;
    color: #8e44ad !important;
}

.sp-service-request .sp-section-subtitle {
    text-align: center !important;
    margin-bottom: 40px !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* اصلاح فاصله عمودی فیلدهای فرم */
.sp-full-width {
    grid-column: 1 / -1 !important;
    margin-bottom: 10px !important;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .sp-form-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .sp-request-form-wrapper {
        padding: 30px 20px !important;
    }
    
    .sp-submit-btn {
        width: 100% !important;
        min-width: unset !important;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Vazir&display=swap');

body {
    margin: 0;
    font-family: 'Vazir', sans-serif;
    background: #f5f5f5;
}

footer {
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
    padding: 100px 0 50px;
    bottom: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: auto;
    align-items: center;
    z-index: 10;
    bottom: 0;
    padding:20px 0; /* فاصله از بالا و پایین */
    position: relative;
}

/* موج متحرک */
@import url("https://fonts.googleapis.com/css?family=Lato:400,400i,700");

body {
  font-family: Lato, sans-serif;

}

a {
  color:#fff;
  text-decoration:none;
  
}
footer {
  width:100vw;
  position: relative;
  bottom:0px
  margin:0%
  height: 600px%;
}

.wave-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
}



footer div {
  background-color: var(--col-deepblue);
  margin: -5px 0px 0px 0px;
  padding:0px;
  color: #fff;
  text-align:center;
}
svg {
  width:100%;
  overflow:visible;
}

.wave {
  animation: wave 3s linear;
  animation-iteration-count:infinite;
  fill: #8e44ad;
}
.drop {
  fill: #8e44ad;
  xfill: #f732c255;
  animation: drop 3.2s linear infinite normal;
  stroke: var(--col-deepblue);
  stroke-width:0.5;
  transform: translateY(25px) ;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.drop1 {
  
}
.drop2 {
  animation-delay: 3s;
  animation-duration:3s;
}
.drop3 {
  animation-delay: -2s;
  animation-duration:3.4s;
}
.drop4 {
  animation-delay: 1.7s;
}
.drop5 {
  animation-delay: 2.7s;
  animation-duration:3.1s;
}
.drop6 {
  animation-delay: -2.1s;
  animation-duration:3.2s;
}
.gooeff {
    filter: url(#goo);
}
#wave2 {
  animation-duration:5s;
  animation-direction: reverse;
  opacity: .6;
  fill: #8e44ad;
}
#wave3 {
  animation-duration: 7s;
  opacity:.3;
  fill: #8e44ad;
}
@keyframes drop {
  0% {
    transform: translateY(25px); 
  }
  30% {
    transform: translateY(-10px) scale(.1);
  }
  30.001% {
    transform: translateY(25px) scale(1); 
  }
  70% {
    transform: translateY(25px); 
  }
  100% { 
    transform: translateY(-10px) scale(.1);  
  }
}
@keyframes wave {
  to {transform: translateX(-100%);}
}


.contact-info, .message-box {
    width: 45%;
    text-align: right;
    
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    font-size: 20px;
    color: white;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

.message-box form {
    display: flex;
    flex-direction: column;
    font-family: 'Vazir', sans-serif;
    font-size: 0.5rem;
    font-style: bold;
}

.message-box textarea {
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-family: 'Vazir', sans-serif;
    font-size: 0.3rem;
    font-style: bold;
}

.message-box input, .message-box textarea {
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-family: 'Vazir', sans-serif;
    font-size: 0.8rem;
    font-style: bold;
}

.message-box button {
    background: #FFD700;
    color: black;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Vazir', sans-serif;
    font-size: 0.8rem;
    font-style: bold;
}

/* منوی کشویی در هدر */
.header nav ul li.dropdown {
    position: relative;
}

.header nav ul li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0.5rem 0;
    z-index: 1000;
    margin-top: 10px;
}

.header nav ul li.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.header nav ul li.dropdown .dropdown-content a {
    color: #333;
    padding: 0.8rem 1.5rem;
    display: block;
    text-align: right;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.header nav ul li.dropdown .dropdown-content a:hover {
    background: #f5eef8;
    color: #8e44ad;
    padding-right: 2rem;
}

/* انیمیشن منوی کشویی */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* فلش برای منوی کشویی */
.header nav ul li.dropdown > a::after {
    content: '▼';
    font-size: 0.8em;
    margin-right: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.header nav ul li.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* مثلث بالای منوی کشویی */
.header nav ul li.dropdown .dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* استایل منوی کشویی - اصلاح شده */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    cursor: pointer;
}

.dropdown-btn::after {
    content: '▼';
    font-size: 0.7em;
    margin-right: 5px;
    display: inline-block;
}

.dropdown-content {
    display: none; /* تغییر از visibility به display */
    position: absolute;
    top: calc(100% - 5px); /* کاهش فاصله از بالا */
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 1000;
}

/* حذف مثلث بالای منو و اضافه کردن یک پد نامرئی */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px; /* افزایش ناحیه hover */
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333 !important;
    padding: 8px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.85em;
    transition: all 0.3s ease;
    text-align: right;
    border-radius: 5px;
    margin: 2px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-content a:hover {
    background-color: #f5eef8;
    color: #8e44ad !important;
    padding-right: 20px;
}

/* اضافه کردن ناحیه پوشش دهنده برای جلوگیری از بسته شدن منو */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

/* متغیرهای CSS */
:root {
    --primary-color: #8e44ad;
    --secondary-color: #9b59b6;
    --text-color: #2c3e50;
    --light-color: #ffffff;
    --dark-color: #2c3e50;
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* فونت‌ها */
@font-face {
    font-family: 'IRANYekan';
    src: url('fonts/iranyekan/woff2/iranyekanwebbold.woff2') format('woff2');
    font-weight: bold;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('fonts/iranyekan/woff2/iranyekanwebregular.woff2') format('woff2');
    font-weight: normal;
}
