/* AM Process Timeline Styles */
.am-process-timeline-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 120px 20px;
    background: #f4f6fa; /* Clean light grey background */
    overflow: hidden;
}

.am-pt-container {
    max-width: 1200px;
    margin: 0 auto;
}

.am-pt-header {
    text-align: center;
    margin-bottom: 90px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.am-pt-main-title {
    font-family: 'Megante', serif;
    font-size: clamp(35px, 5vw, 55px);
    color: #151516; /* Dark Charcoal */
    margin: 0 0 15px 0;
    line-height: 1.1;
}

.am-pt-subtitle {
    font-family: 'Raleway', sans-serif;
    color: #555555;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.6;
    margin: 0;
}

/* Timeline Layout */
.am-pt-timeline {
    position: relative;
    padding: 40px 0;
}

/* Central Vertical Line */
.am-pt-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(56, 88, 233, 0.2); /* Soft Blue line */
}

/* Timeline Item (Row) */
.am-pt-item {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 70px;
}
.am-pt-item:last-child {
    margin-bottom: 0;
}

/* Alternating Alignment */
.am-pt-left {
    flex-direction: row-reverse;
}
.am-pt-right {
    flex-direction: row;
}

/* Invisible Spacer to keep layout 50/50 */
.am-pt-item::before {
    content: '';
    width: calc(50% - 50px);
}

/* The Glowing Node/Dot */
.am-pt-dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    width: 50px;
    height: 50px;
    background: #3858e9; /* Official Blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 6px solid #f4f6fa; /* Matches section bg */
    box-shadow: 0 5px 15px rgba(56, 88, 233, 0.4);
    color: #ffffff;
    font-family: 'Megante', serif;
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.am-pt-item:hover .am-pt-dot {
    transform: translate(-50%, 0) scale(1.2);
    box-shadow: 0 10px 25px rgba(56, 88, 233, 0.6);
}

/* The Content Card */
.am-pt-card {
    width: calc(50% - 70px);
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.am-pt-item:hover .am-pt-card {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(56,88,233,0.15);
}

/* Pointing Triangle for Card */
.am-pt-card::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 0; 
    height: 0; 
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    transition: border-color 0.4s ease;
}

.am-pt-left .am-pt-card::after {
    right: -15px;
    border-left: 15px solid #ffffff;
}
.am-pt-right .am-pt-card::after {
    left: -15px;
    border-right: 15px solid #ffffff;
}

/* Card Text */
.am-pt-card-title {
    font-family: 'Megante', serif;
    font-size: 24px;
    color: #151516;
    margin: 0 0 15px 0;
}
.am-pt-card-desc {
    font-family: 'Raleway', sans-serif;
    color: #555555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .am-process-timeline-section {
        padding: 80px 20px;
    }
    .am-pt-timeline {
        padding: 20px 0;
    }
    
    /* Move line to left edge */
    .am-pt-timeline::before {
        left: 25px;
    }
    
    /* Stack cards in a column row */
    .am-pt-item {
        flex-direction: row !important;
        justify-content: flex-start;
        align-items: flex-start;
        margin-bottom: 50px;
    }
    
    /* Remove the invisible spacer */
    .am-pt-item::before {
        display: none;
    }
    
    /* Fix node/dot position to the left line */
    .am-pt-dot {
        left: 25px;
        transform: translate(-50%, 0);
    }
    
    .am-pt-item:hover .am-pt-dot {
        transform: translate(-50%, 0) scale(1.1);
    }
    
    /* Expand cards to take remaining width */
    .am-pt-card {
        width: calc(100% - 70px);
        margin-left: 70px;
        padding: 30px;
    }
    
    /* Fix triangles so they all point to the left line */
    .am-pt-left .am-pt-card::after,
    .am-pt-right .am-pt-card::after {
        left: -15px;
        right: auto;
        border-right: 15px solid #ffffff;
        border-left: none;
    }
}
