/* Arham Timeline Widget Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

.arham-timeline-wrapper {
    font-family: 'Poppins', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* Pre-title styling */
.arham-timeline-pretitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* The main timeline container */
.arham-timeline {
    position: relative;
    margin: 0 auto;
    padding: 40px 0;
    width: 100%;
}

/* The central vertical line of the timeline */
.arham-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #007bff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

/* A container for each step in the timeline */
.arham-timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    clear: both;
}

/* Positioning items to the left of the timeline */
.arham-timeline-item.left {
    left: 0;
    padding-right: 60px;
}

/* Positioning items to the right of the timeline */
.arham-timeline-item.right {
    left: 50%;
    padding-left: 60px;
}

/* The circle on the timeline for each step - Perfect center alignment */
.arham-timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid #007bff;
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.arham-timeline-item.left::after {
    right: -14px; /* Perfect center: half of dot (10px) + half of border (2px) + half of line (1.5px) = 13.5px ≈ 14px */
}

.arham-timeline-item.right::after {
    left: -14px; /* Perfect center: half of dot (10px) + half of border (2px) + half of line (1.5px) = 13.5px ≈ 14px */
}

/* The white box containing the text content for each step */
.arham-timeline-content {
    padding: 25px;
    background-color: #ffffff;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Adds a subtle lift and shadow effect on hover */
.arham-timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 119, 190, 0.15);
}

.arham-timeline-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.arham-timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

/* Equal Size functionality - Uniform boxes */
.arham-timeline-wrapper.equal-size .arham-timeline-content {
    min-height: 180px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.arham-timeline-wrapper.equal-size .arham-timeline-content p {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

/* Responsive design for screens smaller than 768px (tablets and phones) */
@media screen and (max-width: 768px) {
    .arham-timeline-main-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .arham-timeline::after {
        left: 31px; /* Move the timeline to the left */
    }
    
    .arham-timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        margin-bottom: 20px;
    }
    
    .arham-timeline-item.left, 
    .arham-timeline-item.right {
        left: 0%; /* Stack all items on the left */
        padding-left: 70px; /* Consistent distance from timeline */
        padding-right: 25px;
    }
    
    .arham-timeline-item.right::after, 
    .arham-timeline-item.left::after {
        left: 21px; /* Perfect center alignment: 31px (line center) - 10px (dot radius) = 21px */
    }
    
    .arham-timeline-content {
        padding: 20px;
        min-height: 150px; /* Uniform height for mobile */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .arham-timeline-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .arham-timeline-content p {
        font-size: 0.9rem;
        flex-grow: 1;
    }
    
    /* Equal size for mobile when toggle is on */
    .arham-timeline-wrapper.equal-size .arham-timeline-content {
        min-height: 180px;
    }
}

@media screen and (max-width: 480px) {
    .arham-timeline-main-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .arham-timeline-item {
        padding-left: 60px; /* Consistent distance */
        padding-right: 15px;
    }
    
    .arham-timeline-item.left, 
    .arham-timeline-item.right {
        padding-left: 60px; /* Ensure consistency */
        padding-right: 15px;
    }
    
    .arham-timeline-item.right::after, 
    .arham-timeline-item.left::after {
        left: 21px; /* Keep same alignment as tablet */
    }
    
    .arham-timeline-content {
        padding: 15px;
        min-height: 140px; /* Uniform height for small mobile */
    }
    
    .arham-timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .arham-timeline-content p {
        font-size: 0.85rem;
    }
    
    /* Equal size for small mobile when toggle is on */
    .arham-timeline-wrapper.equal-size .arham-timeline-content {
        min-height: 160px;
    }
}

/* Additional utility classes for better customization */
.arham-timeline-wrapper.center-aligned {
    text-align: center;
}

.arham-timeline-wrapper.left-aligned {
    text-align: left;
}

.arham-timeline-wrapper.right-aligned {
    text-align: right;
}

/* Animation classes for enhanced effects */
.arham-timeline-content.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for better UX */
.arham-timeline-content::-webkit-scrollbar {
    width: 6px;
}

.arham-timeline-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.arham-timeline-content::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.arham-timeline-content::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}