@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.delivery-methodology-section {
    padding: 50px 0 !important;
    background: #f8fafc !important;
    font-family: 'Inter', sans-serif !important;
    position: relative;
    overflow: hidden;
}

.delivery-methodology-section .container {
    max-width: 1100px !important;
    position: relative;
}

.methodology-header {
    text-align: center;
    margin-bottom: 32px;
}

.methodology-header h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
}

/* Timeline Base */
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px; /* Ultra compact */
    position: relative;
    z-index: 2;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline Marker */
.timeline-marker {
    width: 36px; /* Reduced from 50px */
    height: 36px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: #64748b;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 0 10px rgba(0,0,0,0.05), 0 0 0 4px rgba(255, 255, 255, 0.8);
}

.timeline-item.active .timeline-marker {
    border-color: var(--marker-color);
    color: var(--marker-color);
    box-shadow: 0 0 15px rgba(var(--icon-bg-rgb), 0.15), 0 0 0 5px rgba(255, 255, 255, 0.9);
}

/* Content Cards */
.methodology-card {
    width: 44%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px; 
    padding: 12px 20px; /* Even tighter padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.4s ease;
}

/* Card Content Details */
.timeline-item:nth-child(odd) .methodology-card {
    margin-left: auto;
}

.timeline-item:nth-child(even) .methodology-card {
    margin-right: auto;
}

/* Red & Black Theme */
.timeline-item { 
    --step-color: #cd0808; 
    --marker-color: #cd0808; 
}

.methodology-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-icon-box {
    display: none;
}

.methodology-card h3 {
    font-size: 18px !important; 
    font-weight: 700 !important;
    color: #000000 !important; /* Pure Black */
    margin-bottom: 6px !important;
}

.card-subpoints {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
    align-items: center;
}

.subpoint-tag {
    font-size: 12px;
    font-weight: 700;
    color: #cd0808; /* Ingenx Red */
}

.subpoint-dot {
    width: 3px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 50%;
    margin: 0 3px;
}

.methodology-card p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #000000 !important; /* Black */
    margin: 0 !important;
}

/* Connector Lines from marker to card */
.timeline-connector-line {
    position: absolute;
    top: 50%;
    height: 2px;
    background: #e2e8f0;
    width: calc(5% + 20px);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-connector-line {
    left: 50%;
}

.timeline-item:nth-child(even) .timeline-connector-line {
    right: 50%;
}

/* Card Hover */
.methodology-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 991px) {
    .timeline-line {
        left: 30px;
    }
    .timeline-marker {
        left: 30px;
        transform: none;
    }
    .methodology-card {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    .timeline-connector-line {
        left: 30px !important;
        width: 50px !important;
        right: auto !important;
    }
}

@media (max-width: 640px) {
    .methodology-card {
        padding: 24px;
    }
    .methodology-card h3 {
        font-size: 22px !important;
    }
}
