/* =========================================
   METHODOLOGY SECTION - IMPACTFUL DESIGN
   ========================================= */

/* Section Base */
.tj-methodology-section {
    position: relative;
    background-color: var(--tj-color-theme-bg);
    overflow: hidden;
}

/* Timeline Container */
.methodology-timeline {
    margin-top: 60px;
}

/* Methodology Card */
/* Methodology Card */
.methodology-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    /* Ensure arrow extending outside is not clipped */
    overflow: visible !important;
}

.methodology-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--tj-color-theme-primary);
}

/* Step Number Wrapper */
.step-number-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

/* Large Step Number */
.step-number {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg,
            var(--tj-color-theme-primary) 0%,
            rgba(0, 0, 0, 0.08) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

/* Step Icon */
.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            var(--tj-color-theme-primary) 0%,
            var(--tj-color-theme-secondary, #1a5c5c) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(0, 136, 136, 0.25);
}

.step-icon i {
    color: #ffffff;
}

/* Connector Arrow (between steps) */
.step-connector {
    position: absolute;
    /* Use left: 100% to guarantee it starts at right edge of card */
    left: 100%;
    top: 50px;
    /* Move left slightly to bridge the gap visually if needed, or stick out */
    transform: translateX(-10px);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0;
    /* Ensure it has a width that spans the gap */
    width: 100px;
    pointer-events: none;
    /* Let clicks pass through */
}

/* The line */
.connector-line {
    width: 120px;
    /* Make it long enough to cross the gutter */
    height: 2px;
    background: var(--tj-color-theme-primary);
    margin-top: 0;
}

/* The arrow tip */
.connector-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--tj-color-theme-primary);
    border-right: 2px solid var(--tj-color-theme-primary);
    transform: rotate(45deg);
    order: -1;
    margin-right: -2px;
    /* Connect smoothly */
    animation: none;
}

/* Remove icon font content override to ensure pure CSS shape shows */
.connector-arrow::before {
    content: "" !important;
    display: none !important;
}

/* Remove old animation keyframes */
@keyframes pulse-arrow {}

.step-content {
    position: relative;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--tj-color-heading-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.step-intro {
    font-size: 15px;
    color: var(--tj-color-text-body);
    line-height: 1.7;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Step Details List */
.step-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.step-details li:last-child {
    margin-bottom: 0;
}

.detail-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: rgba(0, 136, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.detail-icon i {
    color: var(--tj-color-theme-primary);
    font-size: 10px;
}

.detail-content strong {
    font-weight: 600;
    color: var(--tj-color-heading-primary);
    display: block;
    margin-bottom: 2px;
}

.detail-content span {
    color: var(--tj-color-text-body);
}

/* CTA Button */
.methodology-cta {
    margin-top: 50px;
}

/* Hover Effects */
.methodology-card:hover .step-number {
    background: linear-gradient(135deg,
            var(--tj-color-theme-primary) 0%,
            var(--tj-color-theme-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.methodology-card:hover .step-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .methodology-timeline {
        margin-top: 40px;
    }

    .methodology-card {
        margin-bottom: 30px;
        padding: 35px 25px;
    }

    .step-connector {
        display: none !important;
    }

    .step-number {
        font-size: 60px;
    }

    .step-icon {
        width: 45px;
        height: 45px;
    }

    .step-icon i {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .methodology-card {
        padding: 30px 20px;
    }

    .step-number-wrapper {
        gap: 15px;
        margin-bottom: 25px;
    }

    .step-number {
        font-size: 48px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        margin-top: 10px;
    }

    .step-icon i {
        font-size: 16px;
    }

    .step-title {
        font-size: 20px;
    }

    .step-details li {
        font-size: 13px;
    }

    .detail-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .detail-icon i {
        font-size: 8px;
    }
}

/* =========================================
   LEGACY PROCESS SECTION STYLES
   (Keeping for backward compatibility)
   ========================================= */

/* Process Section Styling */
#process .pricing-box {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
}

/* Subtle decorative accent line at top */
#process .pricing-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--tj-color-theme-primary) 0%,
            rgba(0, 0, 0, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

#process .pricing-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.08);
}

#process .pricing-box:hover::before {
    opacity: 1;
}

/* Step Number Styling */
#process .pricing-header .package-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--tj-color-heading-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Intro Text */
#process .pricing-header .package-desc p {
    font-size: 15px;
    color: var(--tj-color-text-body);
    line-height: 1.7;
    margin-bottom: 0;
}

/* List Items Enhancement */
#process .list-items {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#process .list-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#process .list-items ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--tj-color-text-body);
}

#process .list-items ul li:last-child {
    margin-bottom: 0;
}

#process .list-items ul li i {
    color: var(--tj-color-theme-primary);
    font-size: 8px;
    margin-top: 7px;
    flex-shrink: 0;
}

#process .list-items ul li strong {
    font-weight: 600;
    color: var(--tj-color-heading-primary);
    display: inline;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    #process .pricing-box {
        padding: 32px 28px;
    }

    #process .pricing-header .package-name {
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    #process .pricing-box {
        padding: 28px 24px;
    }

    #process .pricing-header .package-name {
        font-size: 18px;
    }

    #process .list-items ul li {
        font-size: 13px;
    }
}

/* Override active state - ensure no highlight */
#process .pricing-box.active {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
}

#process .pricing-box.active .package-name,
#process .pricing-box.active .package-desc p,
#process .pricing-box.active .list-items ul li,
#process .pricing-box.active .list-items ul li strong {
    color: inherit;
}

#process .pricing-box.active .list-items ul li i {
    color: var(--tj-color-theme-primary);
}