.ms-abtimeline-section {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 112px 0px;
    background: #0B2545;
    overflow: hidden;
    width: 100%;
}

.ms-abtimeline-blob {
    position: absolute;
    width: 384px;
    height: 384px;
    border-radius: 9999px;
    z-index: 0;
}

.ms-blob-top {
    right: -96px;
    top: -96px;
    background: rgba(245, 158, 11, 0.1);
    filter: blur(32px);
}

.ms-blob-bottom {
    left: -96px;
    bottom: -96px;
    background: rgba(59, 130, 246, 0.1);
    filter: blur(32px);
}

.ms-abtimeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    width: 100%;
    max-width: 1280px;
    padding: 0 32px;
    margin: 0 auto;
    z-index: 2;
}

/* Header */
.ms-abtimeline-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 768px;
    text-align: center;
}

.ms-abtimeline-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 14px;
    gap: 8px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 9999px;
}

.ms-abtimeline-badge span {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.33;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #FCD34D;
}

.ms-abtimeline-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -1.2px;
    color: #FFFFFF;
    margin: 0;
}

.ms-abtimeline-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.56;
    color: #CBD5E1;
    margin: 4px 0 0 0;
}

/* Timeline Cards Area */
.ms-abtimeline-rail-wrap {
    position: relative;
    width: 100%;
    max-width: 1216px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ms-abtimeline-rail-line {
    position: absolute;
    height: 4px;
    left: 10%;
    right: 10%;
    top: 52px;
    background: linear-gradient(90deg, #FBBF24 0%, #34D399 50%, #FCD34D 100%);
    opacity: 0.8;
    z-index: 0;
}

.ms-abtimeline-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    width: 100%;
    z-index: 1;
}

/* Individual Card */
.ms-abtimeline-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px;
    width: 384px;
    background: #07172B;
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 16px;
    box-sizing: border-box;
    flex: 1;
}

.ms-abtimeline-card.is-active {
    background: linear-gradient(180deg, #0E2A4D 0%, #07172B 100%);
    border: 2px solid var(--theme-color);
}

.ms-abtimeline-active-tag {
    position: absolute;
    right: 26px;
    top: -10px;
    background: var(--theme-color);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    padding: 2px 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #020617;
}

.ms-abtimeline-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.ms-abtimeline-icon-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--theme-color);
    border-radius: 16px;
    box-shadow: 0px 0px 15px rgba(255,255,255, 0.1);
}

.ms-abtimeline-card.is-active .ms-abtimeline-icon-box {
    background: var(--theme-color);
    box-shadow: 0px 0px 20px rgba(245, 158, 11, 0.5); /* Adjust based on active theme */
}

.ms-abtimeline-icon-box svg,
.ms-abtimeline-icon-box img {
    max-width: 24px;
    max-height: 24px;
    display: block;
}

/* Force inner stroke color if not active */
.ms-abtimeline-card:not(.is-active) .ms-abtimeline-icon-box svg {
    color: var(--theme-color);
}
.ms-abtimeline-card.is-active .ms-abtimeline-icon-box svg {
    color: #020617; /* Dark icon on bright active bg */
}


.ms-abtimeline-year {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 900;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: -0.9px;
}

.ms-abtimeline-subbadge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    margin-bottom: 12px;
    align-self: flex-start;
}

.ms-abtimeline-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    color: #FFFFFF;
    margin: 0 0 8px 0;
}

.ms-abtimeline-cdesc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.64;
    color: #CBD5E1;
    margin-bottom: 24px;
    flex-grow: 1; /* Pushes features to bottom */
}

.ms-abtimeline-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(51, 65, 85, 0.8);
    width: 100%;
}

.ms-abtimeline-feat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.ms-abtimeline-feat svg {
    display: block;
    flex-shrink: 0;
}

.ms-abtimeline-feat span {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.33;
    color: #CBD5E1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .ms-abtimeline-heading {
        font-size: 36px;
    }
    
    .ms-abtimeline-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .ms-abtimeline-rail-line {
        display: none; /* Hide horizontal line on mobile stack */
    }
    
    .ms-abtimeline-card {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 767px) {
    .ms-abtimeline-section {
        padding: 64px 16px;
    }
    
    .ms-abtimeline-heading {
        font-size: 28px;
    }
    
    .ms-abtimeline-desc {
        font-size: 16px;
    }
    
    .ms-abtimeline-card {
        padding: 24px;
    }
    
    .ms-abtimeline-year {
        font-size: 28px;
    }
    .ms-abtimeline-container {
        padding: 0px;
    }
}

