/* Roadmap and Pricing Styles */

/* Roadmap Timeline - Complete overhaul for proper alignment */
.roadmap-timeline {
    position: relative;
    margin: 60px 0 80px;
    padding: 20px 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Line through the middle of circles */
.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: #5f2ded; /* Purple line color */
    z-index: 1;
}

/* Start flag styling - Better alignment with line */
.roadmap-timeline .start-flag {
    position: relative;
    z-index: 3;
    width: 40px;
    height: 40px;
    margin-top: -120px; /* Adjusted to match line position */
    display: flex;
    align-items: center;
}

.roadmap-timeline .start-flag img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transform: translateY(-5px); /* Fine-tuning vertical alignment */
}

/* End image styling - Better alignment with line */
.roadmap-timeline .end-image {
    position: relative;
    z-index: 3;
    width: 40px;
    height: 40px;
    margin-top: -120px; /* Adjusted to match line position */
    display: flex;
    align-items: center;
}

.roadmap-timeline .end-image img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transform: translateY(-5px); /* Fine-tuning vertical alignment */
}

.timeline-points {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    flex: 1;
    margin: 0 20px;
}

.timeline-points .point {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-points .point::before {
    content: attr(data-number);
    background-color: #f2277e; /* Pink circle color */
    border: 2px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    box-shadow: 0 0 0 4px rgba(242, 39, 126, 0.3);
    position: relative;
    top: -15px; /* Adjust to align with line */
}

.timeline-points .point-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-top: 10px;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .roadmap-timeline {
        padding: 10px 0;
    }
    
    .roadmap-timeline::before {
        top: 25px;
        left: 30px;
        right: 30px;
    }
    
    .roadmap-timeline .start-flag,
    .roadmap-timeline .end-image {
        margin-top: -100px;
        width: 35px;
        height: 35px;
    }
    
    .timeline-points {
        padding: 0 20px;
        margin: 0 15px;
    }
    
    .timeline-points .point::before {
        width: 50px;
        height: 50px;
        font-size: 18px;
        top: -12px;
    }
    
    .timeline-points .point-text {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .roadmap-timeline .start-flag img,
    .roadmap-timeline .end-image img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .roadmap-timeline {
        padding: 5px 0;
        margin: 40px 0 60px;
    }
    
    .roadmap-timeline::before {
        top: 20px;
        left: 25px;
        right: 25px;
        height: 2px;
    }
    
    .roadmap-timeline .start-flag,
    .roadmap-timeline .end-image {
        margin-top: -85px;
        width: 30px;
        height: 30px;
    }
    
    .timeline-points {
        padding: 0 10px;
        margin: 0 10px;
    }
    
    .timeline-points .point {
        padding: 0;
    }
    
    .timeline-points .point::before {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: -10px;
        margin-bottom: 10px;
        box-shadow: 0 0 0 3px rgba(242, 39, 126, 0.3);
    }
    
    .timeline-points .point-text {
        font-size: 11px;
        line-height: 1.2;
        margin-top: 5px;
    }
    
    .roadmap-timeline .start-flag img,
    .roadmap-timeline .end-image img {
        width: 30px;
        height: 30px;
        transform: translateY(-3px);
    }
}

/* For very small screens */
@media (max-width: 400px) {
    .roadmap-timeline::before {
        top: 18px;
    }
    
    .timeline-points .point-text {
        font-size: 10px;
    }
    
    .timeline-points .point::before {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: -8px;
    }
    
    .roadmap-timeline .start-flag,
    .roadmap-timeline .end-image {
        margin-top: -75px;
        width: 25px;
        height: 25px;
    }
    
    .roadmap-timeline .start-flag img,
    .roadmap-timeline .end-image img {
        width: 25px;
        height: 25px;
        transform: translateY(-2px);
    }
}


/* Course Cards */
.roadmap-courses {
    margin-top: 50px;
}

.course-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.course-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.course-card h4 {
    padding: 15px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

/* Pricing Grade Selector - Updated Styling */
.pricing-grade-selector {
    max-width: 400px;
    margin: 0 auto 30px;
    position: relative;
}

.pricing-grade-selector .form-select {
    width: 100%;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    color: #1d2733;
    background-color: #fff;
    border: 2px solid #0d6efd;
    border-radius: 50px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
    background-image: none; /* Remove default arrow */
}

.pricing-grade-selector .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.pricing-grade-selector::after {
    content: "\ea67"; /* IcoFont down arrow */
    font-family: 'IcoFont';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d6efd;
    font-size: 20px;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Custom dropdown styling */
.pricing-grade-selector select option {
    padding: 15px;
    background-color: #fff;
    color: #1d2733;
    font-size: 16px;
}

/* Selected option styling */
.pricing-grade-selector select option:checked {
    background-color: #f0f7ff;
}

/* Dropdown open state */
.pricing-grade-selector.active::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Custom dropdown menu styling */
.pricing-grade-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-top: 5px;
    overflow: hidden;
    display: none;
}

.pricing-grade-dropdown.show {
    display: block;
}

.pricing-grade-dropdown .option {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-grade-dropdown .option:hover {
    background-color: #f0f7ff;
}

.pricing-grade-dropdown .option.selected {
    background-color: #e6f0ff;
    font-weight: 600;
}

.pricing-grade-dropdown .option:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.pricing-grade-dropdown .option:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline-points .point {
        padding: 20px;
        font-size: 12px;
    }
    
    .pricing-grade-selector .form-select {
        min-width: 100%;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .timeline-points .point {
        padding: 15px;
        font-size: 10px;
    }
}


/* Bonus Features Section - Better Layout */
.bonus-features {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.bonus-features p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

.bonus-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
    max-width: 300px;
}

.bonus-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: auto;
    min-width: 60px;
    margin-bottom: 5px;
}

.bonus-icon img {
    width: 35px;
    height: 35px;
    margin-bottom: 5px;
    background-color: #fff0f7;
    padding: 7px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(242, 39, 126, 0.15);
}

.bonus-icon span {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
    white-space: nowrap;
}

/* Responsive adjustments for bonus icons */
@media (max-width: 768px) {
    .bonus-icons {
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .bonus-icons {
        gap: 10px;
    }
    
    .bonus-icon img {
        width: 30px;
        height: 30px;
        padding: 6px;
    }
    
    .bonus-icon span {
        font-size: 10px;
    }
}


/* Best Value Tag */
.best-value {
    position: relative;
    border: 2px solid #0d6efd;
    overflow: visible;
}

.best-value-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: #0d6efd;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}
