/* Roadmap Block Styles - Compatible with Tailwind CSS classes */

/* Reset any conflicting styles for the roadmap area */
.roadMap__area {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ensure Tailwind classes work properly */
.roadMap__area .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Content styling */
.roadMap__content .title {
    font-weight: 800;
    line-height: 1;
    margin: 0;
    text-transform: lowercase;
}

.roadMap__content p {
    line-height: 1.6;
    margin: 0;
}

/* Button styling */
.tg-btn-1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    background: linear-gradient(45deg, #ff6b35, #f7941d);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
}

.tg-btn-1:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.tg-btn-1 span {
    position: relative;
    z-index: 2;
}

/* Roadmap image */
.roadMap__img {
    position: relative;
    z-index: 1;
}

.roadMap__img img {
    max-width: 100%;
    height: auto;
}

/* Steps wrap - Timeline */
.roadMap__steps-wrap {
    position: relative;
}

.roadMap__steps-wrap::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    border-radius: 3px;
    left: 0;
    top: 0;
    background: linear-gradient(to top, #10161c, var(--main-color));
}

/* Steps item */
.roadMap__steps-item {
    position: relative;
    background: #1b242e;
    border-radius: 8px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.21);
    margin: 0 0 20px 45px;
    padding: 45px;
    transition: all 0.3s ease;
}

.roadMap__steps-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 18px;
    border-color: transparent transparent transparent var(--main-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.roadMap__steps-item.active::before {
    opacity: 0.9;
}

.roadMap__steps-item.group::before {
    opacity: 0;
}

.roadMap__steps-item.group:hover::before {
    opacity: 0.5;
}

.roadMap__steps-item .title {
    font-weight: 800;
    line-height: 1;
    margin: 0 0 22px 0;
    text-transform: lowercase;
}

/* Features list */
.roadMap__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.roadMap__list li {
    display: block;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    margin: 0 0 6px 0;
    padding-left: 37px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.roadMap__list li:last-child {
    margin-bottom: 0;
}

.roadMap__list li::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #262e38;
    left: 0;
    top: 4px;
    background: #10161c;
    transition: all 0.3s ease;
}

.roadMap__list li.active::before {
    background: var(--main-color);
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(248, 150, 69, 0.3);
}

/* Steps image */
.roadMap__steps-img {
    position: absolute;
    max-height: 210px;
    pointer-events: none;
    transition: all 0.4s ease;
    right: 20px;
    top: 30px;
    opacity: 0.11;
}

.roadMap__steps-item.group .roadMap__steps-img {
    opacity: 0;
}

.roadMap__steps-item.group:hover .roadMap__steps-img {
    opacity: 0.11;
}

.roadMap__steps-item.active .roadMap__steps-img {
    opacity: 0.11;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .roadMap__steps-item {
        margin-left: 35px;
        padding: 25px 35px;
    }
    
    .roadMap__steps-item::before {
        left: -34px;
    }
}

@media (max-width: 991px) {
    .roadMap__steps-wrap {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .roadMap__steps-wrap {
        margin-left: 0;
    }
    
    .roadMap__steps-item {
        margin-left: 35px;
        padding: 25px;
    }
    
    .roadMap__steps-item::before {
        left: -34px;
    }
}

@media (max-width: 575px) {
    .roadMap__steps-item {
        margin-left: 35px;
        padding: 25px;
    }
    
    .roadMap__steps-item::before {
        left: -34px;
    }
}

/* Animation classes */
.tg__animate-text {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease;
}

/* WOW.js animations */
.wow {
    visibility: hidden;
}

.wow.animate {
    visibility: visible;
    animation-fill-mode: both;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}
