/* Timeline CSS with unique class names to avoid conflicts */

/* Timeline Section */
.custom-timeline-section {
    padding: 0px 0;
    background-color: #212121;
    width: 100%;
}

.custom-timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.custom-timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.custom-timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #947C5C, #947C5C);
    border-radius: 2px;
}

.custom-timeline-item {
    position: relative;
    margin: 60px 0;
    display: flex;
    align-items: center;
}

.custom-timeline-item:nth-child(odd) {
    flex-direction: row;
}

.custom-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.custom-timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.custom-timeline-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #947C5C, #947C5C);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 0 0 8px #171515, 0 5px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-timeline-content {
    background-color: #171515;
    padding: 30px 35px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: calc(40% - 60px);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.custom-timeline-item:nth-child(odd) .custom-timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.custom-timeline-item:nth-child(even) .custom-timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.custom-timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.custom-timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

.custom-timeline-item:nth-child(odd) .custom-timeline-content::before {
    right: -30px;
    border-left-color: #171515;
}

.custom-timeline-item:nth-child(even) .custom-timeline-content::before {
    left: -30px;
    border-right-color: #171515;
}

.custom-timeline-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #947C5C, #947C5C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-timeline-icon svg {
    width: 24px;
    height: 24px;
}

.custom-timeline-content h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-family: 'Inter', serif;
    font-weight: 700;
}

.custom-timeline-content p {
    color: #666666;
    line-height: 1.6;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Timeline Animation */
.custom-timeline-item.custom-timeline-fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-timeline-item.custom-timeline-fade-in.custom-timeline-visible {
    opacity: 1;
    transform: translateY(0);
}

.custom-timeline-item:nth-child(odd).custom-timeline-fade-in {
    transform: translateY(50px) translateX(-30px);
}

.custom-timeline-item:nth-child(even).custom-timeline-fade-in {
    transform: translateY(50px) translateX(30px);
}

.custom-timeline-item:nth-child(odd).custom-timeline-fade-in.custom-timeline-visible,
.custom-timeline-item:nth-child(even).custom-timeline-fade-in.custom-timeline-visible {
    transform: translateY(0) translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-timeline-section {
        padding: 60px 0;
    }

    .custom-timeline-container {
        padding: 0 15px;
    }

    /* Timeline Mobile */
    .custom-timeline-wrapper::before {
        left: 30px;
    }
    
    .custom-timeline-item {
        flex-direction: row !important;
        margin: 40px 0;
    }
    
    .custom-timeline-marker {
        left: 30px;
    }
    
    .custom-timeline-content {
        width: calc(100% - 90px);
        margin-left: 90px !important;
        margin-right: 0 !important;
    }
    
    .custom-timeline-content::before {
        left: -30px !important;
        right: auto !important;
        border-right-color: #ffffff !important;
        border-left-color: transparent !important;
    }

    .custom-timeline-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .custom-timeline-icon {
        width: 40px;
        height: 40px;
    }

    .custom-timeline-icon svg {
        width: 20px;
        height: 20px;
    }

    .custom-timeline-content h3 {
        font-size: 1.2rem;
    }

    .custom-timeline-content {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .custom-timeline-content h3 {
        font-size: 1.1rem;
    }

    .custom-timeline-content {
        padding: 20px 15px;
    }

    .custom-timeline-number {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .custom-timeline-icon {
        width: 35px;
        height: 35px;
    }

    .custom-timeline-icon svg {
        width: 18px;
        height: 18px;
    }
}